# Day length through the year > How long is the day where you live, all year? See how the hours of daylight change through the year at your place, and compare it with a second city. Chart the hours of daylight for every day of the year at your place and compare it with another city, with the longest and shortest day and midnight sun. - Page: https://how.box/day-length/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/day-length/?lat={lat}&lon={lon}&lat2={lat2}&lon2={lon2}&y={y} - `lat` (text): Latitude of the place, north positive (rounded to 0.01° in shared links). Example: `60.17`. - `lon` (text): Longitude of the place, east positive (rounded to 0.01° in shared links). Example: `24.94`. - `lat2` (text): Latitude of the place to compare with (optional). Example: `40.42`. - `lon2` (text): Longitude of the place to compare with (optional). Example: `-3.7`. - `y` (text): Calendar year, 1900–2100. Example: `2026`. Example answer: https://how.box/day-length/?lat=60.17&lon=24.94&lat2=40.42&lon2=-3.7&y=2026 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `day_length_calculate`: Day length (sunrise to sunset) through a calendar year at a place, optionally compared with a second place: the longest and shortest day of the year with their dates and lengths in minutes (NOAA solar calculator equations; about a minute accurate between latitudes ±72°; 0 in polar night, 1440 under the midnight sun). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"day_length_calculate","arguments":{"lat":60.17,"lon":24.94,"lat2":40.42,"lon2":-3.7,"year":2026}}}` - GET: https://how.box/mcp/run/day_length_calculate?lat=60.17&lon=24.94&lat2=40.42&lon2=-3.7&year=2026 ## How it works The Earth's axis is tilted, so through the year the Sun rides higher or lower in the sky. In summer a place leans towards the Sun and the day is long, in winter it leans away and the day is short. The further from the equator you are, the bigger the swing: near the equator the day stays close to 12 hours, while far north the Sun may not set at all in midsummer. For every day of the year the page works out the moments the Sun rises and sets at the place and subtracts them. The Sun's position comes from standard astronomical equations (the NOAA solar calculator, after Meeus); the Sun counts as risen when its centre is 0.833° below the horizon, because the air bends light over the edge. The result is good to about a minute between latitudes 72° north and south. Day length is the time from sunrise to sunset, not the time it is light: twilight adds to it. The page knows no hills, buildings or weather. ## FAQ **Why are summer days longer in the north?** The Earth's axis is tilted about 23.4°. In summer the northern half faces the Sun more, so the Sun's daily path is longer and higher, and it spends more time above the horizon. **Which day is the longest of the year?** In the northern hemisphere it is the June solstice, around 21 June; in the southern hemisphere around 21 December. The page shows the exact date for your place. **Why is the line flat near the equator?** Near the equator the Sun rises and sets almost straight up and down all year, so day length stays close to 12 hours. **What does a flat line at 24 hours mean?** That is the midnight sun: far enough north or south the Sun does not set for weeks around midsummer. The opposite, 0 hours, is the polar night. **Do daylight saving time and time zones change the chart?** No. Day length is the time between sunrise and sunset, so clock changes do not affect it. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)