How to use the Leap Year Checker
- 1
Type a year
The current year is filled in for you.
- 2
Read the verdict
Leap year or not, and which part of the rule decides it.
- 3
See neighbouring leap years
The previous and next leap years, and days in the year.
- 4
List a range
Every leap year between two years, with a count.
Features
Leap or not
With the reason shown.
Previous and next
Nearest leap years either side.
Days in year
365 or 366.
Range list
All leap years between two years.
Count
How many leap years the range has.
Private
Runs on your device.
Who uses it — and for what
29 February birthdays
When the real birthday comes round.
Programmers
Test cases for date code.
Students
Calendar and divisibility questions.
Payroll and interest
366-day years.
The leap year rule
The Gregorian calendar adds 29 February in leap years to keep the calendar in step with the Earth’s orbit, which takes about 365.2422 days. The rule has three parts:
- A year divisible by 4 is a leap year (2024, 2028)…
- …except years divisible by 100, which are not (1900, 2100)…
- …unless they are also divisible by 400, which are (2000, 2400).
This gives 97 leap years every 400 years and an average year of 365.2425 days — accurate to about one day in 3,200 years. 2000 was a leap year; 2100 will not be.
Why it matters
Leap years affect payroll and interest calculations (366-day years), age calculations for people born on 29 February, software date handling, and planning events like the Olympics and US presidential elections, which mostly fall in leap years. The list below shows every leap year in the range you choose, with a count — handy for maths homework and programming tests. Years before 1582 are calculated with the same rule (the “proleptic” Gregorian calendar), although historically the Julian calendar was in use.
Why the rule has three parts
A year is really about 365.2422 days. Adding a day every 4 years (Julian calendar) gives 365.25 — slightly too long, which made the calendar drift about 3 days every 400 years. The Gregorian reform of 1582 dropped three leap days per 400 years (in 1700, 1800, 1900, but not 2000), giving 97 leap years every four centuries and an average year of 365.2425 days — accurate to about one day in 3,000 years.
Programming a leap-year check
The correct test is (y % 4 === 0 && y % 100 !== 0) || y % 400 === 0. Checking only “divisible by 4” fails for 1900 and 2100, a classic bug. In most languages it is safer to rely on the built-in date library, which already handles leap years and different calendars.
Worked examples
2000
Leap year — divisible by 400. It was the first century leap year since 1600.
2100
Not a leap year — divisible by 100 but not by 400. So 2096 to 2104 is an eight-year gap with no 29 February.
How many leap years from 2001 to 2100?
24 — 2004 to 2096. 2100 is not one.
Pro tips
- Leap years are always even, and in the 2000s they are the years divisible by 4 up to 2096.
- Countries adopted the Gregorian calendar at different times, so historical dates before about 1752 need care.
Glossary
- Leap day
- 29 February, added in leap years.
- Gregorian calendar
- The calendar most of the world uses today, introduced in 1582.
- Julian calendar
- The earlier calendar with a leap year every 4 years.
Frequently asked questions
Is 2028 a leap year?
Yes — it is divisible by 4 and not by 100.
Was 1900 a leap year?
No. It is divisible by 100 but not by 400.
How many days are in a leap year?
366 days.
Is 2026 a leap year?
No — the next leap year is 2028.
How many leap years are in 400 years?
97.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Time & Productivity (25 tools)