Leap Years Between Dates Calculator

Leap Years Between Dates Calculator

Count Gregorian leap years, exact Feb 29 leap days, century exceptions, and the first and last leap year inside any date span.

📌 Presets
📅 Date Range
Earliest boundary of the date span.
Latest boundary of the date span.
Leap Years Counted
0
Gregorian leap years
Leap Days in Exact Span
0
Feb 29 dates included
First and Last Leap Year
None
Inside selected count mode
Century Exceptions
0
Divisible by 100 but not 400
🔱 Leap Rule Grid
4
Basic divisor
A Gregorian year must be divisible by 4 before it can be a leap year.
100
Century filter
Century years are usually common years, even when divisible by 4.
400
Century rescue
A century year divisible by 400 remains a leap year.
97
Per 400 years
Each complete Gregorian cycle has 97 leap years and 303 common years.
📋 Leap Years Found
Run the calculator to list leap years for the selected span.
📊 Comparison Grid
Test yearDivisible by 4Divisible by 100Divisible by 400Gregorian result
2024YesNoNoLeap year
1900YesYesNoCommon year
2000YesYesYesLeap year
2100YesYesNoCommon year
2400YesYesYesLeap year
2025NoNoNoCommon year
📐 Formula Table
MetricFormulaIncludes endpoints?Use for
Leap year testyear mod 4 = 0 and (mod 100 not 0 or mod 400 = 0)Year onlyClassifying a year
Leap years in year rangefloor(y/4) - floor(y/100) + floor(y/400)Set by modeFast inclusive year counts
Leap days in exact spanCount Feb 29 dates between adjusted start and endSet by endpoint optionContracts, ages, elapsed days
Century exceptionsYears divisible by 100 but not 400Same year boundsFinding skipped leap years
🔎 Quick Lookup Table
BlockStart yearEnd yearLeap yearsLeap days in span
Waiting----
🧭 Calendar Method Comparison
Calendar methodLeap ruleLeap years per 400Century handlingCalculator handling
Gregorian4, except 100, unless 400971900 no, 2000 yesMain calculation
Proleptic GregorianSame rule before 158297Same patternSame math, all dates
Julian comparisonEvery year divisible by 4100All century years leapShown as comparison only
Exact date spanChecks Feb 29 date positionVaries by boundariesUses Gregorian testLeap day card
💡 Tips
Endpoint tip: If a range starts on Feb 29, use the inclusion selector to decide whether that leap day is counted.
Century tip: Years such as 1700, 1800, 1900, and 2100 are divisible by 4, but they are not Gregorian leap years.

Years aren’t cubed blocks of time; they’re not even all equal. Leap days mean we rely on leap years to keep seasonal and solar years aligned, so the calendar is a patchwork. It follows that if you want to know how many leap years there are between two given dates, it isn’t as simple as dividing one by the other. Cross a century line and math shifts.

So the basic rule is: if the year is divisible by four, it’s a leap year. That’s simple enough to memorize but of course, it gets complicated with exception. Every hundred years, we break the rule; a year divisible by one hundred isn’t normaly a leap year. We skip over extra day so that on average, number of days in each year comes closer to true solar year. But then we have an exception to the exception. A century year that’s also divisible by four hundred IS a leap year. So 2000 was a leap year, and 2100 won’t be.

How to Count Leap Years

This is where most people goes wrong in their calculations. Do you include the year 2000? What about 1900 or 2100? The calculator does all of this for you. No more guesswork on conversions and coefficients.

There’s no room for confusion, it allows you to clearly state what you want “between” to mean. Do you count each leap year within your range? Or do you count the number of actual February twenty-ninth days in that range? Those are two distinct question; two different answers.

And then there’s the matter of endpoints. Did you know that February 29th only occur every four years? And if you begin a project on February 29th, whether it counts depends on whether your range include that start date. Unless you include it in your range. But what if you don’t want to include the starting date? What happens when there’s a leap day at the beginning of your period? The tool offers an option to treat start/end dates as open/closed limits. That’s really important if you’re trying to calculate age or a mortgage payment (a fraction of a day can make the difference). In other words: it makes you describe what level of detail of time you work with.

The range can be broken up into blocks as well. When you see centuries or decades, leap years shows the rhythm of the calendar. And what you find with a leap year is that they don’t get spread out evenly. In the four-hundred-year cycle there are going to be ninety-seven leap years (every fourth year minus every hundredth year plus every four-hundredth year). You can see how the Gregorian calendar has fixed the failure of the Julian system in the reference table.

Why? Because, as it turns out, the Julian calendar is slightly off; by about a day in 128 years. That’s why the Gregorian calendar adjusts: It skips three leap days every four-hundred years. With the proleptic option, the Gregorian rules gets extended backwards to make it easier to compare dates before fifteen-hundred. For calculating your birthday or estimating how much money will be needed for retirement, however, the regular old Gregorian rule is what matters.

It’s a strange birthday; a February twenty-ninth. In those years when it isn’t a leap year, people who was born then tend to celebrate it either on the twenty-eighth of February or else on the first of March. According to this, though, most of them just pick February twenty-eighth or March first. You’re either born on that day and the calculator has it for you, or it doesn’t. There is no room for interpretation and no wiggle room. That’s what we want, right? That’s what a calculator does: It tells us for certain how many times something happened.

The calendar is an example of how you can’t understand something until you’ve learned about its exceptions. In order to calculate leap years, you must honor the oddness of our planet’s orbit around the sun; it doesn’t always follow the same pattern. A leap year is the adjustment that keeps the calendar and the seasons in sync. If you’re charting a trend over time, or if you’re calculating a mortgage at 30 years, you need to take these quirks into account to get your count correct.

The centuries that aren’t leap years throw off the pattern. But once you recognize them, you see the pattern. The calendar works just like a machine with its own set of rules; you would of had to know what skips to measure time accurately.

Leap Years Between Dates Calculator