Use this year calculator to find a date by adding or subtracting years, or find the total number of years, months, and days between two dates.
How to Use the Years Calculator
- Select Operation: Choose Add Years, Subtract Years, or Years Between using the radio
buttons at the top. By default, it is selected to "Years Between".
- Enter Values:
- For Years Between: Select a Start Date and an End Date. The calculator will show you
the total years, months, and days. The initial result is 1 year between the default dates.
- For Add Years: Select a starting "Date" and enter the number of "Years" to add. The calculator
will show the future date.
- For Subtract Years: Select a starting "Date" and enter the number of "Years" to subtract. The
calculator will show the past date.
- Dates: All date fields are editable; click on them and use the date picker or type a
date in `YYYY-MM-DD` format.
- Calculate: Click the "Calculate" button to perform the calculation and see the results.
- Results:
- The main result (e.g., "X years, Y months, Z days" or a specific date) is displayed in a large font.
- The descriptive sentence below provides more context about the calculation.
- Clear Button: Click "Clear" to reset all input fields and the result display to the default
"Years Between" calculation.
Note: The maximum number of years for addition or subtraction is
200. The calculations correctly account for different lengths of months
and leap years.
Years Between Dates Calculation:
To calculate the duration in years, months, and days between two dates:
- Date: Select start date and the target date. The year calculation will be based on the start to the later date.
- Full Years: Count the number of full years between the two dates. For example, from January 15, 2020 to January 15, 2022 is exactly 2 years.
- Full Months: After calculating the full years, then remaining in the period after year will be months.
- Remaining Days: After year and month calculation, the remaining is counted in days.
Example: To find the duration between October 20, 2021 and March 10, 2024:
- From Oct 20, 2021 to Oct 20, 2023 is 2 full years. (Remaining period: Oct 20, 2023 to March 10, 2024)
- From Oct 20, 2023 to Feb 20, 2024 is 4 full months (Oct-Nov, Nov-Dec, Dec-Jan, Jan-Feb). (Remaining period: Feb 20, 2024 to March 10, 2024)
- From Feb 20, 2024 to March 10, 2024 is 19 days (since Feb 2024 has 29 days).
So, the total duration is 2 years, 4 months, and 19 days.