Zen Calculator

Age Difference Calculator

Use this free online age difference calculator to find the exact age gap between two people by date of birth or by age. See the difference in years, months and days, plus total days, next birthdays and an acceptable age gap check for couples.

  • Instant results
  • No data stored
  • Perfect on mobile
Person 1
Person 2

Sample dates are filled in. Replace them with your own.

Age difference
Enter two dates

Younger person’s ageAge gap
  • Total months–
  • Total years (decimal)–
  • Total weeks–
  • Total days–
  • Total hours–
  • Total minutes–
  • Person 1 age today–
  • Person 2 age today–
  • Person 1 next birthday–
  • Person 2 next birthday–
  • Age ratio–

Calculated in your browser using today’s date from your device. Nothing is saved or sent. Estimates are based on dates only, not time of birth.

How it works

How to Use the Age Difference Calculator

This age gap calculator compares two people and tells you exactly how far apart they are in age. It has two modes: By date of birth for the exact gap, and By age when you only know two ages, such as 18 and 22. It works for couples, siblings, parents and children, friends and classmates, and you do not need to work out who is older because the tool does that for you.

  1. Choose a modePick By date of birth for an exact result in years, months and days, or By age to compare two ages in years.
  2. Enter the two valuesAdd two dates of birth or two ages. Names are optional, and the order does not matter.
  3. Press CalculateResults also update as you type, so you can compare different people quickly.
  4. Read, copy or shareSee the gap, the ratio and the acceptable age gap check, then copy it or send it on WhatsApp.
The method

How to Calculate Age Difference by Date of Birth

To find the exact age difference between two people, or between two dates, subtract the earlier date of birth from the later one. To show it in years, months and days, count the whole calendar months first, convert them to years and months, and then count the days that are left over.

Whole months = (Year 2 − Year 1) × 12 + (Month 2 − Month 1)
If Date 1 + those months goes past Date 2, take away one month
Years = whole months ÷ 12, Months = the remainder
Days = Date 2 − (Date 1 + whole months)

Here are four worked examples. The results are the same ones this calculator shows.

Date 1Date 2Age differenceTotal days
15 Aug 19923 Mar 19963 years, 6 months, 17 days1,296
10 Oct 199010 Oct 200010 years, 0 months, 0 days3,653
31 Jan 20011 Mar 20010 years, 1 month, 1 day29
29 Feb 20001 Mar 20011 year, 0 months, 1 day366

The last two rows show how month ends and leap days are handled. When a month is shorter than the starting day, such as 31 January plus one month, the calculator uses the last day of that shorter month. That keeps the result consistent and avoids counting a day twice.

How accurate is it?

The date logic uses calendar-month arithmetic and has been checked against an independent date library on more than 4,000 date pairs, including leap-day cases. The calculator uses dates only, so it does not use time of birth or time zones.

Units

Age Difference in Days, Months and Years

The calculator shows the same gap in several units, so you can pick the one you need. This table uses the first worked example, 15 August 1992 and 3 March 1996.

UnitResultHow it is worked out
Years, months and days3 years, 6 months, 17 daysWhole months turned into years, plus the leftover days
Age difference in months42Whole calendar months between the two dates
Age difference in weeks185 weeks and 1 dayTotal days ÷ 7
Age difference in days1,296Exact number of calendar days between the dates
Age difference in years (decimal)3.55Total days ÷ 365.25
Hours and minutes31,104 and 18,66,240Total days × 24, and total days × 1,440

If you only know two ages, switch to the By age tab. The tool then shows the gap in years and months, so 18 and 22 gives an age difference of 4 years.

Couples and marriage

Acceptable Age Difference for Marriage and Couples

An age gap calculator gives you the exact number, but it cannot tell you whether a relationship will work. You can use this tool as a couple age difference calculator or an age difference calculator for marriage by entering both dates of birth. A five-year gap feels very different at 20 than at 45, so the calculator also shows each person’s age today and the age ratio. Maturity, life stage, shared goals and communication usually matter far more than the number.

The half-your-age-plus-seven rule

A popular rule of thumb says the youngest age you should date is half your age plus seven. Turned around, the oldest age is (your age − 7) × 2. The acceptable age gap check in the results panel compares your two ages with this rule. It is a social guideline, not a scientific or legal limit, and it does not replace the laws on the age of consent or marriage, which differ from country to country.

Your ageYoungest by the rule (age ÷ 2 + 7)Oldest by the rule ((age − 7) × 2)
201726
221830
2519.536
302246
402766
503286

For example, if one person is 22, the rule’s minimum partner age is 18 (22 ÷ 2 + 7), so an 18 and 22 pairing sits exactly on the limit. The check is only shown when both people are 18 or older.

What is an appropriate age difference in a relationship?

There is no single appropriate or acceptable age difference. Some people use the rule above as a quick reference, others look at how long they have known each other, and many families compare the gap on a matrimonial profile. Treat the result as one data point, and check the legal minimum age for marriage and consent where you live. This calculator does not give legal advice. For a lighter, just-for-fun look at a couple, try our Love Calculator or Flames Calculator.

Uses

Who Uses an Age Difference Calculator?

Couples

Compare the gap between partners, or fill in the age difference on a matrimonial profile or family form.

