Sun position & zenith angle Spencer 1971 equations Air mass calculation Panel tilt recommendation

Solar Zenith Angle Calculator Guide

Calculate solar zenith angle, sun elevation, declination, hour angle, solar noon time and optimal panel tilt for any location and date using Spencer 1971 solar geometry.

🌞 Free Tool · No Signup · Instant Results

SOLAR GENERATION
PV Output Sizing
Efficiency & Area
Inverter Compatibility
ROI & Payback Period

Solar Zenith Angle Calculator Guide

°
°
hrs
Solar Zenith Angle for Your Location
Solar Elevation Angle
Solar Declination
Hour Angle
Day of Year
Solar Noon (Local Time)
Sun Position
Recommended Panel Tilt
Air Mass

Results are estimates based on Spencer 1971 solar geometry equations. Actual sun position may vary slightly due to atmospheric refraction and topographic elevation. Does not account for Daylight Saving Time — enter the UTC offset for standard time only.

How to Use the Solar Zenith Angle Calculator Guide

Follow these steps to calculate the solar zenith angle, sun elevation, declination, solar noon and panel tilt for any location on Earth:

  1. Enter Latitude. Enter your location's latitude in decimal degrees. Use positive values for North and negative for South. For example, Dallas TX is 32.8°, Sydney Australia is -33.9°, and London UK is 51.5°.
  2. Enter Longitude. Enter your location's longitude in decimal degrees. Use negative values for West and positive for East. New York is -74.0°, London is -0.1°, and Tokyo is 139.7°.
  3. Select Date. The calculator automatically sets today's date. Change the date to calculate sun position on any day in the past or future.
  4. Enter Local Time. Enter the local clock time in 24-hour format. Use 12:00 for an approximate solar noon result, or enter any specific time to get the exact sun position for that moment.
  5. Enter UTC Offset. Enter your timezone's UTC offset as a number. US Eastern Standard Time is -5, US Central is -6, UK is 0, Central European Time is +1, India Standard Time is +5.5, and Australian Eastern Standard Time is +10. Do not add 1 for Daylight Saving Time — use only standard time offset.
  6. Click Calculate. Press Calculate Sun Position to instantly view the solar zenith angle, sun elevation angle, declination, hour angle, solar noon time, sun direction, recommended panel tilt and air mass.

How to Calculate Solar Zenith Angle Guide

Step 1 — Find the Day of Year

Convert the calendar date to a day of year (DOY) number from 1 to 365 (or 366 in a leap year). January 1 is DOY 1, February 1 is DOY 32, and December 31 is DOY 365.

DOY = Day number counting from January 1
Example: June 21 = DOY 172

Step 2 — Calculate Solar Declination (Spencer 1971)

Solar declination (δ) is the angle between the sun's rays and the Earth's equatorial plane. It ranges from +23.45° at the June solstice to -23.45° at the December solstice, passing through 0° at the equinoxes.

B = 2π × (DOY − 1) / 365
δ (rad) = 0.006918 − 0.399912·cos(B) + 0.070257·sin(B)
           − 0.006758·cos(2B) + 0.000907·sin(2B)
           − 0.002697·cos(3B) + 0.001480·sin(3B)
Example: June 21 (DOY 172) → δ ≈ +23.45°

Step 3 — Calculate the Equation of Time

The equation of time (EoT) corrects for the difference between clock time and actual solar time due to Earth's elliptical orbit and axial tilt. It is expressed in minutes and varies from about −16 min to +14 min throughout the year.

EoT (min) = 229.18 × (0.000075 + 0.001868·cos(B) − 0.032077·sin(B)
                    − 0.014615·cos(2B) − 0.040890·sin(2B))
Example: June 21 → EoT ≈ −2.0 min

Step 4 — Calculate the Hour Angle

The hour angle (H) measures the angular distance of the sun from solar noon. It equals 0° at solar noon, and changes by 15° per hour. First correct local clock time to solar time using the longitude offset and equation of time.

Time Correction (min) = 4 × (Longitude − 15 × UTC Offset) + EoT
Solar Time (hrs) = Local Time (hrs) + Time Correction / 60
H (°) = 15 × (Solar Time − 12)
Example: 12:00 local, lon −100°, UTC −6 → H ≈ −3.1°

