Daylight Hours Calculator
Calculate sunrise, sunset, and total daylight hours for any location and date. See monthly daylight patterns.
About this calculator
Day length varies with both where you are and what time of year it is, and this calculator works out that relationship from the underlying astronomy rather than a lookup table. It starts from the sun's declination -- the angle of the sun relative to Earth's equator, which cycles between roughly +23.4° and -23.4° over the year as Earth's axial tilt carries each hemisphere toward and away from the sun. Combining that declination with your entered latitude gives the "hour angle," the portion of Earth's rotation the sun spends above the horizon at that location on that date -- converted into daylight hours.
The calculator also applies the equation of time, a small, date-dependent correction (a few minutes) that accounts for Earth's elliptical orbit and axial tilt causing true solar noon to drift slightly ahead of or behind clock noon through the year, which shifts the exact solar sunrise, sunset, and solar-noon times reported. Near the poles the formula can produce two special cases: midnight sun, where the sun never sets and daylight runs the full 24 hours, and polar night, where the sun never rises at all -- both real phenomena inside the Arctic and Antarctic Circles during their respective summer and winter. Because latitude and season interact -- higher northern latitudes get longer days than the equator in northern summer, but shorter days than the equator in northern winter -- there's no single direction "more latitude always means more daylight" holds in; the relationship flips with the time of year.
Inputs
Results
Daylight Hours
14.92 hrs
How to Use This Calculator
- Enter your Latitude in decimal degrees (positive = north, negative = south).
- Select the Month and enter the Day to calculate solar times for that specific date.
- Review Daylight Hours, Solar Sunrise and Sunset times, Solar Noon, and Night Hours.
- Use June 21 (summer solstice) and December 21 (winter solstice) to see your longest and shortest days.
How the result changes with Latitude
| Latitude | Daylight Hours |
|---|---|
| 20 | 13.21 hrs |
| 31 | 14.01 hrs |
| 61 | 18.86 hrs |
| 90 | 24 hrs |
What each input means
- Latitude
- Positive = North, Negative = South
- Month
- Month of the year (1-12).
How this is calculated
Worked example, using the default values
- Identify Input ParametersLatitude = 40.7, Month = 6, Day = 21 = 3 input(s) provided
- Calculate Daylight HoursDaylight Hours14.92 = 14.92
- Calculate SunriseSunrise4:34 = 4:34
- Calculate SunsetSunset19:29 = 19:29
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does the same latitude have such different daylight hours in June versus December?
Because the sun's declination -- effectively which hemisphere is tilted toward the sun -- swings through the year as Earth orbits, cycling between roughly +23.4° and -23.4°. A northern latitude gets long days when declination is positive (northern summer) and short days when declination is negative (northern winter), so the same location's daylight hours can differ by several hours, or even go from midnight sun to polar night, purely from the date changing.
What causes midnight sun and polar night, and where do they happen?
Both occur when a location's latitude, combined with the sun's declination that day, pushes the sun's hour angle beyond a full day-night cycle -- the sun simply never dips below the horizon (midnight sun) or never rises above it (polar night). This calculator flags both cases explicitly rather than reporting a sunrise/sunset time that wouldn't exist, and they occur inside the Arctic and Antarctic Circles during their respective summer and winter seasons.
Why do solar sunrise and sunset differ slightly from what my phone's clock shows?
Several things separate this calculator's numbers from your phone's. It reports solar time corrected by the equation of time -- a small, date-dependent adjustment (typically a few minutes, occasionally more) for Earth's elliptical orbit and axial tilt causing true solar noon to drift ahead of or behind clock noon through the year. It also computes a purely geometric horizon crossing and doesn't apply the standard atmospheric refraction / solar-disc correction that real sunrise/sunset tables use (roughly a -0.833° adjustment for how the atmosphere bends light and for the sun having a visible disc rather than being a point) -- that correction alone is typically worth several minutes and can be the largest single source of difference on a given day. And this calculator takes no longitude, so its clock times implicitly assume you sit on your time zone's central meridian, which can be off by up to roughly half an hour depending on where in the zone you actually are. Your phone's sunrise/sunset time also folds in your specific time zone and daylight saving offset, none of which this calculator's solar times include.
Does a higher latitude always mean more daylight hours?
No -- it depends entirely on the season. In northern summer, higher northern latitudes get progressively longer days than latitudes closer to the equator, up to midnight sun near the pole. In northern winter, that relationship reverses: higher northern latitudes get progressively shorter days, down to polar night near the pole. There's no single latitude-to-daylight direction that holds year-round.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Heat Index Calculator
Calculate the heat index (feels-like temperature) based on air temperature and humidity. Assess heat danger level.
Weather & ClimateWind Chill Calculator
Calculate the wind chill temperature using the official NWS formula. Assess frostbite risk based on conditions.
Time & DateDST Reference
Educational note on one-hour clock shifts (not a timezone database).
Weather & ClimateDew Point Calculator
Calculate the dew point temperature from air temperature and relative humidity. Includes comfort level assessment and frost risk.
More in Environment, Weather & Climate.