Skip to content

Leap Year Checker and Calculator

Enter a year to find out whether it is a leap year or a common year, with the reason, the day counts and the nearest leap years on either side.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Leap year. 2024 is divisible by 4 and is not a century year, so it is a leap year.

Details

Days in year
366
Days in February
29
Divisible by 4
Yes
Divisible by 100
No
Divisible by 400
No
Next leap year
2028
previous: 2020

Quick answers

How do you check whether a year is a leap year or not?
Divide the year by 4. If there is a remainder, it is not a leap year. If it divides evenly, it is a leap year unless it ends in 00. A year ending in 00 is a leap year only when it also divides evenly by 400.
Is 2026 a leap year?
No. 2026 divided by 4 leaves a remainder of 2, so it is a common year with 365 days and a 28-day February. The last leap year was 2024 and the next is 2028.
When is the next leap year?
2028. After that come 2032, 2036 and 2040, every four years up to 2096. The year 2100 is skipped because it divides by 100 but not by 400, so the leap year after 2096 is 2104.
Was 1900 a leap year?
No. 1900 divides by 4 and by 100 but not by 400, so the century exception applies and it had 365 days. The same is true of 1700 and 1800, and it will be true of 2100.
Was 2000 a leap year?
Yes. 2000 divides evenly by 400, so it was a leap year with 366 days even though it is a century year. The next century year that is also a leap year is 2400.
How many days are in a leap year?
366. The extra day is 29 February, which makes the year 52 weeks and 2 days long instead of 52 weeks and 1 day.

What Leap Year Checker does

A year is a leap year if it divides evenly by 4, unless it also divides by 100, in which case it must divide by 400 as well. Type a year and this page applies that test and tells you which step settled the answer: 2024 is a leap year because it divides by 4, 1900 is not because it divides by 100 but not 400, and 2000 is because it divides by 400. You also get the number of days in the year and in February, the three divisibility results, and the next and previous leap years. For reference, 2026 is a common year, and the next leap year after it is 2028.

Leap year or not: commonly checked years

Each row is the result this page gives for that year.

YearLeap year?WhyNext leap year
1400NoDivisible by 100 but not by 4001404
1700NoDivisible by 100 but not by 4001704
1800NoDivisible by 100 but not by 4001804
1900NoDivisible by 100 but not by 4001904
1978NoNot divisible by 41980
1982NoNot divisible by 41984
1984YesDivisible by 4, not a century year1988
1992YesDivisible by 4, not a century year1996
2000YesDivisible by 4002004
2010NoNot divisible by 42012
2019NoNot divisible by 42020
2024YesDivisible by 4, not a century year2028
2025NoNot divisible by 42028
2026NoNot divisible by 42028
2028YesDivisible by 4, not a century year2032
2100NoDivisible by 100 but not by 4002104

Years before 1582 are tested with today's rule. See the section on older dates below for what that means.

How to calculate a leap year: the rule in three steps

1. Year not divisible by 4: common year 2. Divisible by 4 but not by 100: leap year 3. Divisible by 100: leap year only if also divisible by 400 In code: (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0)

Work through the steps in order and stop at the first one that gives an answer. For 1992: 1992 / 4 = 498 with no remainder, and it does not end in 00, so step 2 makes it a leap year. For 2100: it divides by 4 and by 100, so step 3 applies, and 2100 / 400 = 5.25, so it is a common year. A quick check for step 1 is to look only at the last two digits: if they form a number divisible by 4, the whole year is divisible by 4.

Century years: which are leap years

Century years are where the simple every-four-years shortcut goes wrong. Only one in four is a leap year.

Century yearDivisible by 400ResultDays in February
1500NoCommon year28
1600YesLeap year29
1700NoCommon year28
1800NoCommon year28
1900NoCommon year28
2000YesLeap year29
2100NoCommon year28
2200NoCommon year28
2300NoCommon year28
2400YesLeap year29

List of leap years from 1904 to 2096

Every fourth year between 1901 and 2099 is a leap year, with no exceptions, because the only century year in that span is 2000 and it divides by 400.

  • 1904 to 1920: 1904, 1908, 1912, 1916, 1920
  • 1924 to 1940: 1924, 1928, 1932, 1936, 1940
  • 1944 to 1960: 1944, 1948, 1952, 1956, 1960
  • 1964 to 1980: 1964, 1968, 1972, 1976, 1980
  • 1984 to 2000: 1984, 1988, 1992, 1996, 2000
  • 2004 to 2020: 2004, 2008, 2012, 2016, 2020
  • 2024 to 2040: 2024, 2028, 2032, 2036, 2040
  • 2044 to 2060: 2044, 2048, 2052, 2056, 2060
  • 2064 to 2080: 2064, 2068, 2072, 2076, 2080
  • 2084 to 2096: 2084, 2088, 2092, 2096

