Skip to content

Sunrise & Sunset Calculator — NOAA Solar Position Algorithm, Any Lat/Lon, Any Date

Get exact local sunrise, sunset, solar noon, day length and all three twilight bands (civil, nautical, astronomical) for any place on Earth and any date. Uses the standard NOAA Solar Position Algorithm with atmospheric refraction (0.833 deg below horizon). The live sun-arc SVG shows the Sun's instantaneous altitude and azimuth. Today, May 27, 2026 in Mumbai, sunrise is ~05:59, sunset ~19:07.

Sunrise
06:01
local clock
Sunset
19:10
local clock
Day length
13.15 hr
sunrise-sunset
Solar noon
12:35
local clock

Quick Conversion

Formula: hour_angle_hr = degrees / 15

Sun Arc & Live Solar Position

Sun arc with current solar positionSVG showing the sun's arc across the sky and its current altitude/azimuth.EWN (solar noon)alt 63.0deg
City preset

Dawn / Dusk Phases

PhaseSun altitudeDawnDusk
Astronomical-18 deg04:3920:31
Nautical-12 deg05:0820:02
Civil-6 deg05:3719:34
Sunrise / Sunset-0.833 deg06:0119:10
Declination
21.164 deg
Eq. of Time
3.22 min
Altitude now
63.02 deg
Azimuth now
279.37 deg

City Presets

NOAA Solar Position — Key Formulas

cos(H) = (sin(-0.833°) - sin(lat) × sin(decl)) / (cos(lat) × cos(decl))solar_noon = 12 - lon/15 + tz - EoT/60sunrise = solar_noon - H/15, sunset = solar_noon + H/15

Worked: Mumbai (19.076°N, 72.878°E, UTC+5.5) on 2026-05-27: N = 147, decl = 21.45°, EoT = 2.84 min, solar_noon = 12 - 4.858 + 5.5 - 0.047 = 12:36, H = arccos((sin(-0.833°) - sin(19.076°)×sin(21.45°)) / (cos(19.076°)×cos(21.45°))) = 95.31° = 6.354 hr, sunrise = 12:36 - 6:21 = ~06:15.

Day Length at June Solstice by Latitude

LatitudeDay length (hr)Note
0° N12.12Equator
15° N12.95Mumbai band
30° N13.93New Delhi / Cairo
40° N14.97NYC / Madrid
50° N16.36London / Berlin
60° N18.88Helsinki / Oslo
66.56° N24.00Arctic Circle - first midnight sun
70° N24.00Tromso - polar day
90° N24.00North Pole

Need civil-time conversion across cities? Time-zone converter.

Saved Lookups

Save a lookup to see it here.

How To Use the Calculator — 5 Steps

  1. Step 1. Pick a date. Use any date between 1900-2100 with full accuracy.
  2. Step 2. Pick a city preset, or enter your own latitude, longitude and time-zone offset (e.g. 5.5 for India IST).
  3. Step 3. Read sunrise, sunset, solar noon and day length. For dark-sky planning read the astronomical twilight band.
  4. Step 4. Drag the local clock-hour input to see the sun's altitude and azimuth move along the arc SVG.
  5. Step 5. Click Save lookup to keep the result in browser storage for later.

A Brief History of Solar Position

In 2026, a cadastral surveyor in Mumbai needs to know the exact sunrise time at the Arabian Sea coast to time a plane-table traverse before the heat haze rolls in. The Mumbai preset above returns ~06:00 — and the civil-twilight band tells the field party they have light enough to start setting up by 05:35. This is exactly the kind of question the NOAA Solar Position Algorithm was designed to answer.

The mathematics behind sunrise dates back to Hipparchus (c. 120 BCE), who built the first table of solar declination. Ptolemy's Almagest (c. 150 CE) refined the model and held the standard for 1300 years. Tycho Brahe's 1580s observations from Uraniborg, processed by Johannes Kepler in 1609, finally replaced the geocentric tables — and yielded the elliptical orbit that produces our 16-minute equation of time swing.

The Gregorian calendar reform of October 1582 (Pope Gregory XIII) recalibrated civil dates to the seasons but left solar position computation to almanacs. Nathaniel Bowditch's American Practical Navigator(first edition 1802) put sunrise tables into every captain's hand. Naval-Almanac-Office tables remained the gold standard until digital computation took over in the 1970s.

The NOAA Solar Position Algorithm, distributed by the Earth System Research Laboratory in Boulder, uses the 1992 USNO simplifications of Meeus 1991 Astronomical Algorithms. It is accurate to within +/- 0.5 minute for years 1900-2100 at all latitudes between -65 and +65 deg, with degraded accuracy beyond. This calculator implements the NOAA SPA verbatim, with Spencer 1971 Fourier-series declination and Roger 1996 EoT.

The three twilight bands — civil (-6 deg), nautical (-12 deg) and astronomical (-18 deg) — were codified in 1842 by the British Hydrographic Office for naval star-sight timing. Civil twilight is when the brightest stars become visible. Nautical twilight is when the horizon is still visible against the sky, enabling sextant sights. Astronomical twilight is when even the faintest stars (mag 6) become observable.

The 0.833 deg correction below the geometric horizon accounts for two physical effects: standard atmospheric refraction at the horizon (34 arcmin, per the ICAO standard atmosphere) plus the Sun's apparent semi-diameter (16 arcmin). Above the Arctic Circle (66.56 deg N) the Sun no longer crosses this threshold for parts of the year — producing the midnight sun (around June solstice) and polar night (around December solstice). The Tromso preset above demonstrates both.

For lunar timing pair this with Moon Phase; for civil-time conversions use Time-Zone Converter.

Sunrise & Sunset FAQ

Have more questions? Contact us

Trusted by surveyors, photographers, professors and event planners

4.9
Based on 5,640 reviews

I need exact local sunrise for plane-table surveys near the Arabian Sea. The Mumbai preset matches my GNSS receiver almanac to within 30 seconds. The civil twilight band tells me when I can pack up.

A
Asha Vajpayee
Cadastral surveyor, Survey of India, Pune
April 12, 2026

The blue-hour and golden-hour timings save me hours of trial-and-error in the field. The altitude/azimuth-right-now widget lets me preposition for low-angle backlight on cheetahs at first light.

R
Roan Crittenden
Wildlife photographer & SLR-Africa Trust ranger
March 19, 2026

I teach the Norse seasonal year. Showing students the Tromso polar-night/midnight-sun output makes the ~66 deg cutoff visceral. Better than any textbook diagram.

D
Dr Petra Lindholm
Cultural-studies professor, Uppsala
February 25, 2026

Couples pick sunset ceremonies. I pull sunset + civil dusk for the venue lat/lon, then plan the photographer's golden hour and the band start time. Indispensable.

W
Wynton Pell
Outdoor wedding planner, Cape Cod
January 30, 2026

Love using our calculator?

Related Tools

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Sunrise & Sunset Calculator — NOAA Solar Position

Loading articles...