Skip to content
dateconverts
Solar & civilBy Afaq Zahir · Updated · 8 min read

Gregorian Calendar: History, Leap Years and How It Works

The Gregorian calendar is the solar calendar used for civil purposes almost everywhere in the world today. It was introduced by Pope Gregory XIII in 1582 as a correction of the Julian calendar, and it keeps the year in step with the seasons by skipping three leap days every 400 years, giving an average year of 365.2425 days.

Type
Solar
Introduced
1582, by papal bull of Pope Gregory XIII
Year length
365 days, or 366 in a leap year
Leap rule
Every 4th year, except century years not divisible by 400
Average year
365.2425 days
Day begins
At midnight
Used in
Worldwide as the civil standard

What the Gregorian calendar is

The Gregorian calendar divides the year into 12 months of 28 to 31 days and counts years from the traditional date of the birth of Jesus, written AD or CE (Common Era). Years before that are written BC or BCE. It is a purely solar calendar: the months no longer have any connection to the phases of the Moon, and the only thing the rules try to track is the cycle of the seasons, measured by the return of the March equinox.

Because it is used by governments, airlines, banks, the internet and international standards, the Gregorian calendar is the common reference that almost every other calendar is converted to and from. When a date is printed in an ISO 8601 timestamp such as 2026-11-05, it is a Gregorian date.

History: why the calendar was reformed in 1582

Before 1582, Western Europe used the Julian calendar, introduced by Julius Caesar in 46 BCE. Its year averages exactly 365.25 days because it adds a leap day every fourth year without exception. The true solar year is a little shorter, about 365.2422 days, so the Julian calendar gains roughly one day on the seasons every 128 years.

By the sixteenth century the drift had grown to about ten days. This mattered to the Church because the date of Easter depends on the March equinox, which the Council of Nicaea in 325 had associated with 21 March. The real equinox was by then arriving around 11 March.

The reform was worked out from a proposal by the physician and astronomer Aloysius Lilius and refined by the Jesuit mathematician Christopher Clavius. Pope Gregory XIII issued it in the papal bull Inter gravissimas, dated 24 February 1582. Two changes were made at once: ten days were removed from the calendar, and a new leap year rule was adopted so the drift would not return.

The jump happened in October 1582. In the countries that adopted it immediately (Spain, Portugal, the Papal States and much of Italy, and Poland-Lithuania), Thursday 4 October 1582 was followed by Friday 15 October 1582. The days of the week continued without a break; only the day numbers jumped.

Structure of the year: the twelve months

The Gregorian calendar kept the Julian month names and lengths unchanged. Several names come from Latin: January from the god Janus, July and August from Julius Caesar and Augustus, and September to December from the Latin numbers seven to ten, a reminder that the early Roman year began in March.

Gregorian months and their lengths
No.MonthDays
1January31
2February28, or 29 in a leap year
3March31
4April30
5May31
6June30
7July31
8August31
9September30
10October31
11November30
12December31

The leap year rule

A Gregorian year is a leap year, with 29 February added, if its number is divisible by 4. The exception is century years: a year divisible by 100 is a leap year only if it is also divisible by 400. So 2000 was a leap year, while 1700, 1800 and 1900 were not, and 2100, 2200 and 2300 will not be.

This gives 97 leap years in every 400 years instead of the Julian 100, for an average year of 365.2425 days. That is very close to the mean tropical year, and the remaining error amounts to roughly one day in a few thousand years, far less than the uncertainty in how the Earth's rotation will change over that time.

A useful side effect is that 400 Gregorian years contain exactly 146,097 days, which is exactly 20,871 weeks. The whole calendar, including the weekdays, therefore repeats every 400 years, a fact that conversion algorithms use heavily.

  • Divisible by 4: leap year (2024, 2028)
  • Divisible by 100 but not by 400: common year (1900, 2100)
  • Divisible by 400: leap year (1600, 2000, 2400)

When different countries adopted it

Adoption was gradual and often political. Catholic states switched in 1582 or soon after. Many Protestant and Orthodox countries kept the Julian calendar for much longer, which is why historians and genealogists still have to ask which calendar a document used.

Great Britain and its colonies, including those in North America, changed in 1752 under the Calendar (New Style) Act 1750: Wednesday 2 September 1752 was followed by Thursday 14 September 1752, skipping eleven days. The same act moved the start of the legal year in England from 25 March to 1 January.

Selected adoption dates
Country or regionYear adoptedNotes
Spain, Portugal, much of Italy, Poland-Lithuania15824 October followed by 15 October
Protestant German states170018 February followed by 1 March, avoiding the Julian leap day of 1700
Great Britain and colonies17522 September followed by 14 September
Japan1873Replaced the lunisolar calendar; years still counted by era
Republic of China1912Years counted from the founding of the Republic
Russia191831 January followed by 14 February
Greece (civil use)1923Julian 15 February followed by Gregorian 1 March

