What counts as a complete year
A person who was born on June 15, 2000 turns 24 on June 15, 2024 and not before. The same idea applies to the length of a contract, an account, a membership or a tenure: a year is complete only when the calendar reaches the same month and day as the start. This page applies that anniversary test to any two Gregorian dates between years 0001 and 9999. It returns a whole number and does not report leftover months or days. The count is useful as a quick threshold check, such as whether at least five years have passed, and it is the same idea people use informally when they say someone is 34 years old.
The formula the page applies
The page starts with y = endYear - startYear. It then builds the anniversary of the start date in the end year. If that anniversary is later than the end date, the final year is not complete, and the page subtracts one. Otherwise y stays as computed. So from 2000-06-15 to 2024-06-14 the page returns 23, and from 2000-06-15 to 2024-06-15 it returns 24. Only the month and day are compared, so the answer never depends on how many leap days fall in the span, whether the range covers a decade or several centuries. A shortcut such as dividing the day count by 365 would drift as leap days accumulate, which is why the anniversary method is preferred.
The February 29 rule and the default example
The page opens with 2020-02-29 and 2021-02-28. The year difference is 1. The anniversary of February 29 in 2021 does not exist, so the page uses the clamped date, February 28, 2021. That date is not after the end date, so the result is 1 complete year. If the end date were 2021-02-27, the anniversary would be later than the end and the result would be 0. In a leap year the anniversary exists, so 2020-02-29 to 2024-02-29 returns 4, and 2020-02-29 to 2023-02-28 returns 3. This clamping rule is a convention built into the page, and other systems treat the day differently.
A birthday on February 29
Leap-day birthdays show why the rule matters. Under this page's convention, which is stated plainly so you can compare it with other rules, someone born on 2020-02-29 completes one year on 2021-02-28, two years on 2022-02-28, three on 2023-02-28 and four on 2024-02-29. Some legal systems move the birthday to March 1 in non-leap years, and others use February 28, so the same person can reach a legal age on different days depending on the jurisdiction. The page does not decide such a question. It reports one consistent calendar convention, and a person who needs a legal age determination should consult the rule of the place where it applies, such as the statute for voting age or a contract definition.
Common practical uses
Whole-year counts appear in service awards, vesting schedules, warranty and retention periods, equipment ages and eligibility rules such as five years of residency. For a 10-year certificate that started on 2015-09-30, entering that date and today's date shows how many years have completed so far. For schedules that need dates, not counts, add whole years to the start date with a date calculator instead. This page works best for answering the question how many full years have passed as of a given date, because both dates are inputs and the answer is repeatable. Changing the end date to the planned review date shows whether a threshold will be met by then. A vesting schedule that grants shares after four complete years from 2021-07-01, for example, is met on 2025-07-01 and not on 2025-06-30, and the page makes that one-day boundary visible without any manual counting of leap days.
Years compared with months and days
A year is not a fixed number of days. Between 2023-03-01 and 2024-03-01 there are 366 days because the span contains February 29, but between 2024-03-01 and 2025-03-01 there are 365. That is why the page counts anniversaries and not days. Its output also does not agree with a conversion from months, since this page reports only the year part. Someone with 35 complete months has 2 complete years and 11 months, not 3 years. The months between dates calculator on this site uses the same anniversary idea for months, and you can use both pages together to express a span as years and months.
Where the answer changes by one
Almost every disagreement between two year counts comes from the day before or after an anniversary. A span from 1990-12-31 to 2025-12-30 returns 34 years, because the 35th anniversary on December 31 has not happened. Move the end date to 2025-12-31 and the result is 35. The same applies in the other direction, where the start date is 2023-03-01 and the end date is 2024-02-29: the year difference is 1, but the anniversary on March 1, 2024 is later, so the result is 0. When a record shows an unexpected number, compare the month and day first, and the year can be ignored.
Recording the convention
Whenever you save a year count, record both dates and the rule used. A result of 1 year for 2020-02-29 to 2021-02-28 is correct under the February 28 convention, but another reader who assumes March 1 would expect 0. The same risk applies to month-end dates in other pages. Write the convention in a note beside the figure, for example "complete years, February 29 anniversary on February 28", and keep the two input dates. That makes the figure reproducible, and it allows the count to be recomputed if a policy changes how leap-day anniversaries are handled.
Date-only inputs in the proleptic Gregorian calendar
The inputs are calendar dates in the proleptic Gregorian calendar, with no time of day and no time zone. The supported years are 0001 through 9999. The result is a whole number of years, and the page does not report fractions of a year or leftover days. It is not a jurisdiction-specific legal age rule, and it makes no allowance for calendars other than the Gregorian one, such as the Hebrew or Islamic calendars, which have their own year lengths. For regulated purposes, confirm the definition of a year of age or service in the governing document before relying on the count.