Sunrise Sunset Calculator for Any Place and Date

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free sunrise sunset calculator. Enter a date, latitude, longitude and UTC offset to get sunrise, sunset, solar noon, day length and civil twilight.

Find your coordinates on any map app. Use the UTC offset in force on that date, including daylight saving time.

Solar noon
0
Day length
0
Civil dawn
0
Civil dusk
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the sunrise sunset calculator

  1. Choose a date. Today's date is filled in automatically.
  2. Enter the latitude and longitude of the place, in decimal degrees. North latitudes and east longitudes are positive; south and west are negative. New York, for example, is about 40.71, −74.01.
  3. Enter the UTC offset for that place on that date, including daylight saving time if it applies. New York is −5 in winter and −4 in summer.

The sunrise sunset calculator shows sunrise, sunset, solar noon, day length, and the start of civil dawn and end of civil dusk. Near the poles, it tells you if the sun doesn't rise or doesn't set at all.

How to find your coordinates

Most map apps show coordinates when you press and hold or right-click on a location. Use decimal degrees, such as 51.5074 for latitude and −0.1278 for longitude. If you have degrees, minutes and seconds, convert them: degrees + minutes ÷ 60 + seconds ÷ 3,600, and make the number negative for south or west. Two decimal places are accurate to about a kilometre, which is more than enough for sunrise and sunset times.

How the sunrise sunset calculator works

The sunrise sunset calculator uses the solar position equations published by the US National Oceanic and Atmospheric Administration (NOAA), which are based on Jean Meeus's Astronomical Algorithms. For the date and place, it works out:

  1. The sun's declination: how far north or south of the equator the sun is overhead that day, which changes through the year between about +23.44° and −23.44°.
  2. The equation of time: the difference between clock time and the time shown by a sundial, which varies by up to about 16 minutes through the year because the Earth's orbit is elliptical and its axis is tilted.
  3. Solar noon: when the sun is highest in the sky, based on the longitude, the equation of time and the time zone.
  4. The hour angle at sunrise and sunset: how far the Earth must turn from solar noon for the sun to sit exactly at the horizon.

Sunrise and sunset are defined as the moments the top edge of the sun appears or disappears at a flat horizon. That's when the sun's centre is 0.833° below the horizon: about 0.5° for the bending of light by the atmosphere (refraction) plus about 0.27° for the sun's radius. The calculator repeats the calculation a few times, refining the sun's position for the exact moment of each event, and the results are typically accurate to about a minute.

Twilight

Twilight is the time before sunrise and after sunset when the sky is still partly lit. The sunrise sunset calculator shows civil twilight, which is the most useful for everyday life:

  • Civil twilight: the sun is between 0° and 6° below the horizon. There's usually enough light for most outdoor activities without artificial lighting.
  • Nautical twilight: the sun is 6° to 12° below the horizon. The horizon at sea is still visible, which sailors traditionally needed to take star sightings.
  • Astronomical twilight: the sun is 12° to 18° below the horizon. Beyond this, the sky is fully dark for astronomy.

Day length through the year

Day length depends on your latitude and the season. At the equator, days are close to 12 hours all year. Further from the equator, summer days get longer and winter days shorter. In London, for example, day length ranges from roughly 7 hours 50 minutes around the December solstice to about 16 hours 38 minutes around the June solstice. Above the Arctic Circle, the sun doesn't set for a period around the June solstice (the midnight sun) and doesn't rise for a period around the December solstice (polar night). The sunrise sunset calculator reports these cases.

Why the earliest sunset isn't on the shortest day

In the northern hemisphere, the shortest day is around 21 December, but the earliest sunset comes a week or two before it and the latest sunrise a week or two after. That's because of the equation of time: around the December solstice, solar noon is moving later each day, which shifts both sunrise and sunset later. The day length is shortest on the solstice, but the whole day is sliding later on the clock. The same effect happens in reverse around the June solstice.

A worked example

What time does the sun rise and set in London on 21 June 2024?

  1. Coordinates: about 51.5074, −0.1278.
  2. UTC offset: +1, because London is on British Summer Time in June.
  3. Result: sunrise about 04:43 and sunset about 21:21, with a day length of about 16 hours 38 minutes.

Enter these figures in the sunrise sunset calculator to check. For New York on 21 December 2024, at 40.7128, −74.0060 with an offset of −5, sunrise is about 07:16 and sunset about 16:32.

Who uses a sunrise sunset calculator

Photographers use it to plan shoots in the golden hour and blue hour around sunrise and sunset. Hikers, climbers and sailors use it to plan trips safely within daylight. Farmers, builders and event organisers use it to plan outdoor work. People observing religious practices that depend on sunrise and sunset use it for daily timings, and solar installers use it to understand sun patterns at a site.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.

Golden hour and blue hour

Photographers prize the golden hour, roughly the first hour after sunrise and the last hour before sunset, when sunlight is soft and warm because it passes through more of the atmosphere. The blue hour is the period of civil twilight before sunrise and after sunset, when the sky has a deep blue tone. Their exact length depends on your latitude and the season: near the equator they're short, while at high latitudes in summer they can last much longer. Use the sunrise and sunset times and civil twilight from the sunrise sunset calculator to plan both.

What changes the times you see

The calculated times assume a flat horizon at sea level. In real life:

  • Mountains, hills and buildings delay sunrise and bring sunset forward where they block the horizon.
  • Elevation has the opposite effect: from a high viewpoint, you see the sun a little earlier and later.
  • Unusual atmospheric conditions can change refraction and shift the times by a minute or two.

Time zones and daylight saving time

The UTC offset must match the local clock on the date you choose. Many countries change their clocks for daylight saving time, so the offset in summer is often one hour more than in winter. If the times look exactly an hour out, check the offset. The time zone converter can help you find it.

Common mistakes

  • Using the wrong sign for west longitudes or south latitudes.
  • Forgetting daylight saving time in the UTC offset.
  • Using a city's coordinates for a place far outside it, which can shift times by a few minutes.
  • Expecting exact times behind hills or buildings.

Planning ahead

Because the sunrise sunset calculator works for any date, you can plan weeks or months ahead: a wedding photo session, a sunrise hike on holiday, or the last safe time to finish a long walk before dark. Change the date and keep the same coordinates to see how the times move through the season, and remember to update the UTC offset if the clocks change in between.

Sources and further reading

  • NOAA Global Monitoring Laboratory: Solar calculator, NOAA's own sunrise, sunset and solar position calculator.
  • Sunrise equation on Wikipedia: the mathematics behind sunrise and sunset times.
  • Twilight on Wikipedia: civil, nautical and astronomical twilight.

Frequently asked questions

How are sunrise and sunset times calculated?

From the sun's position for the date and place, using NOAA's solar equations, with an allowance of 0.833° for refraction and the sun's size.

Why are my local sunrise times slightly different?

Hills, buildings and elevation change what you see, and other sources may round differently.

What is civil twilight?

The period when the sun is less than 6° below the horizon, with enough light for most outdoor activities.

Why doesn't the sun set in summer near the poles?

Above the Arctic and below the Antarctic Circles, the tilt of the Earth keeps the sun above the horizon all day for part of summer.

What UTC offset should I use?

The one in force on that date, including daylight saving time.

Is the sunrise sunset calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep