Modified Julian Day (MJD): Definition, Epoch and Examples
The Modified Julian Day (MJD) is a continuous count of days defined as the Julian Day minus 2,400,000.5. It starts at midnight Universal Time on 17 November 1858, so unlike the Julian Day it changes at midnight and modern dates need only five digits. It is widely used in space science, geodesy, timekeeping and astronomical data files.
- Type
- Continuous day count
- Definition
- MJD = JD − 2,400,000.5
- MJD 0
- 17 November 1858, 00:00 UT
- Day begins
- At midnight UT
- MJD of 1 January 2000
- 51,544
- MJD of the Unix epoch
- 40,587
Definition
The Julian Day count is convenient but awkward in practice: modern values have seven digits before the decimal point, and each day starts at noon, so ordinary dates at midnight end in .5. The Modified Julian Day fixes both problems with one subtraction. Removing 2,400,000 drops the leading digits, and removing the extra 0.5 moves the start of each day from noon to midnight.
So MJD 0.0 is the instant JD 2,400,000.5, which is 00:00 UT on 17 November 1858 in the Gregorian calendar. Every civil date then has a whole-number MJD at midnight, and the fraction gives the time of day: MJD 51,544.75 is 18:00 UT on 1 January 2000.
| From | To | Formula |
|---|---|---|
| Julian Day | Modified Julian Day | MJD = JD − 2,400,000.5 |
| Modified Julian Day | Julian Day | JD = MJD + 2,400,000.5 |
| Modified Julian Day | Unix time (seconds) | Unix = (MJD − 40,587) × 86,400 |
| Unix time (seconds) | Modified Julian Day | MJD = Unix ÷ 86,400 + 40,587 |
Where it came from
The MJD was introduced by the Smithsonian Astrophysical Observatory in 1957, when it needed a compact time argument for tracking the first artificial satellites. It proved so practical that it spread into astronomy, geodesy and international timekeeping, and it is now a standard part of the toolkit described in the Explanatory Supplement to the Astronomical Almanac.
The epoch, 17 November 1858, has no historical significance of its own. It is simply the date on which JD 2,400,000.5 falls.
Worked examples
The converter shows the MJD at 00:00 UT on the selected date, which is always a whole number. Dates before 17 November 1858 have negative MJD values.
Because each civil day has a single whole-number MJD, intervals are easy to compute. From 1 January 2000 (MJD 51,544) to 1 January 2026 (MJD 61,041) is 61,041 − 51,544 = 9,497 days. The astronomical reference epoch J2000.0, at noon Terrestrial Time on 1 January 2000, is MJD 51,544.5.
| Gregorian date | MJD | Julian Day |
|---|---|---|
| 15 October 1582 | −100,840 | 2,299,160.5 |
| 17 November 1858 | 0 | 2,400,000.5 |
| 4 October 1957 | 36,115 | 2,436,115.5 |
| 1 January 1970 | 40,587 | 2,440,587.5 |
| 1 January 2000 | 51,544 | 2,451,544.5 |
| 25 February 2023 | 60,000 | 2,460,000.5 |
| 1 January 2026 | 61,041 | 2,461,041.5 |
Who uses MJD
MJD is common wherever many timestamps have to be stored and compared precisely without the confusion of a noon day boundary.
- International timekeeping and Earth orientation: the IERS bulletins that report the difference between UT1 and UTC and the motion of the pole tabulate their values by MJD.
- Astronomical data files: the FITS standard defines keywords such as MJD-OBS for the time of an observation.
- Satellite tracking and orbit determination, where it began.
- Software libraries for astronomy, which often accept or return MJD alongside JD.
MJD and time scales
Like the Julian Day, an MJD value says nothing by itself about which clock it refers to. A precise timestamp should name its time scale, for example MJD in UTC, in TAI or in TT. The difference between them is a matter of seconds, which is irrelevant for converting calendar dates but important for pulsar timing, satellite navigation and similar work.
Because UTC occasionally contains a leap second, a UTC day can last 86,401 seconds. Software that turns a fractional MJD in UTC into hours, minutes and seconds has to decide how to treat such a day; scientific libraries such as the IAU's SOFA handle this explicitly.
How long five digits last
Part of MJD's appeal is that dates for well over a century fit in five digits. MJD 99,999 falls on 31 August 2132, and MJD 100,000 begins on 1 September 2132. Software that stores MJD as an integer field of at least 32 bits will not run into any limit for practical purposes.
| MJD | Gregorian date (00:00 UT) |
|---|---|
| 50,000 | 10 October 1995 |
| 60,000 | 25 February 2023 |
| 61,000 | 21 November 2025 |
| 100,000 | 1 September 2132 |
Other shortened Julian Day counts
MJD is the most widely used of several shortened forms of the Julian Day. The Reduced Julian Day subtracts 2,400,000 without the extra half day, so it still starts at noon, and some agencies have used truncated counts that drop further leading digits. When a dataset gives a day number without a clear label, check its documentation before converting, because an error of 0.5 days or of a whole constant is easy to make and hard to spot.
Frequently asked questions
What is the Modified Julian Day?
It is the Julian Day minus 2,400,000.5: a count of days since 00:00 UT on 17 November 1858 that starts each day at midnight.
Why subtract 2,400,000.5?
Subtracting 2,400,000 shortens modern values to five digits, and the extra 0.5 moves the start of each day from noon to midnight.
What is the MJD of 1 January 2000?
MJD 51,544 at 00:00 UT. The J2000.0 epoch, at noon Terrestrial Time that day, is MJD 51,544.5.
How do I convert Unix time to MJD?
Divide the Unix timestamp by 86,400 and add 40,587. For example, Unix time 0 is MJD 40,587.
Can MJD be negative?
Yes. Any instant before 00:00 UT on 17 November 1858 has a negative MJD.
Why does MJD start on 17 November 1858?
That is simply the date on which Julian Day 2,400,000.5 falls. The date was not chosen for any historical event; it follows from the choice of offset.
Sources and further reading
- Sean E. Urban and P. Kenneth Seidelmann (eds.), Explanatory Supplement to the Astronomical Almanac, 3rd ed. (University Science Books, 2013)
- International Earth Rotation and Reference Systems Service (IERS), Bulletins A and B
- Edward M. Reingold and Nachum Dershowitz, Calendrical Calculations (Cambridge University Press)