Time, Date, Navigation & Astronomy Sunrise, Twilight & Sun Geometry USNO twilight definitions (−6°, −12°, −18° solar altitude)

Twilight Times Calculator

Twilight is defined by how far the Sun sits below the horizon, not by how the sky looks, and the three standard thresholds are −6° for civil, −12° for nautical and −18° for astronomical twilight. This calculator finds the moment the Sun crosses each of them, morning and evening, for any latitude, longitude and date. It also gives the golden hour and blue hour windows photographers work to, and the number of hours of genuine darkness left in between.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
LatitudePositive north, negative south, in decimal degrees.51.5074 °
LongitudePositive east of Greenwich, negative west.-0.1278 °
UTC offsetThe offset in force on that date, including the daylight saving hour if the location was observing it.1 h
YearFour-digit year.2026
MonthMonth number, 1 for January through 12 for December.6
DayDay of the month.21

It returns

  • Civil dawn (−6°) — When the Sun reaches 6° below the horizon in the morning; outdoor activity becomes possible without artificial light.
  • Civil dusk (−6°)
  • Nautical dusk (−12°) — The horizon at sea becomes indistinct beyond this point.
  • Astronomical dusk (−18°) — Beyond this the sky is as dark as it will get that night.
  • Evening golden hour (+6° to −4°)
  • Evening blue hour (−4° to −6°)
  • Morning civil twilight duration — From civil dawn to sunrise; the evening interval is the same length.
  • True darkness — Hours with the Sun below −18°.

The formula

cosω=sinhsinφsinδcosφcosδ
Δt=4(ω6ω0.833)
D=242ω1815

In plain text: cos ω = (sin h − sin φ sin δ) / (cos φ cos δ) with h = −6°, −12° or −18°; dawn = noon − 4ω, dusk = noon + 4ω

  • ωHour angle from solar noon to the crossing (degrees)
  • hSolar altitude defining the threshold: −6° civil, −12° nautical, −18° astronomical (degrees)
  • φLatitude, positive north (degrees)
  • δSolar declination on the date (degrees)
  • noonSolar noon in minutes after local midnight, 720 − 4λ − EoT + 60·tz (minutes)

It is the same equation used for sunrise, evaluated at a different altitude. When |cos ω| exceeds 1 the threshold is never crossed — either the Sun stays higher all night or it never climbs that high all day.

Updated Category Sunrise, Twilight & Sun Geometry Verified against published test cases Reading time 11 min

Three twilights, three thresholds, three different jobs

Twilight is scattered sunlight reaching you from a part of the atmosphere that is still lit while your own patch of ground is not. It fades continuously, so any boundary drawn across it is a convention — but the three conventions in use are old, precise and internationally consistent, each tied to a practical task.

Civil twilight ends when the Sun is 6° below the horizon. Under a clear sky that is roughly the point at which ordinary outdoor activity stops being possible without artificial light, and it is the threshold written into many national road-lighting and aviation regulations. The brightest planets and a handful of first-magnitude stars are visible by then.

Nautical twilight ends at −12°. The name is literal: this is the limit at which a navigator can still make out the sea horizon while enough stars are visible to shoot altitudes against it. Outside that window a sextant sight is either starless or horizonless, which is why the two nautical twilight periods are the working windows for celestial navigation — see the sight reduction calculator for what happens next.

Astronomical twilight ends at −18°, the point beyond which scattered sunlight no longer measurably brightens the sky background. Only after that does the sky reach its natural darkness, which is what deep-sky observing and long-exposure astrophotography need. Above roughly 48.5° latitude, there are weeks around midsummer when the Sun never gets that low and astronomical night simply does not occur.

The formula, one variable at a time

Every twilight time comes from the same expression that gives sunrise, evaluated at a different altitude: cos ω = (sin h − sin φ sin δ) / (cos φ cos δ). The only thing that changes between civil, nautical and astronomical twilight is h — −6°, −12° or −18°.

The hour angle ω is degrees of Earth rotation from solar noon, so the morning crossing is at noon − 4ω minutes and the evening crossing at noon + 4ω. Solar noon itself is 720 − 4λ − EoT + 60·tz, correcting for your longitude within the zone and for the equation of time.

Because ω grows monotonically as h falls, the crossings always come in order: astronomical dawn, then nautical, then civil, then sunrise. The duration of each twilight band is the difference of two hour angles times four — civil twilight lasts 4(ω₋₆ − ω₋₀.₈₃₃) minutes — and is symmetric between morning and evening on a given date because the same two angles serve both ends.

Golden hour and blue hour are photographic rather than official terms, and this calculator uses the common definitions: golden hour runs from the Sun at +6° down to −4°, and blue hour from −4° to −6°. Neither is standardised by any body, so a source quoting different limits is not wrong, only using a different convention. Both are computed with exactly the same equation.