Step 5 — Calculate Solar Zenith Angle

The solar zenith angle (θz) is computed from latitude (φ), declination (δ) and hour angle (H) using the fundamental solar geometry equation established by Iqbal (1983).

cos(θz) = sin(φ) · sin(δ) + cos(φ) · cos(δ) · cos(H)
θz = arccos(cos(θz))
Example: φ = 35°, δ = 23.45°, H = 0° → θz ≈ 11.55°

Step 6 — Calculate Solar Elevation and Air Mass

Solar elevation angle is the complement of zenith angle. Air mass is computed using the Kasten and Young (1989) formula for zenith angles above 70° and simple secant for smaller angles.

Elevation (°) = 90° − θz
Air Mass (AM) = 1 / cos(θz)   [for θz < 70°]
Air Mass (AM) = 1 / (cos(θz) + 0.50572 × (96.08 − θz)^−1.6364)  [for θz ≥ 70°]
Example: θz = 11.55° → Elevation = 78.45°, AM ≈ 1.02

Solar Zenith Angle Reference Tables Guide

Use the tables below to find solar zenith angle by month and latitude, solar declination by date, recommended panel tilt angles, and air mass by solar elevation.

Solar Noon Zenith Angle by Month and Latitude (Northern Hemisphere)

Latitude Jan Mar Equinox May Jun Solstice Sep Equinox Dec Solstice
0° (Equator)21°20°24°23°
15°N36°15°15°38°
25°N46°25°25°48°
35°N56°35°16°12°35°58°
45°N66°45°26°22°45°68°
55°N76°55°36°32°55°78°

Zenith angle at solar noon. Smaller angle = sun higher in sky = more energy. Calculated at solar noon using Spencer 1971 declination values.

Solar Declination by Month

Month Approx. Date Declination Sun Position (N. Hemisphere) Season
JanuaryJan 21−20.2°Low in south skyWinter
FebruaryFeb 21−11.2°Rising toward equinoxLate Winter
MarchMar 20Due east/west at rise/setSpring Equinox
AprilApr 21+11.8°Moving northSpring
MayMay 21+20.4°High in sky at noonLate Spring
JuneJun 21+23.5°Highest point of yearSummer Solstice
JulyJul 21+20.5°Beginning to declineSummer
AugustAug 21+12.1°Moving southLate Summer
SeptemberSep 22Due east/west at rise/setFall Equinox
OctoberOct 21−11.5°Low in south skyFall
NovemberNov 21−19.8°Moving toward solsticeLate Fall
DecemberDec 21−23.5°Lowest point of yearWinter Solstice

Recommended Solar Panel Tilt Angle by Latitude

Latitude Annual Optimal Tilt Summer Tilt Winter Tilt Notes
0–15°10–15°5–10°15–25°Tilt at least 10° for rain cleaning
15–25°15–25°10–15°25–35°Face toward equator
25–35°25–35°15–25°35–45°South-facing in N. hemisphere
35–45°35–45°25–35°45–55°Common US/Europe latitudes
45–55°45–55°35–45°55–65°Steeper tilt captures winter sun
55–65°55–65°45–55°65–75°Snow load must be considered

Annual optimal tilt ≈ geographic latitude. Adjust ±10–15° for seasonal optimization. South-facing in Northern Hemisphere, North-facing in Southern Hemisphere.

Air Mass by Solar Elevation Angle

Solar Elevation Zenith Angle Air Mass (AM) Relative Irradiance Typical Condition
90°1.00100%Sun directly overhead (equator)
60°30°1.1587%Morning/afternoon mid-latitudes
48.2°41.8°1.5071%AM1.5 — standard panel test condition
45°45°1.4171%Spring/fall noon at mid-latitudes
30°60°2.0050%Winter noon at 35°N
20°70°2.9234%Early morning or high-latitude winter
10°80°5.7617%Near sunrise/sunset
85°10.49%Twilight zone

Relative irradiance = cos(zenith angle). AM1.5 (41.8° zenith) is the standard condition used for solar panel power ratings and efficiency specifications.

Solar Zenith Angle Frequently Asked Questions Guide

