How to calculate
Estimate the geocentric positions of the Sun and Moon from orbital elements and lunar perturbations. Use their relative longitude to identify the phase, the Sun–Moon–Earth angle for illumination, and the next quarter crossing for the next primary phase.
Worked example
Use Date in UTC 2024-04-23 · Time in UTC (optional) 23:00. The result is Full Moon.
Input and result notes
Times use UTC. The phase label represents the nearest eighth of the lunar cycle. Primary phase times are approximate, and date inputs cover 1900 through 2100.
US Naval Observatory definitions of Moon phases and illumination
Schlyter orbital elements and perturbation equations