Home · Date & Time · Calendars & Cycles · Leap Year Calculator

Leap Year Calculator

Check whether any year is a leap year under the Gregorian rule, see how long February is, and find the leap years before and after it.

Your figures

Example result — edit the figures to make it yours

Leap year

Days in 2028

February has29 days
Next leap year2,032
Previous leap year2,024

Gregorian rule: a year is a leap year when divisible by 4, except century years, which must be divisible by 400 — so 2000 was a leap year and 1900 was not.

What this calculator does

Check whether any year is a leap year under the Gregorian rule, see how long February is, and find the leap years before and after it. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

A year is a leap year when divisible by 4, except century years, which are leap years only when divisible by 400.

The rule is the Gregorian leap rule: divisible by 4, except centuries not divisible by 400 — so 2000 was a leap year and 1900 was not.

A leap year has 366 days with February 29 as the extra day; a common year has 365.

The calendar is proleptic Gregorian, so the rule is applied to any year entered.

Worked example

With the example inputs this page opens with (year 2028), the result is Leap year — days in 2028.

Quick reference

Quick reference — varying year
YearDays in 2028
1014Not a leap year
1622.4Not a leap year
2028Leap year
2535Not a leap year
3042Not a leap year
4056Leap year

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why do century years break the pattern?

The solar year is about 365.2422 days. Skipping the leap day in three century years out of four keeps the calendar within a day of the seasons over millennia.

Was the year 2000 a leap year?

Yes — century years divisible by 400 keep their leap day, so February 2000 had 29 days, unlike February 1900.

How does the Leap Year Calculator work?

Check whether any year is a leap year under the Gregorian rule, see how long February is, and find the leap years before and after it. Year → Leap year or not, and days in the year. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Leap Year Calculator need?

Year → Leap year or not, and days in the year. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.