Celestial navigation
Rising and setting – when does the sun set, when does nautical twilight begin?
NauticTools2 calculates the rising and setting times of the sun, the moon and the planets Venus, Mars, Jupiter and Saturn for any place and date. For the sun you also get meridian passage and all three kinds of twilight – civil, nautical and astronomical. All times in UTC.
- Sun · moon · planets
- True and visible rising/setting
- Meridian passage
- Civil twilight
- Nautical twilight
- Astronomical twilight
What is calculated?
In each case the tool looks for the moment the centre of the body reaches a certain altitude above the rational horizon. Which altitude depends on the event:
| Event | Altitude of the centre |
|---|---|
| True sunrise/sunset | 0° |
| Visible sunrise/sunset | −50′ |
| Civil twilight | down to −6° |
| Nautical twilight | −6° to −12° |
| Astronomical twilight | −12° to −18° |
| Moonrise/moonset | +8′ |
| Planets | −34′ |
The sun's −50′ consist of refraction at the horizon (about 34′) and the sun's semi-diameter (about 16′). For the moon, its large horizontal parallax more than cancels the refraction – hence +8′. Planets are practically point sources, so only refraction counts. Meridian passage (shown as “Transit” in the app) is the crossing of the meridian, the highest point in the sky.
The dachshund rule – an old sailors' rule of thumb for true sunrise and sunset:
The sun stands just high enough above the horizon for a dachshund to walk comfortably underneath it without bumping its head. That is surprisingly accurate: at true sunset the sun's centre is at 0° by calculation, but refraction lifts the sun by about 34′. Its lower limb is then about 18′ above the horizon – a good third of the sun's diameter, about the height of a dachshund. The sun only sets visibly once its upper limb has disappeared too.
When do you need it?
- Planning star sights: Nautical twilight sets the window in which horizon and stars are both visible. Then pick suitable stars with the star chart.
- Preparing the noon sight: The sun's meridian passage is the moment for the noon latitude.
- Navigation lights: Navigation lights are shown from sunset to sunrise – here you get the times for any place.
- Planning a night passage: When does the moon rise and set? A bright moon keeps the horizon and the fairway visible at night.
Calculation
Target altitude
h₀ from the table above, e.g. −50′ for visible sunset or −12° for the end of nautical twilight.
Local hour angle
From latitude φ and declination δ the formula gives the local hour angle t at which the body has this altitude – west for setting, east for rising.
Time
From t and the longitude follows the Greenwich hour angle, and from the ephemerides the corresponding time in UTC. Because declination and hour angle change during the day – especially for the moon – NauticTools2 uses the values for the moment in question.
Special cases
If the fraction lies outside −1 to +1, the body does not reach that altitude on that day: it is always visible (midnight sun) or not visible (polar night).
Examples
Kiel (54° 20′ N, 010° 08′ E) on 22 October 2026 – when is evening nautical twilight?
Visible sunset 16:05 UTC (true sunset 15:59 UTC)
Nautical twilight 16:42 – 17:23 UTC
Night from 18:04 UTC · meridian passage 11:03 UTC
Textbook example: 22 October 2026 off Martinique at 14° 30.0′ N, 061° 20.0′ W – sunrise and sunset?
Nautical twilight 09:11 UTC and 22:28 UTC
Visible sunrise 09:57 UTC · meridian passage 15:49 UTC · visible sunset 21:41 UTC
True sunrise 10:01 UTC · true sunset 21:37 UTC
Things to watch out for
- Times in UTC: Add the zone time for ship's time – at Kiel in October (summer time) two hours. The time systems tool does the conversion.
- High latitudes: In summer the sun may not reach the target altitude at all – then “always visible” or “not visible” appears instead of a time. In northern European waters this mainly affects astronomical twilight in June.
- Moon: It rises on average about 50 minutes later each day, so on some calendar days there is no moonrise or no moonset.
- Height of eye: The times apply to the horizon at sea level. From a high vantage point you see the sun a little longer.
How it works in NauticTools2
Choose the body
Sun, moon or planets using the bar at the top.
Enter date and place
Enter latitude and longitude or pick a saved waypoint; the location icon also saves the place as a new waypoint.
Calculate
The times appear in chronological order – for the sun from the start of astronomical morning twilight to the start of night.
Save and print
Save inputs under a name and load them later, print the result as a record or save it as a PDF.
Frequently asked questions
What is the difference between true and visible sunset?
At true sunset the sun's centre reaches the horizon by calculation. The sun is still visible then, because refraction lifts it and its upper limb is higher. Visible sunset is at −50′ – a few minutes later in mid-latitudes.
When is nautical twilight?
When the sun is 6° to 12° below the horizon. The bright stars are already visible and the horizon can still be seen – the classic time for star sights.
Why does the moon sometimes not rise on a given day?
Because it is about 50 minutes later every day. Roughly once a month the moonrise slips past midnight into the next day.
Related tools
- Star chart – which navigational stars are up at twilight
- Time systems on board – convert UTC, zone time and local time
- Meridian diagram – meridian altitude and circumpolar bodies explained
NauticTools2 is free and runs on Windows 10 and 11. An Android version is in preparation.
Get it from the Microsoft Store