How We Compute Sunrise & Sunset in Your Browser
Like the moon tool, the Sun Times tool calls no astronomy API. Sunrise and sunset are computed in your browser from the sun's position.
Solar geometry, locally
Using the standard SunCalc formulas, the tool computes the sun's declination and the hour angle for your latitude and longitude, then solves for the moments the sun's centre reaches the standard sunrise/sunset altitude (about −0.833°, which accounts for atmospheric refraction and the sun's radius). The same method gives solar noon, first and last light, and the golden-hour boundaries. Results are typically accurate to within a minute.
Local time, and the edge cases
We format each time in the chosen location's timezone (the geocoder returns it), so the numbers read correctly wherever the place is. Near the poles the equations have no solution on some days — that is genuine, not a bug — so the tool shows a midnight-sun or polar-night note instead of inventing a time.
See locally computed sun times for any place.
Open the Sun Times tool