How to Solve Calendar Leap Year Problems
Master the leap year test — divisible by 4, the century exception, divisible by 400 — with a worked example and practice questions with answers.
Expected Interview Answer
A year is a leap year if it is divisible by 4, except century years (ending in 00), which must be divisible by 400 to be leap years — so 2024 is a leap year, 1900 is not, but 2000 is.
The rule exists because a true solar year is about 365.2425 days, not exactly 365.25, so simply adding a day every 4 years (the Julian rule) overcorrects slightly; excluding three out of every four century years fixes that drift, which is why the Gregorian calendar added the divisible-by-400 exception. In leap-year counting problems, the key skill is applying a three-tier test in order: not divisible by 4 → not leap; divisible by 4 but not by 100 → leap; divisible by 100 but not by 400 → not leap; divisible by 400 → leap. This same logic underlies “odd days” calculations, since a leap year contributes 2 odd days instead of a normal year's 1.
- A single three-tier test resolves every year unambiguously
- Explains why 1900 and 2100 are not leap years despite being divisible by 4
- Feeds directly into odd-days and day-of-the-week calculations
AI Mentor Explanation
A cricket board schedules a special World Cup edition every 4 years, but if that edition would fall in a year ending in 00, they only actually hold it when that year is also divisible by 400 — otherwise it is quietly skipped, the way 1900 skipped the World Cup pattern but 2000 kept it. This mirrors the leap-year rule exactly: divisible by 4 is the default trigger, but century years need the extra divisible-by-400 check to actually qualify. Getting this three-tier check right is what separates a correct leap-year answer from a careless one.
Worked example
1900
- ÷4 yes, ÷100 yes, ÷400 no
- Not a leap year
2000
- ÷4 yes, ÷100 yes, ÷400 yes
- Leap year
2024
- ÷4 yes, ÷100 no
- Leap year
Step-by-Step Explanation
Step 1
Check divisibility by 4
If not divisible by 4, the year is not a leap year — stop here.
Step 2
Check if it is a century year
If divisible by 4 but not by 100, it is a leap year — stop here.
Step 3
Apply the divisible-by-400 exception
For century years (divisible by 100), leap only if also divisible by 400.
Step 4
Use the result downstream
A leap year contributes 2 odd days (366 days) instead of 1 (365 days) in odd-day calculations.
What Interviewer Expects
- Correct three-tier leap-year test applied in the right order
- Knowing the divisible-by-400 exception for century years
- Ability to quickly classify multiple years
- Connecting leap years to the odd-days concept for day-of-week problems
Common Mistakes
- Treating every year divisible by 4 as a leap year, ignoring the century exception
- Applying the divisible-by-400 rule to non-century years unnecessarily
- Assuming 1900 was a leap year because it is divisible by 4
- Forgetting a leap year contributes 2 odd days, not 1, in follow-on calendar problems
Best Answer (HR Friendly)
“I check divisibility by 4 first — if it fails, it is not a leap year. If it passes and the year is not a century year, it is a leap year. If it is a century year, I only call it a leap year when it is also divisible by 400, which is why 1900 was not a leap year but 2000 was. That three-step check handles every case correctly.”
Follow-up Questions
- Why does the Gregorian calendar need the divisible-by-400 exception at all?
- How many odd days does a leap year contribute compared to a normal year?
- How would you count the number of leap years between two given years?
- Is the year 2100 a leap year, and why or why not?
MCQ Practice
1. Which of these is a leap year?
2400 is divisible by 4, 100, and 400, so it is a leap year; 1900 and 2100 fail the divisible-by-400 test.
2. How many odd days does a leap year contribute?
A leap year has 366 days = 52 weeks + 2 days, so it contributes 2 odd days.
3. Why is 1900 not a leap year despite being divisible by 4?
1900 is a century year divisible by 100 but not by 400, so the exception disqualifies it despite being divisible by 4.
Flash Cards
Basic leap year rule? — Divisible by 4 is a leap year, unless it is a century year.
Century year exception? — A century year (divisible by 100) is leap only if also divisible by 400.
Is 2000 a leap year? — Yes — divisible by 4, 100, and 400.
Odd days in a leap year? — 2 odd days (366 = 52 weeks + 2 days).