Skip to content

How We Calculate Moon Data

Every number on MoonPhaseToday is calculated, not copied: one lunar engine produces the phases, times, positions and calendars on every page, in the widget and in the API.

The engine

We use Astronomy Engine by Don Cross, an open-source (MIT) library whose author reports positions accurate to about ±1 arcminute, tested against NASA JPL Horizons and the US Naval Observatory’s NOVAS. Phase times are found to within about a second of the model; we display them to the minute.

Definitions we use

Time zones

Calendars and date pages use Coordinated Universal Time (UTC) so that every reader sees the same page. Live panels, city pages and the “your time” labels convert to local time, including daylight saving time.

Drawing the Moon

The Moon image is drawn from the computed illuminated fraction, the position angle of the bright limb, and the tilt of the Moon’s axis. On the homepage it is rotated to your zenith, so the drawing matches what you see when you look up. The surface texture is an original illustration.

Corrections

Found a value that disagrees with another reputable source? Tell us the date, place and both values; we publish corrections on the affected page.