Find Leap Years
Find all leap years in a given range, get the total count, and see the next upcoming leap year
Plug in a start year and an end year, and get every leap year in that range — with a total count and the next one coming up from today's date. No need to remember the century rule or check years one at a time.
It also flags the tricky ones like 1900 (not a leap year) and 2000 (is one), so you won't trip on the divisible-by-400 exception. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool checks each year in your range against the actual Gregorian calendar rules: divisible by 4, but not by 100 — unless it is also divisible by 400. That's why 2000 was a leap year but 1900 wasn't. It also finds the next leap year coming up from today's date, so you don't have to look it up separately.
Examples
Quick check for the current decade
You want to know which years in the 2020s have February 29.
Start: 2020
End: 2029
2020, 2024, 2028
Total: 3 leap years
Checking the tricky century boundary
Around year 1900, the century rule kicks in. Most people assume 1900 is a leap year. It isn't.
Start: 1896
End: 1908
1896, 1904, 1908
Total: 3 leap years
(1900 is skipped — century rule)
Full century scan for a history project
A student needs every leap year in the 1800s for a timeline assignment. Doing it by hand would take ages — this returns all 24 in under a second.
Start: 1800
End: 1899
1804, 1808, 1812, 1816, 1820,
1824, 1828, 1832, 1836, 1840,
1844, 1848, 1852, 1856, 1860,
1864, 1868, 1872, 1876, 1880,
1884, 1888, 1892, 1896
Total: 24 leap years
Who Uses This
Validating date logic in apps that handle February 29 edge cases.
History and science assignments that need accurate date references across decades.
Planning multi-year schedules where an extra day shifts deadlines.
Figuring out when the next "real" birthday actually lands.
Common Mistakes
Years divisible by 100 are not leap years — unless they're also divisible by 400. So 1900? Not a leap year. 2000? Yes. The tool handles this automatically, but knowing why matters if you're writing your own code.
If you type 2030 as the start and 2020 as the end, you'll get no results. Flip them around. The start year should always be the smaller number.
In the Gregorian calendar, there's no year zero — 1 BC jumps straight to 1 AD. If you're searching ancient ranges, keep that gap in mind. The math still works for positive years though.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Year Range: Any positive integer range (no practical upper limit)
- Algorithm: Standard Gregorian leap year rules (div by 4, not 100, unless 400)
Frequently Asked Questions
What is a leap year?
A leap year has 366 days instead of 365. That extra day — February 29 — keeps the calendar lined up with Earth's orbit around the sun. Without it, seasons would slowly drift out of sync with calendar months. It takes about 6 extra hours each year, and those add up to a full day every four years.
Why was 1900 not a leap year but 2000 was?
The Gregorian calendar has a correction built in. Century years (ending in 00) are not leap years unless they divide evenly by 400. 1900 divides by 100 but not 400, so it got skipped. 2000 passes both tests. This keeps the calendar accurate to within one day every 3,236 years.
How many leap years are in a century?
Usually 24, sometimes 25. A 400-year cycle contains exactly 97 leap years. Most centuries get 24 because the century year itself gets skipped. But centuries like the 2000s get 25 because 2000 qualifies under the divisible-by-400 exception.
When is the next leap year?
The next leap year after 2024 is 2028. This tool also shows you exactly how many days away the next leap year is from today, so you don't need to count manually.
Is my data stored or sent to a server?
No. The entire calculation runs locally in your browser with JavaScript. Nothing gets uploaded, logged, or stored. You could disconnect from the internet after the page loads and it would still work fine.