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:

  1. If the year is not divisible by 4, it is not a leap year.
  2. If the year is divisible by 4 but not by 100, it is a leap year.
  3. 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.

Frequently Asked Questions

Is 2028 a leap year?
Yes. 2028 is divisible by 4 and not by 100, so it satisfies the standard leap-year rule. February 2028 will have 29 days.
If I was born on February 29, when do I celebrate in a non-leap year?
Convention varies. Many people observe birthdays on February 28, the last day of February. Others celebrate on March 1. Most jurisdictions treat February 28 as the legal birthday equivalent for non-leap years, though rules vary by country.
Why was 1900 not a leap year if it is divisible by 4?
Because of the century rule. Years divisible by 100 must also be divisible by 400 to qualify. 1900 is divisible by 100 but not by 400, so it was not a leap year. 2000 is divisible by both 100 and 400, making it a leap year.
How does a leap year affect annual subscriptions or billing cycles?
Most billing systems calculate months rather than exact days, so a leap year typically has no effect on monthly subscriptions. Annual subscriptions that start on February 29 may renew on February 28 or March 1 in a non-leap year, depending on the billing platform.
Do all countries use the same leap-year rule?
The Gregorian calendar leap-year rule is used by most of the world for civil purposes. Some religious or traditional calendars have different rules. The Hebrew and Islamic calendars add months or days on their own schedules. Date conversions between systems should account for this.
Will 2100 be a leap year?
No. 2100 is divisible by 4 and by 100, but not by 400. Under the Gregorian calendar rule it does not qualify. The next year divisible by 400 after 2000 is 2400.