When the day and the year begin

The civil day begins at midnight and the year begins on 1 January. Neither was always true in the past. In England before 1752 the legal year began on 25 March (Lady Day), so a date we would call February 1732 might be written as February 1731, or as 1731/32 in so-called dual dating.

The calendar has no year zero: 1 BCE is followed directly by 1 CE. Astronomers and the ISO 8601 standard instead use a year 0, so 1 BCE is year 0, 2 BCE is year −1, and so on. When a converter shows BCE dates, it is worth checking which convention it follows.

Dates before 1582 can still be expressed in the Gregorian calendar by running its rules backwards. This is called the proleptic Gregorian calendar. It is useful for computing and astronomy, but historical documents from before the reform used the Julian calendar or another local calendar, never the proleptic Gregorian one.

Holidays and important dates

Because it is the civil calendar, most public holidays in the world are fixed Gregorian dates: New Year's Day on 1 January, Christmas on 25 December in Western churches, and many national days such as independence or constitution days. Other holidays are calculated from the Gregorian calendar, such as Thanksgiving in the United States on the fourth Thursday of November.

Western Easter is set by a rule that also comes from the 1582 reform: it falls on the first Sunday after the ecclesiastical full moon on or after 21 March, which places it between 22 March and 25 April. Many religious and cultural festivals, including Ramadan, Diwali, the Chinese New Year and Passover, follow lunar or lunisolar calendars, so their Gregorian dates change from year to year.

How to convert dates to and from the Gregorian calendar

Converting from another calendar normally means finding a shared count of days. A converter turns the source date into a day number, then turns that day number into a Gregorian year, month and day. For Julian dates in the modern era the shortcut is simple: add 13 days for dates between 1900 and 2100 (after the end of February 1900), 12 days in the 1800s, 11 in the 1700s and 10 between 1582 and 1700.

  • Identify which calendar the source used. For European documents, check when that country adopted the Gregorian calendar.
  • Check where the year began. An English date between 1 January and 24 March before 1752 may need one added to its year.
  • Convert using day counts, not by adding a fixed number of days to the year, month and day separately.
  • Recheck the weekday if the document gives one. A correct conversion should match it.
  • Example: Isaac Newton was born on 25 December 1642 in the Julian calendar then used in England, which is 4 January 1643 in the Gregorian calendar.
  • Example: George Washington was born on 11 February 1731/32 Old Style, which is 22 February 1732 Gregorian, the date now celebrated.

How dateconverts calculates Gregorian dates

Every conversion on dateconverts passes through a single day count, the number of days since 1 January 1970. Gregorian dates are converted to and from that count with a standard arithmetic algorithm that works for any year, so the result is exact rather than approximate. Dates before 15 October 1582 are shown in the proleptic Gregorian calendar, and BCE years are labelled without a year zero.

The calendar engine is tested against independent reference implementations, and the Gregorian side is the anchor for every other calendar on the site. If you are converting a historical European date, compare the Gregorian result with the Julian calendar page to see which one the original document is likely to have used.

The Gregorian year 2026, month by month

Calculated live by our converter. Each month links to its first day in every calendar.

MonthDaysFirst day (Gregorian)
January311 January 2026
February281 February 2026
March311 March 2026
April301 April 2026
May311 May 2026
June301 June 2026
July311 July 2026
August311 August 2026
September301 September 2026
October311 October 2026
November301 November 2026
December311 December 2026

Upcoming Gregorian dates

Frequently asked questions

Why is it called the Gregorian calendar?

It is named after Pope Gregory XIII, who issued the reform in the papal bull Inter gravissimas in 1582.

Is 2100 a leap year?

No. 2100 is divisible by 100 but not by 400, so it is a common year with 28 days in February. The next century leap year is 2400.

Which days were skipped in 1582?

In countries that adopted the reform immediately, the dates 5 to 14 October 1582 were skipped: Thursday 4 October was followed by Friday 15 October.

Why did Britain skip 11 days instead of 10?

Britain changed in 1752, and by then the Julian calendar had added an extra leap day in 1700 that the Gregorian calendar did not, so the gap had grown to 11 days.

Is there a year zero in the Gregorian calendar?

No. In historical usage 1 BCE is followed by 1 CE. Astronomical year numbering and ISO 8601 do use a year 0, equal to 1 BCE.

How accurate is the Gregorian calendar?

Its average year of 365.2425 days is within about half a minute of the mean tropical year, so it drifts by only about a day over several thousand years.

Sources and further reading