Skip to content
Calcuplay
Dates & time

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.

°

Decimal degrees, + north, − south.

°

+ east, − west of Greenwich.

Day length

10 h 8 min

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)

Day length on the 21st of each month at New York (40.7° N)
DateDay lengthSunriseSunset
January 219 h 46 min07:1417:00
February 2110 h 57 min06:4117:37
March 2112 h 12 min06:5719:09
April 2113 h 34 min06:0719:41
May 2114 h 38 min05:3320:11
June 2115 h 6 min05:2520:30
July 2114 h 39 min05:4320:21
August 2113 h 33 min06:1219:45
September 2112 h 12 min06:4218:55
October 2110 h 53 min07:1418:07
November 219 h 44 min06:5016:33
December 219 h 15 min07:1616: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 calculators

Related guides

Other calculators