Skip to content
100% local

Sunrise and sunset calculator

Calculate sunrise, sunset, solar noon, twilight and day length for any place and date.

Input
Output

Sunrise and sunset calculator

Paste one or more dates and this tool calculates sunrise, sunset, solar noon and day length for any latitude and longitude — no location permission, just the coordinates you type in. It's built for photographers timing the golden hour, hikers planning a route that ends before dark, and anyone who wants to know exactly when the sun comes up on a given day.

Set latitude, longitude and a UTC offset to match your location, then paste a date (YYYY-MM-DD) or several, one per line. "Days to show" expands each date into a run of consecutive days, so one line becomes a week-long table when set to 7. Choose how deep into twilight the result goes — civil, nautical or astronomical — and each level adds a dawn and dusk time around sunrise and sunset. Elevation shifts sunrise earlier and sunset later, since a higher vantage point sees further past the horizon; twilight bands are defined by the sun's angle below the true horizon and aren't affected by it. Switch between a 12- and 24-hour clock, and a text report or a table for multiple days.

Near the Arctic and Antarctic circles the sun can stay above or below a threshold all day — the tool reports that plainly ("sun does not set" / "sun does not rise") rather than printing a nonsensical time. With "Show daily change" on, each day also reports how much longer or shorter it is than the one before, handy for watching the seasons turn. The maths is the standard low-precision solar-position method most sunrise calculators use, accurate to about a minute.

Everything runs locally in your browser — your coordinates and dates are never uploaded anywhere. Copy the result, download it as a .txt file, or send it to another tool's input to keep working with it.

FAQ

How accurate are the times?
Within about a minute for most dates and locations, using the standard low-precision solar-position method. It does not account for local terrain blocking the horizon.
What do latitude and longitude look like?
Decimal degrees: latitude is positive north of the equator, longitude is positive east of Greenwich. London is about 51.5, −0.1; Sydney is about −33.9, 151.2.
Why does it say "sun does not set" or "sun does not rise"?
This happens near the poles in summer or winter, when the sun stays above or below a given threshold for the whole day. The tool reports that directly instead of showing a made-up time.
What is the difference between civil, nautical and astronomical twilight?
They mark how far the sun sits below the horizon: civil twilight (6°) is when there is still enough light to work outdoors, nautical (12°) is when the horizon is still visible at sea, and astronomical (18°) is when the sky is fully dark.
Is my location or date uploaded anywhere?
No. Every calculation runs entirely in your browser — nothing you enter ever leaves your device.