Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Sun & moon calculator

Sunrise, sunset, twilight, golden hour, moonrise, moonset and Moon phase for any place and date, checked against the US Naval Observatory.

How to use

  1. Choose a city, or Other place to type a latitude and longitude (south and west are negative) and pick its time zone.
  2. Choose a date. Sunrise, sunset, twilight, moonrise, moonset and the Moon's phase for that day appear at once, in that place's local time.
  3. The next four main Moon phases are listed under the Moon picture.

To find your latitude and longitude, long-press your home in a map app; it shows two numbers such as 40.7128, -74.0060.

Keyboard and touch

Tab / Shift+TabMove between the boxes
Arrow keys in the place listStep through cities; results update at once
Arrow keys in the date boxChange the day, month or year

Tips

  • Civil twilight (Sun up to 6° below the horizon) is bright enough to work outside without lights. Nautical (6–12°) is when the horizon fades at sea. After astronomical twilight (12–18°) the sky is fully dark for stargazing.
  • Photographers' golden hour here means the Sun is less than 6° above the horizon.
  • The Moon rises about 50 minutes later each day, so some days have no moonrise or no moonset at all. That is normal.
  • The Moon picture shows it as seen from north of the equator (waxing = lit on the right). From the southern half of the world it looks mirrored, lit on the left.
  • Inside the Arctic and Antarctic circles the Sun can stay up or down all day; the calculator says so instead of showing a time.
  • Hills, buildings and air temperature can shift what you see by a few minutes. The times are for a flat, clear horizon.

About this tool

The Sun's position comes from the NOAA solar equations, and the Moon's from the main terms of the lunar theory in Jean Meeus, Astronomical Algorithms. Sunrise and sunset are when the top edge of the Sun touches a flat horizon, allowing for the bending of light by the air (the centre is 0.833° below the horizon); the Moon also allows for its size and its closeness to Earth (parallax).

We checked the results against the US Naval Observatory: all 50 Moon phases of 2026 agree within about 3 minutes, and sunrise, sunset, twilight, moonrise and moonset for New York, London, Sydney and Tromsø (in the polar night) agree to the minute. Accuracy is best between about 1900 and 2100. Your browser's time zone database converts the times to local time, including summer time. Nothing is sent anywhere; your browser is not asked for your location.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product