Relationship Length Calculator

Relationship Length Calculator

Leading AI Skill PRO

Enter Calculation

Formula

Length=(Yyears,Mmonths,Ddays)where{Y=End Year−Start YearM=End Month−Start MonthD=End Day−Start Day\begin{gathered} \text{Length} = (\,Y\ \text{years},\ M\ \text{months},\ D\ \text{days}\,) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} Y &= \text{End Year} - \text{Start Year} \\ M &= \text{End Month} - \text{Start Month} \\ D &= \text{End Day} - \text{Start Day} \end{aligned} \right. \end{gathered}
Show calculation steps (1)
  1. Total Days, Weeks & Months

    Total Days=End Date−Start Date86400000ms/dayTotal Weeks=Total Days7,Total Months=Total Days30.4375\begin{gathered} \text{Total Days} = \dfrac{\text{End Date} - \text{Start Date}}{86400000\ \text{ms/day}} \\[1.2em] \text{Total Weeks} = \dfrac{\text{Total Days}}{7}, \quad \text{Total Months} = \dfrac{\text{Total Days}}{30.4375} \end{gathered}

    Total days between the two dates, then weeks and approximate months.

Usage stats

Advertisement

Results

You have been together for
6 years, 10 months, 16 days
since your relationship began
Total days 2,512
Total weeks 358.9
Total months (approx) 82.5

Report an error on this page

What is the Relationship Length Calculator?

This calculator tells you exactly how long you and your partner have been together. Enter the date your relationship began and it returns the elapsed time broken down into years, months and days, plus handy totals like the number of weeks and total days you have shared. It is perfect for marking anniversaries, planning a celebration, or simply settling a friendly debate about "how long has it been?"

How to use it

Enter the year, month and day your relationship started. The "As Of Date" defaults to today, but you can change it to any date — for example a past or future anniversary. Press calculate and you'll see the full breakdown.

The formula explained

The tool subtracts the start date from the end date one field at a time: days minus days, months minus months, years minus years. When the day difference is negative, it "borrows" the number of days in the month preceding the end date and reduces the month count by one. When the month difference then goes negative, it borrows 12 months from the years. This calendar-aware borrowing is why the result correctly accounts for months of different lengths and leap years.

$$\text{Length} = \text{End}_{\text{y}}\text{-}\text{End}_{\text{m}}\text{-}\text{End}_{\text{d}} \;-\; \text{Start}_{\text{y}}\text{-}\text{Start}_{\text{m}}\text{-}\text{Start}_{\text{d}}$$$$\begin{gathered} \text{Length} = (\,Y\ \text{years},\ M\ \text{months},\ D\ \text{days}\,) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} Y &= \text{End Year} - \text{Start Year} \\ M &= \text{End Month} - \text{Start Month} \\ D &= \text{End Day} - \text{Start Day} \end{aligned} \right. \end{gathered}$$$$\begin{gathered} \text{Total Days} = \dfrac{\text{End Date} - \text{Start Date}}{86400000\ \text{ms/day}} \\[1.2em] \text{Total Weeks} = \dfrac{\text{Total Days}}{7}, \quad \text{Total Months} = \dfrac{\text{Total Days}}{30.4375} \end{gathered}$$
Advertisement
Timeline showing the gap between a start date and end date broken into years, months and days
The duration is the span from the start date to today, split into years, months and days.

Worked example

Start date 31 March 2023, end date 1 April 2023. Days: \(1 - 31 = -30\), so we borrow the days in March (the month before April = 31) and reduce months by one: days = \(1 - 31 + 31 = 1\), months = \(0 - 1 = -1\), which borrows a year. The clean result is 0 years, 11 months, 1 day — and a total of 1 day.

Advertisement
Two calendar pages with an arrow between showing elapsed time as years, months and days
A worked example: subtracting the start date from today gives the calendar duration.

Key Terms Used in This Calculator

Term Meaning
Start Date The day the relationship began — the date you both count as day one (first date, the day you made it official, an engagement or wedding date). Entered as startYear, startMonth, startDay.
As Of / End Date The day you are measuring up to, normally today, but it can be any past or future date such as an upcoming anniversary. Entered as endYear, endMonth, endDay.
Calendar duration The years / months / days breakdown, e.g. "5 years, 5 months, 15 days". It follows real calendar months of unequal length, so adding it to the start date lands exactly on the end date.
Total Days The count of whole elapsed days between the two dates, with the end date exclusive: the end day is not counted, so identical dates give 0 days.
Total Weeks Total days ÷ 7. A remainder means a part-week, e.g. 1994 days = 284.86 weeks, i.e. 284 full weeks plus 6 days.
Total Months Total days ÷ 30.4375. This is an average-month approximation used for a single smooth number — it is not the calendar month count, and it can differ from the months shown in the calendar breakdown by a fraction of a month.
Borrowing The carry step in date subtraction: when the day difference is negative you take the length of the month before the end month (28/29/30/31) and reduce the months by one; when the month difference is negative you add 12 and reduce the years by one.
Leap year A 366-day year containing 29 February. In the Gregorian calendar a year is a leap year if it is divisible by 4, except centuries, which must be divisible by 400 — so 2024 and 2000 are leap years while 2026 and 1900 are not. Each leap day crossed adds one to the total-days count.
Anniversary The same month and day in a later year, e.g. a 2020-09-18 start has its sixth anniversary on 2026-09-18. A 29 February start has no exact anniversary in common years and is usually observed on 28 February or 1 March.
Average month length 30.4375 days, from \(365.25 \div 12\) — the mean Gregorian year of 365.25 days divided into twelve equal parts. It is the constant behind the Total Months figure.

Note that the very slight overstatement in 365.25 (the true Gregorian mean year is 365.2425 days, because of the 400-year century rule) is far too small to affect a relationship-length result: it amounts to well under a day per century.

Conventions and edge cases

Each case below was run through this calculator; the result column is what it actually returns.

CaseInputResultNote
1 to 31 January2025-01-01 → 2025-01-3130 daysThe start date is not counted.
29 February to 28 February of a common year2000-02-29 → 2025-02-2824 years, 11 months, 30 days
Across 29 February 20242024-02-28 → 2024-03-012 days
Same start and end date2025-03-10 → 2025-03-100 days

Checked on 2026-11-08

FAQ

Does it count today as a full day? The total days figure is the number of complete days between the two dates.

What if I enter a future start date? The duration will be negative; enter the earlier date as the start for meaningful results.

Are leap years handled? Yes — month lengths are read from the calendar, so February's 28 or 29 days are applied correctly.

Last updated:

Most popular in Time and Date

View all Time and Date calculators