productivity.cihat.dev

Sunrise, sunset and day length

Pick a place and a date to get sunrise, sunset, how long the day is and when twilight starts and ends.

Pick from the list, or use coordinates below

Decimal degrees: north and east positive, south and west negative.

DateSunriseSunsetDay length

How to use it

  1. Pick a city, use your location, or type latitude and longitude.
  2. Choose the date. Today is filled in.
  3. Read sunrise, sunset and day length, then the table for how the day changes through the year.

How the times are worked out

The calculator uses the solar position equations published by NOAA, the US National Oceanic and Atmospheric Administration, for its own sunrise and sunset calculator. They give the sun’s declination and the equation of time for the date, and from those the moment the sun crosses a set angle below the horizon.

Sunrise and sunset are the moments the top edge of the sun meets a flat horizon at sea level, allowing for the way the air bends light near the horizon (a zenith angle of 90.833°). Civil dawn and dusk are when the sun’s centre is 6° below the horizon, roughly when there is enough light to be outdoors without lamps.

Why your view can differ by a few minutes

Hills, buildings and height change what you see: a mountain to the east delays sunrise, and standing high up brings it earlier. Unusual air temperature changes the refraction. Expect the times here to match published tables to within a minute or two for most places, and to drift further near the poles, where the sun crosses the horizon at a shallow angle.

Far north or south, the sun may stay up or down all day for weeks. The calculator says so instead of inventing a time.

Day length through the year

Days are longest around the June solstice in the northern hemisphere and around the December solstice in the southern. The table under the tool repeats the calculation on the 21st of each month, so you can see how much light a place gains or loses between seasons.

Questions people ask

What time is sunrise and sunset today?

Pick your city or use your location; today’s date is filled in. The times are shown in the place’s own time zone.

How is day length calculated?

Day length is the time from sunrise to sunset, both measured when the sun’s upper edge touches a flat horizon with standard refraction.

What is civil twilight?

The time before sunrise and after sunset when the sun is less than 6° below the horizon. The sky is light enough for most outdoor activity.

What is solar noon?

The moment the sun is highest in the sky. It is rarely 12:00 on the clock, because of time zones, daylight saving and the equation of time.

Is my location sent anywhere?

No. If you use your location, your browser hands the coordinates to this page and the calculation happens on your device.