Siblings and twins

Find out exactly how many months or days apart two brothers or sisters are.

Parents and children

See how old a parent was when a child was born, using the two dates of birth.

Friends and classmates

Settle the “who is older” question down to the exact day.

Family-tree researchers also use it to check the gaps between generations and to spot date errors in old records.

Compare

Age Difference Calculator vs Age Calculator

The two tools are related but answer different questions. Use the Age Calculator when you want one person’s exact age. Use this age difference calculator when you want to compare two people.

FeatureAge CalculatorAge Difference Calculator
Question it answersHow old is this person?How far apart are these two people?
Input neededOne date of birthTwo dates of birth, or two ages
Main resultAge in years, months and daysGap in years, months and days
Extra resultsNext birthdayTotal days, weeks, ratio and acceptable age gap check
Avoid errors

Common Mistakes When Working Out an Age Gap by Hand

  • Subtracting years only. 1996 minus 1992 is four years, but the real gap in the first example above is 3 years, 6 months and 17 days.
  • Treating every month as 30 days. Months have 28 to 31 days, which changes the day count.
  • Forgetting leap years. A leap day adds one day to the total, and 29 February birthdays need special care.
  • Mixing up the date format. 03/04/1995 is 3 April in India and the UK, but 4 March in the US. The date picker avoids this mix-up.
  • Mixing up who is older. Swapping the two inputs still gives the same gap here, because the calculator orders them for you.
Spreadsheet

Age Difference in Excel: Formulas You Can Copy

Prefer a spreadsheet? Put the earlier date of birth in cell A2 and the later one in cell B2, then use these formulas in Excel or Google Sheets.

Days: =B2-A2
Years (decimal): =YEARFRAC(A2,B2)
Whole years: =DATEDIF(A2,B2,”y”)
Months left over: =DATEDIF(A2,B2,”ym”)
Days left over: =DATEDIF(A2,B2,”md”)
All in one: =DATEDIF(A2,B2,”y”)&” years, “&DATEDIF(A2,B2,”ym”)&” months, “&DATEDIF(A2,B2,”md”)&” days”

Microsoft notes that the “md” option of DATEDIF can give inaccurate results in some cases, especially around month ends. If you want a quick, reliable answer, use the calculator above instead.

FAQ

Age Difference Calculator FAQs

How do I calculate the age difference between two people?

Enter both dates of birth in the calculator and press Calculate. It subtracts the earlier date from the later one and shows the gap in years, months and days, plus the total in months, weeks, days, hours and minutes.

How do I find the age difference by birthday and age?

Use the By date of birth tab and enter each person’s birthday for the exact gap in years, months and days. If you only know ages, switch to the By age tab, enter the two ages in years (decimals such as 25.5 work too) and press Calculate.

What is the age difference between 18 and 22?

The age difference between 18 and 22 is 4 years. Under the half-your-age-plus-seven rule, the minimum partner age for a 22-year-old is 18, so this pairing sits exactly on the limit. The rule is only a social rule of thumb.

What is the half-your-age-plus-seven rule?

It is a rule of thumb that says the youngest age you should date is half your age plus seven. For example, a 40-year-old would date no one younger than 27. It is a social guideline with no scientific or legal basis, and this calculator only applies it to adults.

What is an acceptable age difference in a relationship?

There is no fixed answer. Many couples with a large gap are happy, and many with a small gap are not. Maturity, shared goals, life stage and respect for each other matter more than the number. Both people must also be adults under the law.

Can I use this as a couple or marriage age difference calculator?

Yes. Enter the date of birth of each partner to see the exact gap, each person’s age today and the acceptable age gap check. The result is for information only and is not legal or relationship advice.

Can I use this age gap calculator for siblings, parents or friends?

Yes. It works for any two people, whether they are a couple, siblings, twins, a parent and child, friends or classmates.

How do I calculate age difference in Excel?

Put the earlier date of birth in A2 and the later one in B2. Use =B2-A2 for days, =YEARFRAC(A2,B2) for decimal years, or the DATEDIF function with the y, ym and md options for years, months and days. The full formulas are in the Excel section above.

How does the calculator handle 29 February?

For the age gap, a day that does not exist in a shorter month is moved to the last day of that month. For birthday countdowns, a 29 February birthday is treated as 1 March in years that are not leap years.

Does time of birth change the result?

No. The calculator uses dates only, so people born on the same date show a gap of zero. Total hours and minutes are calendar days multiplied by 24 and 1,440.

Why is my result different from the age calculator?

The Age Calculator measures one person from their date of birth to today. This tool measures the gap between two people, so the two results answer different questions.

Is my data saved?

No. Everything is calculated in your browser, and the dates, ages and names you enter are not stored or sent anywhere. The WhatsApp button only shares the result text when you tap it.

Which dates does it support?

Dates of birth from 1 January 1900 up to today. Future dates are not accepted. In the By age tab, ages from 0 to 120 are supported.

Related calculators

More Free Calculators From Zen Calculator

Last updated: 17 October 2026 · Reviewed by the Zen Calculator team

Disclaimer: This age difference calculator is for information and general interest only. The half-your-age-plus-seven rule is a social rule of thumb and is not legal, medical or relationship advice.