You can work out the approximate phase of the Moon on a birthday, a historical date or a night next year without an almanac. The method behind our Moon phase calculator counts days from a known new moon and turns them into a position in the lunar cycle. This article walks through that calculation, the reference date it starts from and the table that converts a number of days into a phase name.
To calculate the Moon phase for a date, count the days since a known new moon — the calculator uses 6 January 2000 — divide by the synodic month of 29.53058770576 days to count elapsed new moons, then take the remainder to get the lunar day. Match that lunar day to a phase band: new moon, waxing crescent, first quarter, waxing gibbous, full moon, waning gibbous, last quarter or waning crescent.
What formula converts a date into a Moon phase?
Because the movement of the Sun, Earth and Moon can be tracked, we can approximate how many days the Moon is along its cycle. We only need a starting point: astronomers use the new moon. Count the days from that reference new moon to your chosen date, then divide by the length of one synodic month:
Here is the number of days from a known date with a new moon, and is the number of days in one synodic month, 29.53058770576. The first expression counts how many new moons have already occurred. The modulo operation keeps only the remainder of that division, and multiplying by gives how many lunar days have passed since the last new moon before your date. If the chosen date itself has a new moon, this value is less than 1.
Which lunar-day range belongs to each phase?
Once you have the lunar day, read the phase straight from the table below. The bands are taken from the calculator's own phase lookup.
| Moon phase | Lunar day |
|---|---|
| New Moon | 0 < lunar day <= 1 |
| Waxing Crescent | 1 < lunar day <= 6.382647 |
| First Quarter | 6.382647 < lunar day <= 8.382647 |
| Waxing Gibbous | 8.382647 < lunar day <= 13.765294 |
| Full Moon | 13.765294 < lunar day <= 15.765294 |
| Waning Gibbous | 15.765294 < lunar day <= 21.147941 |
| Last Quarter | 21.147941 < lunar day <= 23.147941 |
| Waning Crescent | 23.147941 < lunar day <= 28.530588 |
| New Moon | 28.530588 < lunar day <= 29.530588 |
Worked example: Vincent van Gogh's birthday in 2033
Take 30 March 2033. From 6 January 2000, that is 12,137 days. Substituting into the first formula:
That means 410 new moons and approximately 99.5771% of a 29.530588-day lunar cycle separate the two dates. Multiplying 29.53058770576 days by 0.997771 gives approximately 29.46 days after the last new moon. In the table, 29.46 falls in the final band (28.530588 to 29.530588), so the Moon phase on that date is a new moon. The calculator also finds the next full moon after it: 13 April 2033.
Why is 6 January 2000 the starting date?
Not all new moons are equally convenient as a reference. The Moon was new on 13 January 2021 at 1:02 PM, which works, but on 6 January 2000 it was new at around 12:24 PM — much closer to noon. Starting from a new moon near midday gives more precise calculations, which is why the calculator counts from that date.
How do I use the Moon phase calculator?
Select the desired date from the calendar or enter it in the format shown in the date field, and the result appears immediately below it. Use the next-phase selector to find the next new moon or full moon from your chosen date. That is handy for stargazing or for an upcoming meteor shower, when moonshine may wash out faint stars, and for timing a telescope view of a full moon. Tick Display more information to see the number of new moons elapsed since 6 January 2000 and how many lunar days into the cycle the date falls.
FAQ
Does the calculator give the date of the next full moon?
Yes. Choose the full moon option in the next-phase selector. For the 30 March 2033 example, it returns 13 April 2033.
What does the Display more information checkbox add?
It reveals two intermediate values: the count of new moons elapsed since 6 January 2000, and the number of lunar days into the cycle for the selected date.
Can I check several dates in one session?
Yes. Each date you select or type updates the result instantly, so comparing a run of dates takes only a few clicks.
References
- Omni Calculator, Moon phase calculator: reference new moon date, synodic-month constant, phase table and worked example.
- Standard astronomical definitions of the synodic month and the new moon as the start of a lunar cycle.
- Standard date arithmetic for counting the days between two calendar dates.