Math & Statistics 3 min read

Age Difference: How to Calculate the Exact Age Gap

Subtract the earlier birth date from the later one in years, months and days, borrowing real month lengths when needed. Two worked examples, generation cut-offs and edge cases.

By the EverydayCalcPro Editorial Team · Reviewed by Reviewed byFaheem AliSoftware Developer, Digital Marketing Specialist & Technical WriterFaheem Ali is a software developer, digital marketing specialist and technical writer with over 12 years of experience in programming, digital marketing and content development. He holds two master’s degrees in Management Sciences and has professional certifications in programming and digital marketing. Based in Finland, Faheem focuses on developing reliable calculators, verifying mathematical formulas and calculation logic, and making technical and financial information accessible through clear, practical guides. on
Updated · Published
Two birth dates compared with the age difference result

Key takeaways

  • Subtract the earlier date of birth from the later: years, then months, then days.
  • If the days come out negative, borrow the real length of the previous month.
  • Birth years alone can hide almost a year of difference; use full dates.
  • A small age gap can still cross a generation line.
  • For legal or official matters, rely on exact dates on official records.
In this article
  1. Quick answer: how to calculate an age gap
  2. Worked example 1: a simple gap
  3. Worked example 2: when the days need borrowing
  4. Age difference versus generation
  5. Edge cases
  6. How big is a big age gap?
  7. Related guides

To find the age difference between two people, subtract the earlier date of birth from the later one and read the result in years, months and days. Comparing only birth years can be off by almost a year, so use the full dates.

This guide shows the method, two worked examples (one with a day-borrow), how to read an age gap against generations, and the edge cases: same birthday and 29 February.

Quick answer: how to calculate an age gap

  1. Write both full dates of birth. The earlier date belongs to the older person.
  2. Subtract the years, then the months, then the days (later date minus earlier date).
  3. If the days come out negative, borrow the real length of the month before the later date's month, and reduce the months by 1.
  4. If the months come out negative, borrow 12 months and reduce the years by 1.

Example: 12 March 1990 and 5 July 1995 is 5 years, 3 months and 23 days, not "5 years". Birth years alone would hide the extra 3 months and 23 days.

Worked example 1: a simple gap

Step Value
Person A 10 May 1988 (older)
Person B 22 November 1994
Years 1994 − 1988 = 6
Months November − May = 6
Days 22 − 10 = 12
Age difference 6 years, 6 months, 12 days (2,387 days)

Worked example 2: when the days need borrowing

Step Value
Person A 28 November 2002 (older)
Person B 15 March 2005
Add whole years to A 28 November 2002 + 2 years = 28 November 2004
Add whole months + 3 months = 28 February 2005
Days left 28 February to 15 March = 15 (February 2005 has 28 days)
Age difference 2 years, 3 months, 15 days (838 days)

Subtracting directly gives 15 − 28, which is negative. That is why you count forward from the older person's date using real month lengths.

Compare two birth dates

Enter two dates of birth and see the exact gap in years, months and days. Free, no sign-up, nothing stored.

Compare two birth dates →

Age difference versus generation

A small gap can still cross a generation line, and a larger gap can stay inside one. Two people born in December 1996 and January 1997 are only a month apart but fall in different generations by the commonly used cut-offs.

Generation Birth years
Baby Boomers 1946 to 1964
Generation X 1965 to 1980
Millennials 1981 to 1996
Generation Z 1997 to 2012
Generation Alpha 2013 onwards

Cut-offs differ between sources; these are the Pew Research Center definitions for Millennials and Generation Z, with the neighbouring ranges following common usage. Alpha is a market-research label, not an official statistical category. See what generation am I for the full chart.

Edge cases

  • Same birthday, different years: the gap is a whole number of years with 0 months and 0 days. The person with the earlier birth year is older.
  • Same birth year: compare the month and day. The earlier date is older, and the gap is in months and days only.
  • 29 February: in non-leap years the birthday is commonly counted on 1 March, so a gap involving a leap-day birthday can differ by a day depending on the convention used.

How big is a big age gap?

There is no official threshold. How a gap feels depends on life stage: five years between two 20-year-olds is a different thing from five years between two 45-year-olds. The exact figure is best treated as a fact to compare, not a verdict. For legal or official matters, such as age-of-consent or eligibility rules, use the exact dates on official records and the rules of your own country.

To see how age is counted from a single birth date, read how to calculate age from a date of birth. To see your total days lived, read how many days old am I.

Frequently asked questions

How do I calculate the age difference between two people?

Subtract the earlier date of birth from the later one: years, then months, then days. If the days are negative, borrow the length of the previous month. Or enter both dates in the age calculator's compare tab.

Is age difference the same as age gap?

Yes. Both mean the time between two people's dates of birth.

How do I tell who is older?

The person with the earlier date of birth is older. If the birth years match, compare the month and then the day.

Who is older if two people share a birthday?

If the day and month match but the years differ, the person born in the earlier year is older, by a whole number of years. If the full date matches, they are the same age.

How do you count an age gap across 29 February?

In non-leap years a leap-day birthday is commonly treated as 1 March, though some places use 28 February. The years are unaffected; the months and days can differ by a day depending on the convention.

Does a one-year gap in birth year mean a one-year age difference?

Not necessarily. Someone born in December 1990 and someone born in January 1991 are only about a month apart, so use the full dates.

Sources

General information only, not financial, legal or medical advice. Figures are checked when the article is updated; rules and rates can change, so confirm important details with the official source.

Was this article helpful?

Keep reading