How to Calculate Age Difference
A step by step method for the exact age gap between two birth dates, with worked examples and the leap year rules.
Use the age difference calculator
The method
Line up both birth dates. The earlier date belongs to the older person. Subtract the earlier date from the later date in years, then months, then days, borrowing when a number goes negative. The gap is fixed for life.
Worked example: 15 May 1990 and 20 August 1993. From 15 May 1990 to 15 May 1993 is 3 years. To 15 August 1993 is 3 more months. To 20 August is 5 more days. The gap is 3 years, 3 months and 5 days, or 1,193 days.
Always put the earlier date first. If you subtract the other way round you get the same size of gap with a minus sign, which is easy to misread, so decide who is older before you start. A useful check is to add the gap back to the earlier birth date: 15 May 1990 plus 3 years, 3 months and 5 days lands exactly on 20 August 1993. If the addition lands on a different date, the borrowing step below is the first place to look. The same years, months and days method is used for a single person's age. For that, see how to calculate age between two dates, and to check the day count, use the days between dates calculator.
Borrowing when the days go negative
Borrowing is the step that trips most people up, so here it is slowly, with one case worked all the way through. The two birth dates are 30 November 1990 and 1 January 1991.
Start with the days. The later date has day number 1, and the earlier date has day number 30. Taking 30 away from 1 gives minus 29, and a gap cannot have minus 29 days. So borrow a month. The month before the later date is December, and December has 31 days, so add 31 to the day count: 1 plus 31 is 32, and 32 minus 30 is 2. The days part of the gap is 2 days. Now the months. January is month 1, and November is month 11, so 1 minus 11 is minus 10. Borrow a year, which is 12 months: 1 plus 12 is 13, and 13 minus 11 is 2 months. But one of those months was already used up in the day borrowing above, so take one month back off: 2 minus 1 is 1 month. The years then work out to zero, because 1991 minus 1990 is 1, and the borrowed year takes that 1 away. The gap is 1 month and 2 days.
Check it against the calendar: from 30 November 1990 to 30 December 1990 is 1 month, and from 30 December to 1 January 1991 is 2 more days. Counting the days directly gives the same answer: 1 day left in November plus 31 days in December is 32 days in total. Borrow the real length of the month before the later date: December has 31 days, April would have 30, and February in a common year would have 28.
A second case: 25 January 1990 and 3 March 1991. The days give 3 minus 25, so borrow February 1991, which has 28 days: 3 plus 28 minus 25 is 6 days. The months give 3 minus 1, less the 1 borrowed month, which leaves 1 month. The years give 1. The gap is 1 year, 1 month and 6 days, or 402 days.
Leap year birthdays
Someone born on 29 February has a true birthday only once every four years. In other years, conventions differ. The common everyday rule treats 28 February as the birthday. Some people and some legal systems use 1 March instead. The choice only changes results near the end of February, and it matters for official cut-offs, so check the rule that applies to you.
With the 28 February rule, someone born on 29 February 2000 is 27 years old on 28 February 2027. With the 1 March rule, the birthday has not yet arrived on 28 February, so the completed years are one less. Both rules give the same total days, because total days count real calendar days and do not depend on the birthday convention.
Table of examples
Each row uses the same method: years first, then months, then days, with the total days counted separately. The last two rows are edge cases.
| Earlier birth date | Later birth date | Age gap | Total days |
|---|---|---|---|
| 10 April 1988 | 25 September 1991 | 3 years, 5 months, 15 days | 1,263 |
| 5 December 1975 | 18 March 1980 | 4 years, 3 months, 13 days | 1,565 |
| 31 August 2002 | 28 February 2005 | 2 years, 6 months, 0 days | 912 |
| 1 January 1960 | 2 January 1960 | 0 years, 0 months, 1 day | 1 |
| 15 June 1995 | 15 June 1995 | 0 years, 0 months, 0 days | 0 |
Check the first row: from 10 April 1988 to 10 April 1991 is 3 years, then 5 months to 10 September 1991, then 15 days to 25 September. The fourth row shows that a gap of a single day is a real answer, not a rounding error, and the fifth row shows that the same birth date gives a gap of zero.
What the answer means
Years, months and days is the form people use in conversation. Total days is the form to use when comparing gaps, because it is a single number: a gap of 1,193 days is bigger than a gap of 1,000 days.
The gap never changes, because both people age at the same rate. Birthdays change each person's age by one, on different days, but the distance between the two birth dates stays fixed. That is why a gap worked out once can be reused for life, and why a gap that seems to grow or shrink over time is a sign of a counting error, not a real change. For a quick check of any gap, use the age difference calculator, or work out each person's age separately with the age calculator and subtract the two ages in days.
When only the years are known
If you only know two birth years, you cannot give an exact gap in months and days. Two people born in 1990 and 1993 could be anywhere from just over 2 years apart to just under 4 years apart, depending on the months. Say the range honestly, or ask for the full dates. A year only subtraction can be wrong by almost a year.
The ends of that range are easy to see. The smallest gap comes from the latest date in the earlier year and the earliest date in the later year: 31 December 1990 to 1 January 1993 is 2 years and 1 day, or 732 days. The largest gap comes from the earliest date in the earlier year and the latest date in the later year: 1 January 1990 to 31 December 1993 is 3 years, 11 months and 30 days, or 1,460 days. Both pairs of people were born in 1990 and 1993, and their gaps differ by almost two years.
Frequently asked questions
How do I calculate age difference by hand?
Subtract the earlier birth date from the later one in years, then months, then days, borrowing from the previous month when the days go negative.
Does the age gap ever change?
No. The gap in days is fixed for life, because both people age at the same rate.
How do I handle a 29 February birthday?
Pick one rule and state it. The 28 February rule treats the birthday as 28 February in other years. The 1 March rule treats it as 1 March. Total days are the same either way.
What do I do when the days go negative?
Borrow the length of the month before the later date. For 30 November 1990 to 1 January 1991, borrow December's 31 days: 1 plus 31 minus 30 is 2 days, and the gap is 1 month and 2 days, or 32 days in total.
Can the age difference be zero?
Yes. Two people born on the same date have an age difference of 0 days. A gap of 1 day means the younger person was born the next day, as in 1 January 1960 to 2 January 1960.
How exact is a gap worked out from birth years only?
Not exact. Two people born in 1990 and 1993 could be just over 2 years apart, at 732 days from 31 December 1990 to 1 January 1993, or just under 4 years apart, at 1,460 days from 1 January 1990 to 31 December 1993. You need the full dates for months and days.