Sun and Moon

Sunrise, Sunset and Moon Calculator

Sunrise, sunset, golden hour and twilight, the path of the Sun, moon phase and moonrise, eclipses as seen from your place, meteor showers, a Hindu panchang with Rahu kaal and the Hijri date, for any place on Earth and any date from 1800 to 2199. Everything is worked out in your browser: the places and dates you choose are not sent anywhere.

  • Daylight
  • Golden hour
  • Blue hour
  • Twilight
  • Night
  • Moon up

Sun and Moon

The day, hour by hour

    Moon

    Calendars

    Shortcuts, outside a text box: [ and ] go a day back or forward, T returns to today, 1 to 5 open the five views and ? opens the help. On the dial or the chart the arrow keys move 10 minutes and Page Up and Page Down an hour. Esc closes a window.

    How to Use Sun and Moon: Step-by-Step

    1

    Choose your place

    Click the place at the top and pick one of about 200 cities, or type a name to search. For anywhere else, open Enter coordinates and time zone and type the latitude and longitude; the time zone of the nearest listed city is suggested and you can change it.

    2

    Pick a date

    Use the arrows beside the date, the date box or Today. Any day from 1800 to 2199 works, so you can look up the day you were born or a day in history. The keys [ and ] step a day back or forward.

    3

    Read the day on the dial

    Today shows the whole day as a ring: night, twilight, blue hour, golden hour and daylight in their colours, with the Moon's time above the horizon inside. Drag the hand to any moment, and the list beside it gives every event of the day in order.

    4

    Plan around the Sun

    The Sun view charts the height of the Sun and Moon through the day, shows where on the horizon they rise and set, works out the length of a shadow, and lists the next 30 days, which you can download or print. The year in daylight shows every day at once.

    5

    Follow the Moon

    The Moon view draws the Moon as it looks from your place, with how much of it is lit, its age, rise and set, distance and the next phases, a moon calendar for any month and every full moon of the year with its traditional name.

    6

    Calendars and sky events

    Calendars gives the panchang for sunrise at your place, the muhurtas and Rahu kaal, and the Hijri date. Sky events lists the eclipses you can see from where you are, meteor showers, equinoxes, solstices and supermoons; add any of them to your own calendar.

    Why Choose Sun and Moon?

    📍 Your exact place

    Times are worked out for the coordinates you choose, not read from a table for the nearest large city. Across a big city sunrise moves by a minute or two, and far from the equator by much more.

    📷 Golden hour and blue hour

    Photographers see at a glance when the warm, low light starts and ends, morning and evening, for every day of the next month, with the direction the Sun comes from.

    🌑 Eclipses from where you are

    Each coming eclipse is shown as it looks from your place: whether you can see it, how much of the Sun is covered or how deep the Moon goes into the Earth's shadow, and when it starts, peaks and ends in your time.

    🪔 Panchang for your sunrise

    Tithi, nakshatra, yoga and karana are given for sunrise at your place, each with the moment it ends, together with the Hindu month, the Samvat years, Rahu kaal, Yamaganda, Gulika kaal and the muhurtas.

    🏛️ Any day from 1800 to 2199

    The same formulas work for the past and the future, so you can see the Moon on the night you were born, the sunrise on a wedding day or the phases of a year that has not started yet.

    🔒 Worked out in your browser

    No account and no upload: every time and date is calculated by your own browser, and the places and dates you choose are not sent anywhere. Once the page has loaded it keeps working without a connection.

    The Sun, the Moon and the Calendars

    🌅 Twilight, golden and blue hour

    Sunrise and sunset are the moments the top edge of the Sun meets a flat horizon, allowing for the bending of light by the air. Civil twilight lasts until the Sun is 6 degrees down, nautical until 12 and astronomical until 18, when the sky is fully dark. Golden hour runs from 6 degrees up to 4 degrees down; blue hour from 4 to 6 degrees down.

    🌕 Phases, supermoons and eclipses

    A lunar month from new moon to new moon averages 29.53 days. A full moon closer than 360,000 km is called a supermoon. Eclipses happen only when a new or full moon falls near the points where the Moon's path crosses the Sun's, which is why there are usually four to seven a year.

    🪔 Panchang and the Hijri calendar

    The panchang counts days by the Moon: a tithi is each 12 degrees the Moon gains on the Sun, a nakshatra each 13 degrees 20 minutes of its path. The Islamic calendar starts each month with the new crescent; the Umm al-Qura calendar of Saudi Arabia fixes the months in advance, while many communities wait for a sighting.

    Frequently Asked Questions

    Is Sun and Moon free, and is my place sent anywhere?

    It is free, with no registration and no limit. Like every page on ZeroDataUpload, it is supported by advertising. Every time and date is worked out by your browser, and the places and dates you choose are not sent to a server. Your place, your recent places and your settings are kept in this browser's storage on this device so the page opens where you left it; Forget saved place and settings, under Settings, removes them.

    How accurate are the sunrise and sunset times?

    They are worked out with standard astronomy formulas and were checked against a professional ephemeris from NASA's Jet Propulsion Laboratory for 45 places from the equator to the Arctic, from 1901 to 2049: sunrise and sunset agree within a few seconds, moonrise and moonset within a minute, moon phases and eclipses within about a minute. They are for a flat horizon at sea level with the usual bending of light by the air, so hills, buildings and unusual weather near the horizon can still move what you see by a few minutes.

    What are golden hour and blue hour?

    Golden hour is the time when the Sun is between 6 degrees above and 4 degrees below the horizon: the light is warm and soft and shadows are long. Blue hour follows at dusk and comes before golden hour at dawn, while the Sun is 4 to 6 degrees below the horizon and the sky turns deep blue. Both depend on how fast the Sun crosses the horizon, so they last longer far from the equator and in winter.

    Why does a weather app show a slightly different sunrise?

    Most apps round to the minute and many use a city's centre for every place in it. Sun and Moon works for the exact coordinates you choose, at sea level, and rounds only at the end. Across a big city sunrise can change by a minute or two, and a place high above its surroundings sees the Sun a little earlier.

    How is the panchang worked out?

    For sunrise at your place, with the Lahiri ayanamsa as the Indian Astronomical Ephemeris defines it: the tithi, nakshatra, yoga and karana in force at sunrise and when each one ends, the Hindu month in the amanta or purnimanta system, the Vikram and Shaka years, Rahu kaal, Yamaganda, Gulika kaal and the muhurtas. It is for reference; festival days also depend on local custom, so follow your temple calendar.

    Which Islamic calendar does it use?

    The Umm al-Qura calendar of Saudi Arabia, from its published tables for 1924 to 2077; for other years the browser's own calculation is used. The Islamic day begins at sunset, which the page shows. Where months begin with a local sighting of the new crescent, dates can be a day later, so follow your community's announcement for fasts and festivals.

    Can I see the next eclipse from where I live?

    Open Sky events: every eclipse of the next six years is listed with whether it is visible from your place, how much of the Sun is covered or how deep the Moon goes into the Earth's shadow, and the times in your local time. Never look at the Sun without certified eclipse glasses, even when most of it is covered.

    Choose a place

    Enter coordinates and time zone

    Latitude is north (plus) or south (minus) of the equator, longitude east (plus) or west (minus) of Greenwich. A map app shows both for any spot: press and hold the place.

    Settings

    Clock
    Distances
    Hindu month names

    Amanta is used in Maharashtra, Gujarat and the south. Purnimanta is used in most of north India.

    Saved data

    Your place, recent places and these settings are kept in this browser's storage on this device, and nothing is uploaded. Forgetting them leaves the rest of the site alone.

    Link to this place and date

    This browser did not let the page copy the link. Select it below and copy it yourself. It opens this place, date and view; it carries the coordinates and the name of the place.

    How it works

    Everything is worked out in this browser with standard astronomy formulas (Jean Meeus, Astronomical Algorithms). They were checked against a professional ephemeris from NASA's Jet Propulsion Laboratory: sunrise and sunset agree within a few seconds, moonrise and moonset within a minute, moon phases and eclipses within about a minute. Hills, buildings and unusual air near the horizon can still move what you see by a few minutes.

    The colours of the day

    Places and time zones

    Times are shown in the local time of the chosen place, including daylight saving time, using your browser's time zone data. For coordinates you type in, the time zone of the nearest listed city is suggested and you can change it.

    Calendars

    The panchang uses the Lahiri ayanamsa as the Indian Astronomical Ephemeris defines it, and the tithi, nakshatra, yoga and karana in force at sunrise. The Hijri date follows the Umm al-Qura calendar of Saudi Arabia from its published tables for 1924 to 2077, and the browser's own calculation for other years. Both are for reference; follow your community's announcement for fasts and festivals.

    Keyboard

    Where your data is kept

    Your place, recent places and settings are kept in this browser's storage on this device so the page opens where you left it; nothing you choose is uploaded. Forget saved place and settings, under Settings, removes them and leaves the rest of the site alone. A link you copy carries the place's coordinates and name, so share it only where you mean to.