How the sunrise and sunset times are calculated
This calculator uses the open-source SunCalc library, which implements the standard low-precision solar position formulas (the same family of equations, derived from Jean Meeus's Astronomical Algorithms, behind the NOAA Solar Calculator). From the date and your coordinates it computes the sun's declination and the equation of time, finds solar noon (the moment the sun crosses your meridian), and then solves for the times before and after noon when the sun's centre reaches a set angle below the horizon.
For sunrise and sunset that angle is −0.833°. It combines two corrections: about 0.57° for atmospheric refraction, which bends sunlight over the horizon so the sun appears before it is geometrically up, and about 0.27° for the sun's radius, because sunrise is defined by the upper edge of the disc appearing, not its centre. Without those corrections, sunrise would be reported a few minutes late and sunset a few minutes early.
- Sunrise / sunset: sun centre at −0.833°.
- Civil dawn / dusk: sun centre at −6°.
- Nautical dawn / dusk: sun centre at −12°.
- Golden hour: the period when the sun is between the horizon and 6° above it.
- Day length: sunset minus sunrise; max altitude: the sun's elevation at solar noon.
All events are calculated as absolute moments in UTC and then formatted in the time zone you select, using the IANA time zone rules, so daylight saving time is applied automatically for that date.