Skip to content
2xKit

Moon Phase Calculations Explained: How They're Computed From a Reference Date

How software calculates the moon's current phase using the lunar cycle length and a known reference new moon date.

Quick answer

Moon phases are calculated by measuring how many days have passed since a known reference new moon, dividing that count by the average lunar cycle length of about 29.53 days, and using the remainder to determine where in the cycle (new, waxing, full, waning) the moon currently sits. The Moon Phase Calculator runs this calculation for any date, past or future.

Unlike the solar calendar, which is based on Earth's orbit around the sun, the moon's phases follow their own cycle, the time it takes the moon to orbit Earth relative to the sun, known as the synodic month. That cycle averages about 29.53 days, and moon phase calculators use it, combined with a single known reference date, to compute the moon's phase on any other date without needing live astronomical observation.

The reference-date method

The core technique is straightforward: start from a precisely known new moon date (astronomers have recorded these very accurately), count the number of days between that reference date and the target date, and divide by 29.53 (the average synodic month length). The remainder of that division, a number between 0 and 29.53, tells you exactly where in the lunar cycle the target date falls, a remainder near 0 means a new moon, a remainder near 14.77 (half the cycle) means a full moon, and everything in between maps to a specific waxing or waning phase.

This is essentially the same reference-and-remainder approach used in day-of-week calculations for any date, just applied to a roughly 29.5-day cycle instead of a 7-day one. The Moon Phase Calculator performs exactly this calculation, so you can check the moon's phase for any date, including dates well in the past or future, without needing an ephemeris table.

Why the cycle length is an average, not a fixed number

The 29.53-day figure is an average, the moon's actual orbit is slightly elliptical and its speed varies, so any individual synodic month can run a few hours shorter or longer than the average. For calculating the general phase of the moon on a given day, this small variation doesn't meaningfully change the answer, but for pinpointing the exact hour of a new or full moon, astronomers use a much more precise orbital model rather than the simplified average-cycle approach used for everyday moon phase lookups.

What the eight named phases represent

The cycle is conventionally divided into eight named phases (new moon, waxing crescent, first quarter, waxing gibbous, full moon, waning gibbous, last quarter, waning crescent), each representing roughly a one-eighth slice of the full 29.53-day cycle. "Waxing" means the illuminated portion is growing (moving toward full), while "waning" means it's shrinking (moving toward new), a distinction based purely on which half of the cycle the remainder from the reference-date calculation falls into.

Frequently asked questions