How we calculate sunrise and sunset times

Updated October 6, 2026

Every time on Sunrise-Sunset.org is calculated for the coordinates of each place and for the exact date, and shown to the second. This page explains what each time means, how we work it out, and the conventions behind our tables, so you know exactly what you are looking at.

October 5, 2026

40.7128° N, 74.0059° W · time zone America/New_York

Astronomical twilight begins5:25:45 am
Nautical twilight begins5:57:40 am
First light (civil twilight begins)6:29:22 am
Sunrise6:56:43 am
Solar noon12:44:23 pm
Sunset6:31:24 pm
Last light (civil twilight ends)6:58:42 pm
Nautical twilight ends7:30:21 pm
Astronomical twilight ends8:02:11 pm
Day length11h 34m 41s (−2m 40s vs yesterday)

Calculated live with the same engine as every page on the site; type any place to see its times. Full calendar for New York.

Sunrise and sunset

Sunrise is the moment the top edge of the Sun appears above the horizon, and sunset the moment it disappears. Not the center of the Sun: the very first and very last glimpse of it.

The Sun rises on the left and sets on the right; at sunrise and at sunset its top edge is exactly on the horizon Horizon PAUSED
The Sun rises and sets (animated). The moments of sunrise and sunset are when its top edge is exactly on the horizon: the rest of the disk, dashed, is still below it.

Because the atmosphere bends sunlight, the Sun is still visible for a few minutes after it has geometrically gone below the horizon. We use the international standard: at sunrise and sunset the Sun's center is 0.833 degrees below the horizon (0.567 degrees for refraction plus 0.266 degrees for the Sun's radius).

When the Sun looks like it rests on the horizon, it is really almost entirely below it: refraction lifts its image by about its own width You Where you see it Where it really is the light bends on its way to you
When the Sun looks like it is resting on the horizon, it is actually almost entirely below it: the air lifts its image by about its own width.

This is the same definition used by the U.S. Naval Observatory, NOAA and national almanacs, so our times can be compared with theirs directly.

Twilight, first light and last light

Twilight is the time when the Sun is below the horizon but the sky is still lit. It is measured by how far below the horizon the Sun's center is, and comes in three stages:

As the Sun sinks below the horizon the sky changes: civil twilight to 6 degrees below, nautical to 12, astronomical to 18, then night Civil twilight0° to 6° below · ends at last light Nautical twilight6° to 12° below · the horizon fades at sea Astronomical twilight12° to 18° below · faint stars appear Nightmore than 18° below · fully dark 0° horizon −6° −12° −18°
The Sun sinks along its path (animated) and the sky above the horizon goes through the three twilights into night. In the morning the order is reversed.

Twilight generally lasts longer the further you are from the equator, especially in summer. In Quito, on the equator, civil twilight is over in about 20 minutes and it is fully dark a little over an hour after sunset; in Reykjavík civil twilight alone can last for hours, and in summer it may never get fully dark.

Everything else in the table

The Sun's path from east to west, highest at solar noon Solar noon: highest point max sunaltitude East · sunrise West · sunset Local meridian (north-south line)
Day length is the time between the two ends of the arc; solar noon is its top.

Choose which columns to show with the Customize table button above any monthly table, for example New York in November 2026. For a printable month, use the sunrise and sunset calendar.

How the times are computed

We compute the position of the Sun with the solar position algorithm published by NOAA (the U.S. National Oceanic and Atmospheric Administration), which is based on Jean Meeus's Astronomical Algorithms. For every place and every date, we search for the exact moments when the Sun crosses each altitude: the horizon for sunrise and sunset, and 6, 12 and 18 degrees below it for the three twilights. Solar noon is the moment of the Sun's highest point.

We check our results against the high-precision ephemerides of NASA's Jet Propulsion Laboratory, for places from the equator to the Arctic and for dates all through the year.

The same engine powers our free sunrise and sunset API, so for the same place and date the website and the API give the same times.

Time zones and daylight saving time

All times are shown in the local time of the place, not in your own time zone: if you look up London from Denver, you get London time. We use the IANA time zone database (also called the tz or Olson database), the same one used by computers and phones, which records every time zone and daylight saving rule, past and future.

Days when the clocks change are marked in our tables, so a sudden one-hour jump in sunrise or sunset is never a surprise. See the first Sunday of November 2026 in New York.

Countries change their clock rules more often than you might think, sometimes with only a few weeks' notice. We put a lot of care into keeping every time zone in the world up to date, and when a rule changes we update our data as soon as it is official. Our readers are part of this too: every message about a clock change or a time that looks off is checked against the official rules, and if something needs fixing, we fix it.

Conventions we follow

Places and coordinates

Each place has a single representative point, usually its town center. Its latitude, longitude and time zone are shown on the place's page. Every page also links to nearby places, so you can check the one closest to you.

In big cities the distance from that point matters. At mid-latitudes, sunrise and sunset shift by about a minute for every 20 km you move east or west, so across a metropolitan area like London the two ends can be two or three minutes apart, and in a sprawling one like Los Angeles even more. If you are far from the center, look up your own neighborhood or town, or search your coordinates.

When a place is in the wrong spot or has the wrong name, it is usually one of our users who spots it first, and we fix it.

Searching by coordinates works too: type 40.7128, -74.0060 (or degrees, minutes and seconds) in the search box and we calculate the times for that exact point.

Your local view

Our times are for a flat horizon at sea level, the standard reference used by every almanac. What you see on a given evening can differ by a minute or two, and by much more where hills or buildings block the horizon:

A mountain on the horizon hides the setting Sun earlier than a flat horizon would Flat horizon: the time in our tables Behind a mountain the Sun disappears earlier
Terrain changes when you see the Sun, not when it actually sets.

Got a cool idea? 💡 Found any errors? 🤦

We're always improving this website!

Sources