Day Length from Latitude and Solar Declination (Sunrise Equation)

Also known as day length · length of the day · hours of daylight · sunrise equation · daylight hours from latitude · photoperiod · sunrise to sunset hours · cos H0 = -tan phi tan delta · hour angle of sunset · daylight from declination · day length at the solstice · daylight duration

D=24πarccos⁡(−tan⁡φ tan⁡δ)D = \frac{24}{\pi}\arccos\left(-\tan\varphi\,\tan\delta\right)
sig figs

Worked example: 49.3 N at the June solstice, declination 23.44 → 16.036 h. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Change any unit and the answer follows.

Where Day Length from Latitude and Solar Declination (Sunrise Equation) fits

Missing an input?
Learning zone

Day Length from Latitude and Solar Declination (Sunrise Equation) explained

Dnightsunlight−tan φ tan δ

Day length is the number of hours the sun is above the horizon, found from just two things: the latitude φ\varphi of the place (north positive, south negative) and the declination δ\delta of the sun that day, the latitude of the point on Earth directly beneath it. Over a year the declination swings between -23.44 and 23.44 degrees, and the declination for a date comes from the day of the year.

The formula is the sunrise equation. At sunrise and sunset the sun is on the horizon, and its hour angle H0H_0 there satisfies cos⁡H0=−tan⁡φtan⁡δ\cos H_0=-\tan\varphi\tan\delta. The Earth turns 15 degrees an hour, so the day is 2H0/152H_0/15 hours long, which is 24πarccos⁡(−tan⁡φtan⁡δ)\frac{24}{\pi}\arccos(-\tan\varphi\tan\delta) with the angle in radians. Read it through the product tan⁡φtan⁡δ\tan\varphi\tan\delta. It is zero at the equator, which has a 12 hour day on every date, and zero at an equinox, when the declination is zero and the day is 12 hours everywhere. At opposite latitudes the lengths of the day add up to 24 hours: with declination 10 degrees, 45 north has 13.3541 h and 45 south has 10.6459 h.

The worked example is 49.3 degrees north at the June solstice, with declination 23.44 degrees: the equation gives 16.0359 hours, about 16 hours 2 minutes, which is the day at North Vancouver. The equation treats the sun as a point and ignores the refraction of the air and the size of the disc. Those add about 10 minutes at mid-latitudes, and 13 minutes at 49.3 degrees north at the June solstice with a corrected altitude of -0.833 degrees.

North of the Arctic Circle in summer, where tan⁡φtan⁡δ\tan\varphi\tan\delta exceeds 1, the sun does not set (24 hours) and the equation has no answer; in winter at the same latitudes the sun does not rise. The checks here are worked by hand from the equation; Forsythe and co-authors (1995) compare models of day length as a function of latitude and day of year.

Day Length from Latitude and Solar Declination (Sunrise Equation)

D=24πarccos⁡(−tan⁡φ tan⁡δ)D = \frac{24}{\pi}\arccos\left(-\tan\varphi\,\tan\delta\right)
Where
  • DD= Length of the day (h)
  • φ\varphi= Latitude (°)
  • δ\delta= Solar declination (°)
Where this comes from
  • Forsythe, W. C., Rykiel, E. J., Stahl, R. S., Wu, H., & Schoolfield, R. M. (1995). A model comparison for daylength as a function of latitude and day of year. Ecological Modelling, 80(1), 87-95 (the wanted list's source; the DOI record was checked in Crossref; the paper is behind a paywall and was not opened). Read it
Revised 30 October 2026
Cite this page

formula.expert. (2026, October 30). Day Length from Latitude and Solar Declination (Sunrise Equation) Calculator. https://formula.expert/solvers/day-length-sunrise-equation