Julian Day Number Calculator

Convert a calendar date to its Julian Day Number, JD and MJD.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Julian Day Number, JD and MJD

Astronomers and software use the Julian Day count to turn calendar dates into a single running number, so the days between any two events is just a subtraction. This tool converts a Gregorian calendar date (and an optional UTC time) into its Julian Day Number (JDN), the full Julian Date (JD) with a fractional day, and the Modified Julian Date (MJD).

How it works

The JDN is computed with the standard integer algorithm. For a date with month m and year y:

a = ⌊(14 − m) / 12⌋
JDN = day + ⌊(153·(m + 12a − 3) + 2) / 5⌋
        + 365y' + ⌊y'/4⌋ − ⌊y'/100⌋ + ⌊y'/400⌋ − 32045

where y' = y + 4800 − a. This counts whole days from noon UTC on 1 January 4713 BC in the proleptic Julian calendar. The fractional day is measured from noon — (hour − 12)/24 + minute/1440 — so JD increments at midday. The Modified Julian Date shifts the boundary to midnight: MJD = JD − 2,400,000.5.

QuantityDefinition
JDNwhole days since noon 1 Jan 4713 BC
JDJDN plus the fraction of a day since noon UTC
MJDJD − 2,400,000.5 (day starts at midnight)

Example

For 2000-01-01 at 12:00 UTC, the JDN is 2451545, the JD is 2451545.0 (noon means zero fraction), and the MJD is 2451545.0 − 2400000.5 = 51544.5. Subtract two JDNs — say this date and 2000-01-31 — to get exactly 30 days.

All of it is computed in your browser.

Ad placeholder (rectangle)