Moon Phase Software

Tools & method

How lunar age is calculated from the previous new Moon

Lunar age is an elapsed duration: how much time has passed since the immediately preceding calculated new Moon. It is not the Moon's physical age, the number of a civil calendar day, or the time since moonrise at an observer's location.

The distinction is useful because the Moon does not move around its orbit at a constant angular speed. A fixed conversion from phase angle to days would be convenient, but it would replace an event-based answer with a mean-cycle estimate. This site searches for the real model event that brackets the selected instant.

Search first, subtract second

The calculation begins just before the requested UTC instant and searches backward for phase longitude zero. The result must be strictly earlier than the input. Once that previous new-Moon instant is found, its timestamp is subtracted from the requested timestamp and the duration is expressed in 24-hour days.

A one-millisecond offset at the search boundary prevents an input that exactly matches a principal event from being returned as its own previous event. The same strict ordering rule is used for adjacent phase results: previous is earlier, next is later, and the selected instant stays between them.

Why phase angle is not a clock

The documented mean synodic month is 29.530588853 days, but individual lunations vary. Orbital speed changes and the Sun-Moon geometry evolves, so dividing a phase angle by 360 and multiplying by the mean month cannot reproduce the searched elapsed duration consistently. That shortcut is not used for the displayed age.

Time-zone handling occurs before the search. A submitted wall-clock time is converted to one UTC instant using its named zone. Changing only the display zone leaves lunar age unchanged; changing the actual instant changes both the searched event relationship and the elapsed duration.

Worked lunar-age example

At 26 August 2026, 12:00 UTC, the production search locates the preceding new Moon and measures the interval:

Previous new Moon
12 August 2026, 17:37:11 UTC
Selected instant
26 August 2026, 12:00:00 UTC
Elapsed lunar age
13.766 days
Phase direction
waxing

The elapsed value comes from timestamp subtraction, not from multiplying the 160.5012-degree phase angle by a constant. The next new Moon is a separate forward search and is not needed to define the age at this instant.

Calculation limits

Use the working calculator

Open the Moon Phase Calculator to calculate another exact instant with the same production logic. The calculator accepts the relevant input and keeps result state on its single canonical tool page.