# Sunrise and sunset > When does the sun rise and set? Sunrise, sunset, solar noon, day length and twilight for any place and date, from its coordinates. Find sunrise, sunset, solar noon and day length for any place and date, with civil, nautical and astronomical twilight, and midnight sun or polar night. - Page: https://how.box/sunrise/ - 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/sunrise/?v={v}&lat={lat}&lon={lon}&d={d}&z={z} - `v` (times or light): times (sunrise, sunset and twilight) or light (golden and blue hour). Example: `light`. - `lat` (text): Latitude in decimal degrees, north positive (rounded to 0.01° in shared links). Example: `60.17`. - `lon` (text): Longitude in decimal degrees, east positive (rounded to 0.01° in shared links). Example: `24.94`. - `d` (text): Date, YYYY-MM-DD, in the time zone shown. Example: `2026-06-21`. - `z` (text): IANA time zone, device, or auto. Example: `Europe/Helsinki`. Example answer: https://how.box/sunrise/?v=light&lat=60.17&lon=24.94&d=2026-06-21&z=Europe%2FHelsinki A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `sunrise_calculate`: Sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for a place and a date (NOAA solar calculator equations; about a minute accurate between latitudes ±72°, no terrain or weather). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sunrise_calculate","arguments":{"view":"light","lat":60.17,"lon":24.94,"date":"2026-06-21","zone":"Europe/Helsinki"}}}` - GET: https://how.box/mcp/run/sunrise_calculate?view=light&lat=60.17&lon=24.94&date=2026-06-21&zone=Europe%2FHelsinki ## How it works The Sun rises and sets at times that depend on where you are and on the date. The Earth's axis is tilted, so the Sun climbs higher in summer and the days get longer; the further from the equator, the bigger the change. Far enough north or south the Sun does not set at all in midsummer (the midnight sun) and does not rise in midwinter (the polar night). The page works out the Sun's position from the date and the place, then finds the moments when its centre is 0.833° below the horizon: the Sun's edge touches the horizon, and the air bends the light up by about half a degree. Dawn and dusk are the moments the Sun is 6° (civil), 12° (nautical) and 18° (astronomical) below the horizon; after astronomical dusk the sky is fully dark. Solar noon is when the Sun is highest. Example: in Helsinki on 21 June the day is about 19 hours long, in December under 6 hours. Method: the NOAA solar calculator, based on Jean Meeus, Astronomical Algorithms. Times are good to about a minute between latitudes 72° north and south, and less exact near the poles. The page does not know hills, buildings, weather or your height above the sea, and it does not guess a time zone from the coordinates: pick the zone you want the times in. ## FAQ **Why are sunrise and sunset not 12 hours apart?** Only at the equinoxes, and near the equator, is the day close to 12 hours. In summer the day is longer, more so the further from the equator; in winter it is shorter. **What is the difference between civil, nautical and astronomical twilight?** They mark how far the Sun is below the horizon: 6°, 12° and 18°. In civil twilight you can still do things outdoors without lights, in nautical twilight the horizon fades at sea, and after astronomical twilight the sky is fully dark. **What is solar noon?** The moment the Sun is highest in the sky at that place. It is usually not 12:00 on the clock, because of your time zone, daylight saving time and the small variation of the Sun's speed through the year. **Is my location sent anywhere?** No. The button asks your browser for one rough position (to about 1 km) when you press it, and the page calculates the times on your device. A shared link carries the coordinates rounded to 0.01°. **Why can sunrise or sunset be missing?** Near the poles, the Sun can stay above or below the horizon all day. The tool names this instead of giving a time. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)