How we calculate

Sun

Sunrise, sunset, solar noon and twilight use the NOAA solar calculator equations, which are based on Jean Meeus' Astronomical Algorithms. For the contiguous U.S. they agree with NOAA and the U.S. Naval Observatory to within about one minute. Sunrise and sunset are the moments the upper edge of the sun touches a flat horizon, using the standard allowance of 0.833° for atmospheric refraction and the sun's radius.

EventSun's center
Sunrise / sunset−0.833°
Golden hourbetween +6° and −4°
Blue hourbetween −4° and −6°
Civil twilightdown to −6°
Nautical twilightdown to −12°
Astronomical twilightdown to −18°

We do not adjust for elevation or terrain. From a mountaintop you see the sun a little earlier and later; in a valley or among tall buildings, later and earlier. Unusual temperature layers near the horizon can shift the visible sunrise by a minute or two.

Moon

The moon's position, rise and set use Paul Schlyter's perturbed orbital elements (accurate to a few arcminutes, or about a minute in rise and set times). The exact instants of new moon, first quarter, full moon and last quarter use Meeus chapter 49, accurate to about a minute. Equinoxes and solstices use Meeus chapter 27. Illumination is the fraction of the moon's disc lit by the sun as seen from the center of the Earth.

Places and time zones

Places are the U.S. Census Bureau's 2024 Gazetteer: incorporated cities, towns and villages with at least 300 residents (2024 population estimates), plus census-designated places with at least 1,500 residents (population from GeoNames). Coordinates are the Census Bureau's internal point of each place. Each place's IANA time zone comes from the timezone-boundary-builder polygons (built from OpenStreetMap), so split states such as Idaho, Indiana, Kentucky, Tennessee and Florida, and the Navajo Nation in Arizona, get the right clock. Daylight saving time follows the IANA time zone database.

Freshness

Every page is generated on request and cached for no more than an hour, so today's date and times are always correct for the place's own time zone.