User Rating 0.0
Total Usage 0 times
Category Time & Date
Select calculation date
Degrees (positive = North)
Degrees (positive = East)
Local timezone offset
Presets:
Enter location and date to calculate daylight times
Is this tool helpful?

Your feedback helps us improve.

About

Accurate daylight calculations require solving the spherical trigonometry of Earth's rotation relative to the Sun. This calculator implements the standard astronomical algorithms from Jean Meeus' Astronomical Algorithms, computing the Sun's declination via the obliquity of the ecliptic (ε 23.44°) and applying the hour angle formula to derive sunrise and sunset times. Civil twilight begins when the Sun's geometric center is 6° below the horizon; nautical twilight at 12°; astronomical twilight at 18°. Polar regions experience perpetual daylight or darkness when the Sun's declination exceeds the complementary latitude.

The Equation of Time correction accounts for Earth's elliptical orbit and axial tilt, causing solar noon to drift by up to ±16 minutes from mean noon throughout the year. This tool calculates true solar time, not civil time approximations. Atmospheric refraction (0.833°) is applied to sunrise/sunset, meaning the Sun is geometrically below the horizon when visually touching it.

daylight sunrise sunset twilight solar astronomy sun position

Formulas

The hour angle H at sunrise/sunset is derived from the solar zenith angle equation. For a horizon angle of 90.833° (including refraction and solar disk radius):

cos(H) = cos(z) sin(φ) sin(δ)cos(φ) cos(δ)

Where z = 90.833° is the zenith angle, φ is the observer's latitude, and δ is the Sun's declination. The declination is computed from:

δ = 23.44° sin(360°365 (N + 284))

Where N is the day of the year. Sunrise time trise and sunset time tset are computed as:

trise = 12h H15°/h E λ15°/h + TZ

Where E is the Equation of Time (minutes), λ is longitude, and TZ is the timezone offset in hours. The Equation of Time corrects for orbital eccentricity:

E = 9.87 sin(2B) 7.53 cos(B) 1.5 sin(B)

Where B = 360°365 (N 81). For twilight calculations, replace the zenith angle: Civil twilight uses z = 96°, Nautical uses z = 102°, and Astronomical uses z = 108°.

Reference Data

LocationLatitudeLongest DayShortest DayVariation
Equator0°12h 7m12h 7m0m
Miami, USA25.76°N13h 45m10h 32m3h 13m
Cairo, Egypt30.04°N14h 4m10h 5m3h 59m
Tokyo, Japan35.68°N14h 35m9h 45m4h 50m
Rome, Italy41.90°N15h 14m9h 7m6h 7m
New York, USA40.71°N15h 6m9h 15m5h 51m
Paris, France48.86°N16h 10m8h 14m7h 56m
London, UK51.51°N16h 38m7h 50m8h 48m
Berlin, Germany52.52°N16h 49m7h 40m9h 9m
Moscow, Russia55.76°N17h 34m7h 0m10h 34m
Stockholm, Sweden59.33°N18h 37m6h 5m12h 32m
Helsinki, Finland60.17°N18h 57m5h 49m13h 8m
Reykjavik, Iceland64.15°N21h 5m4h 7m16h 58m
Tromsø, Norway69.65°N24h 0m0h 0mPolar Day/Night
North Cape71.17°N24h 0m0h 0mPolar Day/Night
Sydney, Australia33.87°S14h 24m9h 54m4h 30m
Cape Town, SA33.93°S14h 25m9h 53m4h 32m
Buenos Aires34.60°S14h 30m9h 48m4h 42m
Ushuaia, Argentina54.80°S17h 18m7h 12m10h 6m
McMurdo Station77.85°S24h 0m0h 0mPolar Day/Night

Frequently Asked Questions

Differences arise from atmospheric refraction models, which vary with local pressure and temperature. This calculator uses the standard refraction correction of 0.833° at sea level. Altitude, humidity, and temperature inversions can shift apparent sunrise by 1 - 3 minutes. Official sources like NOAA may use different algorithms or local corrections.
When the Sun's declination (δ ±23.44° at solstices) exceeds the co-latitude (90° φ), the hour angle equation has no real solution. The Sun never crosses the horizon. This occurs poleward of latitude 66.56° (the Arctic/Antarctic circles).
The Equation of Time causes solar noon to drift from clock noon by up to ±16 minutes throughout the year. The maximum deviation occurs around February 11 (+14min) and November 3 (16min). This is why sundials require correction tables.
Civil twilight (Sun 0° to 6° below horizon) provides enough light for outdoor activities without artificial lighting. Nautical twilight (6° to 12°) allows horizon visibility for marine navigation. Astronomical twilight (12° to 18°) marks when the sky becomes dark enough for all astronomical observations.
Yes. At higher altitudes, the geometric horizon is depressed, allowing the observer to see the Sun earlier at sunrise and later at sunset. At 1000m elevation, sunrise occurs approximately 3 minutes earlier than at sea level. This calculator assumes sea level; add altitude corrections for mountainous locations.
The rate of change of daylight follows a sinusoidal pattern. Near solstices, the Sun's declination is at its maximum or minimum, changing slowly. Near equinoxes, declination changes most rapidly (approximately 0.4°/day), causing daylight duration to shift by up to 4 minutes per day at mid-latitudes.