Leap Year Checker
Type a year and this checker tells you at once whether it is a leap year. It also shows the number of days in the year and the nearest leap years before and after it.
How to use it
Enter any positive year and press the button or the Enter key. The result states whether it is a leap year and lists the neighbouring leap years.
How it is calculated
A year is a leap year if it is divisible by 4, except years divisible by 100, which are not leap years, unless they are also divisible by 400. In code: year % 4 == 0 and (year % 100 != 0 or year % 400 == 0).
The rule follows the Gregorian calendar and is applied to all years, including those before its introduction.
Examples
2024 is divisible by 4 and not by 100, so it is a leap year with 366 days.
1900 is divisible by 100 but not by 400, so it is not a leap year. 2000 is divisible by 400, so it is a leap year.
Good to know
Leap years matter for software, contracts, payroll, birthdays and anything that counts days. A common bug is using only the divisible-by-4 rule, which fails for 1900 and 2100. If you write code, use the full test shown above or rely on your language's date library. The calendar itself repeats exactly every 400 years.
FAQ
Why do we have leap years?
A solar year is about 365.2425 days, so an extra day every few years keeps the calendar aligned with the seasons.
Is 2100 a leap year?
No. It is divisible by 100 but not by 400.
How often do leap years occur?
Usually every four years, with the century exceptions, giving 97 leap years in every 400.
What if I was born on 29 February?
In non-leap years the birthday is commonly marked on 28 February or 1 March, depending on local custom.
See also
Try also BMI Calculator.
Also handy: Age Calculator.
Another free tool: Days Between Dates.
See also Percentage Calculator.
Another utility: Tip Calculator.