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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Date: pick a date.
- Clock time: enter a time.
- Latitude (north positive), in °: enter a number from -90 to 90.
- Longitude (east positive, west negative), in °: enter a number from -180 to 180.
- Time zone (UTC offset of the clock time, daylight time included): choose one of the 10 options in the list.
- 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
| Date | 2026-06-21 |
|---|---|
| Clock time | 13: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 year | 172 |
|---|---|
| Equation of time (minutes) | -1.34 |
| Solar declination (degrees) | 23.45 |
| Sun elevation above the horizon | 72.74 ° |
| Sun azimuth (degrees clockwise from north) | 182.06 |
| Sun position | Above 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.