Leap Year Calculator
Three rules for one extra day
The Earth's orbit does not respect the calendar: a year runs about 365 days, 5 hours, 48 minutes and 45 seconds — 365.2422 days. Julius Caesar's calendar rounded that to 365.25 and added a leap day every four years, an overcorrection of about 11 minutes annually that quietly accumulated until, by 1582, the calendar sat ten days adrift from the seasons. Pope Gregory XIII's reform fixed both problems at once: it deleted the ten days (October 1582 jumped from the 4th to the 15th) and refined the rule to the three-part test this calculator applies — divisible by 4, yes; divisible by 100, no; divisible by 400, yes again. The refined average, 365.2425 days, errs by about one day in three millennia, which is why the rule will not need another reform in any reader's lifetime, or their grandchildren's.
The century clause is the part everyone forgets, and it produces the rule's strangest consequence: an eight-year gap. Because 2100 fails the 400 test, the leap years 2096 and 2104 stand eight years apart — anyone born on 29 February 2096 will wait eight years for their second true birthday. The calculator shows the full rule breakdown for any year — each test and its verdict — plus the neighbouring leap years in both directions and a counter for any span, so the exceptions can be seen rather than merely asserted.
How the check works
| Test | 2000 | 2100 | 2028 | 2026 |
|---|---|---|---|---|
| Divisible by 4? | Yes | Yes | Yes | No |
| Divisible by 100? | Yes | Yes | No | No |
| Divisible by 400? | Yes | No | — | — |
| Leap? | Yes | No | Yes | No |
Read the columns as the algorithm reads them: the 4-test admits 2028 at once; the 100-test throws 2100 out; the 400-test rescues 2000. February's length follows — 29 days in a leap year, 28 otherwise.
Worked examples
1900: divisible by 4 and 100, not by 400 → not leap (the Victorians had a 28-day February).
2000: divisible by 400 → leap — the century exception's exception.
Counting 2001–2100: every fourth year from 2004 to 2096, with 2100 excluded → 24 leap years.
The full cycle: 400 years hold exactly 97 leap years and 146,097 days — divisible by 7, so the calendar (weekdays included) repeats perfectly every 400 years.
Why one day matters
A day sounds like bookkeeping until you price it: interest calculations, rental contracts, salaries and software date libraries all branch on February's length, and the 29th has broken real systems whose programmers assumed a four-year rhythm without the century clause. The most famous bug is still alive: Microsoft Excel treats 1900 as a leap year — a deliberate compatibility inheritance from Lotus 1-2-3, which got 1900 wrong in the 1980s — so a phantom 29 February 1900 exists inside the world's spreadsheets to this day, shifting serial day numbers for dates before 1 March 1900. The calendar is a piece of shared infrastructure maintained by a rule written in 1582 — and this small calculator exists because the rule's two exceptions still surprise people, and their software, four and a half centuries later.
Frequently asked questions
Is 2028 a leap year?
Yes. 2028 divides by 4 (2028 / 4 = 507) and is not a century year, so February 2028 will have 29 days. The leap years around it are 2024 and 2032. The next skipped century is the one to watch: 2100 divides by 4 and by 100 but not by 400, so it will not be a leap year, making the gap from 2096 to 2104 eight years — the longest possible under the Gregorian rules.
Why is 2100 not a leap year if it divides by 4?
Because the simple every-four-years rule overcorrects. A year is 365.2422 days, so adding a leap day every four years (an average of 365.25) drifts ahead by about 11 minutes a year — three days every four centuries. The Gregorian reform trimmed exactly that: century years are leap only if divisible by 400. 2000 qualified and was leap; 1900 and 2100 do not and are not. With the trim, the calendar year averages 365.2425 days, off by roughly a day in 3,000 years.
How many leap years are there in a century?
Usually 24 or 25, depending on whether the century year itself is leap. The century 2001-2100 contains 24, because 2100 fails the 400 rule; a span like 2000-2099 contains 25 including the year 2000. Over the full 400-year Gregorian cycle there are exactly 97 leap years — and, elegantly, 146,097 days in total, which divides by 7 exactly, so the calendar repeats perfectly every 400 years, weekdays and all.
When do people born on 29 February celebrate their birthday?
Most 'leaplings' — about five million people worldwide — celebrate on 28 February or 1 March in common years, and jurisdictions differ on the legal answer: some treat the birthday as 28 February, others 1 March, which can matter for age thresholds like driving licences. The choice is mostly family tradition. Their consolation is arithmetic: a leapling's true birthdays arrive every four years, so a 20-year-old has officially turned five.
Is a leap second the same thing as a leap day?
No — they fix different problems. A leap day fixes the calendar's rounding against the Earth's orbit (the seasons). A leap second fixes atomic clock time against the Earth's rotation, which wobbles and gradually slows; 27 have been inserted since 1972, usually on 30 June or 31 December, making that minute 61 seconds long. Leap days are predictable centuries ahead; leap seconds are announced about six months in advance, and the system is being retired by 2035 in favour of letting clock and rotation drift apart slowly.
Related tools
Rule and counts last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.