Where is the sun at a given time? The solar elevation angle calculator gives the elevation, the azimuth and the zenith angle of the sun from the latitude, the date and the solar time. It also gives the declination, the maximum elevation of the day and the length of a shadow per unit of height.
How the calculation works
- Enter the latitude of the place (positive in the northern hemisphere, negative in the southern one), the month and the day, and the local solar time.
- The calculator finds the day of the year and the solar declination δ, the latitude at which the sun is overhead that day.
- The hour angle is H = 15° × (solar time − 12). The elevation follows from sin(h) = sin φ sin δ + cos φ cos δ cos H.
- The result also gives the azimuth of the sun, the maximum elevation at solar noon, 90° − |φ − δ|, and the length of the shadow of an object of height 1.
Example
In New York (latitude 40.7°) on June 21 at 3 p.m. solar time, the declination is 23.44° and the hour angle 45°. The sun is 48.70° above the horizon, at an azimuth of 259.4° (west-southwest). At noon it reaches 72.74°. A post of 1 m casts a shadow of 0.879 m.
Why it matters
The height of the sun decides how bright and how warm a day is, how long shadows are, how much power a solar panel makes and when a room is lit by the sun. Gardeners, photographers, architects and solar installers all use it to plan.
Good to know
The calculator uses a simple formula for the declination, a spherical Earth and no correction for atmospheric refraction, with a solar time that you must enter yourself (not the clock time). The azimuth is measured from the north, clockwise, so that 90° is east, 180° is south and 270° is west. At the poles and near them, the azimuth is not well defined. For an exact value with the equation of time and the refraction, use an astronomical almanac.
Related tools
The sunrise azimuth calculator gives the direction at which the sun rises, the solar noon calculator converts between clock time and solar time, the shadow length calculator gives the shadow of an object from the elevation, and the golden hour calculator gives the times of the best light.