Why leap years exist, and why century years are skipped

The seasons repeat every 365.2422 days or so, not every 365. A calendar with a fixed 365 days would slip against the seasons by about a day every four years. Adding 29 February every fourth year, as the Julian calendar did from 45 BC, brings the average year to 365.25 days. That is slightly too long, by roughly 11 minutes a year, which adds up to a full day about every 128 years.

By the 1500s the calendar had drifted about ten days. The Gregorian reform of 1582 removed those days, so that Thursday 4 October was followed by Friday 15 October, and dropped three leap days in every 400 years to stop the drift returning. That is the century rule: 1700, 1800 and 1900 lost their leap day, 2000 kept it.

The result is 97 leap years in every 400 years, which is 100 years divisible by 4, minus 4 century years, plus the 1 that divides by 400. The average calendar year is therefore 365.2425 days, close enough to the seasons that the error takes around 3,000 years to reach one day.

Years before 1582 and the Julian calendar

This page applies the Gregorian rule to every year from 1 to 9999. For years before the Gregorian calendar was adopted, that is a back-projection, and it can disagree with what people living at the time recorded.

Under the Julian calendar every year divisible by 4 was a leap year, with no century exception. So 1400 and 1500 really did have a 29 February in the countries using that calendar, even though the result here is Common year. The same applies to 1700 in Britain and its colonies, which did not switch until 1752, and to 1900 in Russia, which switched in 1918.

If you are checking a date in a historical record, find out which calendar the place was using in that year. For anything from the 20th century onwards in most of the world, and for all software that follows ISO 8601, the Gregorian result shown here is the right one.

How to get your result

  1. 1

    Type a whole number from 1 to 9999 in the Year field.

  2. 2

    Read the heading of the result, Leap year or Common year, and the sentence under it that names the part of the rule that applied.

  3. 3

    Check Details for Days in year, Days in February, and the Divisible by 4, Divisible by 100 and Divisible by 400 results.

  4. 4

    Use Next leap year, and the previous one shown beneath it, to find the leap years on either side.

Frequently asked questions

Is every fourth year a leap year?
Nearly. Every fourth year is a leap year except century years that do not divide by 400. Between 1901 and 2099 the every-four-years pattern holds without a break, which is why the exception is easy to forget.
Will 2100 be a leap year?
No. 2100 divides by 4 and by 100 but not by 400, so it will have 365 days. The gap between leap years around it is eight years: 2096, then 2104.
How many leap years are there in a century?
24 or 25. A century that includes a year divisible by 400 has 25, and the others have 24. The years 1901 to 2000 contain 25 leap years. The years 2001 to 2100 contain 24, because 2100 is not one.
Why is the extra day added to February?
February was the last month of the early Roman calendar year, so it was the month that was adjusted when days had to be added. It was also already the shortest month. The convention stayed when January became the first month.
What happens if you are born on 29 February?
Your exact birth date comes round only in leap years. In common years most people celebrate on 28 February or 1 March, and which of those counts as the legal birthday depends on the country. Your age still increases by one every year.
What do the Next leap year and previous values mean for a leap year?
They are the neighbouring leap years, not the year you entered. For 2024 the page shows next 2028 and previous 2020. For 2100 it shows next 2104 and previous 2096.
Can I enter a year with a decimal, a negative year or year 0?
Decimals are cut down to the whole year, so 2024.7 is treated as 2024. Years below 1 or above 9999 are rejected with a message asking for a year between 1 and 9999.
Is a leap year the same thing as a leap second?
No. A leap year adds a whole day to keep the calendar in step with the seasons. A leap second is a one-second adjustment occasionally added to clock time to follow changes in the speed of the Earth's rotation. The two are unrelated.
What years should I use to test leap year code?
1900, 2000, 2024 and 2026 cover every branch: a century year that is not a leap year, a century year that is, an ordinary leap year and an ordinary common year. Code that only tests divisibility by 4 passes three of them and fails on 1900.

Looking for something else? Browse all date & time tools or see every tool.