Daylight Hours Calculator

Calculate total daylight hours, sunrise/sunset times, and solar geometry for any date and latitude. Includes seasonal comparison at equinoxes and solstices.

Input

Result

All parameters set. Ready to execute!
Money Starter Kit

Get Free Money Making Tips

Join 2,000+ smart readers getting side-hustle ideas, passive income strategies, and proven finance tips delivered straight to your inbox.

No Spam
Privacy First
Instant Access
Client-Side Privacy
Instant Response
100% Free Forever

Daylight Hours Calculator: Compute Sunrise, Sunset, and Total Daylight for Any Date and Latitude

The Daylight Hours Calculator computes the total hours of daylight, approximate sunrise and sunset times (solar time), and solar geometry parameters (declination, hour angle) for any date at any latitude. In "Solar Energy Planning," "Agriculture," and "Architectural Design," daylight duration directly affects system sizing, crop scheduling, and building orientation. According to NOAA's Solar Calculator, daylight hours vary from 0 (polar night) to 24 (midnight sun) depending on latitude and date. At the equator, daylight varies by only 10 minutes throughout the year; at 60 degrees latitude, it ranges from 5.5 to 18.8 hours.

How is daylight duration calculated?

Daylight duration is computed from the solar hour angle, which depends on the solar declination and the observer's latitude. The solar declination (the angle between the sun and the equatorial plane) varies sinusoidally throughout the year: -23.45 degrees at the winter solstice to +23.45 degrees at the summer solstice. The hour angle omega is computed as: omega = arccos(-tan(latitude) x tan(declination)). Daylight hours = 2 x omega / 15. This formula is derived from spherical astronomy and follows the equations published in Jean Meeus' Astronomical Algorithms (1991).

Daylight Hours by Latitude

LocationLatitudeJun 21 (Summer)Dec 21 (Winter)Annual Range
Equator0 deg12.1 hrs12.1 hrs0.2 hrs
Miami25.8 deg N13.8 hrs10.5 hrs3.3 hrs
London51.5 deg N16.5 hrs8.0 hrs8.5 hrs
Stockholm59.3 deg N18.5 hrs6.1 hrs12.4 hrs
Tromso69.6 deg N24.0 hrs0.0 hrs24.0 hrs

6 Professional Use Cases

  • Solar Panel Sizing: Solar energy engineers use peak sunlight hours (a fraction of total daylight) to size photovoltaic systems. A location with 14 hours of daylight typically has 5-6 peak sun hours due to atmospheric attenuation and angle.
  • Agricultural Scheduling: Farmers use daylight hours to determine planting and harvesting windows. Long-day crops (wheat, spinach) require 14+ hours; short-day crops (rice, poinsettias) require less than 12 hours.
  • Construction Planning: Construction managers plan outdoor work schedules based on available daylight. Winter construction in high-latitude regions may have only 6-7 usable daylight hours.
  • Architectural Design: Architects orient buildings to maximize natural light penetration. Daylight calculations determine window placement and size per LEED v4 Daylighting Credit.
  • Wildlife Research: Ecologists correlate animal behavior patterns with photoperiod (daylight length). Bird migration, hibernation onset, and breeding cycles are triggered by daylight duration changes.
  • Event Planning: Outdoor event organizers determine sunset time to plan lighting requirements and schedule activities appropriately.

How to Use the Daylight Hours Calculator

  1. Enter Date: Select any date using the date picker.
  2. Enter Latitude: Input the latitude in decimal degrees (-90 to 90). Positive values are North, negative are South. Default is London (51.5074).
  3. Execute: Click "Calculate." The tool computes daylight duration, sunrise/sunset times, and solar geometry.
  4. Compare Seasons: The seasonal comparison table shows daylight hours at the equinoxes and solstices for the entered latitude.

Polar Day and Polar Night

At latitudes above approximately 66.5 degrees (the Arctic/Antarctic circles), the sun does not set during summer solstice (polar day / midnight sun) and does not rise during winter solstice (polar night). The calculator handles these edge cases: when the hour angle calculation produces NaN (the sun never sets or never rises), it returns 24 hours (continuous daylight) or 0 hours (continuous darkness) based on the sign of tan(latitude) x tan(declination). These phenomena affect approximately 4 million people living within the Arctic and Antarctic circles.

Frequently Asked Questions

Are the sunrise/sunset times in local time?

The times are in approximate solar time, not local clock time. Solar noon occurs when the sun is at its highest point, which may differ from 12:00 local time due to time zone boundaries and the Equation of Time (up to +/- 16 minutes).

Does the calculator account for atmospheric refraction?

The calculator uses the geometric sunrise/sunset definition (sun center at horizon). Atmospheric refraction extends visible daylight by approximately 3-4 minutes at both sunrise and sunset, adding about 6-8 minutes to the total.

What happens at the exact equator?

At latitude 0 degrees, daylight duration is approximately 12.1 hours throughout the year. The slight variation from exactly 12 hours is due to the sun's non-zero angular diameter and atmospheric refraction.

Can I enter southern hemisphere latitudes?

Use negative latitude values for the southern hemisphere. At -33.9 degrees (Sydney), summer solstice (December 21) produces the longest day, and winter solstice (June 21) produces the shortest.

More Date Time Tools

Browse All

Accounts Receivable Aging Date Calculator

Add Working Hours Calculator

Add Business Days Calculator

Chronological Date Sorter

Year Calendar Text Generator

Date Range to Weekdays List

Week Start and End Date Finder

Month Calendar Text Generator

Date Range Generator

Recurring Date List Generator

Time Zone Offset List Generator

ISO 8601 Date Formatter

Week Number Calculator

Pregnancy Due Date Calculator

Sunrise Sunset Time Estimator

Season Detector

Quarter of Year Calculator

Leap Year Checker

Day of Week Finder

Moon Phase Calculator

Contract End Date Calculator

Business Days Calculator

Time to Decimal Hours Converter

Chinese Calendar Converter

Decimal Hours to Time Converter

Hebrew Calendar Converter

Islamic Hijri Calendar Converter

Date Format Converter

Persian Solar Hijri Calendar Converter

Julian Date Converter

Date to Unix Timestamp Converter

UTC to Local Time Converter

Unix Timestamp to Date Converter

Time Zone Converter

Local Time to UTC Converter

Human Readable Duration Formatter

Relative Time Formatter

Cron Expression to Plain English

Age in Various Units Calculator

24-Hour to 12-Hour Converter

12-Hour to 24-Hour Converter

Time Duration Calculator

Date Validation Tool

Day of Year Calculator

Days Between Two Dates

Easter Date Calculator

Invoice Due Date Calculator

Fiscal Year Calculator

Countdown Formatter

Cron Expression Generator

Date Calculator