Full Month and Year Difference
Calculate the completed whole years and whole months between two dates, the months beyond whole years, whole weeks and total days.
Things to keep in mind:
- Whole months do not assume “a month = 30 days”; real calendar month lengths apply.
- For month-end dates (29–31) the result depends on the clamping rule; verify if your contract prescribes a different rule.
- For legal calculations such as severance, rent or insurance periods, the specific rules of the relevant law apply.
Calculator
Result
Enter the values and press Calculate to see the result here.
About this tool
This tool calculates how many completed years and months lie between two dates and also gives the weeks and days.
Logic
- Whole months: the largest n such that adding n months to the start date does not pass the end date. When the day overflows, it is clamped to the last day of the target month (31 January + 1 month = 29 February 2024).
- Whole years = whole part of months / 12; months beyond years = whole months − 12 × whole years.
- Whole weeks = whole part of total days / 7; total days = end − start.
Example: 31 January 2024 → 29 February 2024: 1 whole month, 0 years, 29 days, 4 whole weeks. 15 May 2020 → 14 March 2023: 33 whole months = 2 years and 9 months (14 March is before 15 March so the 34th month is not complete). 29 February 2000 → 28 February 2021: 252 months = 21 years.
If the end date is before the start date all results are negative. For a “years, months, days” breakdown of an age use the Age Components tool.
Formula summary
- Whole months = the largest number of months that can be added to the start date without passing the end date; whole years = whole part of whole months / 12; months beyond years = whole months − 12 × whole years.
- Whole weeks = whole part of total days / 7 (truncated toward zero for a reversed range); total days = end − start.
Extra example: 15 May 2020 → 14 March 2023 is 1,033 days in total, 147 whole weeks and 33 whole months (2 years + 9 months). If the dates are entered in reverse (14 March 2023 → 15 May 2020) the same numbers come out negative: −2 years, −33 months, −9 months, −147 weeks, −1,033 days.
How to read the result: “Whole months (total)” is the total month count including years; “Whole years” and “Months beyond whole years” express the same span as “X years Y months”. Leftover days are not reflected in these results; use total days for them. Negative values mean the end date is before the start date.
How to use
- Pick the start date.
- Pick the end date.
- Press Calculate.
- Read whole years, whole months and the remaining months.
Notes
The month difference follows a “completed months” logic; the day is clamped to the last day of the target month. For a reversed range results are negative. Weeks and days rely on calendar days. Outputs are whole numbers.
Frequently asked questions
It is the largest number of months that can be added to the start date without passing the end date. Example: 15 May 2020 → 14 March 2023 = 33 months.
1 whole month. Adding 1 month to 31 January gives 29 February 2024 (the last day of February), which reaches the end date.
Age uses the same logic; for a years, months and days breakdown see the Age Components tool.
All outputs are negative; the absolute value is the span.
Next step
Related tools to continue your calculation.
- Calculate
Days Between Two Dates Calculator
Calculate the number of days between two dates, the count including both dates, and the whole weeks and remaining days.
- Calculate
Age Components Calculator
Break an age down into completed years, months and days from a date of birth, plus total months, weeks and days. Hours and minutes are not calculated.
- Calculate
Add Months and Years to a Date
Add or subtract years, months and days from a date and get the result date with the month-end rule and its weekday — handy for due dates.
- Calculate
Weekday Count Between Dates
Count the weekdays between two dates, excluding Saturdays and Sundays. Public holidays are not taken into account; only weekends are removed.
- Calculate
Month-End and Quarter Dates Calculator
Find the first and last day of a date's month, its quarter start and end, the year end and the days left until each.
- Calculate
Time Unit Converter: Seconds, Minutes, Hours, Days
Convert durations between milliseconds, seconds, minutes, hours, days, weeks, months and years, and split a duration into days, hours, minutes and seconds.