Refraction is handled less carefully at these depths than at sunrise, and deliberately so. At −6° and below, the Sun is well clear of the horizon and refraction changes its apparent altitude by only a few arcminutes, whereas at the horizon it amounts to 34. The −0.833° sunrise value in the table includes the refraction and semidiameter allowance; the twilight thresholds are geometric, which is how the standard definitions are written.

Worked example: civil twilight at the equator and at 45°N

Start at the equator on an equinox, where φ = 0 and δ ≈ 0. The sin φ sin δ term vanishes and cos φ cos δ = 1, so the expression collapses to cos ω = sin h.

  1. Sunrise threshold. cos ω = sin(−0.833°) = −0.014538, so ω = 90.833°.
  2. Civil threshold. cos ω = sin(−6°) = −0.104528, so ω = 96.000° exactly — arccos of −sin(6°) is 90° + 6°.
  3. Duration. 4 × (96.000 − 90.833) = 4 × 5.167 = 20.67 minutes. Tropical twilight really is that short.
  4. Astronomical threshold. cos ω = sin(−18°) = −0.309017, so ω = 108.000°, meaning the Sun is above −18° for 2 × 108 / 15 = 14.4 h.
  5. Darkness. 24 − 14.4 = 9.600 hours of genuinely dark sky.

Now move to 45°N on the June solstice, where δ = +23.44°. The denominator is cos 45° cos 23.44° = 0.648754 and sin 45° sin 23.44° = 0.281279.

  1. Sunrise. cos ω = (−0.014538 − 0.281279)/0.648754 = −0.455977, so ω = 117.128°.
  2. Civil. cos ω = (−0.104528 − 0.281279)/0.648754 = −0.594689, so ω = 126.491°.
  3. Duration. 4 × (126.491 − 117.128) = 37.45 minutes, nearly twice the tropical figure.
  4. Astronomical. cos ω = (−0.309017 − 0.281279)/0.648754 = −0.909893, so ω = 155.490° and darkness is 24 − 2 × 155.490/15 = 3.268 hours.

Push on to 55°N on the same date and the astronomical bracket becomes (−0.309017 − 0.325831)/0.526245 = −1.206, which is outside the range of the arccosine. There is no solution, the Sun never sinks to −18°, and darkness is zero for the night.

Twilight thresholds and what each one is for

The three standard definitions plus the two photographic conventions used on this page.
NameSolar altitudeWhat it marksDuration at the equator, equinox
Golden hour+6° to −4°Warm, low-contrast light; long soft shadowsabout 40 min
Sunrise / sunset−0.833°Upper limb at the refracted horizoninstant
Blue hour−4° to −6°Deep blue sky balancing artificial lightabout 8 min
Civil twilight0 to −6°Outdoor activity possible without lights; brightest planets visible20.7 min
Nautical twilight−6° to −12°Sea horizon and navigational stars both visible24.0 min
Astronomical twilight−12° to −18°Residual sky glow still detectable by instruments24.0 min
Nightbelow −18°Sky at its natural darkness9.60 h

At the equator on an equinox each band is simply 4·(ω₂ − ω₁) minutes with ω = 90° + |h|, which is why the nautical and astronomical bands are exactly 24 minutes each: 6° of altitude at 4 minutes per degree.

How to read the result

Read the darkness figure first if you are planning an observing session. Zero hours means the sky never reaches astronomical night, which happens every summer above about 48.5° latitude and is the reason deep-sky imaging effectively pauses in northern Europe and Canada from May to July. A small positive number tells you how narrow the window is.

Twilight duration grows with latitude and with the season, and it grows for a geometric reason: near the poles the Sun's daily path is shallow, so it takes far longer to descend the same six degrees. At the equator civil twilight is about twenty minutes; at 45°N in midsummer it is nearly forty; above the Arctic Circle it can last all night.

Morning and evening twilight are the same length on a given date, because both come from the same pair of hour angles. They are not centred on the same clock times, though — solar noon is displaced from 12:00 by longitude and by the equation of time, so dawn and dusk are symmetric about solar noon, not about midday on your watch.

Where a threshold is never crossed the calculator says so in words rather than printing a time. “Never this low” means the Sun stays above that altitude all night; “Not reached” means it never climbs that high all day, which is what deep polar night looks like. Both are correct answers, and inventing a time for either would be worse than useless.

Assumptions and limits

  • The twilight thresholds are geometric. Only the −0.833° sunrise line carries the refraction and semidiameter allowance; −6°, −12° and −18° are the altitudes of the Sun's centre, as the standard definitions specify.
  • A clear, unobstructed sky is assumed. Cloud, haze and light pollution all change what you can actually see, sometimes by more than a whole twilight band.
  • Moonlight is ignored. A gibbous Moon can brighten the sky well beyond anything twilight contributes; check the moon phase calculator before planning around the darkness figure.
  • Golden hour and blue hour are conventions, not standards. The +6° to −4° and −4° to −6° limits used here are common but not universal.
  • No daylight saving is applied. Enter the UTC offset actually in force on the date.
  • Terrain is not modelled. A mountain to the west delays the useful end of golden hour without changing the Sun's altitude at all.

