Solar Elevation Angle Calculator

Solar Elevation Angle Calculator

Leading AI Skill PRO

Enter Calculation

Formula

α=arcsin⁡(sin⁡ϕsin⁡δ+cos⁡ϕcos⁡δcos⁡H)\alpha = \arcsin\!\left( \sin{\phi} \sin{\delta} + \cos{\phi} \cos{\delta} \cosH \right)
Usage stats

Advertisement

Results

Solar Elevation Angle
70°
angle of the Sun above the horizon
Solar Zenith Angle 20°
sin(α) 0.9397

Report an error on this page

What is the Solar Elevation Angle?

The solar elevation angle (also called the solar altitude angle, \(\alpha\)) is the angle between the Sun and the local horizon. It is 0° at sunrise and sunset, reaches its maximum at solar noon, and is negative when the Sun is below the horizon. Knowing the Sun's elevation is essential for solar panel placement, shadow analysis, daylighting design, and astronomy. This calculator is universal — it works for any location on Earth.

Diagram showing the Sun's elevation angle above the horizon and the complementary zenith angle from vertical
The solar elevation angle (\(\alpha\)) is measured up from the horizon; the zenith angle is measured from straight overhead.

How to Use the Calculator

Enter three values: your latitude (positive for the Northern Hemisphere, negative for the Southern), the solar declination \(\delta\) for the date (ranges from −23.45° to +23.45° over the year, and is 0° at the equinoxes), and the hour angle \(H\) (0° at solar noon, +15° per hour after noon, −15° per hour before noon). The tool returns the elevation angle, the complementary zenith angle, and the raw sine value.

The Formula Explained

The position is found with:

$$\alpha = \arcsin\!\left( \sin\phi \sin\delta + \cos\phi \cos\delta \cos H \right)$$

where \(\phi\) is latitude, \(\delta\) is solar declination, and \(H\) is the hour angle. All angles are converted to radians internally. Taking the inverse sine gives the elevation \(\alpha\), and the zenith angle is simply \(90° - \alpha\).

Advertisement
Celestial sphere diagram showing latitude, solar declination and hour angle that determine the Sun's position
The formula combines latitude (\(\phi\)), solar declination (\(\delta\)) and hour angle (\(H\)) to locate the Sun.

Worked Example

At latitude \(\phi = 40°\), declination \(\delta = 20°\), and solar noon (\(H = 0°\)): $$\sin(\alpha) = \sin 40° \cdot \sin 20° + \cos 40° \cdot \cos 20° \cdot 1 = 0.6428 \cdot 0.3420 + 0.7660 \cdot 0.9397 = 0.2199 + 0.7198 = 0.9397$$ So \(\alpha = \arcsin(0.9397) \approx 70°\), and the zenith angle is about 20°.

Solar Declination by Date

The solar declination \(\delta\) is the angle between the Sun's rays and Earth's equatorial plane. It is one of the three inputs this calculator needs, and it depends only on the date — not on your location. It swings between about \(-23.45^\circ\) at the December solstice and \(+23.45^\circ\) at the June solstice, passing through \(0^\circ\) at the two equinoxes.

Representative solar declination values through the year (Northern-Hemisphere season names)
Date Day of year \(N\) Declination \(\delta\) Note
Jan 1 1 −23.0° Just past December solstice
Jan 21 21 −20.0° Sun climbing
Feb 21 52 −10.6°  
Mar 21 80 0° March equinox (≈ Mar 20–21)
Apr 21 111 +11.6°  
May 21 141 +20.0°  
Jun 21 172 +23.45° June solstice — maximum declination
Jul 21 202 +20.4°  
Aug 21 233 +12.3°  
Sep 21 264 ≈ +0.9° Approaching equinox
Sep 23 266 ≈ 0° September equinox (≈ Sep 22–23)
Oct 21 294 −10.5°  
Nov 21 325 −19.9°  
Dec 21 355 −23.45° December solstice — minimum declination

These values come from the standard Cooper approximation used throughout solar-engineering work:

$$\delta = 23.45^\circ \cdot \sin\!\left[ \frac{360\,(284 + N)}{365} \right]$$

where \(N\) is the day of the year (\(N = 1\) on 1 January) and the sine argument is in degrees. The approximation is accurate to roughly \(\pm 0.5^\circ\). It ignores leap years, the slow precession of the equinoxes and the eccentricity of Earth's orbit, which is why the tabulated equinox dates shift by a day from year to year. For high-precision astronomy or surveying, use an ephemeris-based algorithm instead; for solar panel layout, shading studies and daylight estimates, \(\pm 0.5^\circ\) is normally negligible.

Sign convention: \(\delta\) is positive when the Sun is north of the celestial equator. Enter it with that sign regardless of which hemisphere you are in — southern latitudes are entered as negative \(\phi\), so the formula handles both hemispheres automatically.

Advertisement

Local Solar Time to Hour Angle

The hour angle \(H\) expresses how far the Sun is from your local meridian, measured in degrees of Earth rotation. Earth turns \(360^\circ\) in 24 hours, so one hour of solar time equals exactly \(15^\circ\):

$$H = 15^\circ \times (\text{local solar time in hours} - 12)$$

By the convention used in this calculator, \(H\) is negative in the morning (before solar noon), zero at solar noon, and positive in the afternoon. Be aware that some textbooks use the opposite sign; because \(\cos H = \cos(-H)\), the elevation angle itself is unaffected, but azimuth formulas and sunrise/sunset labels are.

Local solar time ↔ hour angle (both directions; 15° per hour, 0.25° per minute)
Local solar time Hour angle \(H\) Position of the Sun
06:00 −90° Morning
07:00 −75° Morning
08:00 −60° Morning
09:00 −45° Morning
10:00 −30° Morning
11:00 −15° Morning
12:00 0° Solar noon — Sun on the meridian, daily maximum elevation
13:00 +15° Afternoon
14:00 +30° Afternoon
15:00 +45° Afternoon
16:00 +60° Afternoon
17:00 +75° Afternoon
18:00 +90° Afternoon

For times between the rows, interpolate at \(0.25^\circ\) per minute. Example: 14:20 solar time gives \(H = 15^\circ \times (14.333 - 12) = +35.0^\circ\).

Solar time is not clock time

This table takes local apparent solar time, where 12:00 is the moment the Sun crosses your meridian. Your watch usually reads something different, for three reasons:

  1. Longitude offset. Clock time is set by a time-zone standard meridian. Each degree of longitude away from that meridian shifts solar noon by 4 minutes — east of it the Sun peaks earlier, west of it later.
  2. Equation of time. Earth's elliptical orbit and axial tilt make true solar noon drift against mean time by roughly −14 to +16 minutes over the year.
  3. Daylight saving time. Where it is observed, subtract the offset (usually one hour) before converting.

If you only need a rough answer, using clock time directly introduces an error of up to about \(\pm 1\) hour of hour angle (\(\pm 15^\circ\)), which matters most near sunrise and sunset. For panel tilt or shading work, convert properly to solar time first.

FAQ

What is the hour angle? It measures the Sun's position relative to solar noon, increasing 15° for each hour. Morning hours are negative, afternoon hours positive.

How do I get the solar declination? A common approximation is \(\delta = 23.45° \cdot \sin\!\left( \frac{360 \cdot (284 + N)}{365} \right)\), where \(N\) is the day of the year.

Why is my elevation negative? A negative result means the Sun is below the horizon — it is nighttime or twilight at that hour angle.

Last updated:

Most popular in Physics and Engineering

View all Physics and Engineering calculators