The solar zenith angle is the angle between the sun and the vertical (directly overhead point called the zenith). It measures how far the sun is from straight overhead. A zenith angle of 0° means the sun is directly overhead, while 90° means the sun is at the horizon. Solar zenith angle determines how much atmosphere sunlight passes through and directly affects solar panel output.

The solar zenith angle is calculated using the formula: cos(θz) = sin(φ)·sin(δ) + cos(φ)·cos(δ)·cos(H), where φ is geographic latitude, δ is the solar declination angle, and H is the hour angle. The declination is computed using the Spencer 1971 equation from the day of year, and the hour angle equals 15° per hour from solar noon, corrected for longitude and the equation of time.

Solar declination is the angle between the sun's rays and the Earth's equatorial plane. It varies from +23.5° at the June solstice (sun farthest north) to −23.5° at the December solstice (sun farthest south), and equals 0° at both equinoxes in March and September. This seasonal variation is why summer days are longer and the sun is higher in the sky than in winter.

The solar hour angle measures how far the sun has moved from solar noon. It equals 0° at solar noon, decreases by 15° per hour before noon (negative in the morning), and increases by 15° per hour after noon (positive in the afternoon). At sunrise the hour angle is roughly −75° to −90° and at sunset roughly +75° to +90°, depending on the season and latitude.

Higher latitudes result in larger zenith angles (sun lower in the sky) throughout the year, which reduces solar energy intensity. At the equator the sun passes nearly overhead twice a year. At 35°N the minimum zenith angle at solar noon is about 11° in June, rising to 58° in December. At 60°N the sun never rises above 54° elevation even at the summer solstice, significantly reducing solar panel output compared to tropical locations.

Solar noon is the moment when the sun reaches its highest point in the sky and crosses the local meridian. It is not always at 12:00 clock time because of longitude offsets within a timezone and the equation of time correction (up to ±16 minutes). Solar noon occurs when the hour angle equals zero. This calculator computes the exact clock time of solar noon for your location, accounting for both longitude correction and the equation of time.

Air mass (AM) is the relative path length that sunlight travels through Earth's atmosphere compared to a direct vertical path. At zenith (sun directly overhead) air mass is 1.0. At a 60° zenith angle the air mass is 2.0, and at an 80° zenith angle it is about 5.6. Higher air mass means more atmospheric absorption and scattering, reducing solar irradiance. Standard solar panels are rated at AM1.5, corresponding to a 41.8° zenith angle.

The optimal fixed tilt angle for maximizing annual solar energy production is approximately equal to your geographic latitude. For example, a location at 35°N should tilt panels at about 35° from horizontal facing south. For maximum summer output tilt 10–15° less than latitude, and for maximum winter output tilt 10–15° more. In tropical locations under 15° latitude, panels should be tilted at least 10° to help rain clean them.

Solar panel output is proportional to the cosine of the angle between the sun's rays and the panel surface normal. When the zenith angle is large (sun low in the sky), sunlight strikes horizontal surfaces at a shallow angle, reducing effective irradiance. Additionally, larger zenith angles mean sunlight travels through more atmosphere (higher air mass), increasing absorption losses. A panel producing 1,000 W at zenith = 0° produces only 500 W at zenith = 60° from the geometric cosine effect alone.

The equation of time is the difference between solar noon as measured by a sundial (apparent solar time) and noon by a clock (mean solar time). It varies throughout the year by up to ±16 minutes due to Earth's elliptical orbit and axial tilt. The equation of time is zero four times a year: around April 15, June 13, September 1, and December 25. It is most negative (clocks run ahead of the sun) around November 3, and most positive around February 12.

More Solar & Energy Calculators

Solar Panel Calculator for Home

Calculate how many solar panels your home needs, total system cost, monthly savings and payback period based on your electricity usage.

Open Calculator

Solar Rooftop Calculator

Estimate the solar panel system size, number of panels, installation cost and monthly savings for your rooftop based on your electricity bill.

Open Calculator

Solar Panel Cost Calculator

Calculate the total installation cost of any size home solar system before and after the 30% federal tax credit or your local solar incentive.

Open Calculator

Solar Payback Calculator

Find out exactly how many years it will take for your home solar panels to fully pay for themselves based on your system cost and savings.

Open Calculator