Day length, sunrise and sunset calculator
Pick a date, enter the place's latitude, longitude and time zone: the length of the day shows, with sunrise, sunset and solar noon.
- Checked on thousands of cases
- Sources: NOAA Global Monitoring Laboratory, NOAA
- Updated November 7, 2026
Decimal degrees, + north, − south.
+ east, − west of Greenwich.
Day length
Sunrise 06:36 · Sunset 16:43
Solar noon 11:39
NOAA calculation: within a minute between 72° N and 72° S, refraction included.
Quick challenge
Streak 0Best 0
Test yourself: every answer is computed by the tool, and the wrong choices are the most common traps.
How it works
Formula: Day length = 8 × sunrise hour angle (minutes)
The tool follows NOAA's solar calculator, based on Jean Meeus's astronomical algorithms: the sun's position for the date, its declination, the equation of time, then the hour angle of sunrise. Sunrise and sunset are when the sun is 0.833° below the horizon, to account for refraction. According to NOAA, results are accurate to within a minute between 72° north and 72° south.
Worked examples
New York on June 21
15 h 6 min of daylight.
Chicago on December 21
9 h 8 min of daylight.
At the equator on June 21
12 h 7 min: close to 12 hours all year.
Common mistakes
Flipping the sign of the longitude.
West of Greenwich, longitude is negative: Chicago is at −87.6°.
Forgetting daylight saving time.
Pick the place's time zone: the tool applies its daylight saving rules for that date.
Expecting exactly 12 hours at the equinox.
Refraction shows the sun a little before it actually rises: the day is a few minutes over 12 hours.
What the calculation leaves out
- According to NOAA, within a minute between 72° N and 72° S, within 10 minutes beyond; the atmosphere can shift what you observe.
- Terrain (mountains, buildings) isn't included: the horizon is assumed flat.
Day length on the 21st of each month at New York (40.7° N)
| Date | Day length | Sunrise | Sunset |
|---|---|---|---|
| January 21 | 9 h 46 min | 07:14 | 17:00 |
| February 21 | 10 h 57 min | 06:41 | 17:37 |
| March 21 | 12 h 12 min | 06:57 | 19:09 |
| April 21 | 13 h 34 min | 06:07 | 19:41 |
| May 21 | 14 h 38 min | 05:33 | 20:11 |
| June 21 | 15 h 6 min | 05:25 | 20:30 |
| July 21 | 14 h 39 min | 05:43 | 20:21 |
| August 21 | 13 h 33 min | 06:12 | 19:45 |
| September 21 | 12 h 12 min | 06:42 | 18:55 |
| October 21 | 10 h 53 min | 07:14 | 18:07 |
| November 21 | 9 h 44 min | 06:50 | 16:33 |
| December 21 | 9 h 15 min | 07:16 | 16:31 |
Frequently asked questions
How is day length calculated?
From the sun's position for the date and latitude: the tool uses the equations of NOAA's solar calculator.
Why is the day longer than 12 hours at the equinox?
Refraction lets you see the sun while it's still below the horizon: you gain a few minutes.
What is the midnight sun?
Beyond the polar circle in summer, the sun doesn't set: the tool tells you.
Date and time calculators
Date and time calculatorsRelated guides
Other calculators
- MathScientific, percentages, fractions
- HealthBMI, BMR, calories, running pace
- CookingBread dough, cups to grams, servings
- Home & DIYConcrete, paint, floors, walls, garden
- EverydayFuel cost, unit price, grades
- WeatherWind chill, heat index, storms
- MoneySales, tips, salary
- TechColors, passwords, binary…
- Random & gamesCoin flip, dice, name picker