Daylight Hours Calculator

Length of the day for any latitude and date

Calculate how many hours of daylight a place gets on any date from its latitude, using the standard astronomical sunrise equation. Shows the day length plus the longest and shortest days of the year. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How is the length of a day calculated?

From two inputs, latitude and the day of the year. The day of the year sets the sun declination through a standard cosine formula, and the declination combined with the latitude gives the hour angle of sunrise. Doubling that hour angle and converting to time yields the number of daylight hours. It is straightforward trigonometry used by every astronomical almanac.

How long is the day where you are

The number of daylight hours a place receives depends on just two things — how far it sits from the equator and where the Earth is in its orbit. This calculator takes a latitude and a date and returns the length of the day using the same sunrise equation that powers astronomical almanacs. Enter your latitude, pick a date, and see the hours and minutes of daylight instantly.

The astronomy behind it

Each day of the year corresponds to a solar declination, the angle of the sun above or below the celestial equator, which swings between about plus and minus 23.44 degrees over the year. Combine that declination with your latitude and a little trigonometry gives the hour angle at which the sun crosses the horizon. Double it, convert from degrees to time, and you have the day length. The figure is geometric, meaning it tracks the centre of the sun and leaves out the few minutes that atmospheric refraction adds at each end.

Longest and shortest days

Alongside the date you choose, the tool shows the longest and shortest days of the year for your latitude — the values around the June and December solstices. The gap between them widens the further you travel from the equator, from almost nothing at the tropics to full polar day and night inside the polar circles. It is a quick way to see just how much the seasons swing where you live.