Leap Year Calculator
A year is a leap year if it is divisible by 4, except centuries, except multiples of 400. This tool applies the full three-tier Gregorian rule (introduced by Pope Gregory XIII in 1582), shows the reasoning step-by-step, and projects the next 10 leap years from any starting year between 1 and 9999.
Quick Conversion
Formula: days = years × 365.2425 (Gregorian average year)
February 2026
Year Tester
2026 is not divisible by 4, so it cannot be a leap year. 2026 ÷ 4 = 506.50.
Test Famous Years
Next 10 Leap Years After 2026
Note: 2100, 2200, 2300 are common (century exception); 2400 will be leap (div 400 override).
Conversion Table — Leap Density by Century
| Century | Leap years | Common years | Year ends in 00 leap? |
|---|---|---|---|
| 1600–1699 | 25 | 75 | Yes |
| 1700–1799 | 24 | 76 | No |
| 1800–1899 | 24 | 76 | No |
| 1900–1999 | 24 | 76 | No |
| 2000–2099 | 25 | 75 | Yes |
| 2100–2199 | 24 | 76 | No |
| 2200–2299 | 24 | 76 | No |
| 2300–2399 | 24 | 76 | No |
| 2400–2499 | 25 | 75 | Yes |
| 2500–2599 | 24 | 76 | No |
Need the weekday of a specific date? Try Doomsday Calculator.
Gregorian Leap Year Formula
isLeap(y) = (y % 4 === 0 && y % 100 !== 0) || y % 400 === 0Worked example: for 2026, (2026 % 4 = 2) and (2026 % 100 = 26) and (2026 % 400 = 26) — FALSE (common year).
Recent Tests
Tested years appear here.
How to Check Any Leap Year — 5 Steps
- Step 1 — Enter the year. Accepts 1 to 9999. The calculator uses the proleptic Gregorian rule even for pre-1582 years (standard engineering convention).
- Step 2 — Click Test. The algorithm computes y mod 4, y mod 100, and y mod 400 in one pass.
- Step 3 — Follow the cascade. Three green/red rows show each test outcome. Read top-to-bottom: div 4, century check, div 400 override.
- Step 4 — Read the verdict. Green LEAP YEAR badge = 366 days, February has 29. Slate Common Year = 365 days, February has 28.
- Step 5 — Plan ahead. The Next 10 Leap Years strip projects the upcoming leap years from your starting point — useful for birthday scheduling, software test fixtures, or astronomical ephemeris alignment.
A Brief History of the Leap Year
In 2026, a software engineer at a fintech firm in Munich finds a date-parsing bug that treats February 29, 2100 as a valid date. Tracing the issue requires confirming that 2100 is NOT a leap year under the Gregorian calendar — a check that should take 5 seconds, not a 30-minute dive into Wikipedia. That precise problem is why this tool exists.
The leap year concept long predates the Gregorian calendar. Ancient Egyptian astronomers knew by approximately 250 BCE (Canopus Decree) that the solar year is about 365.25 days, and proposed adding one day every four years. The Roman Republic adopted this in 46 BCE when Julius Caesar, advised by the astronomer Sosigenes of Alexandria, instituted the Julian calendar with leap years every 4 years without exception. Caesar inserted 90 days into 45 BCE itself to realign — the longest year in history.
The Julian rule slightly overshoots: an actual tropical year is 365.24219 days, but 365.25 = 365 + 1/4 overcounts by 11 minutes 14 seconds per year. Over centuries this accumulates to about one day per 128 years. By 1582, the Julian calendar was ~10 days ahead of the astronomical year — meaning the spring equinox, which determined Easter, was drifting earlier and earlier in March.
Pope Gregory XIII, advised by Christopher Clavius and Aloysius Lilius, issued the papal bull Inter gravissimas on February 24, 1582, instituting two reforms. First, October 4, 1582 was followed directly by October 15, 1582 (Catholic countries skipped 10 days). Second, the new leap year rule excluded century years (1700, 1800, 1900) UNLESS divisible by 400 (1600, 2000, 2400). This brought the average year length to 365.2425 days — accurate to about 26 seconds per year, drifting only 1 day every 3,236 years.
Protestant nations resisted. Britain and its colonies (including what would become the United States) only adopted the Gregorian calendar in 1752, skipping 11 days — September 2, 1752 was followed by September 14, 1752. Russia held out until February 1918; Greece until 1923. This explains why Russian Christmas (still on Orthodox December 25) falls on January 7 in the civil calendar — a 13-day Julian-Gregorian drift.
February 29 acquired special cultural weight. In Ireland and Scotland, tradition (often attributed to a deal between St. Brigid and St. Patrick) holds that women may propose marriage to men on Leap Day. Anthony, Texas and Anthony, New Mexico jointly proclaim themselves the Leap Year Capital of the World, hosting a quadrennial festival. People born on Feb 29 are called leaplings or leapers; the global population includes about 5 million leaplings, with the probability of leap-day birth at approximately 1 in 1,461 (0.068%).
Programmers have made famous leap year mistakes. The 2008 Zune Y2K9 bug bricked Microsoft music players on December 31, 2008 due to incorrect handling of leap year day arithmetic. The 2012 Microsoft Azure outage on February 29 stemmed from a certificate calculation that didn't expect Feb 29 to exist. Both bugs would have been caught by a simple test of `y % 4 === 0 && y % 100 !== 0 || y % 400 === 0`. Useful related tools include our palindrome date finder and the doomsday calculator.
What Calendar Engineers Say
“I lecture on the 1582 Gregorian reform and this tool's three-rule breakdown (div 4, div 100, div 400) with check/cross indicators is the cleanest visual explanation I have used. The leapling probability stat (1 in 1,461) is exactly the figure my students always misquote.”
“Writing a date library for an automotive ECU I needed quick visual confirmation of edge cases: 1700, 1800, 1900 (NOT leap) versus 1600, 2000, 2400 (leap). The 10-year future list saved me from re-deriving the rule on paper.”
“I cross-referenced this against the proleptic Gregorian table back to 1 AD for a thesis chapter and every value matched. The decision-cascade animation reinforces the rule order for my undergrads.”
“Caught a leap-year bug in production code in 2024 because someone shipped a `year % 4 === 0` check. After that incident I use this tool as a quick sanity check on any year someone proposes as a test fixture.”
Love using our calculator?
Palindrome Date Finder
Leap day Feb 29 produces extra palindrome candidates.
OpenFriday the 13th Finder
Leap years shift the weekday pattern by 2 days.
OpenDoomsday Algorithm
Mental-math weekday with leap-year anchor shifts.
OpenAll Time & Date Tools
70+ calendar, sunrise, prayer, and timer calculators.
OpenRelated Articles
Dive deeper with our expert guides and tutorials related to Leap Year Calculator