Toolzent

Age Gap Calculator

Free age gap calculator: enter two birth dates to find the exact age difference in years, months and days, plus the total days and approximate months.

Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser

What is an age gap calculator?

An age gap calculator finds the exact difference between two people’s birth dates and expresses it as years, months and days. Instead of guessing “about three years,” it gives a precise breakdown such as 3 years, 4 months and 5 days, and it also reports the total number of days and an approximate month count. Type two dates of birth into the tool above and press calculate to see the gap instantly.

The age gap is the distance between two birth dates. That makes it different from an age, which is the distance between one birth date and today. Because months have different lengths and leap years exist, this calculator counts real calendar days rather than assuming every month is 30 days, so the answer is accurate down to the day.

How does the age gap calculator work?

The primary method is the difference between two birth dates in years, months and days, computed with a borrow technique. Here is the exact sequence the widget runs.

First it orders the two dates so the earlier one is the start and the later one is the end. This is why the order you type them in does not matter.

Then it subtracts each field on its own:

  • years = end year − start year
  • months = end month − start month
  • days = end day − start day

Then it fixes any field that came out negative, by borrowing:

  1. If days is negative, subtract 1 from months and add the number of days in the month immediately before the end month to days.
  2. If months is then negative, subtract 1 from years and add 12 to months.

Finally it derives two summary figures from the raw gap:

  • total days = round((end − start) ÷ 86,400,000), where 86,400,000 is the number of milliseconds in one day.
  • approximate months = total days ÷ 30.4375, rounded to one decimal place. The divisor 30.4375 is the average month length (365.25 days ÷ 12).

Terms and units: years, months, days are whole calendar units after borrowing; total days is the exact count of calendar days between the two birth dates; approximate months is a single decimal month figure for quick comparison. All dates are treated as midnight, so times of day are not part of the calculation.

Examples

Every figure below matches the tool exactly. Try reproducing them in the widget above.

Example 1 — the standard case. First birth date 15 May 1990, second birth date 20 September 1993.

  • years = 1993 − 1990 = 3; months = 9 − 5 = 4; days = 20 − 15 = 5. Nothing is negative, so no borrowing is needed.
  • Result: 3 years, 4 months, 5 days — shown as 3y 4m 5d, with 1,224 days total and about 40.2 months.

Example 2 — borrowing days across a short February. First birth date 30 August 1985, second birth date 5 March 1990.

  • years = 5; months = 3 − 8 = −5; days = 5 − 30 = −25.
  • days is negative, so borrow from the month before March (February 1990 has 28 days): days become 5 + 28 − 30 = 3, and months drop to −6.
  • months is negative, so borrow: months become 6 and years drop to 4.
  • Result: 4 years, 6 months, 3 days4y 6m 3d, with 1,648 days total and about 54.1 months.

Example 3 — same calendar year. First birth date 14 February 1995, second birth date 3 November 1995.

  • years = 0; months = 11 − 2 = 9; days = 3 − 14 = −11.
  • days is negative, so borrow from October (31 days): days become 3 + 31 − 14 = 20, and months drop to 8.
  • Result: 0 years, 8 months, 20 days0y 8m 20d, with 262 days total and about 8.6 months. Two dates in the same year always produce a gap in months and days only.

Example 4 — borrowing months only. First birth date 25 June 1980, second birth date 10 February 1984.

  • years = 4; months = 2 − 6 = −4; days = 10 − 25 = −15.
  • days is negative, so borrow from January 1984 (31 days): days become 10 + 31 − 25 = 16, and months drop to −5.
  • months is negative, so borrow: months become 7 and years drop to 3.
  • Result: 3 years, 7 months, 16 days3y 7m 16d, with 1,325 days total and about 43.5 months.

The table below summarises all four runs.

Birth date ABirth date BAge gap (y m d)Total daysApprox. months
1990-05-151993-09-203y 4m 5d1,22440.2
1985-08-301990-03-054y 6m 3d1,64854.1
1995-02-141995-11-030y 8m 20d2628.6
1980-06-251984-02-103y 7m 16d1,32543.5

Notice that the approximate months figure is not the breakdown re-stacked; it comes from dividing the true day gap by 30.4375, so it can differ slightly from years × 12 + months.

What can you use an age gap calculator for?

The same calculation answers many everyday questions:

  • Relationships. Work out the exact age difference between partners or a couple, beyond a rounded “we are X years apart.”
  • Siblings and family. Find the precise gap between brothers, sisters, parents and children.
  • Twins and close births. Measure the difference between two births only days or months apart.
  • Records and trivia. Compare the ages of historical figures, teammates or co-stars.

You can browse more calendar tools in the date-time tools category.

Tips and common mistakes

A few things to watch when reading or reproducing a gap:

  • An age gap is not an age. The gap stays the same as both people get older; it never grows. Do not confuse it with either person’s current age.
  • Order does not matter, the sign never flips. The tool sorts the dates, so it can never return a negative gap. Swapping the two fields gives the identical answer.
  • Approximate months can disagree with the breakdown. Because it divides total days by 30.4375, 40.2 months for the first example is normal even though the breakdown is 3 years 4 months; the two figures answer slightly different questions.
  • Time of day is ignored. Both dates are treated as midnight, so partial days and time zones are not included in the count.

Limitations and notes

The calculation is exact for whole-day calendar spans on the Gregorian calendar: it counts real days, the true length of each month and every 29 February inside the interval. The only intentional simplifications are that the time of day is dropped and the approximate months figure is an average-length estimate, both standard for age-gap math.

This tool is for general, informational and planning use. It measures calendar time between two birth dates only; always confirm the exact definition that applies if a gap carries legal or institutional weight.

If you found this useful, try the chronological age calculator for one person’s exact age, the date difference calculator for any two dates, and the business days calculator for working-day spans — all in the date-time tools category.

Frequently asked questions

How do you calculate the age gap between two people?+

Order the two birth dates, then subtract year from year, month from month and day from day, borrowing days from the previous month and 12 months from the years wherever a field goes negative.

What is the age gap between someone born 15 May 1990 and someone born 20 September 1993?+

The gap is 3 years, 4 months and 5 days, which is about 1,224 total days.

How do I use this age gap calculator?+

Enter the first person's birth date, enter the second person's birth date, then press Calculate age gap to see the difference in years, months and days plus the total days.

Does the order of the two birth dates matter?+

No. The tool sorts the dates first, so it always returns a positive age gap no matter which date you type into which field.

What does the approximate months figure mean?+

It is the total days divided by 30.4375 (the average month length), giving a single rounded month count that is handy for quick comparisons.

Can two people born in the same year have an age gap?+

Yes. When both birth dates fall in the same calendar year the years value is 0, so the gap is shown in months and days only.

Does the calculator handle leap years?+

Yes. It counts real calendar days and uses the true length of each month when borrowing, so 29 February and short or long months are all measured correctly.

Is an age gap the same as either person's age?+

No. An age gap is the distance between two birth dates, while an age is the distance between one birth date and today, so the two answers usually differ.