Boneyard Tools

Sunrise and Sunset Calculator

Enter a latitude, longitude, date and UTC offset to get sunrise, sunset, solar noon and day length, plus civil, nautical and astronomical twilight and the golden and blue hours. The math is the NOAA solar position model and runs entirely in your browser.

How to calculate sunrise and sunset

  1. Enter the latitude (north positive) and longitude (east positive) of your location.
  2. Pick the date and set the UTC offset for the time zone you want results in.
  3. Read sunrise, sunset, solar noon, day length, the twilights and the golden hour.

Examples

New York on the June solstice

40.71, -74.01, 2026-06-21, UTC-4
Sunrise 05:25, sunset 20:31, day length 15h 06m.

Frequently asked questions

How are sunrise and sunset calculated?

We use the NOAA solar position equations. For the date we compute the sun's declination and the equation of time, then solve for the hour angle when the sun's center sits at -0.833 degrees, the standard altitude that accounts for atmospheric refraction and the sun's radius.

Why do I need to enter a UTC offset?

Sunrise depends only on your longitude and the date in universal time. To show the answer on your wall clock we shift it by your UTC offset. Enter your standard offset, or add an hour during daylight saving time.

What is the difference between civil, nautical and astronomical twilight?

They mark how far the sun is below the horizon: civil twilight ends at 6 degrees, nautical at 12 degrees and astronomical at 18 degrees. Civil twilight is bright enough to work outdoors; after astronomical twilight the sky is fully dark.

What are the golden hour and blue hour?

The golden hour is the warm, soft light when the sun is between 6 degrees above and 4 degrees below the horizon. The blue hour is the cooler light just after that, with the sun between 4 and 6 degrees below the horizon. Both are favourites for photography.

Why does it say midnight sun or polar night?

Near the poles the sun can stay above the horizon for a full day (the midnight sun) or never rise at all (polar night). When that happens there is no sunrise or sunset to report, so the tool flags the condition instead.

How accurate are the times?

For locations where the sun actually rises and sets the times are normally within about a minute of published almanac values. Local terrain, elevation and unusual weather can shift the real horizon by a few minutes.

Learn more

  • What is solar noon?

    Solar noon explained: when the sun is highest, why it is rarely at 12:00, and how longitude and the equation of time move it.

Related tools