Skip to content
Omnikalc

Solar elevation angle calculator: where is the sun in the sky?

Enter the latitude, the date and the solar time to get the elevation and azimuth of the sun, the zenith angle, the declination, the maximum elevation of the day and the shadow length.

Updated on
Your inputs
°

Value out of range

Value out of range

Value out of range

h

Value out of range

Results

Solar elevation above the horizon

48.70 °

The sun is high enough for strong sunlight
Solar azimuth (from north, clockwise)
259.4 °
Zenith angle
41.30 °
Solar declination
23.44 °
Maximum elevation at solar noon
72.74 °
Shadow length per unit of height
0.879

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.

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.

Frequently asked questions

What is the solar elevation?

It is the angle between the horizon and the sun, seen from where you stand. It is 0° at sunrise and sunset and reaches its maximum at solar noon. The zenith angle is its complement, 90° minus the elevation. The elevation decides the strength of sunlight, the length of shadows and the energy that a solar panel receives.

What is the solar declination?

It is the angle between the rays of the sun and the plane of the equator. It changes during the year because the axis of the Earth is tilted by 23.44°: it is +23.44° at the June solstice, 0° at the equinoxes and −23.44° at the December solstice. The sun is directly overhead at the latitude equal to the declination.

What is solar time?

Solar time is time measured by the sun: it is 12:00 when the sun is at its highest and on the meridian. It differs from the clock time because of the position in the time zone, the daylight saving time and the equation of time, which is up to ±16 minutes during the year. To convert, use the solar noon calculator.

How accurate is the calculation?

The declination formula used here is accurate to about 0.5°, and the day of the year is computed for a non-leap year. This gives an elevation accurate to better than 1°, which is enough for shadows, gardening, solar panel orientation and photography, but not for astronomical or solar-tracking purposes. Atmospheric refraction raises the sun by up to 0.5° near the horizon, which is not included.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.