Reference guide · Sun, shadow and Moon calculator
Sun angle by latitude and shadow length table
By the Mirage Interactive team · Last checked
A sun angle calculator answers two questions. How high is the sun above the horizon (its elevation), and which way is it (its azimuth)? From the elevation, a shadow length follows from simple trigonometry.
The sun's elevation at solar noon depends only on your latitude and the time of year. The two tables below give the noon elevation at the solstices and equinox, and the length of the shadow an object casts for each sun elevation.
Printable tables
Shadow length by sun elevation, and the sun's elevation at solar noon by latitude. Use your browser's print command to print this page: the tables print without the navigation.
| Sun elevation (deg) | Shadow length (times the object height) |
|---|---|
| 5 | 11.430 |
| 10 | 5.671 |
| 15 | 3.732 |
| 20 | 2.747 |
| 30 | 1.732 |
| 40 | 1.192 |
| 45 | 1.000 |
| 50 | 0.839 |
| 60 | 0.577 |
| 70 | 0.364 |
| 80 | 0.176 |
| 85 | 0.087 |
Source: Formula shadow = height / tan(elevation), re-checked against 223 flat-ground shadow test cases in the Sun Angle app (largest relative difference 3.7e-16).
| Latitude (N) | June solstice | March and September equinox | December solstice |
|---|---|---|---|
| 0 | 66.6 | 90.0 | 66.6 |
| 20 | 86.6 | 70.0 | 46.6 |
| 30 | 83.4 | 60.0 | 36.6 |
| 40 | 73.4 | 50.0 | 26.6 |
| 50 | 63.4 | 40.0 | 16.6 |
| 55 | 58.4 | 35.0 | 11.6 |
| 60 | 53.4 | 30.0 | 6.6 |
Source: Formula elevation = 90 - |latitude - declination| with declination +23.44, 0 and -23.44 deg, checked against 7 solar-noon test cases in the Sun Angle app (largest difference 0.02 deg).
Formulas
- Sun elevation at any moment
- sin(elevation) = sin(lat) x sin(dec) + cos(lat) x cos(dec) x cos(hour angle)
- dec is the sun's declination (about +23.44 degrees at the June solstice, 0 at the equinoxes, -23.44 at the December solstice). The hour angle is 0 at solar noon and moves 15 degrees per hour.
- Elevation at solar noon
- elevation = 90 - | lat - dec |
- Shadow length on flat ground
- shadow = object height / tan(elevation)
- The shadow points away from the sun: its direction is the sun's azimuth plus 180 degrees.
Worked example
A real position: 2026-09-23 12:02 UTC at 51.48 N, 16.58 E
- The sun's declination is -0.19 degrees and the equation of time is 7.63 minutes.
- The hour angle is 19.00 degrees (about 1.3 hours past solar noon).
- The sun is 35.89 degrees above the horizon (before refraction) at an azimuth of 203.7 degrees, measured clockwise from north.
- A 2 m post casts a shadow of 2 / tan(35.89) = 2.76 m, pointing towards 23.7 degrees.
Things to watch
- Atmospheric refraction lifts the sun slightly. At 36 degrees it is about 0.02 degrees; near the horizon it is about half a degree, which matters for sunrise and sunset times.
- The noon table uses the declination at the solstice; the real declination differs by a fraction of a degree from day to day.
Related guide: Shadow length on a slope: how the ground tilt stretches or shortens a shadow · Solar panel row spacing calculator: pitch between rows for no shading · Sun position and shadow length: declination, noon elevation and shadow
Skip the arithmetic
Sun Position & Shadow Length
Sun and Moon position, sunrise and sunset, golden hour and shadow length for any place and date, with the working shown. One-time purchase · No subscription · Price shown in your store. Works offline, no ads, no account.
Questions
How do I find the sun's angle at noon?
Subtract the difference between your latitude and the sun's declination from 90 degrees. At the equinox the declination is 0, so the elevation at noon is 90 degrees minus your latitude.
How long is the shadow when the sun is 45 degrees high?
Exactly as long as the object is tall, because tan 45 degrees = 1.
