About the Months Between Two Dates Calculator
This calculator finds the elapsed time between a start date and an end date using standard calendar-month arithmetic — the same method used for age calculations, contract terms, and elapsed-time reporting. Enter both dates and it returns the number of complete months, an exact years/months/days breakdown, the total number of days, and a decimal-month approximation.
The calendar-month algorithm
Months are not a fixed number of days — they run from 28 to 31 days depending on which month is being spanned, and February varies with leap years. Because of this, the exact breakdown is computed the same way you would count on a calendar, not by dividing total days by 30:
- Years = end year − start year.
- Months = end month − start month. If the end date's day-of-month is earlier than the start date's, borrow one month and add the number of days in the month before the end date to the day count.
- Days = end day − start day (after any borrowing above).
- If the resulting month count is negative, borrow one year and add 12 to the months.
The full months elapsed figure is simply years × 12 + months — the count of complete calendar months, ignoring the leftover days. For example, January 15, 2025 to March 10, 2025: the day field (10 − 15) is negative, so the calculator borrows one month and adds February's 28 days, leaving 1 month and 23 days — 1 full month elapsed, with 23 days left over.
Total days and decimal months
Total days is the plain difference between the two calendar dates in whole days (end date minus start date). Choosing "Inclusive" for the count basis adds one day, which matches how contracts and rental agreements sometimes count both the first and last day of a span. Decimal months divides that total day count by 30.4368 — the average length of a Gregorian calendar month (365.2425 days per year ÷ 12) — giving a single fractional number often used in finance, insurance, and statistics when a whole-number month count is too coarse.
Common uses
- Age calculations and anniversary or milestone tracking
- Contract terms, notice periods, and lease or subscription lengths
- Project timelines and deadline planning
- Loan, warranty, or probation periods measured "in months"
Precision note
If a calculation has legal or contractual significance, check the governing document's own counting convention before relying on this result — some agreements count the first day, some the last, and finance uses day-count conventions (Actual/365, Actual/360, 30/360) that differ from calendar-month math. This calculator uses calendar convention only; it does not exclude weekends, holidays, or apply any specific legal day-count rule.