Julian Date Calculator
Convert a calendar date into its Julian Day Number.
What the Julian Day Number is
The Julian Day Number (JDN) is a continuous count of days starting at noon on 1 January 4713 BC in the proleptic Julian calendar. Every civil date since then maps to exactly one integer, so 1 January 2026 converts to 2,461,042. Astronomers adopted the system because calendar arithmetic — months of 28 to 31 days, leap years, century rules — disappears once every date is a plain number.
How the conversion works
This is the standard Gregorian-to-JDN algorithm published by Fliegel and Van Flandern. It works by temporarily shifting the year so March becomes month zero — that is the purpose of the adjustment term −3 in the month and the ±4800 shift in the year — which lets a single expression handle the uneven month lengths. The three division terms add one day per leap year, remove one per century, and add one back per 400 years, reproducing the Gregorian leap-year rule exactly.
The count is integer-only: it gives the day number for the whole day, with no fractional part for hours or minutes. Professional astronomical work uses a fractional Julian Date, where the day starts at noon UTC and the fraction carries the time of day; this calculator stays on the integer calendar scale, which is what historians, genealogists and software engineers usually need.
Worked example with the default date
Take the default date 1 January 2026. Placing January in the shifted calendar sets the internal month to 10 of the preceding shifted year, so the month term contributes 306 days, the year term contributes 365 × 6905 plus its leap corrections, and the constant −32045 anchors the epoch at 4713 BC. The result the calculator prints is 2,461,042. A day later, 2 January 2026, the number is 2,461,043: consecutive dates always differ by exactly 1, and 31 December 2026 lands on 2,461,407, which is 365 days after the 1 January value — 2026 is not a leap year.
Reference dates and their Julian Day Numbers
| Gregorian date | Julian Day Number | Note |
|---|---|---|
| 1 January 2000 | 2,451,545 | Millennium rollover date |
| 1 January 2026 | 2,461,042 | This tool’s default input |
| 31 December 2026 | 2,461,407 | 365 days after the default |
| 1 January 2100 | 2,488,070 | Next century with no leap day in February |
| 29 February 2028 | 2,461,831 | The first leap day after 2026 |
The gaps verify themselves: subtracting 2,451,545 from 2,461,042 gives 9,497 days between 1 January 2000 and 1 January 2026, which is 26 × 365 = 9,490 days plus the seven leap days of 2000, 2004, 2008, 2012, 2016, 2020 and 2024. The arithmetic works because every calendar irregularity is already baked into each JDN; the only operation you ever need is subtraction.
Why the epoch sits at 4713 BC
Joseph Scaliger chose the starting point in 1583 by multiplying three calendar cycles together: the 28-year solar cycle, the 19-year Metonic lunar cycle and the 15-year Roman indiction cycle. Their combined length is 28 × 19 × 15 = 7,980 years, and he set year zero of the count so that all three cycles were simultaneously at their starting position on 1 January 4713 BC. The system therefore covers any date from that epoch to 7,980 years forward without repeating — long enough for every recorded human history and most astronomical predictions.
Julian Day Number is not the Julian calendar
The name honours Scaliger’s father, Julius Caesar Scaliger, not the Julian calendar introduced by Julius Caesar. The two are unrelated: this tool takes a Gregorian calendar date as input, and the Julian calendar is only involved historically as the reference frame for the epoch. A date expressed in the old Julian calendar converts to a different JDN than the same-numbered Gregorian date, which matters for pre-1582 historical research.
Where Julian Day Numbers are used
- Astronomy: variable-star observations, eclipse predictions and spacecraft ephemerides are timestamped in Julian Dates because day counts avoid calendar edge cases
- Software: database engines and spreadsheets use an internal day count with the same subtract-two-numbers logic, often with a different epoch offset
- History and genealogy: converting between Gregorian, Julian and other calendars is easiest through an intermediate JDN
- Version and backup schemes: some systems name files by a rotating day number computed from the JDN modulo the cycle length
Common mistakes when using the converter
- Entering a date in the Julian (Old Style) calendar — the tool expects Gregorian dates, and Old Style dates are typically 10 to 13 days behind in the historical period
- Confusing the Julian Date with the modified Julian Date (MJD), which subtracts 2,400,000.5 and starts the day at midnight rather than noon
- Expecting a fractional result — this calculator returns the integer day number for the date, not a time-of-day fraction
- Forgetting that noon, not midnight, is the boundary of the astronomical Julian Date, so JD 2,461,042.0 begins at 12:00 UTC on 1 January 2026
If your goal is simply the day-of-year — day 1 to day 365 — the Day of Year Calculator gives that directly, and the Date Difference Calculator computes day spans between two calendar dates without needing the JDN scale at all.
Frequently asked questions
What is the Julian Day Number for 1 January 2026?
2,461,042. Each following day adds exactly 1, so 31 December 2026 is 2,461,407, a span of 365 days because 2026 is not a leap year.
How many days are between two dates using Julian Day Numbers?
Subtract the two JDNs. Between 1 January 2000 (JDN 2,451,545) and 1 January 2026 (JDN 2,461,042) the difference is 9,497 days, with all leap years already accounted for in the numbers.
Why does the count start in 4713 BC?
Scaliger multiplied the 28-year solar cycle, the 19-year Metonic cycle and the 15-year indiction cycle — 7,980 years in total — and anchored the epoch where all three cycles reset together, which falls on 1 January 4713 BC in the Julian calendar.
Is the Julian Day Number the same as the Julian calendar?
No. The name comes from Joseph Scaliger’s father, Julius Caesar Scaliger. The tool converts Gregorian dates; the Julian calendar is unrelated except as the frame of the epoch.
What is the JDN for 29 February 2028?
2,461,831. It is 789 days after the 1 January 2026 default, covering 2026 (365 days), 2027 (365 days) and the 59 days of 2028 up to the leap day.
Does the result include the time of day?
No. This calculator returns the integer Julian Day Number for the whole day. A fractional Julian Date with the time of day exists in astronomy, with days starting at noon UTC.
What is the difference between JDN and Modified Julian Date?
The Modified Julian Date equals the Julian Date minus 2,400,000.5, shifting the epoch to 17 November 1858 and starting the day at midnight instead of noon. JDN 2,461,042 corresponds to MJD 60,041.5.
Why do astronomers prefer Julian Day Numbers?
Subtracting two integers gives the exact day span between any two events, with no month lengths, leap-year rules or calendar reforms to handle. Observations logged as JDNs stay comparable across centuries.
Can I convert dates before 1582?
Yes, the formula extends across the whole range. Dates before the Gregorian reform are treated as proleptic Gregorian; if your source date is Old Style Julian, shift it first or the JDN will be off by about 10 days for the 1500s.
Method and sources
- Gregorian → JDN conversion formula (Fliegel & Van Flandern).