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.

Your figures

North positive, south negative

East positive, west negative

The clock offset to display times in, e.g. 1 for London summer time

Example result — edit the figures to make it yours

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).

Sunrise4:42 AM
Sunset9:21 PM
Solar noon1:01 PM
Solar declination23.45°

Times are shown for the UTC offset selected; the longitude sets the solar geometry, the offset only shifts the clock reading.

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

NOAA approximation: fractional year → equation of time and solar declination; hour angle at zenith 90.833° gives sunrise and sunset

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

Quick reference — varying latitude (°)
Latitude (°)Day length
25.7513.75 hours
41.215.15 hours
51.516.64 hours
64.37521.36 hours
77.2524.00 hours
52.516.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.