NauticTools2

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.

The sun at Kiel on 22 October 2026: from the start of astronomical morning twilight to the start of night.

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:

EventAltitude of the centre
True sunrise/sunset0°
Visible sunrise/sunset−50′
Civil twilightdown 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.

Sketch: sun altitude on the evening of 22 October 2026 at Kiel – sunset 16:05 UTC, nautical twilight from 16:42 to 17:23 UTC, night from 18:04 UTC Day Civil twilight Nautical twilight horizon and stars visible Astronomical twilight Night 0°−6°−12°−18° 16:0017:0018:00 UTC visible sunset 16:05 16:42 17:23 18:04
The evening of 22 October 2026 at Kiel: the sun sets visibly at 16:05 UTC. Between 16:42 and 17:23 UTC it is 6° to 12° below the horizon – nautical twilight, the time for star sights.

When do you need it?

Calculation

cos t = (sin h₀ − sinφ · sinδ) / (cosφ · cosδ)
  1. Target altitude

    h₀ from the table above, e.g. −50′ for visible sunset or −12° for the end of nautical twilight.

  2. 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.

  3. 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.

  4. 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

How it works in NauticTools2

  1. Choose the body

    Sun, moon or planets using the bar at the top.

  2. Enter date and place

    Enter latitude and longitude or pick a saved waypoint; the location icon also saves the place as a new waypoint.

  3. Calculate

    The times appear in chronological order – for the sun from the start of astronomical morning twilight to the start of night.

  4. 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

NauticTools2 is free and runs on Windows 10 and 11. An Android version is in preparation.

Get it from the Microsoft Store