Skip to main content
Dates & TimeFree · no sign-up

Leap Year Calculator

Whether a year is a leap year, which rule decided it, and the nearest leap years either side.

Updated

Any year from 1900 to 2100.

Is it a leap year?

No

2026 is a common year, with 365 days.

Days in February
28 days
Days in the year
365
Previous leap year
2024
Next leap year
2028
Gap to the next one
2 years

2026 is not divisible by 4, so it is a common year.

The rule has three steps, and each one overrides the last: divisible by 4 is a leap year, unless it is divisible by 100, unless it is also divisible by 400. That keeps the calendar year within about 27 seconds of the solar year, which is why 2000 was a leap year and 1900 was not.

In short

Is this year a leap year?

A year is a leap year when it divides by 4, except century years, which must also divide by 400. 2026 is not: it leaves a remainder of 2, so February has 28 days and the year runs 365. The last leap year was 2024 and the next is 2028. 1900 was not a leap year; 2000 was.

The century exception is the part almost every hand calculation misses, and it is why 2100, 2200 and 2300 will each run 365 days while 2400 will not.

How to use the leap year calculator

Enter a year and the tool tells you whether it is a leap year, which of the rules decided it, how many days February and the year contain, and where the year sits between the leap years either side of it. The example loaded is 2026, which is not a leap year: it is not divisible by 4, so February keeps 28 days and the year runs to 365.

The last leap year before it was 2024 and the next one is 2028. Nothing here needs a locale or a calendar setting, because the leap rule is a property of the Gregorian calendar itself and is the same wherever that calendar is in civil use.

365

Days in 2026

not a leap year

28

Days in February 2026

a leap year would have 29

2028

Next leap year

the last one was 2024

  1. 1

    Divisible by 4: a leap year

    This first clause is the whole rule most people carry in their head, and on its own it is right about 96 percent of the time.

  2. 2

    Divisible by 100: not a leap year, despite passing the first test

    That is why 1900 was a common year with no 29 February, and why 2100 will run 365 days.

  3. 3

    Divisible by 400: a leap year after all, overriding the second

    That is why 2000 was a leap year even though it is a century year, and why 2400 will be one too.

The leap day itself has a weekday like any other date, and that is often the actual question behind the lookup.

The weekday of the leap day
29 February 2024
Thursday
29 February 2028
Tuesday
29 February 2032
Sunday

Anyone born on 29 February meets a related problem: in a common year the date does not exist, and the convention most jurisdictions use for legal age is to treat 28 February as the anniversary, which keeps the birthday inside its own month. Practice varies for other purposes, and where a rule matters legally, such as when a fixed-term agreement expires, the document itself settles it rather than a calendar convention.

Working out an age across leap days?

The age calculator applies the same 28 February convention, counting whole months first so a 29 February birthday stays inside its own month.

Open the age calculator

Do

  • Check divisibility by 400 before ruling a century year in or out.
  • Read which clause decided the verdict, not just the yes or no.
  • Let the governing document settle a deadline that falls on 29 February.
  • Expect February and the year length to move together, 29 days with 366.

Don't

  • Assume every fourth year is a leap year, because 1900 was not.
  • Write a spreadsheet check that tests divisibility by four alone.
  • Plan on a four-year wait for the leap day that follows 2096.
  • Apply the Gregorian rule to a date recorded under the Julian calendar.

Years run through this page’s engine, showing whether each is a leap year, which clause of the Gregorian rule decided it, the length of February, the weekday of 29 February where there is one, and the next leap year after it.

YearLeap yearRule that decided itDays in February29 February falls onNext leap year
1900NoDivisible by 100 but not by 40028No leap day1904
1996YesDivisible by 4, not a century year29Thursday2000
2000YesDivisible by 400, overriding the century rule29Tuesday2004
2020YesDivisible by 4, not a century year29Saturday2024
2024YesDivisible by 4, not a century year29Thursday2028
2025NoNot divisible by 428No leap day2028
2026 (the example loaded)NoNot divisible by 428No leap day2028
2027NoNot divisible by 428No leap day2028
2028YesDivisible by 4, not a century year29Tuesday2032
2032YesDivisible by 4, not a century year29Sunday2036
2096YesDivisible by 4, not a century year29Wednesday2104
2100NoDivisible by 100 but not by 40028No leap day2104
2104YesDivisible by 4, not a century year29Friday2108
2200NoDivisible by 100 but not by 40028No leap day2204
2400YesDivisible by 400, overriding the century rule29Tuesday2404
Computed from the Gregorian leap rule fixed by the papal bull Inter gravissimas in 1582: divisible by 4, except century years, which must also divide by 400. The tool itself accepts years from 1900 to 2100; the rows beyond that range are included to show the 400-year cycle closing. Dates before a country adopted the Gregorian calendar followed the Julian rule, where every fourth year was a leap year with no exception.

