Solar Zenith Angle Calculator

Location & time

Solar zenith angle16.6 deg
Solar elevation73.4 deg
Solar declination23.4 deg
Hour angle0.0 deg
Solar azimuth (from north)180.0 deg
How this was calculated
  1. Declination for day 172: delta = -23.44 deg x cos(360/365 x (172 + 10)) = 23.4 deg.
  2. Hour angle at solar time 12.0 h is (12.0 - 12) x 15 deg = 0.0 deg.
  3. cos(zenith) = sin(lat) sin(delta) + cos(lat) cos(delta) cos(hour angle) = 0.959 at latitude 40.0 deg.
  4. Zenith = 16.6 deg, so the sun stands 73.4 deg above the horizon at an azimuth of 180.0 deg.

This solar zenith angle calculator tells you the angle between the sun and the vertical for any place and time you enter. That angle is the key to knowing how high the sun stands in the sky, because the solar elevation above the horizon is simply its complement. The tool works from declination, the sun's seasonal tilt, which swings between +23.44 and -23.44 degrees over the year by the Cooper relation, delta = -23.44 cos(360/365 x (N + 10)). Combine that with latitude and the hour angle, which moves 15 degrees per hour from solar noon, and the calculator returns the zenith angle directly. The results match reality: at 40 degrees north on day 172 the noon zenith angle is 16.6 degrees, so the sun culminates 73.4 degrees up, close to overhead. On the equator near day 80 the noon zenith is just 0.5 degrees, with the sun passing almost directly overhead at equinox. For a non-noon case, Sydney's 10 am example sits at an hour angle of -30.0 degrees with the sun at azimuth 76.2 degrees.

The method behind this calculator is the standard approach for this kind of calculation: declination from the Cooper relation, latitude, and hour angle combined through the spherical geometry of the sky. That is why the worked numbers line up with what you would observe, from the near-overhead equinox sun on the equator to the high noon sun at 40 degrees north in June. Rather than hand you a black-box answer, this page shows the formula, the step-by-step workings, worked examples, and the sources behind them, so you can follow each stage and check the result yourself. Whether you are planning a solar installation, studying sun paths, or simply curious about the sun's position, you get both the number and the reasoning that produced it.

Worked examples

40N at solstice noon

(40 · 172 · 12 hours)

Solar zenith angle16.6 deg
Solar elevation73.4 deg
Solar declination23.4 deg
Hour angle0.0 deg
Solar azimuth (from north)180.0 deg

Equator near equinox noon

(0 · 80 · 12 hours)

Solar zenith angle0.5 deg
Solar elevation89.5 deg
Solar declination-0.5 deg
Hour angle0.0 deg
Solar azimuth (from north)180.0 deg

Sydney summer morning

(-33.9 · 355 · 10 hours)

Solar zenith angle28.2 deg
Solar elevation61.8 deg
Solar declination-23.4 deg
Hour angle-30.0 deg
Solar azimuth (from north)76.2 deg

Zenith, elevation and azimuth

A solar zenith angle calculator works with three angles that together pin down where the sun sits in the sky at a given moment. The first is the zenith angle itself: the angle between the sun and the vertical, measured from straight overhead down to the sun. Its complement is the solar elevation, the angle of the sun above the horizon. The two always add up to 90 degrees, so a zenith angle of 16.6 degrees means the sun stands 73.4 degrees above the horizon, and a sun exactly overhead has a zenith angle of zero and an elevation of 90 degrees. The third angle is the azimuth, which tells you which way to look: it is the sun's compass direction around the horizon, so elevation and azimuth together describe the sun's position in the sky while the zenith angle describes how far it is from overhead.

The geometry behind these angles is the sun's declination, the tilt of the sun's position relative to the celestial equator. Declination swings between +23.44 and -23.44 degrees over the year by the Cooper relation, delta = -23.44 cos(360/365 x (N + 10)), where N is the day of the year. That single formula captures the seasonal march of the sun: near the solstices the declination is at its extremes, and near the equinoxes it passes through zero. Because the declination changes with the date, the same clock time and the same latitude give a different zenith angle in June than in December.

Two concrete cases show how the numbers behave. At 40 degrees north on day 172, the noon zenith angle is 16.6 degrees, meaning the sun culminates 73.4 degrees up, close to overhead. On the equator near day 80, the noon zenith is just 0.5 degrees: the sun passes almost directly overhead at equinox. In both cases the calculation is anchored at solar noon, when the sun is highest and the zenith angle is smallest for that day.

Away from noon, time enters through the hour angle, which moves 15 degrees per hour from solar noon. Sydney's 10 am example sits at -30.0 degrees, with the sun at azimuth 76.2 degrees. The negative sign marks a morning hour angle, before the sun crosses the meridian. This is why a solar zenith angle calculator needs three inputs: your latitude, which sets the geometry of your location on the globe; the day of the year, which fixes the declination through the Cooper relation; and the local solar time, which sets the hour angle. Latitude and declination determine how high the sun can climb, and the hour angle determines where the sun is along its daily arc, which is what the azimuth reports.

