Leap Year Checker

Check instantly whether any year is a leap year.

The leap year rule, and why it has three parts

A year is a leap year if it is divisible by four, except that centuries are not, unless they are divisible by 400. So 2024 is a leap year, 1900 was not, and 2000 was. The three-part rule looks arbitrary and is actually a correction for a correction.

The reason is that a tropical year is about 365.2422 days, not 365.25. Adding a day every four years, as the Julian calendar did, overcorrects slightly — by roughly three days every four centuries. Over more than a millennium that error accumulated to around ten days, which is why the Gregorian reform of 1582 both dropped days from the calendar and added the century exceptions to stop it recurring. The refined rule leaves an error of roughly one day in 3,000 years. The practical consequence for software is that 1900 was not a leap year, a case a surprising amount of code still gets wrong because a simple divisible-by-four test passes it.

Worked example

2028 is a leap year: it divides by 4 and is not a century year. 2100 will not be a leap year: it divides by 4 and by 100, but not by 400. 2000 was a leap year because it divides by 400. Most people alive today have only ever seen the simple every-four-years pattern, because 2000 happened to be one of the exceptions to the exception.

This matters in practice. Software that only checks "divisible by 4" will treat 2100 as a leap year and get every date after 28 February 2100 wrong by a day.

Common mistakes to avoid

  • Assuming every year divisible by 4 is a leap year. Century years need the extra divisible-by-400 test.
  • Calculating anniversaries for 29 February birthdays as 28 February in every case. Different laws and systems treat this differently.
  • Counting a year as 365 days in interest or age calculations that span a 29 February.

Last reviewed: 5 November 2026 by the YogiCalc team · How we calculate and verify · Spotted an error? Tell us

Frequently asked questions

What is the full leap year rule?

Divisible by four is a leap year, except years divisible by 100, unless also divisible by 400. So 2024 and 2000 are leap years, while 1900 and 2100 are not.

Why are some century years not leap years?

Because adding a day every four years overcorrects. A tropical year is about 365.2422 days rather than 365.25, so the century exceptions remove the accumulated excess of roughly three days per four centuries.

Was 1900 a leap year?

No. It is divisible by 100 but not by 400, so it is excluded. This is a classic software bug, since a simple divisible-by-four test wrongly treats it as a leap year.

Is the Gregorian calendar perfectly accurate?

Not quite. It leaves an error of roughly one day in 3,000 years. Separately, leap seconds have been used to reconcile clocks with the Earth’s slightly irregular rotation, which is a different adjustment entirely.

How many leap years are there in a 400-year cycle?

97. That is 100 years divisible by 4, minus the 3 century years that are not divisible by 400.

Is 2026 a leap year?

No. 2026 is not divisible by 4. The next leap year is 2028.