Sunrise, Sunset, and Civil Twilight

NOAA solar-position algorithm: sunrise, sunset, civil / nautical / astronomical twilight, daylight minutes.

Run the calculator

Example

You enter

You get

Checked against published worked examples from: NOAA Solar Position Algorithm (SPA, project bundled).

Details, formula, and sources

Formula or tableNOAA's General Solar Position Calculations (the fractional-year Fourier series for declination and the equation of time) give sunrise / sunset / civil / nautical / astronomical twilight from latitude / longitude / date, with the sun's center at zenith 90.833° for sunrise and sunset.

Source and editionNOAA Solar Calculator (Global Monitoring Laboratory), its General Solar Position Calculations, by name. Not the NREL Solar Position Algorithm (Reda & Andreas), which is far more precise.

Free accessFree at gml.noaa.gov/grad/solcalc.

What governsGeometry is not forecasting. Avalanche advisory and incident commander govern.

API field nameslat_deg, lon_deg, date_iso, tz_offset_hours, declination_deg, daylight_minutes, sunrise, sunset

Related tools