Day Length Calculator

How many hours of daylight does a place get on any date, and why do the days grow and shrink with the seasons? Move the Earth around the Sun and watch.

Answer

New York (40.7° N) · June 21, 2026

15 h 6 min

of daylight, sunrise to sunset; −0.0 min tomorrow

Longest dayJune 21 · 15 h 6 min
Shortest dayDecember 21 · 9 h 15 min
Seasonsummer
Sun at noon72.7° high
Sun overhead at23.4° N
Earth–Sun distance152.0 M km

For clock times of sunrise and sunset, use the Sunrise and Sunset Calculator.

Move the Earth around the Sun

June solsticeDecember solsticeMarch equinoxSeptember equinoxNMoon: first quarterJun 21: 152.0 million km
SunlightNSun overhead 23.4° N41° N: 15.1 h day · 8.9 h night
0h6h12h18h24hJanFebMarAprMayJunJulAugSepOctNovDec15.1 h

Top: the Earth’s axis always points the same way in space; drag the Earth to change the date. Middle: the Earth side-on, Sun on the left; your latitude is carried around the yellow (day) and dark (night) parts of its circle. Bottom: day length through the year; drag along it.

Why this answer

Seasons come from the tilt, not the distance

The Earth’s axis is tilted 23.4° and keeps pointing the same way in space as the Earth orbits. In June the Northern Hemisphere leans toward the Sun: the Sun climbs higher, its light hits the ground more directly, and each circle of latitude spends more than half of every turn in daylight. Six months later the same hemisphere leans away.

The distance to the Sun barely changes (about 3%), and the Earth is actually closest in early January, in the middle of northern winter.

Day length = (2/15) · arccos(−tan φ · tan δ) hours

φ is the latitude (40.7° N) and δ the latitude where the Sun is overhead today (23.4° N). When tan φ · tan δ goes past ±1 the Sun never sets (or never rises): polar day and polar night. The calculator also adds the few minutes from the Sun’s size and the bending of light by the air.

Why it works

Why do we have seasons?

June solsticeDecember solsticeMarch equinoxSeptember equinoxNMoon: full moonJan 3: 147.1 million km

Step 1 of 4

Is it the distance?

The Earth’s orbit isn’t a perfect circle. When is the Earth closest to the Sun?

Make a prediction.

Put it to use

Gardens, travel, solar panels and sleep

Day length sets plant growth and flowering, how much a solar panel can produce in winter versus summer, and how dark your commute will be. Use it to compare a trip north in June with one in December, plan a garden, or see how fast the days are changing around the equinoxes (fastest) and the solstices (slowest).

How it works

The day length calculator gives the hours of daylight (sunrise to sunset) at any latitude on any date, the longest and shortest days of that year, how fast the days are changing, the Sun's noon height and the Earth's distance from the Sun.

Day length depends on two angles: your latitude and the Sun's declination, the latitude where the Sun is overhead that day. The declination swings between 23.4° N in late June and 23.4° S in late December because the Earth's axis is tilted and keeps pointing the same way in space as the Earth orbits.

The calculator uses the NOAA solar equations and counts the Sun as up while its top edge shows, including the bending of light by the air, which adds a few minutes to every day. Longitude barely matters for day length, so only latitude is needed.

Day length ≈ (2/15) · arccos(−tan φ · tan δ) hours (geometric)With refraction: cos H = (sin(−0.833°) − sin φ sin δ) / (cos φ cos δ), day = 2H/15Noon Sun height = 90° − |φ − δ|Sunlight per square meter ∝ sin(Sun height)

Worked example: Day length at 40.7° N (New York) on the solstices

  1. June 21: δ = +23.4°. −tan 40.7° · tan 23.4° = −0.860 · 0.433 = −0.372, arccos(−0.372) = 111.9°, so about 14.9 h geometric; with refraction, 15 h 6 min.
  2. December 21: δ = −23.4°. arccos(+0.372) = 68.1°, so about 9.1 h geometric; with refraction, 9 h 15 min.
  3. The noon Sun is 72.7° high in June and 25.8° high in December, so June noon delivers about 2.2× as much energy per square meter.

Common mistakes

  • Thinking summer happens because the Earth is closer to the Sun: the Earth is closest in early January.
  • Assuming the equator has the longest days: in June, every place north of the equator has a longer day, up to 24 hours above the Arctic Circle.
  • Expecting the days to change by the same amount every day: they change fastest around the equinoxes and hardly at all near the solstices.
  • Forgetting that the seasons are reversed in the Southern Hemisphere.

Frequently asked questions

Why do we have seasons?

Because the Earth's axis is tilted 23.4° and keeps pointing the same way as the Earth orbits the Sun. For half the year your hemisphere leans toward the Sun, which gives a higher Sun (more energy per square meter) and longer days; for the other half it leans away.

When is the longest day of the year?

In the Northern Hemisphere, on the June solstice (June 20 or 21). In the Southern Hemisphere it's the December solstice (December 21 or 22).

Is the Earth closer to the Sun in summer?

No. The Earth is closest (about 147.1 million km) around January 3 and farthest (about 152.1 million km) around July 4. The difference is only about 3%.

Why is the day longer than 12 hours on the equinox?

Sunrise and sunset are counted when the top edge of the Sun touches the horizon, and the air bends sunlight around the curve of the Earth. Together they add roughly 6 to 10 minutes.

How fast do the days get longer?

Fastest around the March and September equinoxes: about 2 to 3 minutes a day at 40° latitude, and much more farther north. Near the solstices the change slows to a few seconds a day.