KitQuarter

Sunrise Sunset Calculator

Find sunrise, sunset, solar noon and day length for any place and date. Enter a place or coordinates and a date to see the times in local time. Free, no sign-up, everything runs in your browser.

Pick a city, or choose Custom place and enter coordinates.

Pick the date you want sunrise and sunset for.

North is positive, south is negative. Range -90 to 90.

East is positive, west is negative. Range -180 to 180.

Pick the offset for the place and date, including daylight saving time. New York in June is UTC-4.

Formula: NOAA solar equations. Sunrise and sunset sit where the sun centre is 0.833 degrees below the horizon, around solar noon. Solar noon = 720 minus 4 times longitude minus the equation of time, in minutes from midnight UTC.

James Carter, Math and Tools Editor
Reviewed by James Carter, Math and Tools Editor · 23 calculator guides
Formulas verified against standard references. Calculator logic tested with verified worked examples. Published: November 9, 2026 | Last updated: November 9, 2026. Fact-checked: November 9, 2026. Our methodology

How to Use the Sunrise Sunset Calculator

You need a place, a date and the time zone offset for that place on that date. The calculator does the astronomy from those three facts.

  1. Pick a city from the list, or choose Custom place and enter the latitude and longitude.
  2. Pick the date you want. The date field opens a calendar picker.
  3. Pick the time zone offset for the place on that date, including daylight saving time if it applies. New York in June is UTC-4.
  4. Press Calculate to see sunrise, sunset, solar noon and day length in local time.
A golden sunrise over a calm lake with mist on the water
Sunrise is when the upper edge of the sun touches the horizon.

How Sunrise and Sunset Are Calculated

This calculator uses the solar equations published by NOAA, the US National Oceanic and Atmospheric Administration. From the date it works out the solar declination, the tilt of the sun rays against the equator, and the equation of time, the gap between solar time and clock time.

Sunrise and sunset are the moments the upper edge of the sun touches the horizon. In the math that means the sun centre sits 0.833 degrees below the horizon, a standard correction covering atmospheric refraction and the radius of the sun disk. The hour angle at that height, measured from solar noon, gives sunrise before noon and sunset after it, and the time zone offset turns the UTC result into local time.

Worked Example: New York on June 21, 2026

Take New York City, latitude 40.7128, longitude -74.006, on June 21, 2026, the summer solstice. The solar declination is +23.45 degrees and the equation of time is -1.33 minutes, and solar noon lands at 12:57 PM local time.

Counting back gives sunrise at 5:24 AM. Counting forward gives sunset at 8:30 PM. The day length is sunset minus sunrise, which is 15 hours 6 minutes. Published tables for New York on the same date list the same times, so the calculation matches within a minute.

A photographer with a tripod shooting a vivid sunset over the ocean
New York on June 21, 2026 has sunset at 8:30 PM.

Why Day Length Changes Through the Year

Day length changes because the Earth axis is tilted about 23.44 degrees. In June the northern hemisphere leans toward the sun, so the sun rises early, sets late and climbs high at noon. In December the same places lean away, so the sun rises late, sets early and stays low. If you travel, the time zone converter turns the local sunrise time into your home time, and the date calculator counts the days to a solstice or an equinox.

At the equinoxes in March and September the declination is near zero and almost every place on Earth gets close to 12 hours of daylight. The change is fastest near the equinoxes and slowest near the solstices.

Polar Day and Polar Night

Near the poles the sun can stop rising or setting altogether. Above the Arctic Circle in summer the sun stays above the horizon all day, the midnight sun, and in winter it never rises, the polar night. The same happens in reverse around Antarctica.

The calculator reports these cases instead of inventing a time. If the sun cannot reach the horizon on that date, the result says polar day or polar night. Tromso in Norway, for example, has polar night in mid January and midnight sun in late June.

A city skyline at dusk with the sun setting behind skyscrapers
Near the poles the sun can stay up all day or not rise at all.

Frequently asked questions

Why does my weather app show a slightly different sunrise time?

Small differences of a minute or two are normal. They come from the exact spot, the elevation, the offset, and rounding.

What is solar noon?

Solar noon is the moment the sun is highest in the sky for the day. It is rarely exactly 12:00 PM, because clock time follows time zones and the equation of time shifts solar time through the year.

Does daylight saving time change sunrise?

It changes the clock time, not the sun. When clocks move forward an hour, sunrise reads an hour later on the clock even though the sun rose at the same moment. Pick the offset that applies on your date, including daylight saving time.

What is the 0.833 degree correction?

It is the standard allowance for the sun appearing higher than it really is. Air bending the sunlight adds about 0.567 degrees and the radius of the sun disk adds about 0.266 degrees.

What happens near the poles?

The sun may not rise or set at all on some dates. The calculator reports polar day when the sun stays up and polar night when it stays down.

Can I use this calculator for any place on Earth?

Yes, as long as you enter a latitude from -90 to 90 and a longitude from -180 to 180. The city list covers common places.