Skip to content
FiftyCalc Free calculators for all 50 states

Sun Angle Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Where is the sun in the sky? Enter a date, the clock time, your latitude and longitude and your UTC offset.

Result

Sample figures

Sun elevation above the horizon—°

Day of the year —

  • Fractional year γ (radians)—
  • Equation of time (minutes)—
  • Solar declination (degrees)—
  • Hour angle (degrees, 0 = solar noon)—
  • Sun azimuth (degrees clockwise from north)—
  • Sun position—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Sun Angle Calculator

Date: pick a date.

Clock time: enter a time. Prefilled example: 12:00.

Latitude (north positive), in °: enter a number from -90 to 90. Prefilled example: 40.7.

Longitude (east positive, west negative), in °: enter a number from -180 to 180. Prefilled example: -74.

Time zone (UTC offset of the clock time, daylight time included): choose one of the 10 options in the list. Prefilled example: UTC−4 (Eastern daylight).

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Date: pick a date.
  2. Clock time: enter a time.
  3. Latitude (north positive), in °: enter a number from -90 to 90.
  4. Longitude (east positive, west negative), in °: enter a number from -180 to 180.
  5. Time zone (UTC offset of the clock time, daylight time included): choose one of the 10 options in the list.
  6. Read the result: Sun elevation above the horizon; the panel also shows Day of the year, Fractional year γ (radians), Equation of time (minutes), Solar declination (degrees), Hour angle (degrees, 0 = solar noon), Sun azimuth (degrees clockwise from north) and Sun position.

How this calculator works

The calculator follows NOAA's General Solar Position Calculations (NOAA Global Monitoring Laboratory): the fractional year γ gives the equation of time and the solar declination δ through Fourier series; true solar time = clock time + equation of time + 4 × longitude − 60 × UTC offset (in minutes); the hour angle is true solar time ÷ 4 − 180°.

Solar zenith: cos ζ = sin φ sin δ + cos φ cos δ cos h, with φ the latitude and h the hour angle; elevation = 90° − ζ. Azimuth = atan2(sin h, cos h sin φ − tan δ cos φ) + 180°, measured clockwise from north.

Atmospheric refraction, which lifts the sun by about half a degree near the horizon, is not included. Accuracy is a fraction of a degree, enough for solar panels, shade and photography planning.

Worked example

Date2026-06-21
Clock time13:00
Latitude (north positive)40.7 °
Longitude (east positive, west negative)-74 °
Time zone (UTC offset of the clock time, daylight time included)UTC−4 (Eastern daylight)
Day of the year172
Equation of time (minutes)-1.34
Solar declination (degrees)23.45
Sun elevation above the horizon72.74 °
Sun azimuth (degrees clockwise from north)182.06
Sun positionAbove the horizon

Frequently asked questions

What is the sun's elevation at solar noon?

About 90° − latitude + declination. At 40° N on an equinox, about 50°.

What does an azimuth of 180° mean?

The sun is due south. 90° is due east and 270° due west.

Related calculators