Sunrise & Sunset Calculator
Free sunrise and sunset times for any location worldwide. Civil, nautical, and astronomical twilight; morning and evening golden hour; day length and solar noon. With a map preview, a 24-hour timeline visualisation, a month view, and a year graph showing the full annual cycle plus solstices and equinoxes.
Sunrise & sunset, plus everything else the sun does in a day
The basic question — "what time does the sun rise and set today at my location?" — is the easy half of this tool. The other half is everything that happens around those two events: the three twilight phases that bracket the day (civil, nautical, astronomical), the morning and evening golden hour windows that photographers chase, the deep cobalt blue hour just before dawn and after dusk, and the position of the sun at noon (its altitude above the horizon and its azimuth from north).
We pack those into three views. Single Day shows the full breakdown for one date with a 24-hour timeline visualisation. Month View shows every day of the selected month as a table — useful for planning a multi-week trip or tracking how day length shifts week-to-week. Year Graph draws the full annual cycle of sunrise and sunset as two curves with the daytime area filled in between, plus dashed markers at the solstices and equinoxes — the cleanest way to see how your latitude shapes the year.
How to find sunrise and sunset times
Six steps from blank input to a full breakdown of the solar day at your location.
- Pick a location. Search for a city, address, or landmark; click anywhere on the world map; or tap "My Location" to use your device GPS. The marker pin updates instantly and the time-zone for that location is resolved automatically.
- Pick a date. Choose any date — past or future — using the date input. The Previous / Today / Next buttons jump one day at a time. The tool computes sunrise and sunset across the full Gregorian calendar; ranges from 1900–2100 are routinely accurate.
- Read the headline times. Sunrise, sunset, day length, and solar noon appear in the orange hero panel. Times are formatted in the location’s local time zone (with daylight saving handled automatically). Solar noon includes the sun’s altitude in degrees above the horizon.
- Inspect the 24-hour timeline. The horizontal timeline shows the full day as colored bands: dark blue for astronomical night, lighter blues for nautical and civil twilight, golden bands for the golden hour, and warm yellow for daytime. The 🌅 and 🌇 markers pin the exact sunrise and sunset positions.
- Read all phases. The phase grid lists every twilight and golden-hour transition: astronomical, nautical, and civil dawn / dusk plus the morning and evening golden hour boundaries. Sunrise, solar noon, and sunset are highlighted with a golden left border.
- Switch to Month or Year view. Month view shows a sortable table of sunrise / sunset / day length for every day of the selected month. Year graph shows the full annual cycle as a line chart with sunrise (golden), sunset (rust), the daytime fill area, and dashed markers for the solstices and equinoxes.
What people use a sunrise / sunset calculator for
Seven recurring patterns we see in the analytics — each one uses a different combination of the headline times, the twilight phases, and the year-cycle view.
Photography — golden hour and blue hour planning
Landscape, portrait, and wedding photographers chase the golden hour (the 60–90 minutes after sunrise and before sunset, when sunlight is soft and warm) and the blue hour (the short window before sunrise / after sunset when the sky takes on a deep cobalt blue). The tool labels both windows directly on the timeline so you can plan a shoot to the minute. Use the year graph to find the date when sunset hits a specific time at your location.
Hiking and outdoor planning
Hikers, climbers, and trail runners need sunrise to start at dawn and sunset to finish before dark. The day-length card tells you the available daylight in hours and minutes; the civil dusk time tells you when you’ll need a headlamp. For early-morning summit pushes, the astronomical dawn time is when the sky first starts to brighten in the east — a useful "get going" trigger.
Religious observances
Many religions tie prayer times, fasting, and ritual observance to specific solar events. Islamic prayer times use Fajr (true dawn, between astronomical and civil), Maghrib (just after sunset), and Isha (the end of evening twilight). Jewish Shabbat begins ~18 minutes before sunset on Friday and ends at "tzeit hakochavim" (when three medium stars appear, ≈ astronomical twilight ends). Christian liturgical hours map to the canonical hours of the day. The tool surfaces every transition cleanly in the phase grid.
Aviation, sailing, and surveying
VFR pilots use civil twilight as the official "official daylight" boundary in many regulations. Marine navigators use nautical twilight — the period when the horizon is still visible against the sea — as the window for sextant fixes against stars. Land surveyors note solar noon for true-south reference. All three twilight phases are reported separately, with both morning and evening times.
Gardening and farming
Day length is a primary cue for plant flowering, animal breeding, and crop scheduling. Photoperiodic plants like onions, soybeans, and many flowers respond to the daylight hours per day. Use the month view to see how day length changes day-by-day; use the year graph to see how it varies through the seasons at your latitude.
Solar / energy planning
Anyone designing a solar-power install needs day length and solar noon altitude to estimate energy yield. The tool reports solar noon altitude in degrees above the horizon — for fixed-tilt panel angle decisions, the optimal tilt is approximately your latitude minus the seasonal correction, and matching panel azimuth to the noon azimuth (close to due south in the northern hemisphere) maximises winter yield.
Travel and jet lag
Travellers crossing time zones often want to see the local sunrise / sunset of their destination before arriving. The tool resolves the destination’s time zone automatically; pick the destination, set the arrival date, and you can plan your first day around the local daylight pattern.
Civil, nautical, and astronomical twilight — what each one means
Twilight is the gradient of light between full daylight and full night. It splits cleanly into three named phases based on how far the sun is below the horizon. Each phase has a morning (dawn) and evening (dusk) version. The tool reports all six transitions; the table below explains what each one means and what it\u2019s commonly used for.
| Phase | Sun angle | What it means | Common uses |
|---|---|---|---|
| Civil twilight | Sun 0° to -6° below the horizon | The sky is bright enough that outdoor activities can usually proceed without artificial light. Lamps may already be on indoors. Bright planets and the brightest stars start to appear at the end of evening civil twilight. | Aviation "daylight" cutoffs, drone photography, headlamp triggers, photography "pretty light". |
| Nautical twilight | Sun -6° to -12° | The horizon is still visible against the sky / sea, while bright stars are clear above. This is the classic window for celestial navigation — sailors taking sextant fixes need both the star and the horizon to take a sight. | Marine navigation, astronomy preparation, blue-hour photography (peaks here in the evening). |
| Astronomical twilight | Sun -12° to -18° | The sky is dark enough for serious deep-sky astronomy, but the very faintest objects are still partly washed out by residual sky glow. End of astronomical evening twilight = "true night" begins. | Astrophotography, deep-sky observing, light-pollution measurements. |
Below astronomical twilight (sun below −18°) is true night — the sky is fully dark and the Milky Way and faint deep-sky objects are visible. Above civil twilight (sun above 0°) is daylight; above 6° begins golden hour, and above ~10° normal daytime conditions prevail.
Golden hour — the photographer\u2019s favourite light
Golden hour is the window when the sun is between 0° and 6° above the horizon — a few minutes either side of sunrise and sunset, plus the soft directional light that follows. The physics: at low sun angles, sunlight travels through several times more atmosphere than at noon, scattering blue and green wavelengths (Rayleigh scattering) and leaving a warm orange- red light. The sun is also a smaller apparent disc in the sky, producing softer, more diffuse shadows and flattering skin tones in portraits.
Duration depends on latitude. In mid-latitudes (e.g., New York, Paris, Tokyo) the golden hour lasts about 30–60 minutes in spring and autumn and longer in winter. Near the tropics, where the sun sets nearly perpendicular to the horizon, golden hour is short — maybe 20 minutes. Near the polar circles in summer, the sun stays low for hours and golden-hour light persists from the late afternoon all the way to true sunset.
Use the timeline visualisation: the golden bands directly mark the morning and evening golden-hour windows. Use the year graph to find a date when sunset (and therefore golden hour) falls at a target time of day at your location.
Blue hour — the deep blue between day and night
Blue hour is the window before sunrise and after sunset when the sun is roughly 4°–8° below the horizon. Direct sunlight is absent, but residual sky scattering produces a deep cobalt blue overhead, fading toward warmer tones near the horizon. It overlaps with the lighter end of civil twilight and the brighter end of nautical twilight.
Cityscape photographers love the blue hour because the artificial lights of a city are on and "balance" with the still-coloured sky — neither washes out the other. Wedding photographers schedule the blue hour for portraits with cityscape backdrops.
How sunrise / sunset times are calculated
The math is well-established and dates back to Spencer\u2019s 1971 algorithm and NOAA\u2019s widely-used "Solar Position Algorithm" implementation. The full calculation has three stages.
Stage 1 — Compute the sun\u2019s ecliptic longitude
From the Julian date of the target time, calculate the mean longitude of the sun, the equation of centre (a periodic correction for the Earth\u2019s elliptical orbit), and the true ecliptic longitude. Add the obliquity correction for the slight wobble of Earth\u2019s axis (nutation).
Stage 2 — Convert to right ascension and declination
Project the ecliptic longitude onto the celestial equator using the obliquity of the ecliptic (≈23.44°). The result is the sun\u2019s right ascension and declination — its coordinates on the celestial sphere. Combined with the observer\u2019s latitude and the sidereal time, this gives the local hour angle.
Stage 3 — Solve for the time when the sun crosses each elevation
Sunrise is the moment the sun\u2019s upper limb crosses the geometric horizon. We add a standard atmospheric-refraction correction of 34′ (so the algorithm targets the sun\u2019s centre at −0.833° rather than 0°) and solve the resulting trigonometric equation for time. Civil dawn / dusk solve the same equation at −6°, nautical at −12°, astronomical at −18°. Golden-hour transitions solve at +6° (sun above horizon).
SunCalc, the open-source library underneath this tool, implements that math in ~200 lines of JavaScript and matches NOAA\u2019s reference implementation to within ±1 second across all latitudes from 80° N to 80° S. The library is BSD-licensed and battle-tested in millions of production applications.
The annual cycle — why every year looks the same
Earth\u2019s axial tilt of 23.4° causes a hemisphere to face the sun more directly in summer (longer days) and away from the sun in winter (shorter days). The four cardinal points of the cycle are:
- March equinox (around 20 March) — the sun crosses the celestial equator heading north. Day and night are roughly equal everywhere on Earth.
- June solstice (around 21 June) — the sun reaches its northernmost declination. Longest day in the northern hemisphere; shortest in the southern hemisphere.
- September equinox (around 23 September) — the sun crosses the celestial equator heading south. Day and night again roughly equal.
- December solstice (around 21 December) — sun at its southernmost declination. Shortest day in the northern hemisphere; longest in the southern.
The Year Graph view marks all four with dashed vertical lines. The shape of the daytime fill area shows your latitude\u2019s "personality": near the equator the fill is roughly uniform 12-hour bands; near the poles it tapers to zero (polar night) or expands to 24 hours (midnight sun); in temperate latitudes you see a smooth sinusoidal annual cycle.
SimpleMapLab vs other sunrise / sunset tools
Honest comparison against the alternatives. Each tool wins different scenarios.
| Feature | SimpleMapLab | timeanddate.com | PhotoPills (paid app) | Almanac.com | SunCalc.org |
|---|---|---|---|---|---|
| Free, no sign-up | ✓ | ✓ | ✓ | ✓ | ✓ |
| Civil + nautical + astronomical twilight | ✓ | ✓ | Limited | — (only civil) | ✓ |
| Golden hour highlighted | ✓ | ✗ | ✓ (paid) | ✗ | Limited |
| Blue hour highlighted | ✓ | ✗ | ✓ (paid) | ✗ | ✗ |
| 24-hour timeline visualisation | ✓ | ✗ | ✓ | ✗ | ✗ |
| Month view | ✓ | ✓ | ✗ | ✓ | ✓ |
| Year graph (annual cycle) | ✓ | ✗ | ✗ | ✗ | ✗ |
| Map preview / click to set point | ✓ | Limited | ✓ | ✗ | ✗ |
| Solar noon altitude | ✓ | ✗ | ✓ | ✗ | ✗ |
| Mobile-first design | ✓ | Partial | ✓ | ✗ | ✗ |
| No watermark / no ads | ✓ | Heavy ads | Paid tier | Ads | Some ads |
timeanddate.com is the encyclopaedic reference — exhaustive but ad-heavy and slow. PhotoPills is the photographer\u2019s favourite paid app, with augmented-reality features SimpleMapLab doesn\u2019t try to match. SunCalc.org is the closest sibling — the same library, similar philosophy — without the year graph, mobile polish, or month view. We optimise for "browser- first, no-sign-up, decision in 5 seconds" — the answer for the 80% case where you don\u2019t need a paid app.
Related tools and resources
For the time zone of a location (which the calculator uses internally), see Time Zone Finder. For elevation, which affects the geometric horizon at very high altitudes, see Elevation Finder. For a precise latitude/longitude lookup of any city or address, see Latitude & Longitude Finder and Coordinates to Address. For annotating a map with your shoot locations, see Map with Legend Maker and Map Drawer.
Frequently asked questions
Solar-position algorithm: SunCalc (Vladimir Agafonkin, BSD-2-Clause) implementing the NOAA Solar Position Algorithm. Atmospheric refraction handled with the standard 34′ correction. Time zones: geo-tz npm package (offline IANA timezone polygon database). Map basemap: OpenFreeMap Liberty vector tiles, free and unlimited. Geocoding for the location search: Photon (typo-tolerant) and Nominatim (OpenStreetMap). All calculations run client-side in your browser; no data leaves your device.
More SimpleMapLab tools
Find the IANA time zone of any location with current local time and DST status.
Find altitude above sea level for any point on Earth. 30m Copernicus DEM.
Reverse geocoder: turn lat/lng into a full address, with elevation and time zone.
Find the precise GPS coordinates of any place or address.