Sun Elevation Angle Calculator
Work out the sun's height above the horizon and its compass direction for any place, date and clock time. It also shows the shadow a 1 metre object would cast.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Sun Elevation Angle Calculator
- Enter the latitude and longitude of the place, with north and east as positive.
- Set the date and the local clock time, then enter the UTC offset for that zone, such as 1 for UK summer time.
- Read the sun elevation, azimuth and compass direction, and the shadow a 1 m object would cast.
Frequently asked questions
How is the sun's elevation angle calculated?
It comes from latitude, solar declination and hour angle: sin(elevation) = sin(latitude) x sin(declination) + cos(latitude) x cos(declination) x cos(hour angle). At solar noon the elevation is 90 degrees minus the difference between latitude and declination.
How do I work out a shadow length from the sun angle?
Shadow length equals object height divided by the tangent of the elevation angle. A 1 m pole casts a 1 m shadow when the sun is at 45 degrees, and a longer shadow when the sun is lower.
Does the result include atmospheric refraction?
No. The elevation is the geometric angle to the sun's centre. Air refraction lifts the apparent sun by about 0.5 degrees near the horizon, so sunrise and sunset look slightly earlier than this calculation shows.
What UTC offset should I use?
Use the offset of the local time zone on that date. For example, 0 for UK winter time, 1 for UK summer time, -5 for US Eastern standard time and -4 during US Eastern daylight time.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.