Sunrise & Sunset Calculator

Sunrise, sunset, solar noon, day length, twilight and golden hour for any city, GPS location or date.

Location & date

Sunrise Sunset Horizon (schematic, not to elevation scale)

Sunrise & sunset in

Sunrise
Sunset
Solar noon
Day length
Civil dawn
Civil dusk
Golden hour AM
Golden hour PM

Find sunrise, sunset and golden hour for any place on any date

Pick one of 20 major cities, tap "Use my location" for your exact GPS coordinates, or type in any latitude and longitude, then choose a date — this calculator solves the same sun-position equations used by professional almanacs to return sunrise, sunset, solar noon, total day length, civil dawn and dusk, and an approximate golden hour window, entirely in your browser. Near the poles, where the sun can stay above or below the horizon for weeks at a time, it detects that and reports "sun never rises" or "sun never sets" instead of a broken time.

Worked examples

Golden hour

Timing a sunset photo shoot over the Eiffel Tower

A photographer wants to be in position before the light turns warm, and packed up soon after the sun actually disappears — not guessing from a generic "golden hour is 6-7pm" rule of thumb.

Location
Paris, France
Date
Jul 4
Coordinates
48.86°N, 2.35°E

9:07–10:22 PM CEST golden hour, sunset ≈ 9:57 PM CEST

Polar night

Checking whether the sun rises at all in Arctic Norway

A traveler booking a December trip to Tromsø wants to know if they'll see any daylight, or if they should plan around the aurora instead.

Location
Tromsø, Norway
Date
Dec 21
Coordinates
69.65°N, 18.96°E

Sun never rises — polar night, with a few hours of dim civil twilight around midday

How the calculation works

For the chosen date, the calculator first works out where the sun actually is: its declination (how far north or south of the equator it's directly overhead) and the equation of time (how far true solar time has drifted from clock time), both derived from Earth's orbital position via the standard NOAA solar-position equations. From there, sunrise and sunset are the two moments the sun's hour angle crosses a fixed threshold below the horizon — civil twilight and the golden-hour edges use the same formula with a different threshold angle.

HA = cos⁻¹( cos(zenith)/(cos(lat)·cos(dec)) − tan(lat)·tan(dec) )

When the value inside cos⁻¹ falls outside -1 to 1, there's no real crossing that day — the sun's daily arc is entirely above or entirely below that threshold, which is exactly what happens during polar summer (midnight sun) or polar winter (polar night).

Zenith-angle thresholds used for each event
EventZenith angleSun elevation
Sunrise / sunset90.833°≈ -0.83°
Civil dawn / dusk96°-6°
Golden hour, higher edge84°+6°
Golden hour, lower edge94°-4°

Sunrise/sunset uses 90.833° (not 90°) to account for atmospheric refraction and the sun's apparent disc size. Golden hour has no single official definition; -4° to +6° is a common photography approximation.

Frequently asked questions

Why is the official sunrise/sunset threshold 90.833 degrees instead of a clean 90?

A perfectly geometric 90 degrees would mark the instant the sun's center crosses the true, airless horizon — but two real-world effects push the visible event later at sunrise and earlier at sunset. Atmospheric refraction bends light near the horizon, lifting the sun's apparent position by about 34 arcminutes, and the sun isn't a point: its disc has an apparent radius of about 16 arcminutes, so "sunrise" is defined as the moment the top edge of the disc appears, not its center. Add those two corrections (34' + 16' = 50', or 0.833 degrees) to 90 degrees and you get 90.833 degrees — the standard convention used by NOAA, the US Naval Observatory, and this calculator.

What's the difference between civil twilight and golden hour?

Civil twilight has one fixed, official definition: it ends (in the evening) or begins (in the morning) when the sun's center is 6 degrees below the horizon — roughly the point where there's still enough skylight to make out shapes outdoors without artificial light. Golden hour has no single official definition; it's a photography convention for the warm, low, soft light that happens while the sun sits at a low angle. This calculator approximates it as the sun's elevation being between +6 degrees and -4 degrees, which is why the golden hour window straddles sunrise and sunset rather than starting exactly at either one.

Why does solar noon rarely land on 12:00 on my clock?

Two separate effects push it off. First, the equation of time: Earth's elliptical orbit and axial tilt mean the sun doesn't cross your meridian at a perfectly even 24-hour interval every day, so true solar noon drifts up to about 16 minutes early or late across the year relative to mean (clock) time. Second, civil time zones are wide, roughly 15 degrees of longitude each, but the sun only cares about your exact longitude — stand near the eastern edge of your zone and solar noon happens earlier by the clock; stand near the western edge and it happens later. Daylight saving time adds a further flat one-hour shift on top of both.

What does 'sun never rises' or 'sun never sets' actually mean, and where does it happen?

Both come from the same hour-angle equation this calculator solves for sunrise and sunset having no real solution on a given day. Near the Arctic and Antarctic Circles (about 66.5 degrees latitude) and beyond, the combination of your latitude and the sun's declination on that date can put the sun's daily circle entirely above the horizon ("midnight sun", commonly in local summer) or entirely below it ("polar night", in local winter). The closer you are to a pole, the longer these all-day/all-night stretches last — right at the poles they each run about half the year.

Why do displayed times use the searched location's zone for cities but an estimated offset for coordinates I type in?

For the 20 preset cities, this calculator knows the exact IANA time zone (e.g. America/New_York) and hands it to the browser's built-in Intl API, which correctly applies daylight saving rules for that specific date — no guesswork. For manual coordinates or your GPS location, there's no offline database mapping arbitrary latitude/longitude to a civil time zone boundary (that data is large and changes with local law), so the calculator instead estimates a fixed UTC offset from longitude alone (15 degrees per hour) and labels it clearly as an estimate with no daylight-saving adjustment. If you need an exact clock time for a real place, picking the nearest preset city gives you that.

Is this precise enough to rely on for real plans, like a hike, a shoot, or a wedding timeline?

The underlying NOAA solar-position equations are accurate to well within a minute for the sun's geometric position almost everywhere on Earth, which is the same math behind most sunrise/sunset almanacs. What it can't account for is your specific horizon: a mountain ridge, a tall skyline, or being down in a valley will delay the sun's appearance or hide it earlier than the flat-horizon time shown here, sometimes by many minutes. Treat the numbers as a very close planning estimate, and for safety-critical use (maritime, aviation, religious observance with strict timing rules) confirm against your local official almanac.