Skip Navigation

Leap Year Calculator

Check whether any year is a leap year and find nearby leap years. A leap year has 366 days — the extra day falls on February 29th, which only exists in leap years.

Formula

Leap year if: (year mod 4 = 0 AND year mod 100 ≠ 0) OR year mod 400 = 0

Examples:

2024: mod 4 = 0, mod 100 = 24 → leap year 1900: mod 100 = 0, mod 400 = 300 → not a leap year 2000: mod 400 = 0 → leap year

How to Determine if a Year is a Leap Year

A year is a leap year if it satisfies these three rules in order:

• Step 1: Is it divisible by 4? If no → not a leap year.

• Step 2: Is it divisible by 100? If no → it is a leap year.

• Step 3: Is it divisible by 400? If yes → it is a leap year. If no → not a leap year.

2024: mod 4 = 0, mod 100 = 24 → leap year. 1900: mod 100 = 0, mod 400 = 300 → not a leap year. 2000: mod 400 = 0 → leap year.



See also