Home · Math · Plane Geometry · Sun Angle Calculator
Sun Angle Calculator
Solar declination, the sun's elevation at solar noon, and approximate day length for a latitude and day of year.
What this calculator does
Solar declination, the sun's elevation at solar noon, and approximate day length for a latitude and day of year. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The solar declination is approximated by -23.44 cos(360/365 (N + 10)) degrees, where N is the day of year. At solar noon the sun's elevation is 90 - |latitude - declination|. Day length follows from the sunrise hour angle: cos H = -tan(lat) tan(decl), giving 2H/15 hours. All angles are in degrees; trigonometric outputs use the degree-based functions so no radian conversion is needed.
These are standard approximations (declination to within about a degree); they ignore longitude, time-zone offsets and atmospheric refraction, and the day-length formula has no solution during polar day or night.
Worked example
With the example inputs this page opens with (latitude (deg, north +) 40, day of year (1-365) 172), the result is 73.44 — solar elevation at noon. Change any figure and the result updates with the same formula.
Quick reference
| Latitude (deg, north +) | Solar elevation at noon |
|---|---|
| 20 | 86.56 |
| 32 | 81.44 |
| 40 | 73.44 |
| 50 | 63.44 |
| 60 | 53.44 |
| 41 | 72.44 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Sun Angle Calculator work?
Solar declination, the sun's elevation at solar noon, and approximate day length for a latitude and day of year. Latitude - Day of year -> Noon solar elevation. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Sun Angle Calculator need?
Latitude - Day of year -> Noon solar elevation. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Sun Angle Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.