Keep the distinction between the three angles clear and the inputs follow naturally. The zenith angle and elevation describe height above the horizon as a single pair of complements, while the azimuth describes direction around it. Feed latitude, day of year and local solar time into the geometry, and the calculator can return the full position of the sun for that moment.

Zenith angle plus elevation equals 90 degrees. Azimuth is separate: it tells you the sun's compass direction, not its height.

Declination and hour angle

Declination and hour angle are the two coordinates that turn a date and a clock time into a solar position. Declination is the sun's angular distance north or south of the celestial equator, and it swings between +23.44 and -23.44 degrees over the year. The Cooper relation approximates this sweep as delta = -23.44 cos(360/365 x (N + 10)), where N is the day of the year. That 23.44 degree amplitude is the tilt of Earth's axis, and the cosine term simply tracks how that tilt leans toward or away from the sun as Earth orbits. A solar zenith angle calculator uses this declination together with your latitude and the hour angle to place the sun in the sky for any moment you choose.

The hour angle measures how far the sun has traveled from solar noon, moving 15 degrees per hour because Earth turns 15 degrees of longitude every hour. It is zero at solar noon, negative in the morning and positive in the afternoon. Sydney's 10 am example sits at -30.0 degrees, two hours before noon, with the sun at azimuth 76.2 degrees. That single number, -30.0, encodes both the time of day and the direction of the sun's apparent motion across the sky, which is why the hour angle is paired with declination rather than with clock time directly.

The worked examples show how declination and hour angle combine at noon, when the hour angle is zero and only declination and latitude matter. At 40 degrees north on day 172, the noon zenith angle is 16.6 degrees, meaning the sun culminates 73.4 degrees up, close to overhead. On the equator near day 80, the noon zenith is just 0.5 degrees: the sun passes almost directly overhead at equinox. In both cases the small zenith angle follows from the sun's declination sitting near your latitude, and the complement, the solar elevation above the horizon, is correspondingly large.

Read together, the two quantities explain the seasonal and daily halves of the sun's path. Declination changes slowly across the year, shifting the noon zenith angle by up to the 23.44 degree amplitude between solstices, while the hour angle changes quickly through the day at 15 degrees per hour. Once you have both, the zenith angle follows from latitude, and its complement gives the elevation above the horizon. That is the full input set for a solar zenith angle calculator: a date to fix declination, a time to fix the hour angle, and a latitude to tie them to your location.

Declination sets the season (up to 23.44 degrees either side of the equator); the hour angle sets the time of day at 15 degrees per hour from solar noon.

The spherical cosine formula

The spherical cosine formula turns the geometry of the sky into a single line of arithmetic. It reads: cos(zenith) = sin(lat) sin(delta) + cos(lat) cos(delta) cos(hour angle). Here lat is your latitude, delta is the sun's declination, and the hour angle measures how far the sun has traveled from solar noon. Because the solar zenith angle is the angle between the sun and the vertical, a small cosine means a low sun and a large zenith angle; a cosine near 1 means the sun is nearly overhead. A solar zenith angle calculator simply evaluates this expression and then takes the inverse cosine.

Each piece of the formula has a clear job. The latitude and declination terms set the baseline for the day, while the hour angle term adjusts for the time. The hour angle moves 15 degrees per hour from solar noon, so morning hours are negative and afternoon hours are positive. Declination itself is not fixed: it swings between +23.44 and -23.44 degrees over the year by the Cooper relation, delta = -23.44 cos(360/365 x (N + 10)), where N is the day number.

A worked example shows how the pieces fit. Take 40 degrees north on day 172, the June solstice. First, the Cooper relation gives a declination of +23.44 degrees, the northern extreme. Second, at solar noon the hour angle is 0 degrees, so cos(hour angle) = 1 and the formula collapses to cos(zenith) = sin(40) sin(23.44) + cos(40) cos(23.44). Third, sin(40) is about 0.643 and sin(23.44) is about 0.398, giving roughly 0.256. Fourth, cos(40) is about 0.766 and cos(23.44) is about 0.917, giving roughly 0.702. Adding the two terms gives a cosine of about 0.958. Fifth, the inverse cosine of 0.958 is about 16.6 degrees. That matches the stated result: at 40 degrees north on day 172 the noon zenith angle is 16.6 degrees, and the sun culminates 73.4 degrees up, close to overhead.

The same formula reproduces the other reference points. On the equator near day 80, the noon zenith is just 0.5 degrees, so the sun passes almost directly overhead at equinox. Away from noon, the hour angle does the work: Sydney's 10 am example sits at -30.0 degrees with the sun at azimuth 76.2 degrees. Notice that the formula returns the zenith angle only; the azimuth is a separate calculation, which is why the Sydney case lists both numbers.

