Sunrise & Sunset Calculator
Calculate sunrise, sunset, solar noon, and day length for any location and date. See all the twilight phases (civil, nautical, astronomical), the photographer's golden hour and blue hour, how much the day length is changing each day, and an animated sun-path arc with a 24-hour day/night sky ribbon. Works worldwide from city presets or your own latitude and longitude.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by upgrading for ad-free browsing and more daily uses, or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade for ad-free browsing and higher daily limits
About Sunrise & Sunset Calculator
The Sunrise & Sunset Calculator works out the exact times the Sun rises and sets for any location and date on Earth, along with solar noon, day length, every twilight phase, and the photographer's golden hour and blue hour. It also shows an animated sun-path arc, a 24-hour day/night sky ribbon, and how much the day length is changing from one day to the next.
How Sunrise and Sunset Are Calculated
Sunrise and sunset depend on where the Sun sits in the sky, which changes with your latitude, your longitude, and the date. The calculation follows the widely used NOAA solar position algorithm in three short steps.
Here \(\varphi\) is your latitude, \(\lambda\) your longitude, \(\delta\) the Sun's declination, \(E\) the equation of time, and \(\Delta_{tz}\) the UTC offset in minutes. The Sun's center is placed \(0.833^\circ\) below the horizon at sunrise and sunset to account for atmospheric refraction (about \(0.567^\circ\)) and the Sun's apparent radius (about \(0.267^\circ\)). The result is accurate to roughly one minute.
Twilight Phases Explained
After the Sun drops below the horizon the sky does not go dark instantly. Astronomers divide this fading light into three phases, defined by how far the Sun is below the horizon.
| Phase | Sun below horizon | What it looks like |
|---|---|---|
| Civil twilight | 0ยฐ โ 6ยฐ | Bright enough to do most outdoor activities without artificial light. |
| Nautical twilight | 6ยฐ โ 12ยฐ | Horizon still faintly visible at sea; brighter stars appear. |
| Astronomical twilight | 12ยฐ โ 18ยฐ | Sky almost fully dark; faint deep-sky objects become visible. |
| Night | more than 18ยฐ | The sky is as dark as it will get. |
Golden Hour and Blue Hour
Photographers prize the soft, warm light around sunrise and sunset. The golden hour is when the Sun is low in the sky, roughly between \(-4^\circ\) and \(+6^\circ\), bathing everything in warm, directional light with long shadows. The blue hour is the period just before the golden hour in the morning and just after it in the evening, when the Sun is about \(4^\circ\) to \(6^\circ\) below the horizon and the sky takes on a deep, even blue. This calculator gives you all four windows โ morning and evening โ so you can plan a shoot to the minute.
Why Day Length Changes Faster in Spring and Autumn
The number of daylight minutes you gain or lose each day is not constant. Near the equinoxes (around March 20 and September 22) day length changes fastest โ by several minutes per day at mid latitudes. Near the solstices (around June 21 and December 21) it barely changes at all, which is why we get long stretches of similar-length days in midsummer and midwinter. The calculator shows the exact change compared with the previous day, so you can watch this seasonal rhythm.
Midnight Sun and Polar Night
Above the Arctic Circle (about \(66.5^\circ\) N) and below the Antarctic Circle, the Sun can stay above the horizon for a full 24 hours around the summer solstice โ the famous Midnight Sun โ or remain below the horizon all day around the winter solstice, known as polar night. When you choose a high-latitude city such as Tromsรธ or Reykjavรญk near a solstice, the calculator detects these situations and reports a 24-hour or 0-hour day instead of a sunrise time. Try it to see how dramatically day length swings as you move toward the poles.
How to Use This Calculator
- Choose a location: Pick a city from the dropdown, or enter your own latitude and longitude in decimal degrees (negative for South and West).
- Set the date and time zone: Choose a date and select the UTC offset for your location. Add one hour if daylight saving time is in effect.
- Click Calculate: The tool computes sunrise, sunset, solar noon, and day length instantly.
- Explore the results: Study the sun-path arc, the 24-hour sky ribbon, all twilight phases, the golden and blue hours, and how the day length is changing.
Frequently Asked Questions
How are sunrise and sunset times calculated?
Sunrise and sunset are found from the Sun's position in the sky. Using the date we compute the Sun's declination and the equation of time, then the hour angle at which the Sun's center is 0.833ยฐ below the horizon (which allows for atmospheric refraction and the Sun's radius). Sunrise is solar noon minus that hour angle and sunset is solar noon plus it.
What is the difference between civil, nautical, and astronomical twilight?
Twilight is split by how far the Sun is below the horizon. Civil twilight is 0ยฐ to 6ยฐ below and is bright enough for most outdoor activity. Nautical twilight is 6ยฐ to 12ยฐ below, when the horizon is still visible at sea. Astronomical twilight is 12ยฐ to 18ยฐ below; beyond 18ยฐ the sky is fully dark.
What are the golden hour and blue hour?
The golden hour is the period soon after sunrise or before sunset when the Sun is low (about โ4ยฐ to +6ยฐ) and the light is warm and soft. The blue hour is the slightly darker period before the golden hour in the morning and after it in the evening, when the Sun is roughly 4ยฐ to 6ยฐ below the horizon and the sky turns deep blue.
Why does day length change by a different amount each day?
The rate at which day length changes depends on your latitude and the time of year. Near the equinoxes the day length changes fastest, by several minutes per day at mid latitudes, while near the solstices it barely changes at all. This calculator shows exactly how many seconds the day is gaining or losing compared with the previous day.
What is the Midnight Sun and polar night?
Above the Arctic and Antarctic circles the Sun can stay above the horizon for a full 24 hours in summer (the Midnight Sun) or stay below it all day in winter (polar night). When you choose a high-latitude location near a solstice, this calculator detects these cases and reports a 24-hour or 0-hour day length instead of a sunrise time.
Does this calculator account for daylight saving time?
The calculator uses the UTC offset you select, which represents standard time. If daylight saving time is in effect for your chosen date, add one hour to the offset so the displayed clock times match your local clock.
Additional Resources
Reference this content, page, or tool as:
"Sunrise & Sunset Calculator" at https://MiniWebtool.com/sunrise-sunset-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: June 29, 2026