Format Code Now
/

Leap Year Calculator

CU-96

Type a year to see whether it is a leap year, with the rule that decided it, the previous and next leap years, and an optional list of every leap year in a range.

Runs in your browser. Nothing is uploaded.

Year and range

Result

Leap year?No, 2026 is not a leap year
Rule that decided it2026 is not divisible by 4, so it is not a leap year.
Days in the year365 days (February has 28)
Previous leap year2024
Next leap year2028
Leap years from 2020 to 20406 leap years in 21 years
First and last in the range2020 and 2040
CalendarProleptic Gregorian: the same rule is applied to every year, including years before 1582 when the Gregorian calendar did not exist yet.

Leap years in the range

2020
2024
2028
2032
2036
2040

How to use it

  1. Type a year from 1 to 9999.
  2. Read the answer, the rule that decided it, and the previous and next leap years.
  3. Set the range to Yes and enter two years to list every leap year in between, then copy or download the list.

The rule

A year is a leap year if it is divisible by 4, except that century years are leap years only when they are divisible by 400. So 2024 and 1996 are leap years. 1900 and 2100 are not, because they are divisible by 100 but not by 400. 2000 and 2400 are, because they are divisible by 400. The result names the part of the rule that decided your year, and gives the length of the year and of February.

Lists and counts

Turn on the range to list every leap year from the first year to the last. The count and the first and last leap years appear in the table, and the full list sits in the box below, one year per line, ready to copy or download. From 2020 to 2040 there are six: 2020, 2024, 2028, 2032, 2036 and 2040. Years 1 to 9999 contain 2,424 leap years.

Proleptic Gregorian

The Gregorian calendar was introduced in 1582, and countries adopted it at different times. This tool applies its rule to every year from 1 to 9999, which is called the proleptic Gregorian calendar. For old dates, the leap years of the calendar in use then can differ, because the earlier Julian calendar made every fourth year a leap year with no century exception. This tool does not model that.

Error messages and what to do

MessageWhat it meansFix
From year is after To year. Put the earlier year first.The range runs backward.Swap the two years.
Year must be between 1 and 9,999.The year is outside the supported range.Use a year from 1 to 9999.

Questions people ask

Is 2024 a leap year?

Yes. 2024 is divisible by 4 and not by 100, so it is a leap year with 366 days and a February 29. The next leap year after it is 2028.

Is 2100 a leap year?

No. 2100 is divisible by 4, but it is also divisible by 100 and not by 400, so it is a common year with 365 days. The leap years run 2096, then 2104.

Is the year 2000 a leap year?

Yes. 2000 is divisible by 400, which overrides the century exception. That is why 2000 had a February 29 while 1900 did not. Type any year in the tool to see which part of the rule applies.

When is the next leap year?

The tool shows the next leap year after the year you type. After 2026 it is 2028. Leap years come every four years, except that three century years in every four hundred years are skipped.

How many leap years are in a century?

A century such as 2001 to 2100 has 24, because 2100 is skipped. The century 1901 to 2000 has 25, because 2000 counts. Set a range in the tool to count and list them for any span of years.

Why do we have leap years?

A year of seasons is about 365.2425 days, not 365. Adding a day every fourth year, and skipping three of those in every 400 years, keeps the calendar close to the seasons. The average Gregorian year is exactly 365.2425 days.

About this tool

A year is a leap year if it is divisible by 4, except that century years (divisible by 100) are not leap years unless they are also divisible by 400. So 2024 and 1996 are leap years, 1900 and 2100 are not, and 2000 and 2400 are. The tool states which part of the rule decided the answer, gives the previous and the next leap year, and shows how many days the year has and how long February is. The optional range lists every leap year from the first year to the last, one per line in the box below the table, with the count, and you can copy or download the list. The rule is applied as a proleptic Gregorian calendar to every year from 1 to 9999: the Gregorian calendar was introduced in 1582 and many countries adopted it much later, so for old dates the leap years of the calendar actually in use then can differ, because the earlier Julian calendar made every fourth year a leap year without exception. This tool does not model that.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.