Skip to content
Gregorian leap detector · Last reviewed 2026-05

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.

Year
2026
Verdict
Common
Feb days
28
Year days
365

Quick Conversion

Formula: days = years × 365.2425 (Gregorian average year)

February 2026

A stylized February calendar page showing 28 days. A green frog leaps to day 29 if 2026 is a leap year.February 2026SMTWTFS12345678910111213141516171819202122232425262728No Feb 29(28 days)

Year Tester

2026 % 4 = 2
Century? No (2026 % 100 = 26)
Div 400? No (2026 % 400 = 26)
Common Year (365 days)

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

2028
2032
2036
2040
2044
2048
2052
2056
2060
2064

Note: 2100, 2200, 2300 are common (century exception); 2400 will be leap (div 400 override).

Conversion Table — Leap Density by Century

CenturyLeap yearsCommon yearsYear ends in 00 leap?
160016992575Yes
170017992476No
180018992476No
190019992476No
200020992575Yes
210021992476No
220022992476No
230023992476No
240024992575Yes
250025992476No

Need the weekday of a specific date? Try Doomsday Calculator.

Gregorian Leap Year Formula

isLeap(y) = (y % 4 === 0 && y % 100 !== 0) || y % 400 === 0

Worked 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

  1. Step 1 — Enter the year. Accepts 1 to 9999. The calculator uses the proleptic Gregorian rule even for pre-1582 years (standard engineering convention).
  2. Step 2 — Click Test. The algorithm computes y mod 4, y mod 100, and y mod 400 in one pass.
  3. Step 3 — Follow the cascade. Three green/red rows show each test outcome. Read top-to-bottom: div 4, century check, div 400 override.
  4. Step 4 — Read the verdict. Green LEAP YEAR badge = 366 days, February has 29. Slate Common Year = 365 days, February has 28.
  5. 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.

Leap Year FAQ

Have more questions? Contact us

What Calendar Engineers Say

4.9
Based on 5,240 reviews

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.

F
Felicia Andersson
Calendar systems historian, Stockholm
April 30, 2026

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.

T
Tobias Reinhard
Embedded systems engineer, Munich
March 12, 2026

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.

C
Cassandra Owusu
Mathematician, University of Ghana
February 19, 2026

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.

Y
Yuto Nakamura
Software architect, Tokyo
December 8, 2025

Love using our calculator?

Palindrome Date Finder

Leap day Feb 29 produces extra palindrome candidates.

Open

Friday the 13th Finder

Leap years shift the weekday pattern by 2 days.

Open

Doomsday Algorithm

Mental-math weekday with leap-year anchor shifts.

Open

All Time & Date Tools

70+ calendar, sunrise, prayer, and timer calculators.

Open
Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Leap Year Calculator

Loading articles...