The Secret Math Behind Why We Have Leap Years (and Why It's Trickier Than You Think!)

Posted on Mar 13, 2026
tl;dr: Leap years happen almost every four years because Earth's orbit is about 365.25 days, but to make it super accurate, years divisible by 100 *aren't* leap years unless they're also divisible by 400. This clever rule keeps our calendar perfectly in sync with the seasons!

You know how every four years, February gets an extra day, making it the 29th instead of the 28th? We call it a leap year, and most of us just shrug and think, ‘Oh, it’s just to catch up.’ And you’d be right, for the most part! But here’s where it gets a little more wild and wonderful than just adding a day every four trips around the sun.

See, the Earth doesn’t take exactly 365 days to orbit the sun. It’s more like 365 days, 5 hours, 48 minutes, and 45 seconds – which is roughly 365 and a quarter days. So, if we just stuck to 365 days, our calendar would slowly but surely drift away from the actual seasons. Imagine Christmas eventually happening in the middle of summer in the Northern Hemisphere! We’d be completely out of whack over centuries.

So, the brilliant solution was to add an extra day every four years to scoop up those accumulating quarter-days. Four quarter-days make a whole day, right? Perfect!

But here’s the truly mind-bending part, the little twist that shows how incredibly precise and clever our calendar-makers had to be: Adding a day every four years is actually a tiny bit too much. That ‘quarter day’ isn’t exactly 6 hours; it’s a little less. So, if we always added a day every four years without fail, we’d eventually overshoot and gain too much time.

To fix this super-subtle drift, they came up with an extra rule: A year that is divisible by 100 is not a leap year, unless it’s also divisible by 400. Whoa!

Think about that for a second. The year 1900? Divisible by 100, but not by 400. So, it wasn’t a leap year! Even though it should have been by the ’every four years’ rule. But the year 2000? Divisible by 100 and by 400! So, it was a leap year. This tiny adjustment, skipping a leap day three times every 400 years, makes our calendar incredibly accurate, keeping it almost perfectly synced with Earth’s cosmic dance around the sun for thousands of years. It’s a subtle piece of celestial engineering built right into our daily lives!