Leap year calculator

Type a year to find out if it is a leap year, see which part of the Gregorian rule decides it, and get the next eight leap years. The year starts as the current one.

  • Free
  • No sign-up
  • Runs in your browser

Gregorian calendar rule, applied to all years (proleptic).

Runs in your browser — nothing you enter is sent to our servers.

How to use Leap year calculator

  1. Type a year, or keep the current year that is filled in when the page loads.
  2. Read whether it is a leap year and the reason, including the number of days in February and in the year.
  3. Check the list of the next leap years below the result.

Features

  • Applies the full Gregorian rule, including the century exceptions
  • Explains which condition decides the answer (divisible by 400, by 100 or by 4)
  • Shows the number of days in February and in the year
  • Lists the next eight leap years

Examples

InputResult
2024Leap year (divisible by 4, not by 100); 366 days
2100Not a leap year (divisible by 100 but not by 400); 365 days
2000Leap year (divisible by 400); 366 days
2026Not a leap year; next leap years 2028, 2032, 2036 and so on

Limitations

  • The Gregorian rule is applied to every year, including years before it was adopted (1582 or later, depending on the country). Earlier dates in other calendars may not match.
  • Only whole years from 1 to 99999 are accepted.
  • It answers the leap year question only; for the number of days between dates, use the date calculator.

Learn more

The Earth takes about 365.2422 days to orbit the Sun, which is slightly more than 365. If the calendar always had 365 days, dates would drift against the seasons by about a day every four years. Adding 29 February every fourth year fixes most of this, but it slightly overcorrects. The Gregorian calendar, introduced in 1582, therefore skips the leap day in century years unless the year is divisible by 400.

Together the three conditions give an average year length of 365.2425 days, close enough that the calendar drifts by about one day in 3,000 years. In practice, to check a year, ask three questions in order: is it divisible by 400 (leap year), is it divisible by 100 (not a leap year), is it divisible by 4 (leap year). If none applies, it is an ordinary year. Software that stores dates, such as spreadsheets, relies on exactly this rule.

Frequently asked questions

What is the rule for a leap year?

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.

Why is 2000 a leap year but 1900 is not?

Both are divisible by 100, but 2000 is also divisible by 400 while 1900 is not. The 400 rule makes 2000 an exception to the exception.

Why do leap years exist?

A solar year is about 365.2425 days long. Adding a day in most years divisible by 4 keeps the calendar in step with the seasons.

When is the next leap day?

It falls on 29 February of the next leap year. Type the current year to see the next eight leap years in the list.

Sources

Last reviewed: September 30, 2026