Skip to content
Free time tool

Leap year checker

A leap year adds a 29th day to February so the calendar stays in step with Earth's trip around the Sun. This checker tells you whether a year is a leap year and how many days it has. It helps with homework, date code and planning around February 29.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

Whole number, 1 to 9999

Result

Leap yearYes
Days in 2028
366
February 2028
29 days
Previous leap year
2024
Next leap year
2032

2028 is a leap year because it is divisible by 4 and not by 100.

The short answer

A year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2024 and 2000 are leap years, while 1900 and 2100 are not.

FormulaLeap year if (year mod 4 = 0 and year mod 100 != 0) or year mod 400 = 0

Worked exampleThe year 2028 is a leap year because it is divisible by 4 and not by 100, so it has 366 days and February has 29 days, with 2024 and 2032 as the neighboring leap years.

Example

Input
Year
2028
Result
Leap yearYes
Days in 2028
366
February 2028
29 days
Previous leap year
2024
Next leap year
2032

2028 is a leap year because it is divisible by 4 and not by 100.

How to use the leap year checker

  1. Enter a whole Year from 1 to 9999, such as 2028.
  2. Read whether it is a leap year, the days in the year and February, and the nearest leap years.
  3. The result updates as you type, or press Run. Use Copy result or Download to keep it.

How it works

Years divisible by 4 are leap years.

Century years like 1900 are not leap years unless they are also divisible by 400, like 2000.

The rule is the Gregorian one, applied to all years from 1 to 9999, including years before the calendar was adopted.

Decimals, negative years and years above 9999 are rejected.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

How do you know if a year is a leap year?

It must be divisible by 4. If it is a century year ending in 00, it must also be divisible by 400.

Was 1900 a leap year?

No. 1900 is divisible by 100 but not by 400, so February 1900 had 28 days.

Is 2000 a leap year?

Yes. 2000 is divisible by 400, so it had 366 days.

How many days are in a leap year?

A leap year has 366 days, with 29 days in February. Other years have 365.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools