Skip to main content

Leap Year Calculator

A leap year contains 366 days instead of 365, adding February 29 to synchronize the civil calendar with Earth’s solar orbit.

Any 4-digit Gregorian calendar year to test.

Calculated Result
Leap Year

Year 2024 Status

Leap Year Status

Leap Year (366 days)

Days in Year

366 days

February Length

29 days

Previous Leap Year

2020

Next Leap Year

2028

Calculation Breakdown

  1. Gregorian 4-Year Rule2024 ÷ 4 = 506.00 (Divisible).
  2. Century 100-Year & 400-Year Exceptions2024 ÷ 100 = 20.24 and 2024 ÷ 400 = 5.06. 2024 is divisible by 4 and not divisible by 100.
  3. Surrounding Leap YearsPrior leap year: 2020, Next leap year: 2028.

Days in Year by Calendar Status

Interactive visualization based on your current inputs

Days
0.092183275366Selected YearCommon YearLeap YearYear TypeTotal Days

What Is the Leap Year Calculator?

A leap year calculator tests whether a designated calendar year features 366 days and a February 29 leap day.

How Does the Leap Year Calculator Work?

Evaluates modular arithmetic divisibility across 4, 100, and 400 under Gregorian astronomical standards.

Leap Year Calculator Formula & Variables

The core mathematical equation utilized by this calculator is expressed as:

Leap Year = (Year % 4 == 0 AND Year % 100 != 0) OR (Year % 400 == 0)

Years divisible by 4 are leap years, except century years (ending in 00) which must be divisible by 400 to qualify.

How to Use the Leap Year Calculator

  1. Enter any calendar year between 1 and 9999.

Step-by-Step Example Calculation

Year 2024 Check

Input Values:

year:2024

Understanding Your Result

Shows leap status, days in February, total days in year, and surrounding leap years.

Factors That Affect the Result

  • Solar orbit duration (365.24219 days) necessitates adding 97 leap days every 400 years.

When Should You Use This Calculator?

  • Planning calendar algorithms, anniversary dates, and fiscal year calculations.

Assumptions & Limitations

  • Applies Gregorian calendar rules established in 1582.

Frequently Asked Questions

Calculation Accuracy & Reference Note

Official Gregorian Papal Bull astronomical rules.

Explore more tools and calculators in Date & Time Calculators