What this calculator does
This tool converts a calendar date between the Julian calendar (introduced 45 BC, every year divisible by 4 is a leap year) and the Gregorian calendar (the 1582 reform that drops three leap days every 400 years). Enter a date in one calendar and it returns the matching date in the other. It is a pure astronomical/Western calendar conversion and applies identically everywhere — it is not region-specific.
How to use it
Pick the source calendar (the system your entered date is written in); the result is produced in the opposite system. Choose the era (AD/CE or BC/BCE), then enter the year, month and day. The calculator reports the converted era, year, month and day, plus the intermediate Julian Day Number (JDN) and the day offset (how many days Gregorian leads Julian for that date).
The formula explained
The cleanest exact conversion routes through the JDN, an integer day count independent of any calendar. Step A converts the source (year, month, day) to a JDN using the standard integer formulas (a Julian variant and a Gregorian variant). Step B converts that JDN to the other calendar. The Gregorian-to-JDN formula is:
$$\text{JDN} = D + \left\lfloor\frac{153m+2}{5}\right\rfloor + 365y + \left\lfloor\frac{y}{4}\right\rfloor - \left\lfloor\frac{y}{100}\right\rfloor + \left\lfloor\frac{y}{400}\right\rfloor - 32045$$
and the Julian variant is:
$$\text{JDN} = D + \left\lfloor\frac{153m+2}{5}\right\rfloor + 365y + \left\lfloor\frac{y}{4}\right\rfloor - 32083$$
All divisions are mathematical floor divisions, and BC years use astronomical numbering: an astronomical year of 1 - B for a BC year B (1 BC = 0, 45 BC = -44), so round-tripping through year 0 is exact.
Worked example
Gregorian AD 1582-06-15. With Yastro = 1582, the Gregorian-to-JDN formula gives \(\text{JDN} = 2299039\). Converting that JDN to Julian yields 1582-06-05. So Gregorian 15 June 1582 equals Julian 5 June 1582 — the Gregorian calendar was 10 days ahead of the Julian then, matching the October 1582 reform (\(\text{dayDifference} = +10\)).
Julian–Gregorian Day Offset by Period
The offset is the number of days the Gregorian date is ahead of the Julian date for the same day (Gregorian minus Julian). It changes only at the end of February in century years that are not divisible by 400 (such as 300, 500, 1700, 1800, 1900, 2100). In those years the Julian calendar has a leap day (Feb 29) and the Gregorian calendar does not. From the following Mar 1 onward the gap is one day larger. Century years divisible by 400 (400, 800, 1200, 1600, 2000) are leap years in both calendars, so the offset does not change.
For dates from Mar 1 of a year \(Y\), the offset is:
$$\text{offset} = \left\lfloor \frac{Y}{100} \right\rfloor - \left\lfloor \frac{Y}{400} \right\rfloor - 2$$
Check for 1900: \(19 - 4 - 2 = 13\). Check for 1582: \(15 - 3 - 2 = 10\), the 10 days skipped in October 1582.
| Period (from Mar 1 of the first year through Feb 28/29 of the last) | Gregorian minus Julian (days) |
|---|---|
| AD 100 – AD 200 | −1 |
| AD 200 – AD 300 | 0 (calendars agree) |
| AD 300 – AD 500 | 1 |
| AD 500 – AD 600 | 2 |
| AD 600 – AD 700 | 3 |
| AD 700 – AD 900 | 4 |
| AD 900 – AD 1000 | 5 |
| 1000 – 1100 | 6 |
| 1100 – 1300 | 7 |
| 1300 – 1400 | 8 |
| 1400 – 1500 | 9 |
| 1500 – 1700 (includes 1582 and 1600) | 10 |
| 1700 – 1800 | 11 |
| 1800 – 1900 | 12 |
| 1900 – 2100 (includes 2000) | 13 |
| 2100 – 2200 | 14 |
Note: the year 400 is a leap year in both calendars, so the offset stays 1 from 300 to 500. The same holds for 800 (offset 4 through 900), 1200 (7 through 1300) and 1600 (10 through 1700). Strictly, the new offset begins on the Julian leap day (Feb 29) of the century year, which has no Gregorian counterpart, and is usually quoted as applying from Mar 1. The values are for the proleptic calendars and show the difference between them; they say nothing about which calendar a given country used at the time.
Gregorian Calendar Adoption Dates by Country
The Gregorian calendar was introduced by Pope Gregory XIII in 1582. Countries switched at very different times. The table lists commonly cited civil adoption dates; some regions, cities and territories switched earlier or later, and religious calendars sometimes differed from civil ones.
| Country / region | Last Julian date → first Gregorian date | Days skipped |
|---|---|---|
| Catholic Spain, Portugal, Poland–Lithuania, Italian states | 4 Oct 1582 → 15 Oct 1582 | 10 |
| France | Dec 1582 (9 Dec Julian → 20 Dec Gregorian) | 10 |
| Catholic German states | 1583 (dates varied by state) | 10 |
| Protestant German states, Denmark–Norway | 18 Feb 1700 → 1 Mar 1700 | 11 |
| Great Britain and its colonies | 2 Sep 1752 → 14 Sep 1752 | 11 |
| Sweden | 17 Feb 1753 → 1 Mar 1753 | 11 |
| Japan (replaced a lunisolar calendar, not the Julian) | Gregorian reckoning from 1 Jan 1873 | n/a |
| Russia (Soviet government) | 31 Jan 1918 → 14 Feb 1918 | 13 |
| Greece (civil calendar) | 16 Feb 1923 (Julian) became 1 Mar 1923 | 13 |
Because of these differences, a historical date written in a source may be in either calendar. Check the country and year before converting. The same event can have two valid dates, for example events in Britain before September 1752 are often cited in Julian style.
Key Terms and Definitions
- Julian calendar: the calendar introduced by Julius Caesar in 45 BC. Its average year is 365.25 days. A year is a leap year if it is divisible by 4, with no exceptions.
- Gregorian calendar: the reform of 1582. Its average year is 365.2425 days. A year is a leap year if it is divisible by 4, except century years, which must be divisible by 400. So 1900 and 2100 are not leap years, while 1600 and 2000 are.
- Proleptic calendar: a calendar extended backward (or forward) to dates before it was actually in use. This calculator uses the proleptic Julian and proleptic Gregorian calendars, so Gregorian dates before 1582 are allowed.
- Julian Day Number (JDN): a continuous count of whole days. Day 0 began at noon on 1 January 4713 BC in the proleptic Julian calendar. Converting through the JDN avoids errors from month lengths and leap rules.
- Astronomical year numbering: a system with a year 0. Year 0 = 1 BC, year −1 = 2 BC, and so on. For a BC year, the formula uses \(Y = 1 - \text{year}\), so 1 BC gives 0 and 2 BC gives −1.
- AD/CE and BC/BCE: AD (Anno Domini) and CE (Common Era) refer to the same years, as do BC (Before Christ) and BCE (Before Common Era). There is no year 0 in this labelling: 1 BC is followed directly by AD 1.
- Day offset: the number of days the Gregorian date is ahead of the Julian date for the same day. It is 13 for dates from Mar 1, 1900 to Feb 28, 2100.
FAQ
Is there a year 0? No. In the era system 1 BC is followed directly by AD 1. Internally we use astronomical numbering where year 0 = 1 BC, which makes the math continuous.
Why "proleptic"? These conversions apply each calendar's rules to all dates, even before that calendar existed historically. They do not model the fact that different countries adopted the Gregorian reform at different times.
How large is the offset over time? Roughly 0 days near year 200, +10 days in 1582, +13 days for 1900–2099, and +14 days from 2100 onward.