Skip to main content

Free Leap Year Checker with the Rule Explained

Check if any year is a leap year and see the Gregorian rule worked out step by step. List leap years in a range, find the next and previous one, and count them between two years.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

Gregorian ruleStep-by-stepRange listLeap year countFree

2024

is a Leap Year (366 days)

Divisible by 4?

2024 ÷ 4 is a whole number

Divisible by 100?

2024 ÷ 100 is not whole → leap year

Leap years in a range

25 leap years from 2000 to 2100 (inclusive)

100% Private

All calculations run in your browser using the proleptic Gregorian rule. Nothing is uploaded.

How to Use Leap Year Checker

1

Enter a year

Type any whole year into the input, such as 2024 or 2100. The checker immediately tells you whether it is a leap year or a common year, so you have your answer before reading any of the supporting detail below it.

2

Read the rule steps

Below the answer, the tool shows the Gregorian rule evaluated on your exact year: whether it is divisible by 4, then by 100, then by 400. This makes surprising results like 1900 and 2100 being common years easy to understand.

3

Explore ranges and neighbours

Enter a start and end year to list every leap year in that span and get an exact count, or check the next and previous leap year from any point. This is handy for date maths and planning around February 29.

How the Gregorian Leap Year Rule Actually Works

A leap year checker tells you whether a given year has 366 days instead of 365, and the useful part is not the yes-or-no answer but the reasoning behind it. Students, developers writing date logic, genealogists working with old records, and anyone with a February 29 birthday all run into the same surprising fact: the rule is not simply "every four years". This tool takes any year, applies the full Gregorian rule, and shows each step so the answer is transparent rather than a black box, alongside a list of leap years in a range, the next and previous leap year, and a count between any two years. The rule has three tiers. A year is a leap year if it is divisible by 4, except that years divisible by 100 are not leap years, unless they are also divisible by 400. Written as a single test, a year Y is a leap year when Y is divisible by 4 and either Y is not divisible by 100 or Y is divisible by 400. Counting leap years in a span uses a closed-form shortcut: the number of leap years from year 1 to year n equals the whole number of quarters minus the whole number of centuries plus the whole number of four-hundreds, so the count between two years is that function evaluated at the end year minus its value just before the start year. Every step here is exact integer arithmetic with no rounding. Take the year 2100, which trips up almost everyone. It is divisible by 4, so the naive rule says leap. But it is also divisible by 100, which normally cancels the leap year, and it is not divisible by 400, so the cancellation stands and 2100 is a common year of 365 days. Contrast 2000: divisible by 4, divisible by 100, but also divisible by 400, so it is a leap year. The checker prints exactly this chain for whatever year you enter. Ask it how many leap years fall between 2000 and 2100 inclusive and it returns 25, computed as the century-adjusted count rather than by scanning every year one at a time. Why does the rule bother with the century exceptions at all? Because the Earth takes about 365.2422 days to orbit the Sun, not a tidy 365.25. Adding a day every four years over-corrects slightly, so the calendar would drift about three days every four centuries. Dropping three leap days per four hundred years — the skipped century years — brings the average calendar year to 365.2425 days, within roughly 27 seconds of the true tropical year. A developer validating a date-entry form uses the checker to confirm February 29 is only accepted in real leap years. A teacher uses the step display to show a class why 1900 was not a leap year. Someone born on February 29 uses the range list to see which coming years actually contain their birthday. One nuance worth stating: this checker applies the Gregorian rule to every year, including years before the calendar was introduced in 1582. That is called the proleptic Gregorian calendar and it is the right choice for modern date maths, but historical records from before a country's adoption date used the older Julian rule, which made every fourth year a leap year with no century exception. Britain and its colonies switched only in 1752, dropping eleven days to catch up, and Russia not until 1918, so a medieval or early-modern date can be off by several days if you assume the Gregorian rule applied at the time. The common mistake is to run a birth or event year from the 1600s or 1700s through a modern rule and treat the result as authoritative; if you are doing genealogy or historical research, check which calendar the source document used before trusting a leap-year answer. Everything runs locally in your browser; nothing you type is uploaded or stored anywhere.

Leap Year Checker Formula & Method

Leap year test: (Y mod 4 = 0) AND (Y mod 100 ≠ 0 OR Y mod 400 = 0) Count of leap years from year 1 to n: f(n) = ⌊n/4⌋ − ⌊n/100⌋ + ⌊n/400⌋ Leap years in [a, b] inclusive = f(b) − f(a − 1) Calendar average year = 365 + 97/400 = 365.2425 days (tropical year ≈ 365.2422 days)

Examples: Leap Year Checker

Input

Year 2100

Result

Not a leap year (365 days)

2100 ÷ 4 = 525 (yes) but 2100 ÷ 100 = 21 (yes) and 2100 ÷ 400 is not whole, so the century exception applies.

Input

Year 2000

Result

Leap year (366 days)

2000 is divisible by 4, by 100, and by 400, so the divisible-by-400 branch makes it a leap year.

Input

Count leap years 2000 to 2100 inclusive

Result

25 leap years

f(2100) − f(1999) = 509 − 484 = 25 using ⌊n/4⌋ − ⌊n/100⌋ + ⌊n/400⌋.

Frequently Asked Questions – Leap Year Checker

A year is a leap year if it is divisible by 4, except years divisible by 100 are not leap years unless they are also divisible by 400. So 2024 and 2000 are leap years, while 1900 and 2100 are common years of 365 days.