To use the formula by hand, keep the order of operations straight and watch your angle units. The table below collects the facts used in these checks.

  • Set the day number N and compute declination with the Cooper relation.
  • Convert latitude, declination and hour angle to the same angle unit before evaluating sines and cosines.
  • At solar noon the hour angle is 0 degrees, so the cosine term becomes 1.
  • Take the inverse cosine of the result to recover the zenith angle in degrees.
CaseLatitudeDayHour angleNoon zenith
June solstice40 degrees north1720 degrees16.6 degrees
Equinox near overheadEquator800 degrees0.5 degrees
Sydney 10 amSydneynot given-30.0 degreesnot given
At 40 degrees north on day 172 the formula gives a noon zenith of 16.6 degrees, meaning the sun stands 73.4 degrees above the horizon.

Why solar time is not clock time

Solar noon is not the same as noon on your clock. Two separate effects push the moment of highest sun away from 12:00, and both matter if you want a trustworthy solar zenith angle calculator. The first is longitude within a time zone. A time zone assigns one clock time to a wide band of longitude, but the sun does not read the zone map. If you sit east or west of the meridian that defines your zone's standard time, solar noon arrives earlier or later than the clock's 12:00 by a predictable margin. The further you are from that central meridian, the larger the offset.

The second effect is the equation of time, the natural wobble between apparent solar time and mean solar time. It arises from the tilt of Earth's axis and the eccentricity of its orbit, and it shifts solar noon by a varying number of minutes across the year. Together, the longitude offset and the equation of time can move solar noon well away from 12:00, so a calculation that assumes clock noon will misplace the sun in the sky.

This calculator sidesteps that confusion by taking solar time directly. Rather than asking you to correct clock time for your longitude and the date's equation of time, it works from the solar-time framework in which noon is defined as the instant the sun crosses the local meridian. That keeps the geometry clean: the hour angle measures the sun's distance from solar noon, moving 15 degrees per hour. Sydney's 10 am example sits at -30.0 degrees, with the sun at azimuth 76.2 degrees — a position that follows from solar time, not from a clock reading.

The same framework makes the noon results easy to read. At 40 degrees north on day 172, the noon zenith angle is 16.6 degrees, meaning the sun culminates 73.4 degrees up, close to overhead. On the equator near day 80, the noon zenith is just 0.5 degrees, so the sun passes almost directly overhead at equinox. Those figures depend on declination, which swings between +23.44 and -23.44 degrees over the year by the Cooper relation, delta = -23.44 cos(360/365 x (N + 10)).

Keep the distinction in mind whenever you compare a result with a clock-based observation. A reading taken at 12:00 on your watch is not a reading at solar noon unless your longitude and the equation of time happen to cancel out. Feeding solar time in directly avoids that trap and keeps the zenith angle tied to the sun's actual position.

Solar noon drifts from clock noon because of longitude within a time zone and the equation of time. This calculator takes solar time directly, so you do not have to apply those corrections yourself.

FAQs

What is the zenith angle at noon on the solstice at 40N?

At latitude 40 degrees north on the solstice, the zenith angle at noon is 16.6 degrees. This comes from subtracting the declination of 23.4 degrees from the latitude of 40. That puts the sun 73.4 degrees above the horizon at that moment.

When is the zenith angle zero?

The zenith angle is zero when the sun passes directly overhead. That is possible only between the tropics. In the equator example, the sun reaches 0.5 degrees at noon near day 80, close to overhead but not exactly zero on that day.

How is declination calculated?

Declination is calculated with the Cooper approximation: -23.44 cos(360/365 x (N + 10)) degrees, where N is the day number. It gives about +23.4 near day 172 and about -23.4 near day 355, matching the solstice extremes used in the examples.

What is the hour angle at 10 am?

At 10 am solar time, the hour angle is -30.0 degrees, as in the Sydney example. Solar time 10 is two hours before noon, and each hour is 15 degrees, so two hours gives minus 30 degrees. Afternoon hour angles are positive.

Which way is azimuth measured?

Azimuth is measured clockwise from north. That makes 180 degrees due south, which is where the sun culminates at noon in the northern hemisphere examples. Measuring clockwise from north lets the sun's compass direction be read directly from the angle.

What is this used for?

The solar zenith angle is used for solar panel tilt and tracking, shading studies, PV yield models, and any work that needs the sun's direction from a place and time. These uses depend on knowing where the sun sits in the sky.

Sources

Related calculators

Shadow Length Calculator
Shadow length, object height or sun elevation — any one from the other two, by plain trigonometry.
Solar Panel Tilt Angle Calculator
Optimal solar panel tilt from latitude, hemisphere and season - annual, winter and summer angles with the 15-degree seasonal rule.
Solar Panel Output Calculator
Daily, monthly and yearly energy from a solar array — panel wattage and count, peak sun hours and system losses, the way NREL's PVWatts frames it.