Daylight Hours Calculator

Enter a location and date to get hours of daylight, local sunrise and sunset, solar noon, the three twilight phases, the change from the previous day and a month-by-month table. Uses the NOAA solar position equations.

Use the Daylight Hours Calculator

Daylight Calculator

Decimal degrees. North and East positive; South and West negative.

Quick presets

Enter a location and date, then press Calculate.

Hours of daylight by latitude at the equinoxes and solstices

Sunrise to sunset (90.833° zenith), 2026 dates, NOAA equations. For the Southern Hemisphere read the June and December columns the other way round.

Latitude Mar 20, 2026Jun 21, 2026Sep 23, 2026Dec 21, 2026
0° N 12h 07m12h 07m12h 07m12h 07m
10° N 12h 07m12h 42m12h 06m11h 32m
20° N 12h 07m13h 20m12h 07m10h 55m
30° N 12h 07m14h 05m12h 07m10h 13m
40° N 12h 08m15h 01m12h 07m9h 19m
50° N 12h 10m16h 22m12h 09m8h 04m
60° N 12h 13m18h 52m12h 11m5h 52m
65° N 12h 15m22h 02m12h 12m3h 35m
70° N 12h 19m24h 00m (midnight sun)12h 15m0h 00m (polar night)

Method and worked example

The calculator follows the NOAA Global Monitoring Laboratory solar calculator, which implements Jean Meeus' Astronomical Algorithms. For each date it evaluates the Julian century T at local noon, the Sun's mean longitude and anomaly, the equation of centre, the apparent longitude and the corrected obliquity of the ecliptic, giving the declination δ and the equation of time.

  1. New York (40.7128° N, 74.006° W), June 21, 2026, UTC−4 (EDT): δ = 23.44°, equation of time = −1.9 min.
  2. cos H = cos 90.833° / (cos 40.71° · cos 23.44°) − tan 40.71° · tan 23.44° = −0.3939, so H = 113.20°.
  3. Day length = 2 × 113.20 / 15 = 15.09 h = 15 h 06 m.
  4. Solar noon = 720 − 4 × (−74.006) − (−1.9) − 240 = 777.9 min = 12:58 PM; sunrise = solar noon − 4 × 113.20 min = 5:25 AM, sunset = 8:31 PM.

Twilight uses the same hour-angle equation with zenith 96° (civil), 102° (nautical) and 108° (astronomical). If cos H is below −1 the Sun never reaches that depression (24 h daylight or continuous twilight); above +1 it never rises that high.

Privacy: everything runs in your browser. "Use my location" reads coordinates from your device and sends them nowhere.

Summary

This daylight hours calculator finds how long the Sun is above the horizon on any date at any place on Earth. It uses the NOAA solar calculator equations (from Meeus, Astronomical Algorithms) for solar declination and the equation of time, then solves the sunrise hour angle for a 90.833° zenith, which includes 0.833° for atmospheric refraction and the Sun's radius. With longitude and a UTC offset it converts the result to local clock times for sunrise, sunset and solar noon, and it repeats the calculation at 96°, 102° and 108° for civil, nautical and astronomical twilight. A month-by-month table shows how day length changes through the year at your location, and the reference table below gives day length by latitude at the equinoxes and solstices.

How it works

  1. Pick a city preset or enter latitude and longitude in decimal degrees (north and east positive), or use your device location.
  2. Pick a date. The UTC offset follows the preset's time zone, including daylight saving time; you can type any offset instead.
  3. The tool computes the Julian century, the Sun's apparent longitude, declination δ and the equation of time with the NOAA equations.
  4. Sunrise hour angle: cos H = cos(90.833°)/(cos φ cos δ) − tan φ tan δ. Day length = 2H/15 hours.
  5. Solar noon (minutes) = 720 − 4 × longitude − equation of time + 60 × UTC offset; sunrise and sunset are solar noon ∓ 4H minutes.
  6. Twilight times use the same formula with the Sun 6°, 12° and 18° below the horizon (zenith 96°, 102°, 108°).

Use cases

  • Check how many hours of daylight a winter trip to Iceland, Norway or Alaska will have.
  • Find sunrise and sunset times for a hike, ski day or road trip.
  • Plan photography around civil twilight (blue hour) and astronomical darkness for stargazing.
  • Compare day length across latitudes at the solstices and equinoxes.
  • Track how fast days are getting longer or shorter around the equinoxes.
  • Estimate daylight for gardening, poultry lighting or off-grid solar planning.
  • See when midnight sun and polar night begin at high latitudes.

Frequently Asked Questions

Last updated: 2026-10-09 · Reviewed by Nham Vu