How Leap Years Work: Why We Need an Extra Day Every Four Years (Except When We Don't)

Reference12 min readBy Dr. Anika PatelLast Updated: May 2026
Cover illustration for How Leap Years Work: Why We Need an Extra Day Every Four Years (Except When We Don't)

Quick Answer

**Quick Answer: A leap year is a year with 366 days instead of the usual 365, with February 29 added to the calendar. Leap years exist because Earth takes approximately 365.24219 days to orbit the Sun — not exactly 365. Without leap years, the calendar would drift about 24 days per century from the


Why Leap Years Exist

The Astronomical Reality

A tropical year — the time it takes Earth to complete one orbit around the Sun from one vernal equinox to the next — is not exactly 365 days. It is approximately 365.24219 days (365 days, 5 hours, 48 minutes, and 45 seconds). This means that after 365 days, Earth has not quite completed its orbit. There are about 5 hours and 49 minutes left over.

This leftover time seems small, but it accumulates rapidly. After 4 years, the accumulated error is about 23 hours and 15 minutes — nearly a full day. After 100 years, the error is about 24 days. Without correction, the calendar would steadily drift away from the seasons. Summer would eventually arrive in December (in the Northern Hemisphere), and planting and harvesting cycles would become disconnected from the calendar.

The Roman Calendar Problem

The pre-Julian Roman calendar had 355 days with occasional intercalary months added by priests. This system was politicized and inconsistent — priests would add or withhold intercalary months to shorten or extend the terms of officials they favored or opposed. By the time Julius Caesar took power in 46 BCE, the calendar was about 80 days out of alignment with the seasons.

Caesar consulted the Egyptian astronomer Sosigenes and implemented a sweeping reform in 45 BCE. The new Julian calendar had 365 days with an extra day added every four years, creating an average year length of 365.25 days. This was much closer to reality but still not perfect — the Julian year was 0.0078 days (11 minutes and 14 seconds) too long.

The Gregorian Correction

By the 16th century, the Julian calendar's small error had accumulated to about 10 days. The vernal equinox, which was supposed to fall on March 21 (the date set by the Council of Nicaea in 325 CE for calculating Easter), was occurring on March 11. Pope Gregory XIII commissioned a reform, and in 1582, the Gregorian calendar was introduced.

The Gregorian fix was to skip three leap years every 400 years. Specifically, century years (divisible by 100) would not be leap years unless they were also divisible by 400. This reduced the average year length to 365.2425 days — much closer to the true 365.24219 days.

To realign the calendar with the seasons, Gregory decreed that October 5–14, 1582, would be skipped. People went to bed on October 4 and woke up on October 15. Catholic countries adopted the reform immediately; Protestant and Orthodox countries took much longer. Britain and its colonies switched in 1752, Russia in 1918, and Greece as late as 1923.


The Rules

The Gregorian leap year rules can be stated in three steps:

  1. If the year is divisible by 4: It is a leap year.

  2. Except if the year is divisible by 100: It is NOT a leap year.

  3. Unless the year is also divisible by 400: It IS a leap year after all.

These rules are evaluated in order. Let's test them with some examples.

Leap Year Rules Table

YearDivisible by 4?Divisible by 100?Divisible by 400?Leap Year?Reason
2024YesNoYesDivisible by 4, not a century
2025NoNoNot divisible by 4
2026NoNoNot divisible by 4
2028YesNoYesDivisible by 4, not a century
1900YesYesNoNoCentury year, not divisible by 400
2000YesYesYesYesCentury year, divisible by 400
2100YesYesNoNoCentury year, not divisible by 400
2400YesYesYesYesCentury year, divisible by 400
1800YesYesNoNoCentury year, not divisible by 400
1600YesYesYesYesCentury year, divisible by 400

The Key Takeaway

Most people know the "divisible by 4" rule. Far fewer know the "divisible by 100" exception, and even fewer know the "divisible by 400" exception to the exception. This matters because the next century year that is NOT a leap year is 2100 — well within the lifetime of people alive today. On February 29, 2100, many software systems will incorrectly treat it as a valid date if their leap year logic does not include the century rule.


The 400-Year Cycle

How the Math Works Out

The Gregorian calendar repeats exactly every 400 years. In any 400-year period:

  • There are 400 ÷ 4 = 100 years divisible by 4
  • Minus 400 ÷ 100 = 4 century years
  • Plus 400 ÷ 400 = 1 century year divisible by 400
  • Total leap years = 100 - 4 + 1 = 97

So in 400 years, there are 97 leap years and 303 common years. The total number of days is:

303 × 365 + 97 × 366 = 110,595 + 35,502 = 146,097 days

146,097 ÷ 400 = 365.2425 days per year (average)

This is very close to the true tropical year of 365.24219 days. The difference is 0.00031 days per year, or about 26 seconds. This tiny error will accumulate to about 1 day every 3,236 years — a problem for our distant descendants, but not for us.

The Day of the Week Repeats

Because 146,097 is exactly divisible by 7 (146,097 ÷ 7 = 20,871), the day of the week pattern also repeats every 400 years. January 1, 2000 was a Saturday. January 1, 2400 will also be a Saturday.


Why the System Isn't Perfect

The Remaining Drift

The Gregorian calendar's average year of 365.2425 days is slightly longer than the true tropical year of 365.24219 days. The difference is about 0.00031 days (26 seconds) per year. Over 3,236 years, this accumulates to about 1 day of drift.

However, this is complicated by the fact that the tropical year is not constant. The tropical year is slowly getting shorter (by about 5.3 milliseconds per year) because Earth's orbit is precessing. This means the Gregorian calendar's drift rate is not truly fixed, and the actual date when the calendar will be off by a full day is difficult to predict precisely.

Proposed Fixes

Several proposals have been made to correct the remaining drift:

  • Drop a leap year every 4,000 years: Years divisible by 4,000 would not be leap years. This would reduce the average year to 365.24225 days, accurate to about 1 day in 20,000 years. This proposal, attributed to John Herschel, has never been officially adopted.
  • Drop a leap year every 3,200 years: A similar concept with different math.
  • No action needed: The drift is so slow that it will take over 3,000 years to reach 1 day. By then, calendar reform may be moot for other reasons.

For practical purposes, the Gregorian calendar is accurate enough for the next several millennia.


Leap Year in Different Calendars

The Islamic Calendar

The Islamic (Hijri) calendar is a purely lunar calendar with 354 or 355 days per year. It does not attempt to align with the solar year, so it has no leap years in the Gregorian sense. Instead, an intercalary day is added to the last month (Dhu al-Hijjah) in 11 out of every 30 years, keeping the calendar synchronized with the lunar cycle.

Because the Islamic year is about 11 days shorter than the solar year, Islamic months cycle through all seasons over a 33-year period. Ramadan, for example, occurs in summer some years and winter in others.

The Hebrew Calendar

The Hebrew calendar is lunisolar — it uses lunar months but adds a leap month (Adar II) seven times every 19 years to stay aligned with the solar year. The 19-year cycle (called the Metonic cycle) contains 12 common years (12 months) and 7 leap years (13 months). This gives an average year length of approximately 365.2468 days — less accurate than the Gregorian calendar but sufficient for its liturgical purposes.

The Chinese Calendar

The Chinese calendar is also lunisolar, adding a leap month approximately every three years (7 times in 19 years, similar to the Hebrew calendar). The leap month is inserted according to precise astronomical rules to ensure that the winter solstice always falls in the 11th month. The Chinese New Year therefore varies between January 21 and February 20 on the Gregorian calendar.

The Persian (Solar Hijri) Calendar

The Persian calendar used in Iran and Afghanistan is arguably the most astronomically accurate solar calendar in regular use. It uses a complex system of 2,820-year cycles with 683 leap years, giving an average year length of 365.242424... days. This is more accurate than the Gregorian calendar's 365.2425 days. Leap years in the Persian calendar are determined by astronomical observation rather than a simple arithmetic rule.


What Happens on February 29

Leap Day Birthdays

People born on February 29 — "leaplings" or "leapers" — number about 5 million worldwide (roughly 1 in 1,461 people). On non-leap years, they celebrate their birthday on either February 28 or March 1. The legal treatment varies by jurisdiction:

  • In the UK and Hong Kong: A person born on February 29 legally has their birthday on March 1 in non-leap years.
  • In New Zealand: The legal birthday is February 28 in non-leap years.
  • In the US: There is no federal rule; state laws vary. Most states treat March 1 as the legal birthday for purposes like drinking age and driver's licenses.

Legal Dates and Contracts

February 29 creates various legal complexities:

  • Contract deadlines: If a contract specifies "payment due on the 29th of each month" and the month is February in a non-leap year, the deadline is typically interpreted as February 28 or March 1, depending on jurisdiction.
  • Rental agreements: Monthly rent due on February 29 in a non-leap year is generally payable on March 1.
  • Statute of limitations: If a filing deadline falls on February 29 in a non-leap year, courts typically treat it as March 1.
  • Age of majority: A person born on February 29, 2000, turns 18 on February 29, 2018 (a leap year). But they turn 19 on March 1, 2019 (not a leap year).

Computing Challenges

February 29 is a common source of software bugs:

  • Incorrect leap year logic: Programs that only check "divisible by 4" will incorrectly treat 1900, 2100, 2200, and 2300 as leap years.
  • Date validation errors: Some input forms reject February 29 even in valid leap years.
  • Annual calculations: Software that divides by 365 to compute daily rates will be slightly wrong in leap years.
  • Microsoft Excel: Famously treats 1900 as a leap year (inheriting a bug from Lotus 1-2-3 for backward compatibility). This means Excel's date serial numbers are off by one for dates before March 1, 1900.

Next 10 Leap Years

Leap YearDay of Week for Feb 29Years from Now
2028Tuesday2
2032Sunday6
2036Friday10
2040Wednesday14
2044Monday18
2048Saturday22
2052Thursday26
2056Tuesday30
2060Sunday34
2064Friday38

Note: The year 2100 will NOT be a leap year, despite being divisible by 4. It is divisible by 100 but not by 400. This will be the first skipped leap year since 1900.


FAQ

Why do we have leap years?

Earth takes approximately 365.24219 days to orbit the Sun, not exactly 365. Without adding an extra day every four years, the calendar would drift about 24 days per century away from the seasons. Leap years keep the calendar aligned with Earth's orbit.

What are the leap year rules?

  1. Years divisible by 4 are leap years. 2. Except years divisible by 100, which are NOT leap years. 3. Unless the year is also divisible by 400, in which case it IS a leap year. So 2024 is a leap year, 2100 is not, and 2000 was.

Why is 2100 not a leap year?

2100 is divisible by 100 but not by 400. Under the Gregorian rules, century years are only leap years if they are divisible by 400. The last century year that was not a leap year was 1900, and the next will be 2100.

Was the year 2000 a leap year?

Yes. Although 2000 is divisible by 100 (which would normally exclude it), it is also divisible by 400, which makes it a leap year under the third rule. February 29, 2000 was a valid date.

How often does the Gregorian calendar drift by one day?

The Gregorian calendar's average year length of 365.2425 days is about 26 seconds longer than the true tropical year (365.24219 days). At this rate, it will take approximately 3,236 years for the calendar to drift by one full day from the seasons.

What happens if you are born on February 29?

People born on February 29 (about 1 in 1,461 people) typically celebrate their birthday on February 28 or March 1 in non-leap years. The legal treatment varies by country — in the UK, March 1 is the legal birthday; in New Zealand, it is February 28.

Do other calendars have leap years?

Yes, but they work differently. The Hebrew and Chinese calendars add leap months (not leap days). The Islamic calendar adds an intercalary day to the last month in 11 out of 30 years. The Persian (Solar Hijri) calendar uses astronomical observation to determine leap years and is more accurate than the Gregorian calendar.

What is the next century year that will NOT be a leap year?

The year 2100 will not be a leap year. It is divisible by 100 but not by 400. This will be the first skipped leap year since 1900. Many current software systems will need to be updated to handle this correctly.

Share this page

Put this into action

Stop guessing. Use our professional tools to schedule, convert, and manage time zones perfectly — 100% free.

Convert Time Zones