Leap Year

Date & Time

Check if a year is a leap year

Every four years, February gains an extra day — but not always, which is exactly what trips people up. Most people know the general rule that leap years happen "every four years," but far fewer know the exception that makes century years like 1900 not leap years, while century years like 2000 are. This inconsistency exists because a calendar year of exactly 365 days doesn't perfectly match the time it actually takes Earth to orbit the sun, and without periodic correction, the calendar would slowly drift out of sync with the seasons.

Our Leap Year calculator removes any guesswork. Enter any year, and it instantly tells you whether that year is a leap year, meaning it has 366 days with February 29 included, or a common year with 365 days and February capped at 28. It also applies the full leap year rule correctly, including the century exception, so you get the right answer even for tricky edge cases like 1900, 2000, or 2100.

This tool is useful well beyond simple curiosity. Developers use it to test date-handling logic in software. Event planners scheduling something for "every February 29" need to know which years actually have that date available. Students learning the calendar system use it to check their understanding of the leap year rule. And anyone curious whether their birth year, or an upcoming year, is a leap year can get an instant, accurate answer. Getting this right matters more than it might seem, since a single miscalculated leap year can throw off date-dependent calculations by a full day in software, spreadsheets, and manual planning alike.

Why Leap Year Matters

Leap years affect far more than just a single extra day on the calendar:

Software and date logic: Leap year handling is a notoriously common source of bugs in software that deals with dates, since developers must correctly implement the century exception rule, not just 'divisible by 4.'

'Leapling' birthdays: People born on February 29 only have a true calendar birthday once every four years, which raises real questions about how to celebrate or legally recognize their birthday in non-leap years (typically February 28 or March 1 is used).

Astronomical accuracy: Leap years exist to keep the calendar synchronized with Earth's actual orbital period (about 365.2422 days), preventing the seasons from gradually drifting relative to the calendar over centuries.

Event and financial scheduling: Any system that calculates recurring annual dates, interest accrual, or subscription billing needs to correctly handle February 29 in leap years to avoid calculation errors.

Calendar and scheduling software: Applications that generate recurring yearly events, calculate age, or compute interest accrual over 365 vs 366 day years must correctly branch their logic for leap years, making a reliable independent leap-year check valuable during development and testing.

Historical record-keeping: Archivists and historians working with old records sometimes need to verify whether a historical year was a leap year to interpret ambiguous or partial date records correctly, particularly when cross-referencing with other calendar systems.

The Leap Year Formula, Explained

A year is a leap year if (divisible by 4 AND not divisible by 100) OR (divisible by 400)

The leap year rule has three parts, applied in order. First, if a year is evenly divisible by 4, it's a candidate for being a leap year. Second, there's an exception: if that year is also evenly divisible by 100, it is NOT a leap year — unless a third rule overrides this. Third, the override: if the year is evenly divisible by 400, it IS a leap year after all, despite being divisible by 100.

This three-tier rule exists because a simple 'every 4 years' pattern would add slightly too many days over centuries. The true length of a solar year is approximately 365.2422 days, not exactly 365.25. Removing 3 leap years every 400 years (the century years not divisible by 400) brings the calendar's average year length to 365.2425 days — extremely close to the true solar year, keeping the calendar accurate to within about 1 day every 3,300 years.

Practical examples: 2024 is divisible by 4 and not by 100, so it's a leap year. 1900 is divisible by 4 and by 100, but not by 400, so it is NOT a leap year. 2000 is divisible by 4, by 100, and by 400, so it IS a leap year despite being a century year.

How to Use the Leap Year: Step by Step

  1. Enter the year

    Type in any year you want to check, past or future.

  2. View the result

    The calculator instantly tells you whether the year is a leap year (366 days, with February 29) or a common year (365 days).

  3. See the explanation

    The tool shows which part of the leap year rule applied — the basic 4-year rule, the 100-year exception, or the 400-year override.

  4. Check nearby years

    Use the calculator to find the nearest previous or next leap year if you're planning around a February 29 date.

Leap Year Examples: Real-World Scenarios

1

Checking the Current Year

Someone wants to know if 2026 is a leap year before planning a February trip.

Year:2026

Calculation

2026 divided by 4 = 506.5, which is not a whole number, so 2026 fails the basic divisible-by-4 test

Result

2026 is NOT a leap year. February 2026 has 28 days, and the year has 365 days total. The next leap year after 2026 is 2028.

2

The Century Exception in Action

A history teacher wants to explain to students why 1900 was not a leap year, even though it's divisible by 4.

Year:1900

Calculation

1900 / 4 = 475 (divisible by 4), but 1900 / 100 = 19 (also divisible by 100), and 1900 / 400 = 4.75 (not divisible by 400)

Result

1900 is NOT a leap year, because it's divisible by 100 but not by 400. This is the classic example used to teach the century exception rule.

3

The 400-Year Override

Checking whether the year 2000 — a century year — was a leap year.

Year:2000

Calculation

2000 / 4 = 500 (divisible by 4), 2000 / 100 = 20 (divisible by 100), and 2000 / 400 = 5 (divisible by 400)

Result

2000 IS a leap year, because although it's divisible by 100, it's also divisible by 400, which overrides the century exception. February 2000 had 29 days.

Common Mistakes to Avoid

  • Assuming every year divisible by 4 is automatically a leap year without checking the century exception — this incorrectly flags 1900, 2100, and 2200 as leap years when they are not.
  • Forgetting the 400-year override and assuming all century years are excluded — this incorrectly excludes 2000 and 1600, which ARE leap years.
  • Writing software date logic that only checks 'divisible by 4,' which produces incorrect results for any century year not divisible by 400 — this is one of the most common date-handling bugs in programming.
  • Confusing a leap year with a leap second — leap years add a full day (February 29) to keep the calendar aligned with the solar year, while leap seconds are unrelated adjustments to clock time based on Earth's rotation.

Tips & Tricks

  • A quick mental shortcut: any year divisible by 4 is a leap year UNLESS it's a century year (ending in 00) — in that case, it's only a leap year if divisible by 400.
  • People born on February 29 ('leaplings') typically celebrate their birthday on February 28 or March 1 in non-leap years, depending on personal or legal convention.
  • The next leap year after any given non-leap year is usually just 1-3 years away — leap years occur roughly every 4 years, so you're never far from one.

The leap year rule is a small but elegant piece of calendar engineering that keeps our dates aligned with Earth's actual orbit around the sun. While the basic 'every 4 years' rule handles most cases, the century exception and 400-year override matter for accuracy over long time spans and are a common source of confusion — and software bugs. Use this calculator to instantly check any year, and explore our other date tools for related calendar calculations. Bookmark this tool for quick reference whenever you need to verify a year's leap status for planning, programming, or simple curiosity, so you always have an instant and accurate answer available.

Leap Year — Frequently Asked Questions

Related Calculators

Authoritative References

External links open in a new tab. OmniCalc.us is not affiliated with these organisations.

Related Calculators