Everyday calculators
Sunrise & Sunset Calculator
Work out sunrise, sunset and day length for any date and place, from latitude and longitude, using the standard solar algorithm.
Formula: the standard NOAA solar position algorithm — solar declination and the hour angle from latitude, date and longitude. Times are approximate, within a few minutes; they do not account for hills, buildings or local weather.
How to use
- Pick a date and your timezone offset from UTC.
- Enter the latitude and longitude of the place.
- Press “Calculate Sunrise & Sunset” to see sunrise, sunset and day length.
Frequently asked questions
- How do I find my latitude and longitude?
- Search your city name followed by “latitude longitude”, or long-press your location on a map app to read the coordinates.
- Why are the times approximate?
- The solar algorithm assumes a flat horizon. Hills, tall buildings and local weather shift the visible sunrise and sunset by a few minutes.
- What if the sun never sets or never rises?
- Near the poles in summer or winter the sun can stay up or down all day — the page says so instead of giving a time.
- Is my data stored?
- No. The calculation runs in your browser.