Leap years keep a civil calendar reasonably aligned with the seasons. They are a practical adjustment to a mismatch: the seasonal year does not contain a whole number of days. Adding an occasional day changes the calendar, not the speed at which time passes.
For modern Gregorian dates, the rule is straightforward once you include the century exception. “Every four years” is a useful shortcut for many everyday dates, but it is not the complete rule.
The Gregorian rule
The US Naval Observatory's leap-year explanation states the rule: years divisible by four are leap years, except years divisible by 100 that are not also divisible by 400.
| Year | Divisible by 4? | Century exception | Result |
|---|---|---|---|
| 2024 | Yes | Not a century year | Leap year |
| 2026 | No | Not needed | Common year |
| 2028 | Yes | Not a century year | Leap year |
| 1900 | Yes | Divisible by 100, not 400 | Common year |
| 2000 | Yes | Divisible by 400 | Leap year |
| 2100 | Yes | Divisible by 100, not 400 | Common year |
You can test a year by checking divisibility by 400 first, then 100, then four. The order prevents incorrectly labelling 2000 as a common year.
Why not add a day every fourth year forever?
A four-year pattern makes the average calendar year 365.25 days. The Gregorian rule instead includes 97 leap days in a 400-year cycle, giving 365.2425 days on average. The Naval Observatory explains why that is a closer fit to the seasonal year.
This is still a calendar model, not a promise that astronomical cycles are perfectly fixed for all future time. It is more useful to understand which calendar rule a date calculation uses than to call leap years a mistake.
A worked date-difference example
From 28 February 2024 to 1 March 2024, two calendar days elapse: the 29th lies between the two dates. From 28 February 2026 to 1 March 2026, one calendar day elapses.
An inclusive count answers a different question. Counting both endpoint dates gives three dates in the first example and two in the second. In the date difference calculator, check the “include end date” choice before comparing results with a manual count.
Calendar dates and elapsed hours also differ when local clocks change. Do not infer that every pair of consecutive local dates is exactly 24 elapsed hours apart in a location that observes daylight saving.
Why historical calculations need a calendar label
The Gregorian calendar was introduced in 1582, but its adoption was not simultaneous everywhere. The Naval Observatory's calendar introduction distinguishes Gregorian, Julian and other systems.
For a historical source, record the calendar and place alongside the written date. A modern calculator applying Gregorian rules throughout is not automatically reproducing the civil calendar used by that source at the time.
Leap day versus leap second
A leap day belongs to calendar-year arithmetic. A leap second concerns the relationship between time scales and Earth's rotation. They are separate topics, and neither can be inferred merely from whether February has 29 days.
A short classroom check
Ask a learner to classify 2028, 2100 and 2400, then explain the century rule without memorising a list. Next, compare a date interval crossing February in a leap and common year. The useful skill is explaining the result and the counting convention, not just getting a number from a tool.
Put what you've learned into practice with our free tool
Open Date Difference Calculator →