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.
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.
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.
Standalone tool
Days between dates calculator
Key solutions at a glance The main decisions from this guide, condensed into one table.
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:
| 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.
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 →How to calculate days between dates and business days
Enter two dates to count calendar days, weekdays, and weekends. Check whether to include the end date, follow a worked example, and account separately for holidays.
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.
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.
How to find IP address on Mac: local vs. public IP explained
Learn how to find IP address on Mac across local network interfaces and public gateways. Master Terminal shortcuts, understand private vs. public routing, and pin live network widgets to your desktop.