Julian Date & MJD Converter
Convert a calendar date and Universal Time to the Julian Date (JD) and Modified Julian Date (MJD) used for variable-star timings and ephemerides, with the day of the week, and convert a Julian Date back to a calendar date and clock time, using the Julian calendar before 1582 October 15.
JD = ⌊365.25 (Y + 4716)⌋ + ⌊30.6001 (M + 1)⌋ + D + B − 1524.5 ; B = 2 − A + ⌊A / 4⌋ (Gregorian), 0 (Julian) ; MJD = JD − 2400000.5 ; weekday = (JD + 1.5) mod 7Interactive Calculation Workbench
Derivation & Physical Background
The Julian Date counts days and fractions of a day continuously from noon UT on −4712 January 1 in the Julian calendar, so intervals between observations are simple subtractions. The calculator uses Meeus's algorithm (Astronomical Algorithms, ch. 7): January and February count as months 13 and 14 of the previous year, A is the century number, and the Gregorian correction B = 2 − A + ⌊A/4⌋ is applied to dates from 1582 October 15 onward; earlier dates are taken as Julian-calendar dates (B = 0), and 1582 October 5–14, which never existed, is rejected. The Modified Julian Date subtracts 2400000.5, so it starts at midnight rather than noon.
The reverse conversion follows Meeus's method on p. 63: it splits JD + 0.5 into a whole day number Z and a fraction F, applies the Gregorian correction when Z ≥ 2299161, and recovers year, month and day with fraction, which the calculator also shows as a UT clock time. Years are astronomical, so year 0 is 1 BC and −584 is 585 BC. The day of the week is (JD + 1.5) mod 7 counted from Sunday, evaluated at the moment you enter.
Assumptions, Approximations & Validity Limits
- Times are Universal Time; the calculator does not convert to Terrestrial or Barycentric Dynamical Time (TT − UT is about 69 s in the 2020s, and heliocentric or barycentric corrections can reach ±8.3 minutes).
- The reverse conversion is valid for JD ≥ 0, and the forward conversion for years from −4712 onward.
- Results are shown to five decimals of a day, about 0.9 s.
Related Reference Guides & Benchmark Objects
Julian Date (JD), MJD & Barycentric Time
How astronomers use Julian Date (JD), Modified Julian Date (MJD), and Barycentric Julian Date (BJD_TDB) to eliminate light-travel-time timing errors.
Astronomical Epochs (J2000, J2016) & Precession
Why celestial coordinates specify a reference epoch (J2000.0 vs Gaia J2016.0), how axial precession shifts RA/Dec over time, and how ICRS anchors astrometry.
Algol (Beta Persei Eclipsing Binary)
Coordinates, Hipparcos distance (90 ly), 2.8673-day eclipse cycle, Algol Paradox mass transfer, and visual timing guide for Algol.
Scientific Standards & References
- Meeus, Astronomical Algorithms (2nd ed.) (2nd edition, 1998): Meeus, J. 1998, Astronomical Algorithms, 2nd ed. (Richmond, VA: Willmann-Bell) — Willmann-Bell