Interactive Observational Astronomy Calculator

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.

Governing Formula: 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 7

Interactive Calculation Workbench

Julian Date (JD)
2451545.00000
Modified Julian Date (MJD = JD − 2400000.5)
51544.50000
Day of the week
Saturday
Calendar of the entered date
Gregorian
Calendar date of the JD entered
2000 January 1.50000 (12:00:00 UT, Gregorian calendar)

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.

Worked Benchmark Example: Meeus's Example 7.a, the launch of Sputnik 1 on 1957 October 4.81 UT (19:26:24), gives JD 2436116.31 (MJD 36115.81), a Friday; Example 7.b, 333 January 27 at 12h in the Julian calendar, gives JD 1842713.0; and Example 7.c converts JD 2436116.31 back to 1957 October 4.81. Entering JD 1507900.13 returns −584 May 28.63 in the Julian calendar, as Meeus lists, and Example 7.e, 1954 June 30 (JD 2434923.5), is a Wednesday.

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.
Reference Guide

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.

Semidetached eclipsing binary prototype in a hierarchical triple system

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