About sunrise and sunset times
Sunrise and sunset times depend on your latitude, longitude, and the date, since the sun's path across the sky shifts throughout the year. This tool shows sunrise, sunset, solar noon (when the sun is highest), and total daylight length for a chosen city or your current location on any date, including handling for polar day and polar night near the poles.
How the times are calculated
The tool uses the standard sunrise equation (a well-known astronomical formula based on the sun's declination and the observer's latitude) to compute when the sun crosses the horizon. Everything runs locally in your browser from your date and coordinates — no external sunrise/sunset API or server lookup is involved.
Frequently asked questions
- How accurate are these times?
- The calculation is accurate to within about a minute for most locations, based on standard astronomical formulas. It doesn't account for local terrain, elevation, or atmospheric refraction variations, so treat it as a close estimate rather than an exact official time.
- What are polar day and polar night?
- Near the Arctic and Antarctic circles, at certain times of year the sun never sets (polar day) or never rises (polar night). The tool detects these cases and shows a notice instead of sunrise/sunset times.
- Is my location sent to a server?
- Only if you use the "use my location" button, which relies on your browser's built-in geolocation API. The coordinates are used purely for the calculation in your browser and aren't sent anywhere by this tool.