Daylight Hours Calculator
Hours of daylight for every day in a date range, with equinox and solstice markers computed from the solar declination.
A range of days, one row each
Give a latitude, a longitude, a start date and an end date, and the page prints sunrise, sunset and the length of the day for each day in the range. Daylight is twice the hour angle at a 90.833 degree zenith, taken from the same NOAA solar position core as the sunrise page: the Julian century, the Sun's mean longitude and anomaly, the equation of centre, the apparent longitude and the true obliquity.
The equinox and solstice labels are computed from the declination series rather than typed in, so a range that misses the event shows no marker, and the first and last rows of a range have no neighbour to compare. Ranges are capped at 366 days. Accuracy is about a minute at mid-latitudes; polar day and polar night appear as 24 h and 0 h rather than an invented clock time.
The range and the coordinates stay in this tab. No calculation leaves the browser, no history is kept, and reloading reproduces the same table from the same inputs.
Compute sunrise, sunset and day length for every day in a date range at a latitude and longitude, in a time zone you choose, and print the shortest and the longest day in that range.
The core is the NOAA solar-position calculation, the markers are computed rather than typed in, and the coordinates never leave the tab.
How to use it
Set the two dates, the latitude, the longitude and the zone, or take one of the quick ranges for the next 30, 91, 183 or 365 days. The table prints one row per day with sunrise, sunset and daylight, and the summary names the shortest and the longest day in the range.
What the markers are
Equinox and solstice rows are marked because they are computed from the same solar position, not because they are looked up in a list. The latitude and longitude are read as decimal degrees, and south and west are negative.
Where it stops
The range is capped at 366 days, latitude must be within ±90° and longitude within ±180°, and a backwards range is refused. Sunrise is the solar position at the horizon, so a mountain ridge, a building or an elevated viewpoint is not modelled.
What to Expect
Best for
- planning a photo trip around day length
- comparing dawn and dusk across a season
What this tool keeps
- The range, the coordinates and the zone are evaluated in this tab; nothing is uploaded and reloading reproduces the same table.
Frequently asked questions
Which algorithm produces the times?
The NOAA solar-position calculation: declination, equation of time and the hour angle at the horizon. Both dates, the coordinates and the zone are inputs, and the whole table is derived from them.
How long a range can I ask for?
Up to 366 days. A wider range is refused with the day count named, because the table is rendered in full rather than paginated.
Why can the time differ from my weather app?
The calculation is the sun at the horizon for a flat observer at your coordinates. Local terrain, an elevated viewpoint, and any correction the other app applies are outside this model, and the page does not claim otherwise.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.