- Foundation
- About 12 min
- 5 practice questions
Leap years: the divisible-by-4 rule and the century exception
Decide whether any year is a leap year using the rule of 4 and the rule of 400, and count the leap years in a range of years.
If something looks wrong, please tell us.
Leap years are the reason calendar questions need care. A leap year has 366 days instead of 365, with the extra day added as 29 February. Get the leap-year test wrong and every later answer is one day out. This lesson gives the exact rule, explains where it comes from, and shows how to count leap years in a range.
Why leap years exist
The Earth takes about 365 and a quarter days to go round the Sun (a little less, about 365.2422 days). A calendar of exactly 365 days would slowly drift away from the seasons. Adding one day every four years fixes most of the drift. But a quarter of a day is slightly more than the true extra, so adding a day every four years over-corrects by about three days every 400 years. The calendar we use, the Gregorian calendar, removes those three days by skipping the leap day in three out of every four century years.
The rule
Is it a leap year?
-
Not a century year
Does not end in 00.
- Leap if divisible by 4
- 2024 and 1996 are leap; 2026 is not
-
Century year
Ends in 00.
- Leap only if divisible by 400
- 1600 and 2000 are leap; 1700, 1800, 1900 and 2100 are not
- A year that is not a century year (does not end in 00) is a leap year if it is divisible by 4. Example: 2024 and 1996 are leap years; 2026 is not.
- A century year (ending in 00) is a leap year only if it is divisible by 400. Example: 1600 and 2000 are leap years; 1700, 1800, 1900 and 2100 are not.
Shortcut for the first rule: a number is divisible by 4 if its last two digits are divisible by 4. So 1988 (88 / 4 = 22) is a leap year, while 1990 (90 is not divisible by 4) is not. For century years, ignore the last two zeros and check whether the remaining number is divisible by 4: 2000 gives 20, divisible by 4, so leap; 1900 gives 19, not divisible by 4, so not leap.
| Year | Divisible by 4? | Century year? | Divisible by 400? | Leap year? |
|---|---|---|---|---|
| 2024 | Yes | No | - | Yes |
| 2026 | No | No | - | No |
| 1900 | Yes | Yes | No | No |
| 2000 | Yes | Yes | Yes | Yes |
| 2100 | Yes | Yes | No | No |
| 2400 | Yes | Yes | Yes | Yes |
Worked example 1: test four years
Question: Which of 1800, 1996, 2000 and 2022 are leap years? Working: 1800 is a century year and 18 is not divisible by 4, so 1800 is not leap. 1996 is not a century year and 96 / 4 = 24, so it is leap. 2000 is a century year and 2000 / 400 = 5, so it is leap. 2022: 22 is not divisible by 4, so it is not leap. Answer: 1996 and 2000.
Worked example 2: count leap years in a range
Question: How many leap years are there from 1901 to 2000, both included? Working: first count the multiples of 4: they run 1904, 1908, ... 2000. The count is (2000 - 1904) / 4 + 1 = 24 + 1 = 25. Then remove any century year not divisible by 400. The only century year here is 2000, which is divisible by 400, so it stays. Answer: 25.
Worked example 3: a range containing a non-leap century
Question: How many leap years are there from 2001 to 2100, both included? Working: multiples of 4 run 2004, 2008, ... 2100: (2100 - 2004) / 4 + 1 = 25. But 2100 is a century year not divisible by 400, so remove it: 25 - 1 = 24. Answer: 24.
Counting leap years from 2001 to 2100
- Count the multiples of 4 2004 to 2100: (2100 - 2004) / 4 + 1 = 25.
- Remove century years not divisible by 400 2100 is one, so 25 - 1.
- Leap years left 24.
Ordinary year: leap if divisible by 4. Century year: leap only if divisible by 400. To count leap years in a range, count multiples of 4, then remove century years not divisible by 400.
Key takeaways: never call a year leap just because it is divisible by 4 - check whether it ends in 00 first. In most ranges of 100 consecutive years there are 24 leap years, but a range that contains a year like 2000 has 25. The extra day is always 29 February, so a leap year only affects dates from March onward.
Check your understanding
-
1. Which of these years is a leap year?
- 1900
- 2100
- 2000
- 1800
Show answer
Answer: C. Century years are leap only when divisible by 400. 2000 / 400 = 5, so 2000 is leap. 1800, 1900 and 2100 are divisible by 4 but not by 400, so they are ordinary years.
-
2. Which of these years is NOT a leap year?
- 2200
- 2024
- 1996
- 2400
Show answer
Answer: A. 2024 and 1996 are not century years and are divisible by 4, so both are leap. 2400 is divisible by 400, so it is leap. 2200 is a century year and 22 is not divisible by 4, so 2200 is not divisible by 400 and is an ordinary year.
-
3. How many leap years are there from 2001 to 2100, both years included?
- 25
- 24
- 26
- 23
Show answer
Answer: B. Multiples of 4 from 2004 to 2100: (2100 - 2004) / 4 + 1 = 25. Remove 2100, a century year not divisible by 400. That leaves 24 leap years.
-
4. How many days does February have in the year 2400?
- 28
- 30
- 29
- 27
Show answer
Answer: C. 2400 is a century year divisible by 400 (2400 / 400 = 6), so it is a leap year and February has 29 days.
-
5. A child is born on 29 February 2028. In which year will the child next see a 29 February?
- 2029
- 2030
- 2031
- 2032
Show answer
Answer: D. 29 February exists only in leap years. 2029, 2030 and 2031 are not divisible by 4. The next leap year is 2028 + 4 = 2032, which is not a century year, so it is leap.
Sign in to keep track of the lessons you finish.