Skip to content
Calc.

Sun Angle Calculator

Estimate the sun's maximum elevation angle above the horizon for a given latitude and day of year. Useful for solar panel placement, shading analysis, and understanding seasonal daylight variation.

Last updated: September 2026

Fill in the required fields to see your result.
Compare 3 scenarios

Formula below · 2 sources (usgs.gov, Wikipedia) · Updated Sep 2026

Compare with similar

About this calculator

The sun's elevation angle at solar noon depends on the observer's latitude and on the solar declination δ — the latitude at which the sun is directly overhead that day. Because Earth's axis is tilted about 23.45°, the declination swings through the year: δ = 23.45° × sin(360° × (dayOfYear − 81) / 365), which is 0° at the March equinox (day 81), +23.45° at the June solstice (day 172) and −23.45° at the December solstice (day 355). At solar noon the sun stands on the observer's meridian, so its elevation is simply 90° minus the angular distance between the observer and the subsolar point: Noon Elevation = 90° − |latitude − δ|. This is the maximum angle above the horizon the sun reaches on that day. A negative result means the sun does not rise at all (polar night). The result is in degrees and determines how much solar radiation strikes a surface and how long shadows will be.

How to use

Example: What is the solar noon elevation at latitude 45°N on day 172 (summer solstice)? Step 1 — Compute solar declination: δ = 23.45 × sin(360 × (172 − 81) / 365) = 23.45 × sin(89.75°) ≈ 23.45°. Step 2 — Compute elevation: 90 − |45 − 23.45| = 90 − 21.55 = 68.45°. Enter 45 for latitude and 172 for day of year to verify. On day 355 (winter solstice) δ ≈ −23.45°, so the noon sun at 45°N reaches only 90 − |45 + 23.45| = 21.55°. For the Southern Hemisphere enter a negative latitude.

Frequently asked questions

How does latitude affect the sun's elevation angle throughout the year?

At higher latitudes (further from the equator), the sun's maximum daily elevation is always lower than at lower latitudes for the same time of year. At the equator (0°), the sun passes nearly overhead around the equinoxes. At 45°N, the maximum noon elevation reaches about 68° at the summer solstice but drops to just 21° at the winter solstice. At the Arctic Circle (66.5°N), the sun barely grazes the horizon during the winter solstice. This variation in solar angle is the primary reason temperatures differ so dramatically between seasons and between tropical and polar regions.

Why is the solar elevation angle important for installing solar panels?

Solar panels generate maximum power when sunlight strikes them perpendicularly. Knowing the sun's elevation angle at solar noon for your latitude and the target season lets you set the tilt angle of the panels to capture the most energy. A common rule of thumb is to tilt panels at an angle equal to your latitude for year-round optimization, or adjust seasonally — steeper in winter when the sun is lower, shallower in summer. Shading analysis for buildings also requires knowing the sun's elevation to determine when and where shadows will fall on adjacent structures or roof sections.

What day of the year should I use to find the worst-case solar angle for my location?

For locations in the Northern Hemisphere, the winter solstice (around December 21, day 355) produces the lowest solar elevation angle of the year and represents the worst case for solar energy production and the longest shadows. If you are designing a solar installation or conducting a shading study, using the winter solstice elevation guarantees your design is adequate even when the sun is at its lowest. Conversely, day 172 (summer solstice, around June 21) gives the highest elevation and is useful for calculating minimum shadow lengths or maximum solar gain through windows.

Related calculators

Sources & references