Leap Year Calculator
Every four years February steals a day — except when it doesn’t, and the exceptions are where arguments start. The Gregorian rule is three lines long, and this calculator applies it to any year you name: whether it is a leap year, why (which clause of the rule decided it), the leap years before and after it, and how many leap years any span contains. It also settles the question people actually arrive with — what happens to a February 29 birthday, a contract, or a count of years that crosses the treacherous century boundary at 2100. Three clauses of arithmetic, four centuries of consequences: the whole story fits in one small calculator, provided the clauses are applied in the right order.
The Rule, All Three Clauses of It
A year is a leap year if it is divisible by 4 — unless it is divisible by 100, in which case it is not — unless it is also divisible by 400, in which case it is again. That nested sentence is the entire Gregorian reform in arithmetic dress, and the calculator's note field names the deciding clause for every year, because the cases teach the rule better than the rule teaches itself: 2028 is leap by the plain 4-rule; 2100 will not be leap, though divisible by 4, because the century clause cancels it; 2000 was leap, because the 400 clause restored it; 2400 will be leap the same way. The count between 2001 and 2100 inclusive is 24, not the 25 that naive four-year counting promises — the missing one is 2100 itself, and any long-range calculation (annuities, leases, a child's age in days) that assumes a leap every four years across a century boundary inherits that one-day error silently.
Why the Rule Has This Shape
The calendar's problem is that the tropical year — the cycle of seasons the calendar must track — is 365.2422 days, an inconveniently non-integer number. Julius Caesar's reform (45 BC) rounded to 365.25: leap every four years, no exceptions. The rounding error, about 11 minutes a year, is beneath notice in a lifetime and merciless across centuries: by 1582 the calendar had drifted some ten days against the equinoxes, and Pope Gregory XIII's reform deleted the ten days and tightened the rule to 365.2425 — deleting three leap years per four centuries, exactly the century clause — leaving a residual error of roughly one day per 3,000 years. The reform also explains the patchwork adoption that haunts historical dates: Catholic Europe switched in 1582, Britain and its colonies in 1752 (deleting eleven days, and moving the legal new year), Russia in 1918, Greece in 1923. Dates before a country's adoption may be Julian ("Old Style") — the calculator computes the proleptic Gregorian rule for all years, which is the convention modern references use, and the distinction matters only when a document's own calendar is the question.
February 29 People: The Leapling Problem
About one birth in 1,461 falls on February 29 (the denominator is the 4-year cycle's day count: 1,461 = 3 × 365 + 366), and its owners — leaplings — meet the calendar's paperwork with a regularity the rest of us are spared. In common years their legal birthday is observed on February 28 or March 1 depending on jurisdiction and context (driving licences, coming-of-age calculations and insurance systems each have their convention, and they do not all agree). The arithmetic amusements are genuine: a leapling's count of actual birthdays by their 21st celebration is five; the odds are the reason some hospitals' February 29 clubs exist. For counting questions — how old, how many days, which anniversaries — the hub's Days Between Dates Calculator does the day-level arithmetic, and the Day of the Week Calculator names the weekday of any of the dates involved, February 29ths included.
Where Leap Years Bite in Real Calculations
Three professions meet the rule as an error source rather than a curiosity. Software has a scarred history here: the "leap-year bug" family — code that assumes 365-day years, or that February 29 does not exist, or (in a famous spreadsheet lineage) that 1900 was a leap year — has grounded systems from consoles to cloud services, usually on the one day in four years when the assumption is false, which is also why the calculator's clause-naming note exists: most real-world failures are clause failures at boundaries. Finance prices time: day-count conventions (30/360, actual/actual, actual/360) differ precisely in their treatment of February and leap years, and interest on long instruments is quoted against a stated convention because the differences are money. Contracts and law meet it in anniversaries: a one-year term signed on February 29 matures, by most drafting conventions, on February 28 or March 1 of the following year — drafters name the date to avoid litigating the clause. The rule is three lines; its blast radius is civilisation-wide, which is a fair description of calendar arithmetic generally.
The 400-Year Wheel
The rule's full period is worth beholding once. In 400 Gregorian years there are exactly 97 leap years (100 candidates on the four-year rhythm, minus the three century years not divisible by 400), and the cycle totals 400 × 365 + 97 = 146,097 days — a number with a beautiful property: it divides exactly by 7 (146,097 = 20,871 weeks), so the calendar, weekdays included, repeats perfectly every 400 years. Your birthday's weekday in 2426 will match its weekday in 2026. The same divisibility is a quiet checksum for date software and a favourite interview question in disguise, and it is unique to this rule's shape: the Julian 4-year cycle repeats in 28 years for the same reason (10,227 days = 1,461 weeks), which is why old calendars were sold as 28-year perpetuals. Enter a range in the calculator — say 2001–2400 — and the count it returns, 97, is the wheel itself being measured.
The Days That Never Existed
The reform that created the rule also created its most famous side effect: the deleted days. In the adopting Catholic countries, Thursday 4 October 1582 was followed directly by Friday 15 October — ten dates on which, in those places, nobody was born, married or billed. Britain's later adoption repeated the trick larger: Wednesday 2 September 1752 was followed by Thursday 14 September, eleven days gone, to recorded public grumbling about stolen time (the famous "give us back our eleven days" riots are partly legend, the grumbling is not). For the calculator's purposes the moral is narrow and useful: it computes the Gregorian rule proleptically, as all modern software does, and dates from the transition centuries carry a footnote in any archive that cares — the rule's arithmetic is universal, its biography is local.
Related Tools
More from the Everyday Life Calculators hub: the live Days Between Dates Calculator for the day counts leap years complicate, the Pomodoro Technique Calculator for time at the other end of the scale, and the Other hub's Day of the Week Calculator.
Frequently Asked Questions
Is 2028 a leap year? What about 2100?
2028: yes — divisible by 4, no century complication, so February 2028 has 29 days. 2100: no — divisible by 100 but not by 400, the century clause cancels it; February 2100 will have 28 days, and the leap sequence runs 2096, then 2104, an eight-year gap that surprises every generation that meets it.
Why do we need leap years at all?
Because the Earth's orbit refuses to divide evenly into its rotations: a year is about 365 and a quarter days. Ignore the quarters and the calendar slides against the seasons by a day every four years, a month per century and change — harvest festivals in the snow within a few lifetimes. Leap days are the correction installments; the Gregorian clauses are the correction's fine print.
How many leap years are in a century?
Twenty-four, normally — 25 candidate fourth-years minus the century year itself, unless the century year is divisible by 400 (as 2000 was), in which case the count is 25. The calculator's range counter does the honest enumeration for any span you give it; the defaults (2001–2100) show the standard 24.
What is a leapling's real age?
Exactly their age in years, like everyone else's — age counts completed years, not birthdays celebrated. A person born on February 29, 2000 turns 25 in 2025 by the universal count; they have merely had six actual February 29ths (2000, 2004, 2008, 2012, 2016, 2020, 2024 — seven, counting the birth day itself as the zeroth) to celebrate on the date itself. The joke about being "only six" is arithmetically charming and legally void.
Do other calendars have leap years?
Most do, in their own shapes: the Hebrew calendar inserts a whole leap month in 7 of every 19 years; the Islamic calendar adds a day in 11 of 30 years within its purely lunar system; the Persian calendar uses an astronomically observed rule of great precision. The Gregorian day-based rule on this page is the civil world's standard, not humanity's only solution to the fractional year.
Was there a February 30?
Once, in Sweden: its gradual-reform misadventure produced a February 30 in 1712, a date that has never existed anywhere else (a Soviet revolutionary calendar also experimented with 30-day months including a February 30 in 1930–31). No Gregorian February has ever had 30 days — the calculator's February outputs are 28 and 29 only, and any source claiming otherwise is describing a fascinating exception, not the rule.