The eight-year gap across a skipped century

The gap between consecutive leap years is four years almost always, and the exception is worth knowing because it is the longest gap the calendar contains. Across a skipped century the gap stretches to eight: 2096 is a leap year, 2100 is not, and the next leap day after 29 February 2096 is 29 February 2104, which is 2,921 days later rather than the usual 1,461.

Nobody reading this will be inconvenienced by that particular gap, but the same arrangement happened between 1896 and 1904, and it is the reason software written on the assumption that every fourth year is a leap year has failed at century boundaries more than once.

The wait between consecutive leap days(days from one 29 February to the next)
Usual four-year gap1,461 days
2096 to 2104, across skipped 21002,921 days

Read it: Across a skipped century year the wait for a leap day doubles, the only irregularity in the entire sequence.

The formula, worked line by line

The test is three integer divisions, applied in order, and the order is what makes it correct. Divisibility by 400 wins outright. Failing that, divisibility by 100 rules the year out. Failing both, divisibility by 4 rules it in.

Written the other way round, as a chain of exceptions, the same rule reads: every fourth year is a leap year, except century years, except those centuries divisible by 400. Both readings give identical answers on every year, and the tool reports which clause fired so the verdict can be checked by hand.

The reason the rule is shaped this way is astronomical rather than arbitrary. A tropical year, the time from one March equinox to the next, is roughly 365.2422 days.

Adding a day every four years, as the Julian calendar did, treats the year as 365.25 days and overshoots by about 11 minutes a year, which accumulates to a full day roughly every 128 years. Dropping three leap days every four centuries brings the average to 365.2425 days, an error of about 27 seconds a year, or a day in roughly 3,200 years.

leap = (year mod 4 = 0 and year mod 100 is not 0) or year mod 400 = 0
February days = 29 when leap, otherwise 28
days in year  = 366 when leap, otherwise 365
leap years in any 400-year cycle = 100 - 4 + 1 = 97
mean Gregorian year = (303 x 365 + 97 x 366) / 400 = 365.2425 days
The leap year rule, as nested groupsYears divisible by 4 are leap years, except century years, which must also divide by 400. 1900 ran 365 days and 2000 ran 366. There is no 29 February between 2096 and 2104, a gap of 8 years.4, THEN 100, THEN 400divisible by 4: leapalso by 100: common1900also by 400: leap2000THE CENTURY EXCEPTION1900365 days2000366 days2096 to 21048-year gapleap years / 40097
Divisible by 4 is a leap year, unless it is a century year, unless that century divides by 400: 1900 no, 2000 yes.
The worked default, 2026
2026 ÷ 4
remainder 2, so the first clause fails immediately
Century clauses
never reached
Days in February
28
Days in the year
365
Verdict
2026 is a common year

The nearest leap years on either side are 2024 and 2028. Compare 2024: it divides by 4 and is not a century year, so it is a leap year, February had 29 days, and 29 February 2024 was a Thursday. Compare 1900: it divides by 4 but also by 100 and not by 400, so the century exception applies and there was no 29 February that year at all.

Counting the 400-year cycle
Multiples of 4 in any 400 consecutive years
100
Century years removed
minus 4
Added back for dividing by 400
plus 1
Leap years per cycle
100 − 4 + 1 = 97, leaving 303 common years

That is exactly what the engine returns for the range 2001 to 2400. The century years are not evenly spread through the cycle, which is why the leap year count differs by century: there are 25 leap years from 2000 to 2099 inclusive but only 24 from 2100 to 2199, because 2000 is a leap year and 2100 is not.

The eight-year gap is the only irregularity in the whole sequence and it is worth spelling out. Consecutive leap years are normally 1,461 days apart, which is four years of 365 plus the extra day. Across a skipped century the interval doubles to 2,921 days: 29 February 2096 to 29 February 2104 spans eight years because 2100 is not a leap year.

The Gregorian reform that produced all of this was promulgated by the papal bull Inter gravissimas in February 1582 and took effect that October, when 10 days were dropped from the calendar. Adoption was staggered by country: Britain and its colonies did not switch until September 1752, dropping 11 days, and Russia not until 1918.

Questions people ask

Sources

Where the constants and formulas on this page come from. Each line names the figure it backs.

  1. The Gregorian leap rule stated normatively: divisible by 4, except centuries, which must also divide by 400.

    RFC 3339, Date and Time on the Internet: Timestamps, Appendix CIETF, 2002

  2. Why the century exception exists: the 1582 reform dropped three leap days per 400 years to correct the Julian overestimate of the solar year.

    Leap Day Is Here: It Does Not Have to Be Your Standard WeekdayNIST