Skip to content
FiftyCalc Free calculators for all 50 states

Leap Year Calculator

Test cases replayed : 6 of 6 match · Methodology · No outside source listed

Type a year to see whether it is a leap year, and the leap years just before and after it.

Result

Sample figures

Leap year?—

Days in the year —

  • Next leap year—
  • Previous leap year—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Leap Year Calculator

Year: enter 5 or more. Prefilled example: 2,026.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Year: enter 5 or more.
  2. Read the result: Leap year?; the panel also shows Days in the year, Next leap year and Previous leap year.

How this calculator works

Gregorian calendar rule (in force since 1582, used in the United States since 1752): a year is a leap year if it is divisible by 4, except years divisible by 100, which are leap years only if they are also divisible by 400.

So 2024 and 2028 are leap years, 1900 and 2100 are not, and 2000 was. Years before 1582 are judged with the same rule (the proleptic Gregorian calendar), not the older Julian rule.

The formula

  1. L={1if ymod4=0 and ymod100≠0 or ymod400=00otherwise
Symbols used in the formula
SymbolMeaning
yYear
LLeap year?

Worked example

Year2,026
Days in the year365
Next leap year2028
Previous leap year2024
  1. L=0

Leap year? No, it is a common year (365 days)

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

Is 2026 a leap year?

No. The leap years around it are 2024 and 2028.

Why was 2000 a leap year but 1900 was not?

Both are divisible by 100, so they need to be divisible by 400 too: 2000 is, 1900 is not.

What is the next leap year after 2096?

2104, because 2100 is skipped.

Related calculators