Tools

Home
StopwatchCountdown TimerDate DifferenceTimerTimezone Converter

Check Leap Year

Check if a year is a leap year. Enter any year and instantly find out.

Your files never leave your browser
Ready·Enter a year to check

Plug in any year and get an instant answer — leap year or not. You’ll also see the full ÷4, ÷100, and ÷400 rule breakdown, February’s day count, and the closest leap years before and after. And everything runs in your browser. Nothing gets uploaded.

How It Works

Enter Year
→
Check ÷4, ÷100, ÷400
→
Leap or Not

Three rules decide everything. First: is the year divisible by 4? If not, it’s a common year — done. If yes, check whether it’s also divisible by 100. Century years like 1900 get rejected unless they’re also divisible by 400 (which is why 2000 squeaked through). The tool runs all three checks and shows you exactly which rules passed or failed.

Examples

Standard Leap Year — 2024

Most leap years are straightforward. Divisible by 4, not a century year. Done.

INPUT
2024
OUTPUT
✅ Leap Year 366 days, Feb has 29 days ÷4 ✓ | ÷100 ✗ | ÷400 n/a

The Century Trick — 1900

This one fools people all the time. 1900 is divisible by 4 — so it should be a leap year, right? Nope. Century years have an extra rule: they also need to be divisible by 400. 1900 ÷ 400 = 4.75. Not a whole number, not a leap year.

INPUT
1900
OUTPUT
❌ Not a Leap Year 365 days, Feb has 28 days ÷4 ✓ | ÷100 ✓ | ÷400 ✗

The 400-Year Exception — 2000

Year 2000 passes every test. Divisible by 4, by 100, and by 400. That last one overrides the century rule.

INPUT
2000
OUTPUT
✅ Leap Year 366 days, Feb has 29 days ÷4 ✓ | ÷100 ✓ | ÷400 ✓

Who Uses This

👨‍💻 Developers

Testing date logic in apps, making sure calendar components handle Feb 29th correctly.

📅 Event Planners

Confirming whether a future February 29th actually exists before booking a venue.

🎓 Students

Learning the divisibility rules for math or science homework without memorizing exceptions.

📊 Data Analysts

Validating year-over-year comparisons where an extra day throws off daily averages.

Common Mistakes

Thinking “divisible by 4” is the only rule

That covers 99% of cases, but century years break it. 1900, 2100, 2200, 2300 — all divisible by 4, none of them leap years. You need the ÷100 and ÷400 checks too.

Confusing “not a leap year” with “invalid year”

2023 is a perfectly valid year — it just has 365 days. Common years are not errors. If your app flags them as invalid, the bug is in your validation logic, not the calendar.

Hardcoding leap year lists instead of calculating

Some code has a static array of leap years. Works until you need a year outside the list. The three-rule formula handles any year — past, present, or thousands of years from now.

Technical Details

Frequently Asked Questions

What is a leap year?

A year with 366 days instead of the usual 365. February gets a 29th day. This happens roughly every four years to keep the calendar lined up with Earth’s orbit, which takes about 365.2422 days — not a clean 365.

Why do we skip leap years on some centuries?

Adding a day every 4 years slightly overcorrects — the real orbital period is 365.2422 days, not 365.25. Skipping century years (unless divisible by 400) shaves off the excess. Without this fix, the calendar would drift by about 3 days every 400 years.

Is 2100 a leap year?

No. 2100 is divisible by 4 and by 100, but not by 400. So it fails the century rule. The next century year that qualifies as a leap year is 2400.

When is the next leap year?

The next leap year after 2024 is 2028. After that: 2032, 2036, 2040. They come every 4 years unless a century rule kicks in.

Is my data private when I use this tool?

Yes. The entire calculation runs in your browser with JavaScript. Nothing gets sent to a server. You can disconnect from the internet after the page loads and it will still work fine.

Share: