Home · Science · Modern Physics & Astronomy · Sunrise and Sunset Calculator
Sunrise and Sunset Calculator
Sunrise, sunset, solar noon and day length for any date and place, from the NOAA solar-position algorithm — the same approximation the US weather services publish.
What this calculator does
Sunrise, sunset, solar noon and day length for any date and place, from the NOAA solar-position algorithm — the same approximation the US weather services publish. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Sunrise and sunset use the NOAA solar-position approximation: the fractional year drives the equation of time and the solar declination, and the hour angle at the official zenith of 90.833 degrees gives the events.
Times are computed in UTC for the longitude entered, then shown for the UTC offset you select — the algorithm is the one published by NOAA's Global Monitoring Laboratory.
Polar day and polar night are reported when the sun never crosses the horizon on the date chosen.
Worked example
With the example inputs this page opens with (latitude (°) 51.5, longitude (°) -0.13, utc offset (hours) 1), the result is 16.64 hours — day length. From the NOAA solar-position approximation, using the official sunrise zenith of 90.833° (which accounts for atmospheric refraction and the sun's disc).
Quick reference
| Latitude (°) | Day length |
|---|---|
| 25.75 | 13.75 hours |
| 41.2 | 15.15 hours |
| 51.5 | 16.64 hours |
| 64.375 | 21.36 hours |
| 77.25 | 24.00 hours |
| 52.5 | 16.83 hours |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is the zenith angle 90.833° and not 90°?
Sunrise and sunset are defined by the sun's upper edge, not its centre: 90.833° folds in the sun's angular radius (about 0.25°) and average atmospheric refraction (about 0.58°), which lifts the visible sun above the geometric horizon.
How accurate is the NOAA approximation?
Within about a minute for most inhabited latitudes. It is an approximation of the sun's position, not a full ephemeris, and it does not account for local horizon obstructions or elevation.
How does the Sunrise and Sunset Calculator work?
Sunrise, sunset, solar noon and day length for any date and place, from the NOAA solar-position algorithm — the same approximation the US weather services publish. Date · Latitude · Longitude · UTC offset → Day length, sunrise, sunset. 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 Sunrise and Sunset Calculator need?
Date · Latitude · Longitude · UTC offset → Day length, sunrise, sunset. 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.