Leap Year Checker
Check a year under Gregorian leap-year rules.
How the Leap Year Checker Works
The Leap Year Checker tests a year against the 3 Gregorian rules and states whether the year is a leap year with 366 days or a common year with 365 days.
Enter a year
Enter a year, such as 2028.
Apply the 4-year rule
A year divisible by 4 is a leap year candidate.
Apply the 100-year rule
A year divisible by 100 is not a leap year.
Apply the 400-year rule
A year divisible by 400 is a leap year again.
How the Count Is Calculated
The Leap Year formula combines 3 divisibility tests.
Leap year = (Y mod 4 = 0 AND Y mod 100 ≠ 0) OR (Y mod 400 = 0)- Y mod 4 = 0
- Year divisible by 4.
- Y mod 100 ≠ 0
- Year not a century year.
- Y mod 400 = 0
- Century year divisible by 400.
Example: 1900 is divisible by 4 and by 100 but not by 400. 1900 is a common year. 2000 is divisible by 400, so 2000 is a leap year.
Worked Examples
The table checks sample years against the leap-year rules.
| Year | ÷4 | ÷100 | ÷400 | Result |
|---|---|---|---|---|
| 1900 | Yes | Yes | No | Common (365) |
| 2000 | Yes | Yes | Yes | Leap (366) |
| 2024 | Yes | No | No | Leap (366) |
| 2026 | No | No | No | Common (365) |
| 2028 | Yes | No | No | Leap (366) |
| 2100 | Yes | Yes | No | Common (365) |
| 2400 | Yes | Yes | Yes | Leap (366) |
What the Tool Measures
A Leap Year Checker is a tool that tells you whether a year contains 29 February.
Pope Gregory XIII introduced the 100-year and 400-year rules in 1582. The rules keep the calendar within 1 day of the solar year for about 3,000 years.
The next leap years after 2026 are 2028, 2032, 2036 and 2040.
When to Use This Tool
There are 4 main uses of the Leap Year Checker, including software testing and birthday planning.
Software testing
Developers test date logic against 1900, 2000 and 2100.
Leap-day birthdays
People born on 29 February check when a true birthday occurs.
Interest calculations
Banks switch between 365-day and 366-day bases.
Calendar printing
Printers check whether February needs 29 days.