Notification
Go to Home All Tools Compare Glossary Blog Contact

Leap Year Calculator

Check if any year is a leap year (366 days) or common year (365 days). See the 3-step Gregorian algorithm breakdown, upcoming leap years list, and Feb 29 leapling birthday stats.

Quick Century & Leap Presets
Gregorian Algorithm Verification
Rule 1: Divisible by 4?

No (2026 ÷ 4 = 506.50)

Rule 2: Century Year (Divisible by 100)?

No (2026 is standard non-century year)

Rule 3: 400-Year Override (Divisible by 400)?

N/A (Skipped: Not a century year)

COMMON YEAR (365 DAYS)

2026

2026 has 365 days. Next leap year is 2028 (in 2 years).

Days in Year 365
February Length 28 days
Next Leap Year 2028
Previous Leap 2024

Born on February 29? (Leapling Calculator)

Track exact leap birthdays vs. standard solar age

Leapling
Works with any historical or modern leap year
Solar Age
26 years
Calendar age
Leap Birthdays
6 celebrations
Feb 29 occurrences
Next Feb 29
2028
Next leap year
Quick Start

How to use the Leap Year Calculator

The Leap Year Calculator checks whether any year between 0001 and 9999 is a leap year, explains the 3-step mathematical proof, and calculates leapling birthday milestones:

  • Enter Any Year: Type any 4-digit calendar year or tap the year steppers (− / +).
  • Instant 3-Step Proof: The calculator displays a visual validation flowchart showing whether the year divides by 4, divides by 100, and divides by 400.
  • Leapling Birthday Mode: Enter an age or birth year to see how many actual 29 February birthdays have occurred and when the next celebration falls.
  • Upcoming Leap Years: Scroll through the timeline of upcoming leap years with the weekday of 29 February.
  • Developer Code Snippets: Switch between Python, JavaScript, PHP, and SQL tabs to copy verified leap-year algorithms for your codebase.

Check today's ordinal day number with our day of the year calculator. To measure the exact span between dates, try our date calculator or calculate intervals with the time duration calculator.

Calculation Mechanics

The 3-rule Gregorian leap year algorithm explained

A year in the Gregorian calendar is a leap year only if it satisfies the sequential 3-rule algorithm:

Practical Worked Examples

Four step-by-step proofs illustrating common years, standard leap years, and century overrides.

1. Standard Leap Year (e.g. 2024 or 2028)

Divisible by 4

\(2024 \div 4 = 506\) (remainder 0). \(2024 \div 100 \neq 0\). Since it divides by 4 and is not a century year, it is a leap year with 366 days.

2024 mod 4 == 0 && 2024 mod 100 != 0 → LEAP YEAR

2. Standard Common Year (e.g. 2026)

Non-Divisible

\(2026 \div 4 = 506.5\) (remainder 2). Because it fails the primary test of divisibility by 4, it is a common 365-day year.

2026 mod 4 != 0 → COMMON YEAR (365 Days)

3. The 400-Year Override (The Year 2000)

Century Override

2000 divides by 100, which usually disqualifies a year. However, \(2000 \div 400 = 5\) (remainder 0), so rule 3 overrides rule 2, making 2000 a leap year.

2000 mod 400 == 0 → LEAP YEAR (400-Year Rule)

4. Century Exception (The Year 1900 & 2100)

Century Disqualified

1900 and 2100 divide by 4 and by 100, but \(2100 \div 400 = 5.25\). Because they fail the 400-year test, they are common 365-day years.

2100 mod 100 == 0 && 2100 mod 400 != 0 → COMMON YEAR
Astronomy & Solar Drift

Why do we have leap years? Solar year drift explained

A civil calendar year is counted as 365 days. However, Earth takes exactly 365.24219 days (365 days, 5 hours, 48 minutes, and 45 seconds) to orbit the Sun. Without leap days, our calendar would lose approximately 6 hours each year, causing the seasons to drift by 24 full days every century!

Adding an intercalary day on February 29 every four years adds 0.25 days per year, which slightly overcorrects (by 11 minutes per year). Skipping three century leap years every 400 years provides the precise mathematical correction that keeps our calendar aligned for thousands of years.

Implementation

Leap year check code snippets for programmers

Copy-paste ready, production-tested leap year validation algorithms for back-end APIs, front-end date validation, and database analytics:

def is_leap_year(year: int) -> bool:
    # Gregorian calendar 3-rule formula
    return (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0)
Quick Reference

Upcoming leap years reference table (2028 – 2064)

A complete timeline of upcoming leap years, including the day of the week for February 29 (Leap Day). Click any row to load into the calculator.

Leap Year Leap Day Date Day of Week
2028 29 February 2028 Tuesday
2032 29 February 2032 Sunday
2036 29 February 2036 Friday
2040 29 February 2040 Wednesday
2044 29 February 2044 Monday
2048 29 February 2048 Saturday
2052 29 February 2052 Thursday
2056 29 February 2056 Tuesday
2060 29 February 2060 Sunday
2064 29 February 2064 Friday
Common Questions

Questions, answered

According to the Gregorian calendar standard: (1) A year is a leap year if it is evenly divisible by 4; (2) UNLESS it is also divisible by 100, in which case it is NOT a leap year; (3) EXCEPT if it is also evenly divisible by 400, in which case it IS a leap year. This ensures the calendar stays precisely aligned with Earth's 365.2422-day solar orbit.

No. 2026 is a common year with 365 days. 2026 divided by 4 equals 506.5 (not a whole number), meaning February 2026 has 28 days and there is no February 29.

The next leap year will be 2028 (divisible by 4). Following that, the subsequent leap years are 2032, 2036, 2040, 2044, and 2048.

Centurial years (ending in 00) must be divisible by 400 to qualify as leap years. 2000 was divisible by 400 (2000 ÷ 400 = 5), making it a leap year. In contrast, 1900 was not divisible by 400 (1900 ÷ 400 = 4.75), and 2100 is not divisible by 400 (2100 ÷ 400 = 5.25), so both are common 365-day years.

Was this tool helpful?

Be the first to rate Leap Year Calculator

Tap a star to rate instantly

What do you need to work out next?

Search 276+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Date & Time tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI