3tej home
← Science

What is Lunar Phase Calculator?

A Lunar Phase Calculator computes lunar phase from the inputs you provide. It applies the standard formula to the values you enter and returns the result instantly, without sending any data to a server. Free, in-browser, no signup. The tool.

Lunar Phase Calculator

29.53-day synodic cycle. Reference: Jan 6, 2000 = new moon.

Inputs

Moon Phase

-

Breakdown

Days into cycle
-
Illumination %
-
Next full moon
-
Note
-

About

Lunar synodic cycle: 29.53059 days from new moon to new moon. Phases: new (0%), waxing crescent, first quarter (50%), waxing gibbous, full (100%), waning gibbous, last quarter (50%), waning crescent. Affects tides, sleep, some animals.

Formula

phase_age = (julian_date - reference_new_moon) % 29.53059

About lunar phases

The Moon's phase is the fraction of its Earth-facing side that the Sun is lighting up at a given moment. As the Moon orbits Earth, the angle between the Sun, Earth, and Moon changes, so we see a steadily shifting slice of the lit hemisphere, from the invisible new moon through the brilliant full moon and back again.

This calculator finds the phase for any date by measuring how far along the current cycle the Moon has progressed since a known new moon. The cycle of phases has governed calendars, agriculture, fishing, and festivals for millennia: lunar and lunisolar calendars are built directly on it, and tides, some animal behavior, and cultural events such as Easter and Ramadan are all tied to the Moon's position. The phase is a geometric, predictable quantity, which is why it can be computed years ahead from a single reference point and the length of one cycle.

How it works: the formula

The phase is found from the Moon's age, the number of days since the last new moon, divided by the length of one synodic month. The fractional position then maps onto the eight named phases.

age = (date - reference_new_moon) mod 29.53059   (days)

phase_fraction = age / 29.53059      (0 = new, 0.5 = full)
illumination  ~= 0.5 x (1 - cos(2 x pi x phase_fraction))

29.53059 days = mean synodic month
reference_new_moon = a known new-moon date (e.g. 2000-01-06)
  • age = days elapsed since the most recent new moon.
  • 29.53059 = the mean synodic month, the new-moon-to-new-moon period.
  • phase_fraction = position in the cycle: 0 and 1 are new, 0.5 is full.
  • illumination = the lit fraction of the disc, peaking at 100 percent at full moon.

Worked example

Find the Moon's phase 20 days after a known new moon.

  1. Age: 20 days since the reference new moon.
  2. Phase fraction: 20 / 29.53059 = 0.677 of the way through the cycle.
  3. Identify the phase: 0.677 sits between full (0.5) and last quarter (0.75), so it is a waning gibbous.
  4. Illumination: 0.5 x (1 minus cos(2 x pi x 0.677)) = about 0.66, so roughly 66 percent lit.
  5. Days to next new moon: 29.53059 minus 20 = about 9.5 days.
Result: Twenty days into the cycle the Moon is a waning gibbous about 66 percent illuminated, with the next new moon roughly 9.5 days away. The illuminated fraction shrinks a little each night until the new moon.

The eight lunar phases

Each phase spans roughly 3.7 days of the 29.53-day cycle. Illumination values are approximate midpoints.

PhaseApprox age (days)Illuminated
New moon00 percent
Waxing crescent1 to 61 to 49 percent, growing
First quarter~7.450 percent, growing
Waxing gibbous8 to 1451 to 99 percent, growing
Full moon~14.8100 percent
Waning gibbous16 to 2199 to 51 percent, shrinking
Last quarter~22.150 percent, shrinking
Waning crescent23 to 2949 to 1 percent, shrinking

Common pitfalls

  • Confusing synodic and sidereal months. The phase cycle is 29.53 days (synodic), not the 27.32-day orbital period (sidereal). Using the wrong one drifts the phase by about two days.
  • Treating the cycle as exactly 29.5 days. The true mean is 29.53059 days, and individual cycles vary by several hours due to the Moon's elliptical orbit.
  • Ignoring time zone and time of day. A new moon occurs at a precise instant in UTC; near a phase boundary the local date can differ.
  • Equating quarter phases with half the month. First and last quarter are 50 percent illuminated, not the halfway point in time, because illumination follows a cosine, not a straight line.
  • Assuming phase predicts visibility. A thin crescent rises and sets near the Sun and can be hard to spot even though it is technically present.

Related tools

Frequently asked questions

How long is one full lunar phase cycle?

One complete cycle from new moon to the next new moon is the synodic month, averaging 29.53059 days (about 29 days, 12 hours, 44 minutes). This is longer than the 27.32-day sidereal month it takes the Moon to orbit Earth relative to the stars, because Earth also moves around the Sun, so the Moon must travel a little extra to line up with the Sun again.

What are the eight phases of the Moon in order?

In order through one cycle: new moon (0 percent lit), waxing crescent, first quarter (50 percent lit and growing), waxing gibbous, full moon (100 percent lit), waning gibbous, last quarter (50 percent lit and shrinking), and waning crescent. Waxing means the illuminated fraction is increasing toward full; waning means it is decreasing toward new.

Why is the synodic month longer than the Moon's orbit?

The Moon completes one orbit around Earth in 27.32 days (the sidereal month), but during that time Earth has moved about 27 degrees along its own orbit around the Sun. The Moon therefore has to travel for roughly two extra days to catch up and return to the same Sun-Earth-Moon alignment that defines a new moon, giving the 29.53-day synodic month.

What causes a blue moon?

Because the 29.53-day synodic month is shorter than most calendar months, a single month occasionally contains two full moons; the second is popularly called a blue moon. It happens about every 2.7 years. The name has nothing to do with color, though volcanic ash or smoke particles can rarely tint the Moon genuinely bluish.

Does the Moon's phase affect tides?

Yes. The largest spring tides occur near new and full moon, when the Sun and Moon align and their gravitational pulls add together. The smallest neap tides occur near the first and last quarter, when the Sun and Moon pull at right angles and partially cancel. The phase therefore signals the tidal range even though tides are driven by gravity, not light.