simplemaplab

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.

Try:
Loading map…
Sun Times
New York, NY
Tue, May 5, 2026 · America/New_York
Sunrise
5:51 AM
Sunset
7:56 PM
Day length
14h 06m
Solar noon
12:53 PM
65.6° altitude
24-hour Timeline
00:0006:0012:0018:0024:00
Astronomical night
Astronomical twilight
Nautical twilight
Civil twilight
Golden hour
Daytime
All phases
Morning
Astronomical dawn
4:03 AM
Nautical dawn
4:44 AM
Civil dawn
5:20 AM
Sunrise
5:51 AM
Golden hour ends
6:29 AM
Midday
Solar noon
12:53 PM
Evening
Golden hour begins
7:18 PM
Sunset
7:56 PM
Civil dusk
8:26 PM
Nautical dusk
9:03 PM
Astronomical dusk
9:44 PM
Sun position at solar noon
Altitude
65.6°
Above the horizon
Azimuth
181°
S from North
Sun times computed via the SunCalc library (Vladimir Agafonkin) using NOAA\u2019s solar-position algorithm. Times shown in America/New_York.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

PhaseSun angleWhat it meansCommon uses
Civil twilightSun 0° to -6° below the horizonThe 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 twilightSun -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 twilightSun -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:

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.

FeatureSimpleMapLabtimeanddate.comPhotoPills (paid app)Almanac.comSunCalc.org
Free, no sign-up
Civil + nautical + astronomical twilightLimited— (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 pointLimited
Solar noon altitude
Mobile-first designPartial
No watermark / no adsHeavy adsPaid tierAdsSome 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

Open the Sunrise & Sunset Calculator, search for your city or click "My Location" to use GPS. The hero panel shows sunrise, sunset, day length, and solar noon for the current date. Use the date input or the Previous / Next buttons to step through other days. Times are formatted in the location’s local time zone (DST handled automatically).
The tool computes solar positions using NOAA’s solar-position algorithm via the open-source SunCalc library. Times are typically accurate to within ±1 minute of the values published by the US Naval Observatory and timeanddate.com. Atmospheric refraction is included with a standard 34′ correction (the same correction used in nautical almanacs). For arctic / antarctic latitudes near the polar-night / midnight-sun edge, the algorithm correctly returns "no sunrise / no sunset" rather than producing an artefact time.
The golden hour is the period shortly after sunrise and before sunset when the sun is between 0° and 6° above the horizon. The sun’s light passes through more atmosphere at this low angle, scattering blue and green wavelengths and leaving a warm orange-gold cast. Photographers prize the golden hour for soft directional light, long shadows, and natural warmth on skin tones. The duration depends on latitude — about 30–60 minutes in mid-latitudes; at high latitudes near the solstices the golden hour can last for hours.
The blue hour is the period before sunrise and after sunset when the sun is between 4° and 8° below the horizon. Direct sunlight is gone, but the sky is still illuminated by indirect scattering, producing deep cobalt-blue tones. It overlaps with civil twilight on the lighter side and nautical twilight on the darker side. The blue hour typically lasts 20–40 minutes in mid-latitudes and is favoured for cityscape photography (artificial lights are on, and the sky still has color rather than going to black).
They’re defined by how far the sun is below the horizon. Civil twilight = sun 0° to −6°: bright enough for outdoor activities without artificial light. Nautical twilight = sun −6° to −12°: the horizon is still visible against the sky, used for celestial navigation at sea. Astronomical twilight = sun −12° to −18°: the sky is dark enough for serious astronomy, but very faint objects are still washed out. Below −18° = "true night". Each phase has a morning (dawn) and evening (dusk) version.
Earth’s rotational axis is tilted ~23.4° relative to its orbital plane. As Earth orbits the sun, the angle of incident sunlight at any given latitude changes throughout the year — the sun rises earlier and sets later in summer (longer days) and the opposite in winter (shorter days). The rate of change is fastest near the equinoxes and slowest near the solstices. The Year Graph mode visualises this annual cycle as two curves with a fill between them showing daytime.
Solar noon is the instant when the sun crosses the local meridian — i.e., reaches its highest altitude of the day for that observer. It deviates from clock 12:00 for two reasons: (1) your longitude within the time zone (zones are 15° wide so most points are not at the centre), and (2) the equation of time, a seasonal offset of up to ±16 minutes caused by Earth’s elliptical orbit and axial tilt. Solar noon may legitimately fall at 11:21 in early November and 12:14 in mid-February at the same location.
The tool resolves the IANA time zone for the chosen location (using the geo-tz offline polygon database) and formats all times in that zone. If the date you choose falls under DST in that zone, the times reflect DST. The underlying solar calculation is independent of clock time — the sun rises at the same UTC moment regardless of whether the local clock has been advanced — but the displayed local times shift by an hour.
Above the Arctic Circle (≈66.5° N) and below the Antarctic Circle (≈66.5° S), there are days when the sun does not set (midnight sun) or does not rise (polar night). The tool detects these conditions and shows a banner: "☀️ Midnight Sun" or "🌑 Polar Night". The 24-hour timeline shows a single phase for the day. Twilight phases may still apply during the transition periods.
Yes. Pick any date with the date input. The algorithm is mathematically defined for any Gregorian-calendar date and produces accurate results for the past few millennia and the foreseeable future. Useful for: historical research, planning a holiday, finding an anniversary day length, checking a future eclipse, etc.
Day length is sunset − sunrise — the duration the upper limb of the sun is above the geometric horizon. Both endpoints include the standard 34′ atmospheric-refraction correction, so the reported day length is slightly longer than the geometric daylight (≈8 minutes longer at mid-latitudes). The result is what most almanacs and weather services publish.
The local time zone of the selected location, resolved from a polygon-based IANA-zone database (geo-tz, the same data Apple Maps and Google use). DST is handled automatically. The time-zone identifier is shown above the result panel; if a coordinate happens to be in international waters, UTC is used as a fallback.
Most of it. The map basemap requires tiles from OpenFreeMap, but the sunrise / sunset / phase computations run entirely in your browser using the SunCalc library (no API call). Once a location is set, switching dates, modes, or reading additional phases works without a network connection.
Yes. Switch to the "Month View" tab to see a sortable table of sunrise / sunset / day length for every day of the selected month. Switch to "Year Graph" to see a line chart of sunrise (yellow) and sunset (rust) for the full year, with the daytime fill area, plus dashed markers for the March equinox, June solstice, September equinox, and December solstice.
Yes. The tool is free, the SunCalc library is BSD-licensed, the OpenFreeMap basemap is free with no rate limit, and the geo-tz timezone data is open. Use the calculated times in apps, books, journalism, planning systems, scheduling tools, or anywhere else with no attribution requirement (though crediting NOAA / SunCalc for the algorithm is appreciated).
Data sources & methodology

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

Time Zone Finder

Find the IANA time zone of any location with current local time and DST status.

Elevation Finder

Find altitude above sea level for any point on Earth. 30m Copernicus DEM.

Coordinates to Address

Reverse geocoder: turn lat/lng into a full address, with elevation and time zone.

Latitude & Longitude Finder

Find the precise GPS coordinates of any place or address.