CalcWorldHub
Free online calculator · no signup

Solar Azimuth and Elevation Calculator

Estimate the Sun’s geometric azimuth and elevation from a UTC date and time and an Earth location.

4,000 tools
Solar Azimuth and Elevation Calculator — Latitude (°; north positive), Longitude (°; east positive), UTC year and calculation method
Solar Azimuth and Elevation Calculator: inputs and calculation method.

How to use this calculator

Estimate the Sun’s geometric azimuth and elevation from a UTC date and time and an Earth location.

  1. Enter Latitude (°; north positive), Longitude (°; east positive), UTC year, UTC month, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Astronomy calculation

How this calculation works

Calculate solar direction for a chosen instant using NOAA’s compact equation-of-time and declination approximation. The entered longitude is positive east, the time is UTC, azimuth is measured clockwise from north, and elevation is measured up from the horizon.

Inputs and units

latitude — Latitude (°; north positive)
Geodetic latitude, positive north and negative south.
longitude — Longitude (°; east positive)
Longitude, positive east and negative west.
year — UTC year
Calendar year supported by this approximation (1901–2099).
month — UTC month
Calendar month from 1 to 12.
day — UTC day of month
Valid calendar day for the selected month and year.
utcHour — UTC decimal hour
Enter a decimal hour from 0 inclusive to 24 exclusive.

Formula

Displayed formula

γ = 2π ÷ N × (day − 1 + (UTC hour − 12) ÷ 24); true solar minutes = UTC minutes + equation of time + 4 × longitude; hour angle = true solar minutes ÷ 4 − 180°.

Method

Find the day of year and leap-year length, then calculate NOAA’s fractional year, equation of time, and solar declination. Add the longitude correction to UTC to get true solar time, derive the hour angle, and use spherical trigonometry for solar zenith, elevation, and north-clockwise azimuth.

Worked example

At latitude 40.7128° N, longitude 74.006° W, on 2026-06-21 at 16:00 UTC, the NOAA approximation gives a solar azimuth of 140.73° clockwise from north and a geometric elevation of 68.95° above the horizon.

Assumptions and limits

This is a compact geometric solar-position estimate. It does not apply atmospheric refraction, terrain obstruction, elevation above sea level, or a local time-zone/DST conversion. Enter UTC directly and use decimal degrees with longitude positive east.

Frequently asked questions

Which time zone should I enter?

Enter UTC as a decimal hour. Convert local clock time to UTC before calculating.

How is azimuth measured?

The result is a bearing clockwise from north: 90° is east, 180° south, and 270° west.

Why can elevation be negative?

The geometric Sun is below the horizon at that instant. This calculation does not apply atmospheric refraction.

Does this calculate sunrise and sunset?

No. It returns the Sun’s direction for one specified instant; use a sunrise/sunset tool for event times.

How do I use the Solar Azimuth and Elevation Calculator?

Enter Latitude (°; north positive), Longitude (°; east positive), UTC year, UTC month, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.