How it works
This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.
Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.
Formulas used by this calculator
The Moon Phase Calculator works with 15 quantities and 11 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.
- Days Since New (
daysSinceNew) = date - jan62000
- Jan62000 (
jan62000) = date - daysSinceNew
- Date (
date) = daysSinceNew + jan62000
- New Moons (
newMoons) = ((6250000000/184566173161) × daysSinceNew)
- Days Into Cycle (
daysIntoCycle) = mod(daysSinceNew, 184566173161/6250000000)
- Difference (
difference) = 86400000 × date - today + mod(today, 86400000)
- Days To New Moon (
daysToNewMoon) = 184566173161/6250000000 - mod(daysSinceNew, 184566173161/6250000000)
- New Moons Rem (
newMoonsRem) = (((6250000000/184566173161) × daysSinceNew) - floor(((6250000000/184566173161) × daysSinceNew)))
3 further rearrangements of the same relations let you solve for other quantities.
Inputs
| Field | Name in formulas | Can be solved for |
| Date | date | Yes |
| Today | today | Input only |
| Jan62000 | jan62000 | Yes |
| New Moons | newMoons | Yes |
| Difference | difference | Yes |
| New Moon Day | newMoonDay | Yes |
| Next phase | next_phase | Input only |
| Full Moon Day | fullMoonDay | Input only |
| New Moons Rem | newMoonsRem | Yes |
| Days Since New | daysSinceNew | Yes |
| Display more | display_more | Input only |
| Days Into Cycle | daysIntoCycle | Yes |
| Days To New Moon | daysToNewMoon | Yes |
| Days To Full Moon | daysToFullMoon | Input only |
| Full Second Check | fullSecondCheck | Input only |
Limitation: 4 of the 15 underlying relations rely on lookup tables or helper routines that run only on the original source calculator, so this page skips them. Quantities that depend on those relations are not solved here.