Guides · · 7 min read

What Is a Leap Year?

A leap year has 366 days instead of 365, adding February 29 to synchronize our calendar with Earth’s 365.2422-day solar orbit. Learn the divisible-by-4, 100, and 400 rules.

Isometric vector illustration showing Earth orbiting the Sun in 365.2422 days, synchronizing with an added leap day on February 29.
Solar orbit vs. calendar year: The extra 0.2422 days per orbit accumulate to roughly one full day every four years.

A standard calendar year lasts 365 days. A leap year contains 366 days, with the extra day inserted as February 29 (known as Leap Day). This adjustment keeps human calendars aligned with Earth’s astronomical journey around the Sun.

Contrary to popular belief, a leap year does not occur strictly every four years. To prevent long-term seasonal drift, the Gregorian calendar uses a three-step mathematical filter: century years (ending in 00) are only leap years if they can also be divided evenly by 400.

Calculate days across February 29

Try it here

A standard calendar year lasts 365 days.

The default span tests February in the 2024 leap year (29 days). Compare this against a regular year like 2023 or 2025 (28 days).

Calendar days

29

29 elapsed days · 21 Mon–Fri dates

8 weekend dates · 4 weeks + 1 days

Civil dates, not elapsed hours. No holidays deducted.

Dates stay on this device

Standalone tool

Days between dates calculator

Open tool page
Key solutions at a glance The main decisions from this guide, condensed into one table.
I want to...
Solution
Check leap-year date intervals with the calculator
When calculating project deadlines, loan interest, or service contracts spanning February, knowing whether the period touches February 29 prevents a one-day billing or milestone discrepancy.
1. Why leap years exist: astronomical solar orbit math
The time it takes Earth to complete one full revolution around the Sun (a tropical or solar year) is approximately 365.2422 solar days—roughly 365 days, 5 hours, 48 minutes, and 45 seconds.
2. The Gregorian 3-step leap year rule and century exceptions
In 1582, Pope Gregory XIII introduced the Gregorian calendar to correct the Julian calendar’s over-addition.
3. Impact on calendars, payroll, and computing
Leap years introduce practical considerations across finance, software engineering, and legal contracts:

Check leap-year date intervals with the calculator

When calculating project deadlines, loan interest, or service contracts spanning February, knowing whether the period touches February 29 prevents a one-day billing or milestone discrepancy. In 2024, February 1 to March 1 equals 29 days; in 2025, that exact same calendar window is 28 days.

For custom date ranges, inclusive counting, and business day calculations, use the standalone tool:

1. Why leap years exist: astronomical solar orbit math

The time it takes Earth to complete one full revolution around the Sun (a tropical or solar year) is approximately 365.2422 solar days—roughly 365 days, 5 hours, 48 minutes, and 45 seconds.

If our calendar recognized only 365 days each year: • Every 4 years, the calendar would fall behind the solar cycle by nearly 24 hours (0.2422 × 4 ≈ 0.9688 days). • In 100 years, the calendar would drift by approximately 24 days. • Over several centuries, July in the Northern Hemisphere would shift into snow and winter.

In 45 BCE, Julius Caesar established the Julian calendar, adding one leap day every four years (averaging 365.25 days per year). While this was a major advancement, adding a full day every four years slightly overcompensates by 11 minutes and 14 seconds each year—accumulating roughly 3 extra days every 400 years.

2. The Gregorian 3-step leap year rule and century exceptions

In 1582, Pope Gregory XIII introduced the Gregorian calendar to correct the Julian calendar’s over-addition. The modern rule uses three hierarchical tests:

Gregorian calendar leap year decision tree: Step 1 Divisible by 4, Step 2 Divisible by 100 exception, Step 3 Divisible by 400 override.
The 3-step Gregorian leap year decision tree: 2024 is a leap year (divisible by 4), 1900 and 2100 are regular years (divisible by 100 but not 400), and 2000 was a leap year (divisible by 400).
Application of Gregorian rules across benchmark historical and upcoming century years.
Year ÷ 4? ÷ 100? ÷ 400? Leap Year Result February Days
1900 Yes Yes No Regular Year (Century Exception) 28 days
1996 Yes No Leap Year 29 days
2000 Yes Yes Yes Leap Year (400-Year Override) 29 days
2020 Yes No Leap Year 29 days
2024 Yes No Leap Year 29 days
2025 No Regular Year 28 days
2028 Yes No Leap Year 29 days
2100 Yes Yes No Regular Year (Century Exception) 28 days

Why the 400-year rule works: Across a complete 400-year cycle, there are 97 leap years (100 minus 3 century exclusions) and 303 common years. The total number of days is exactly (303 × 365) + (97 × 366) = 146,097 days. Divided by 400, this gives an average calendar year of 365.2425 days—differing from Earth’s solar year by only 26 seconds annually.

Official astronomical background and seasonal alignment records:

3. Impact on calendars, payroll, and computing

Leap years introduce practical considerations across finance, software engineering, and legal contracts:

• The 52-Week Myth: A 365-day year contains 52 weeks plus 1 day; a leap year contains 52 weeks plus 2 days. This extra weekday causes annual holidays to advance by two days of the week rather than one following a leap day. • Payroll & Salary: Salaried employees working on an annual wage produce one additional day of work during a leap year without an increase in base annual salary. • Software Leap Day Bugs: Computer programs that hardcode February as 28 days or assume every 4th year is unconditionally a leap year encounter crashes on February 29 or miscalculate century years like 2100.

Frequently asked questions about leap years

Why was the year 2000 a leap year but 1900 was not?

Both 1900 and 2000 are century years divisible by 100. However, 2000 is also divisible by 400 (2000 ÷ 400 = 5), qualifying under the 400-year Gregorian override. 1900 is not divisible by 400, so it remained a common 365-day year.

Will 2100 be a leap year?

No. The year 2100 is divisible by 4 and by 100, but not by 400. Therefore, 2100 will be a common year with only 28 days in February.

What happens to people born on February 29 (Leaplings)?

Legally, most jurisdictions consider someone born on February 29 to reach their next age on either March 1 (in the UK and common-law states) or February 28 (in select legal codes) during non-leap years.

Is a leap second the same as a leap year?

No. A leap year compensates for Earth’s orbital speed around the Sun (once every 4 years). A leap second compensates for minute irregularities in Earth’s rotational speed on its own axis (added irregularly as decreed by international metrology bureaus).

Always remember the three Gregorian criteria: divisible by 4, except century years, unless divisible by 400. When calculating date spans across February, verify whether leap day falls within your timeframe.

Desktop Dashboard

Stay informed with Kepo on your desktop

Embed interactive widgets, monitor dynamic sites, track APIs, and run ambient AI agents right on your macOS desktop.

Related Articles

View all posts →
Guides

How Many Weeks Are in a Month?

A calendar month contains four full weeks plus zero to three extra days. The exact answer depends on whether the month has 28, 29, 30 or 31 days.

Read →
Guides

What Is a Business Day?

A business day is any standard official working day—typically Monday through Friday, excluding weekends and public holidays. Learn how cut-off times and weekend pauses affect 3-5 day delivery estimates.

Read →