Check if a year is a leap year and find the next and previous leap years. Free online leap year calculator with explanation.
A leap year is a calendar year that contains an additional day (February 29), making it 366 days instead of 365. Leap years are necessary because the Earth takes approximately 365.2425 days to orbit the Sun, not exactly 365. Without leap years, our calendar would gradually drift from the solar year.
Is Leap Year = (Year % 4 === 0) AND (Year % 100 !== 0 OR Year % 400 === 0)A year is a leap year if: (1) it is divisible by 4, AND (2) if it is a century year (divisible by 100), it must also be divisible by 400. This means 2000 was a leap year (divisible by 400), but 1900 was not (divisible by 100 but not 400).
| Input | Output |
|---|---|
| 2024 | IS a leap year | Next: 2028 | Previous: 2020 |
| 1900 | NOT a leap year | Next: 1904 | Previous: 1896 |
| 2000 | IS a leap year | Next: 2004 | Previous: 1996 |