Estimated using low-precision astronomical formulas (Meeus, Astronomical Algorithms), accurate to within about an hour. For precise work, use an official ephemeris.
The Moon's phase — how much of it appears lit from Earth — changes over a roughly 29.5-day cycle (the synodic month) as it orbits the Earth and the angle between the Sun, Earth, and Moon shifts. This tool shows the moon phase, illumination percentage, and moon age for any date, plus the dates of the next new moon and full moon.
The tool computes the angular separation (elongation) between the Sun and Moon using standard low-precision solar and lunar position formulas, then converts that angle into an illumination percentage and one of the 8 named phases (new moon, waxing crescent, first quarter, and so on). Moon age is the number of days since the most recent new moon, derived from the same elongation angle.