Where the −6°, −12° and −18° definitions come from

The three twilight thresholds are the definitions published by the United States Naval Observatory's Astronomical Applications Department and used identically by other national almanac offices. They are stated in terms of the geometric altitude of the centre of the Sun below the horizon, which is why they do not carry the refraction allowance that sunrise and sunset do. The underlying solar position here follows the NOAA implementation of Meeus's low-precision solar algorithm, accurate to well under a minute of time at the altitudes involved — far better than the visual judgement any of these definitions is standing in for.

Use this page for the low-light windows either side of the day. For the day itself, the sunrise and sunset calculator gives the horizon crossings and the compass bearings, and the daylight hours calculator gives the length of the day and how fast it is changing.

Astrophotographers pairing this with a session plan will want the moon phase calculator for sky brightness and the star trail length calculator for the maximum exposure a given focal length allows. Navigators taking star sights during nautical twilight need the sidereal time calculator to know which stars are up.

Landscape photographers should treat the golden hour figure as a starting point rather than a schedule. The quality of the light depends on the Sun's altitude, which this calculates exactly, but also on atmospheric clarity and on what the terrain does to your actual horizon. In a valley the Sun can disappear behind a ridge while still at +8°, ending the light half an hour before the arithmetic says it should.

Key terms

Civil twilight
The period when the Sun's centre is between the horizon and 6° below it. Many lighting and aviation rules are written against this boundary.
Nautical twilight
Between 6° and 12° below the horizon, when both the sea horizon and navigational stars are visible — the working window for a sextant.
Astronomical twilight
Between 12° and 18° below, the last stage in which scattered sunlight still measurably brightens the sky.
Golden hour
A photographic convention for the Sun between about +6° and −4°, when light is warm and shadows are long. Not an official definition.
Blue hour
The window from about −4° to −6°, when the sky is a deep saturated blue and balances well against artificial lighting.

Frequently asked questions

What is the difference between civil, nautical and astronomical twilight?

Only the depth of the Sun below the horizon: 6°, 12° and 18° respectively. Civil twilight is bright enough for outdoor work without lights, nautical twilight keeps both the sea horizon and navigational stars visible, and astronomical twilight ends when scattered sunlight stops measurably brightening the sky. All three come from the same equation with a different altitude substituted.

Why does twilight last longer in summer and at high latitudes?

Because the Sun descends at a shallower angle. Twilight length is set by how long the Sun takes to fall six degrees, and near the poles its daily path is tilted close to the horizontal, so the same six degrees takes far longer to cross. At the equator civil twilight is about 20.7 minutes; at 45°N in midsummer it is 37.5 minutes.

Why is there no astronomical night where I live in summer?

Because the Sun never sinks to 18° below the horizon. Above about 48.5° latitude that happens for a stretch around the June solstice — at 55°N the arccosine bracket comes out at −1.21, outside the range of the function, so there is no solution at all. The calculator reports zero hours of darkness rather than a time.

When exactly is the golden hour?

Here it is the window with the Sun between +6° and −4°, which is the most common convention. It is a photographic rule of thumb rather than a standard, so other sources use slightly different limits and none of them is wrong. At mid-latitudes the window is well under an hour near the equinoxes and much longer near midsummer, because the Sun is moving through those altitudes more slowly.

Are dawn and dusk twilight the same length?

On a given date, yes — both come from the same pair of hour angles, so the morning and evening intervals match to within the small change in declination across the day. They are symmetric about solar noon rather than about 12:00 on your watch, because longitude within the time zone and the equation of time both displace solar noon.

Do these times account for refraction?

The sunrise and sunset line does; the twilight thresholds do not, because the standard definitions are written in terms of the geometric altitude of the Sun's centre. That is a deliberate distinction rather than an omission: at 6° or more below the horizon, refraction shifts the apparent altitude by only a few arcminutes, against 34 arcminutes at the horizon itself.

Can there be twilight without a sunrise?

Yes, and it is normal in the weeks either side of polar night. If the Sun climbs above −6° but never reaches the horizon, you get a period of civil twilight around midday with no sunrise at all. The calculator handles this by reporting civil dawn and dusk normally while marking sunrise as not reached.

Does moonlight affect the darkness figure?

Not in this calculation — the darkness hours count only the time the Sun is below −18°. A bright Moon can raise the sky background far more than residual twilight does, so an astrophotographer needs both numbers. Check the moon phase calculator for the illuminated fraction on the same date before treating the darkness figure as usable observing time.

References

  • Rise, Set and Twilight DefinitionsUnited States Naval Observatory, Astronomical Applications Department
  • NOAA Solar Calculator — solar position equationsNational Oceanic and Atmospheric Administration, Global Monitoring Laboratory
  • Astronomical Algorithms, 2nd edition — chapters 25 and 15 — Willmann-Bell
  • Explanatory Supplement to the Astronomical Almanac, 3rd edition — twilight and atmospheric refraction — University Science Books