Quick answer
Apply all three tests in order. 1900 was not a leap year and 2100 will not be, which is exactly what the divisible-by-four shortcut gets wrong.
The three tests
A year is a leap year if it is divisible by 4. Unless it is divisible by 100, in which case it is not. Unless it is also divisible by 400, in which case it is after all. Applied in that order the rules are unambiguous and take a moment to check.
So 2024 is a leap year (divisible by 4). 1900 is not (divisible by 100, not by 400). 2000 is (divisible by 400). Over a 400-year cycle there are 97 leap years rather than 100, which is the whole point of the correction.
Use this guide with the right tool: Open the Leap Year Calculator for whether a selected year follows the Gregorian leap-year rule. If the question shifts, compare it with the Day of Year Calculator or the Days Left in Year Calculator.
What the correction is correcting
A tropical year is about 365.2422 days. The Julian calendar's simple four-year rule assumes 365.25, overshooting by roughly eleven minutes a year. That is trivial annually and accumulates to about three days every four centuries.
By the sixteenth century the drift had pushed the equinox about ten days from where the ecclesiastical calendar expected it. The Gregorian reform dropped those days and added the century rules to stop the drift recurring. The remaining error is about one day in 3,200 years.

Where the shortcut actually bites
Most people will never encounter a century year that matters — 1900 is beyond living memory and 2100 is decades away. But software outlives its authors, and a date library with a divisible-by-four rule will be wrong for the whole of 2100.
There is also a well-documented inverse error in older spreadsheet software, which treats 1900 as a leap year for compatibility reasons. That means date arithmetic crossing 29 February 1900 in those tools is off by a day, and it is a real source of discrepancy in historical financial data.
Consequences you can check
A leap year has 366 days, February has 29, and every date from 1 March onwards shifts one weekday further than it otherwise would. That last effect is why the same date does not simply advance one weekday per year.
It also means day-of-year numbers differ: 1 March is day 60 in a common year and day 61 in a leap year. Any system that stores an ordinal day without its year cannot be resolved back to a date.
Worked example
The rule makes 2024 and 2028 leap years, leaves 2025 and 2026 ordinary, rejects 1900 despite divisibility by 4, and accepts 2000. Test your own year against the century test before assuming February gains its extra day.
Counting the leap days in a century
The three tests are usually applied one year at a time. Applied to whole centuries, they produce a result worth seeing directly: two spans that are both nominally a hundred years long, and differ by a day.
From 1 January 1900 to 1 January 2000 there are twenty-four leap days — 1904 through 1996, with 1900 itself excluded by the century test — so the span is 36,524 days. From 1 January 2000 to 1 January 2100 there are twenty-five leap days, 2000 through 2096, because 2000 passed the four-hundred test and its leap day counts. That span is 36,525 days. Same nominal length, one day apart, and the difference is nothing but the century rule doing its work at the two ends.
A single lifetime can sit inside the shorter pattern even now. Someone born on 1 March 2000 who reaches their hundredth birthday on 1 March 2100, a Monday, will have lived through twenty-four leap days — 2004 through 2096 — because 2100 contributes none. Their century is 36,524 days long, exactly as long as the 1900s were. The next time the divisible-by-four shortcut fails, it fails inside a span that people alive today will complete.
Over the full cycle the correction closes neatly. Four hundred Gregorian years contain 97 leap years and 146,097 days, and 146,097 is exactly 20,871 weeks — so the calendar, weekdays included, repeats precisely every four hundred years. 1 January 2400 falls on a Saturday, the same as 1 January 2000. The uncorrected Julian cycle cannot do this: four hundred Julian years run to 146,100 days, three days longer and not a whole number of weeks, so its weekday pattern never quite comes back into register.
That whole-week property is a practical check as well as an elegant one. Any date calculation can be tested by shifting it four hundred years: the answer must land on the same weekday, or something in the working is wrong. It also shows what the century rule costs a shortcut in the near term. 1 March 2100 falls on a Monday; a divisible-by-four rule, counting a leap day in February 2100 that does not exist, places it on a Tuesday, and every date after it inherits the same one-day displacement for the rest of that year.
The suppressed years are easy to list for the first full cycle after the reform: 1700, 1800 and 1900 each failed the four-hundred test, so three February 29ths that the Julian calendar would have observed simply never occurred in countries on the Gregorian system. That is the eleven-minute error from earlier in this guide made visible — not an abstraction about orbital periods, but three specific days struck out of three specific centuries, and the reason a date range crossing any of them contains one fewer leap day than the divisible-by-four count promises.
Common mistakes to avoid
- Using only the divisible-by-four test. It is wrong for three century years in every four. 2100 is the next one.
- Adding leap days by hand to a span. Direct date counting includes them automatically. Manual adjustment double-counts.
- Trusting spreadsheet dates before March 1900. Some spreadsheet software treats 1900 as a leap year for legacy compatibility, shifting historical calculations by a day.
Use the right calculator
Use the Leap Year Calculator to test a year against the Gregorian rule, the Day of Year Calculator for ordinal day number, and Days Left in Year Calculator for remaining days.
Frequently asked questions
Why is 2000 a leap year but 1900 not?
2000 is divisible by 400, which reinstates it. 1900 is divisible by 100 but not 400, so it is excluded.
How accurate is the Gregorian calendar?
The remaining drift is about one day in 3,200 years, which is why no further correction has been thought worth making.
Do all countries use these rules?
For civil dates, effectively yes. Countries adopted the Gregorian calendar at different times, which matters for historical dates but not for current ones.


