In October 1582, people in Catholic Europe went to sleep on Thursday the 4th and woke up on Friday the 15th. Ten days were deleted by decree — no riots-worthy conspiracy, just accounting. The calendar had been running fast for 1,600 years because of an error of about 11 minutes per year, and someone finally had to pay the bill. That error, and the fix for it, is why February occasionally grows a day.
The Root Cause: Earth Doesn't Do Round Numbers
One orbit of the Sun — a tropical year — takes 365.24219 days. Not 365. Not 365.25. That awkward 0.2422 is the entire story: our calendar needs whole days, and the universe declines to supply them.
- Ignore the fraction entirely and the calendar drifts ~24 days per century — within a few hundred years, summer arrives in "December."
- Julius Caesar's fix (46 BCE) was elegant: add one day every 4 years, making the average year 365.25 days.
- But 365.25 − 365.2422 = 0.0078 days ≈ 11 minutes too long, every year. Small. Relentless. By 1582 it had accumulated into ten full days of drift, dragging the spring equinox — and with it the date of Easter — away from where the Church had fixed it.
The Gregorian Fix: Three Rules, One Weird Century Clause
Pope Gregory XIII's 1582 reform deleted the accumulated ten days and installed a smarter rule to stop it recurring:
- Every year divisible by 4 is a leap year…
- …except years divisible by 100, which are not…
- …except years divisible by 400, which are.
| Year | Leap? | Why |
|---|---|---|
| 2024 | Yes | Divisible by 4 |
| 1900 | No | Divisible by 100, not by 400 |
| 2000 | Yes | Divisible by 400 — the rare exception to the exception |
| 2100 | No | The next skipped leap year |
The arithmetic: skipping 3 leap days every 400 years gives 97 leap days per 400 years → average year = 365 + 97/400 = 365.2425 days. Compared to the true 365.24219, that's an error of about 27 seconds a year — one day of drift every ~3,200 years. Good enough that nobody alive needs to worry about it. (If you've ever wondered why an age calculator can't just divide days by 365, this is why — it has to walk the actual calendar.)
The Ripples Nobody Expected
- Different countries switched at different times. Britain and its colonies held out until 1752 and had to delete eleven days. This is why George Washington has two birthdays in the records (Feb 11 old style, Feb 22 new style) — and why historians writing about the 17th century have to specify which calendar they mean.
- "Leaplings" born on February 29 get a real birthday every four years; laws generally treat March 1 (or Feb 28) as the legal anniversary in common years.
- Payroll gets strange: a leap year hands biweekly-paid employees an occasional 27th paycheck, and salaried workers technically work a free day — a quirk worth knowing when reconciling annual figures in the Salary Calculator.
- Software still fails at this. The Feb 29 bug is a genre: Microsoft's Zune players froze en masse on Dec 31, 2008; Azure had a leap-day outage in 2012; ticketing and billing systems trip over it regularly. The century rule is the classic trap — code that tests only "divisible by 4" works perfectly for a lifetime, then breaks in 2100.
Leap Seconds: The Modern Sequel
Leap days fix the orbit; leap seconds fix the spin. Earth's rotation is gradually slowing (tidal friction from the Moon) and wobbles unpredictably, so since 1972 timekeepers have occasionally inserted an extra second into atomic time to keep clocks aligned with the actual planet — 27 of them so far. They've caused enough havoc in computing (Reddit, Cloudflare and Linux servers have all been felled by a repeated second) that the international community voted to retire leap seconds by 2035. Meanwhile, days are currently running a fraction of a millisecond short of 24 hours, raising the odd prospect of a first-ever negative leap second.
The Deeper Lesson: All Calendars Are Compromises
A calendar is an attempt to tile three incommensurable cycles — day (Earth's spin), month (Moon's orbit ≈ 29.53 days), year (Earth's orbit) — none of which divide evenly into the others. Every culture chose a different compromise: the Islamic calendar follows the Moon and drifts through the seasons by design; the Hebrew calendar inserts an entire leap month seven times per 19 years; the Gregorian calendar keeps the seasons and lets the months lose their lunar meaning. There is no correct answer — only which error you prefer to live with. That's a surprisingly common shape in applied math, the same spirit as choosing an approximation in our scientific notation guide.
Worked Scenario: Nadia, Born February 29, 2024
The century clause sounds like trivia until it lands on a person. Nadia was born on February 29, 2024. Here is her actual birthday schedule, and the gap waiting for her in old age.
| Occasion | Date | Nadia's age | Gap since last one |
|---|---|---|---|
| Born | Feb 29, 2024 | 0 | — |
| 1st real birthday | Feb 29, 2028 | 4 | 4 years |
| 10th real birthday | Feb 29, 2064 | 40 | 4 years |
| 18th real birthday | Feb 29, 2096 | 72 | 4 years |
| 19th real birthday | Feb 29, 2104 | 80 | 8 years |
What that table quietly contains:
- Nineteen real birthdays in eighty years. Everyone else gets eighty. Nadia gets a calendar date that exists 97 times in every 400 years, which is the whole Gregorian correction expressed as a personal inconvenience.
- The 2100 skip costs her four years. 2100 is divisible by 100 but not by 400, so February 29 simply does not occur. She turns 76 in a year with no birthday date at all, and waits from 2096 to 2104.
- Being a leapling is roughly a 1-in-1,506 event. A full Gregorian cycle spans 146,097 days and contains 97 leap days, so 97 ÷ 146,097 gives about 0.066% of birthdays. Against a world population near 8 billion that is on the order of 5 million people.
- Her legal age is a separate question from her birthday. In common years, jurisdictions variously treat March 1 or February 28 as the anniversary for licences, contracts and majority. Software that computes ages by walking the calendar, as the Age Calculator does, handles this; software that divides days by 365.25 does not.
Flip the scenario back in time and it gets sharper. A leapling born on February 29, 1896 hit the same skip immediately: 1900 was not a leap year, so their first real birthday came in 1904, at the age of eight. Same rule, same eight-year gap, delivered at the start of a life rather than near the end of one. No skipped leap year falls anywhere between 1900 and 2100, so nobody now alive has ever watched the century clause fire — which is exactly why the bug keeps getting written.
Common Mistakes With Leap Years and Dates
- Testing only whether the year divides by 4. That rule is correct for every year from 1901 to 2099 — a 199-year window covering every developer alive — and then wrong in 2100. Implement all three clauses: divisible by 4, except by 100, unless by 400.
- Using 365.25 days as the year length. That is Caesar's figure, and it runs 11 minutes fast against the true 365.24219 days. The Gregorian average is 365.2425, which is why long-range date arithmetic must count actual calendar days rather than multiply an average.
- Adding a year by incrementing the year field. February 29, 2024 plus one becomes February 29, 2025, a date that does not exist. Decide deliberately whether your system rolls it to February 28 or March 1, because leaving it to the default produces an exception or a silently wrong date.
- Assuming every 4-year span contains one leap day. The span 2096-2100 contains one and 2097-2101 contains none. Any calculation that hard-codes 1,461 days per four years drifts as soon as it crosses a skipped century.
- Believing 2000 was an exception to the rules. It followed them exactly: divisible by 400, therefore a leap year. Most pre-2000 software handled it correctly by accident because a naive divisible-by-4 test gives the right answer. The genuine trap has always been 2100, and it is still sitting there. Checking divisibility by 4 or 400 mentally takes a second with the tricks in our mental math guide: look at the last two digits.
- Assuming a historical date means the same thing everywhere. Countries adopted the Gregorian calendar across 340 years, so raw dates from that span are ambiguous without a style marker. Russia switched only in 1918, which is why the October Revolution of October 25, 1917 in the old calendar is dated November 7 in ours.
The Bottom Line
Leap years exist because our planet's orbit takes 365.2422 days and our calendar can only count whole ones. Caesar's fix over-corrected by 11 minutes a year; Gregory's three-rule patch cut the error to a day per 3,200 years and cost Europe ten days in 1582. Next time February 29 rolls around, it's a receipt for that repair. Count your own exact days across leap years with the Age Calculator — it walks the real calendar, century rule and all.
0 Comments
No comments yet — be the first to share your thoughts.