2024
- Year
- 2024
- Result
- Leap year
- Rule that decides it
- Divisible by 4 but not by 100
- Days in the year
- 366
- Previous leap year
- 2020
- Next leap year
- 2028
Checked against: Independent calculation
Leap year checker: whether a year has 366 days under the Gregorian rule, which test decides it, and the previous and next leap years.
By AdminDrafted with AI writing toolsUpdated Checked examples: 5
2026 is a common year (not divisible by 4), so February has 28 days. The previous leap year is 2024 and the next is 2028; the Gregorian rule gives 97 leap years every 400 years.
No year entered, so this checks the current year, 2026.
No: a common year.
No: the century rule doesn't apply.
No: not divisible by 400.
Under the Gregorian rule a year is a leap year if it is divisible by 4, except century years, which are leap years only if they are also divisible by 400. The checker applies the three tests in order, reports the one that decides, and gives the days in the year and in February and the nearest leap years either side.
Century years are where the rule catches people out. 1900 was a common year because it is divisible by 100 but not by 400, while 2000 was a leap year because it is divisible by 400. The next skipped year is 2100, so the leap year after 2096 is 2104, eight years later.
The rule gives 97 leap years in every 400, an average year of 365.2425 days, about 27 seconds longer than the mean tropical year of 365.24219 days. Years before 1582 are checked with the Gregorian rule extended backwards.
A common year has 365 days and a leap year 366, the extra day being 29 February. A year is a leap year if it divides by 4, except century years, which must also divide by 400. 2026 has 365 days, and 2028 is the next leap year.
The months add up to that total: seven months of 31 days, four of 30 and a 28-day February give 7 × 31 + 4 × 30 + 28 = 365. A leap year's 29 February makes 366.
As one test: leap = (divisible by 4 and not by 100) or divisible by 400. The US Naval Observatory's leap-year reference states the same Gregorian rule.
2100 divides by 4 (2100 ÷ 4 = 525) but not by 400 (2100 ÷ 400 = 5.25), so its February has 28 days. 2000 ÷ 400 = 5 exactly, which is why February 2000 had 29.
| Year | Classification | Days in year | February days | Previous leap | Next leap |
|---|---|---|---|---|---|
| 1600 | Leap year | 366 | 29 | 1596 | 1604 |
| 1700 | Common year | 365 | 28 | 1696 | 1704 |
| 1800 | Common year | 365 | 28 | 1796 | 1804 |
| 1900 | Common year | 365 | 28 | 1896 | 1904 |
| 2000 | Leap year | 366 | 29 | 1996 | 2004 |
| 2024 | Leap year | 366 | 29 | 2020 | 2028 |
| 2026 | Common year | 365 | 28 | 2024 | 2028 |
| 2028 | Leap year | 366 | 29 | 2024 | 2032 |
| 2096 | Leap year | 366 | 29 | 2092 | 2104 |
| 2100 | Common year | 365 | 28 | 2096 | 2104 |
| 2104 | Leap year | 366 | 29 | 2096 | 2108 |
| 2400 | Leap year | 366 | 29 | 2396 | 2404 |
Previous and next leap years are strictly before and after the year itself, so a leap year such as 2028 lists 2024 and 2032. Around a skipped century the spacing stretches to eight years, as from 2096 to 2104.
In 400 years, 100 are divisible by 4. Three of those are century years that fail the 400 test, such as 1700, 1800 and 1900, which leaves 97 leap years.
The cycle therefore has 400 × 365 + 97 = 146,097 days, an average of 365.2425 days a year. That is exactly 20,871 weeks, so the Gregorian calendar repeats with the same weekdays every 400 years.
The Julian calendar used before the Gregorian reform made every fourth year a leap year, 100 in 400, for an average of 365.25 days. Astronomers still use that Julian year of exactly 365.25 days, for example to define the light-year.
=OR(MOD(A2,400)=0, AND(MOD(A2,4)=0, MOD(A2,100)<>0)) returns TRUE for a leap year in A2.calendar.isleap(2100) returns False and calendar.isleap(2000) returns True.DATE(1900,2,29) returns a date. A test that asks whether 29 February exists gets 1900 wrong in Excel; the MOD formula does not.To count the days between two dates, use the date difference calculator. The day of the week calculator shows which weekday 29 February falls on in a given year.
Checked against: Independent calculation
Checked against: Independent calculation
Checked against: Independent calculation
Checked against: Independent calculation
Because century years must be divisible by 400 to be leap years, and 2100 ÷ 400 = 5.25. February 2100 will have 28 days, and there will be no leap year between 2096 and 2104. The same rule made 1700, 1800 and 1900 common years, while 1600 and 2000 were leap years. The next century leap year is 2400.
The year of the seasons, the tropical year, is about 365.2422 days, so a 365-day calendar would slip by almost a day every 4 years and about 24 days a century. The Julian calendar's leap day every fourth year overcorrected by about 11 minutes a year; by 1582 the March equinox had drifted 10 days, which the Gregorian reform removed and the century rule prevents from recurring.
Pope Gregory XIII decreed it in the bull Inter gravissimas of 24 February 1582. Italy, Spain, Portugal and Poland switched that October, when 4 October was followed by 15 October. Britain and its colonies changed in September 1752, dropping 11 days; Russia in February 1918, dropping 13; and Greece in 1923, also dropping 13.
2028. The leap years after it are 2032 and 2036, and 29 February falls on a Tuesday in 2028, a Sunday in 2032 and a Friday in 2036. Every year divisible by 4 up to 2096 is a leap year, because the first century year in that run that fails the 400 test is 2100.
This calculator includes 5 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.