Why February 29 exists
A calendar year is not exactly the same length as Earth's orbit around the Sun. The year is roughly 365.242 days, so a calendar with only 365 days would slowly drift away from the seasons. Leap years add an extra day to keep the calendar aligned over long periods.
The extra day is February 29. A leap year has 366 days; a common year has 365.
The Gregorian leap-year rule
The modern Gregorian calendar uses three checks:
- If the year is not divisible by 4, it is not a leap year.
- If the year is divisible by 4 but not by 100, it is a leap year.
- If the year is divisible by 100, it must also be divisible by 400 to be a leap year.
That is why 2000 was a leap year, but 1900 was not. It is also why 2024 was a leap year and 2028 will be the next one after 2026.
Quick test: 2100 is divisible by 4, but it is also divisible by 100 and not by 400, so 2100 will not be a leap year.
Why age calculators can feel different
If someone was born on February 29, their birthday exists on the calendar only in leap years. Legal and cultural handling varies: some people celebrate on February 28, others on March 1. A calculator can count exact elapsed years and days, but “birthday observance” is a human convention.
Even for people born on other dates, leap years affect the number of days lived. Two people one year apart in age may not be exactly 365 days apart if February 29 falls between their birthdays.
Inclusive vs exclusive day counts
Another source of confusion is whether you count the start date. “Days between March 1 and March 2” can mean one elapsed day, or two calendar dates if you include both endpoints. Both interpretations are valid in different contexts. Travel nights, hotel stays, deadlines, and work schedules often use different counting rules.
Our Days Between Dates Calculator is useful because it makes the start and end dates explicit. For age, use the Age Calculator to avoid hand-counting years, months, and days across leap years.
Why software still gets leap years wrong
Date bugs happen when code assumes every year has 365 days or every fourth year is a leap year. Both shortcuts fail. Reliable date handling should use built-in date libraries or the full Gregorian rule. It should also avoid converting months into a fixed number of days, because months can have 28, 29, 30, or 31 days.
Sources and further reading
Where leap-year mistakes usually happen
Leap-year confusion is rarely about the rule itself. The mistakes usually appear when a date range crosses February 29, when someone born on February 29 needs an age calculation, or when a subscription, deadline, or anniversary uses calendar years instead of exact elapsed days.
For example, 2024 is a leap year and 2026 is not. A range from February 28 to March 1 has a different elapsed-day count in those two years. That difference is small, but it can affect countdowns, age displays, billing periods, and school or work deadlines.
Manual check: Test the year first, then decide whether your count includes the start date, the end date, both, or only elapsed days.
How to use the related calculators
Use the Days Between Dates Calculator when you need elapsed days, and the Age Calculator when the question is about age. Keep the counting rule with the result, especially if you are sharing it with someone else or using it for planning.