What this age difference calculator does
Enter two birthdates and this age difference calculator gives you the exact gap between them: years, months and days, the total number of days apart, and the complete months. It also shows each person's current age today, and states the result as a plain sentence — who is older, and by how much — using the names you type, if you type them. If you searched for an age gap calculator instead, you are in the right place: “age gap” and “age difference” are two names for the same measurement, and this page computes the exact gap between two birthdates, not an approximation. It is also the tool people mean when they search for an age calculator difference — a calculator that takes two birthdates and returns the difference between them.
That last word matters. Many age gap tools quietly convert using average years and average months, which is how an exact five-year gap can come out as “4 years, 11 months and 30 days”, or how a leap-day gap loses a day between the headline and the total. Here there is no averaging anywhere: the gap is counted in real calendar years, months and days, and the breakdown always adds back up — adding the gap to the younger birthdate lands exactly on the older birthdate, every time. Siblings checking who is really older, couples doing the maths honestly, parents comparing children, and anyone filling in a form that asks for an exact difference can rely on the same figure.
The counting convention is the standard age convention, stated openly: a year or a month counts when its anniversary date is reached, and when that anniversary day does not exist in a shorter month, it falls on the month's last day. So a person born on 31 January is one month old on 28 February, and a leap-day baby turns one on 28 February in a common year. Everything runs in your browser — the birthdates you enter are never uploaded anywhere.
How to use it
- Enter the first person's birthdate — type it, paste it, or pick it from the calendar. Add their name if you want the answer written with names.
- Enter the second person's birthdate the same way. The order does not matter; use ⇄ Swap people if you prefer them the other way round.
- Read the result instantly: the gap in years, months and days, total days apart, complete months, weeks, and both people's current ages.
- Copy the answer or the link to share it — the link keeps both birthdates, so the same result opens for whoever you send it to.
How to calculate an age difference by hand
The reliable method is to calculate the age difference by counting forward from the younger person's birthdate to the older person's birthdate in three pieces: whole years, then whole months, then the days left over. Take someone born on 24 March 1988 and someone born on 9 November 1992. Counting years first: 24 March 1988 plus 4 years is 24 March 1992, and a fifth year would overshoot, so the gap starts with 4 years. Counting months from there: 24 March plus 7 months is 24 October 1992, and an eighth month would overshoot too. The leftover piece, 24 October to 9 November, is 16 days. The age difference is 4 years, 7 months and 16 days.
Check it against the total: counting every day between the two birthdates gives 1,691 days, and adding 4 years, 7 months and 16 days back onto 24 March 1988 lands exactly on 9 November 1992. That add-it-back test is the one any age difference should pass — and it is the test this calculator of age difference is built around, so every result it gives can be checked the same way. It is also why subtracting the two current ages is a risky shortcut: ages in whole years hide the months and days, so two people who are both “34” can still be almost a year apart, and the shortcut can even point at the wrong person in the weeks around a birthday.
Leap-day babies and month-end birthdays
Two birthdays cause most of the arguments. The first is 29 February. A leap-day baby has no real birthday in a common year, so a convention is needed: on this calculator they turn a year older on 28 February, the last day of their birth month — the convention most age calculators and most official age calculations use. (Some families celebrate on 1 March instead; it is a convention, not a fact of nature.) With that rule, someone born on 29 February 2000 is exactly 1 year and 1 day older than someone born on 1 March 2001 — a gap of 366 days, and the breakdown adds back up to it precisely.
The second is the month-end birthday. Someone born on 31 January reaches their one-month anniversary in a month with no 31st day, so the month counts on the last day instead: 31 January plus one month is 28 February. That is why the gap between 31 January 2025 and 1 March 2025 is 0 years, 1 month and 1 day — not “about a month”, and not a rounded 29 or 30 days, but an exact figure built from the same rule the calculator uses everywhere. Whatever tool you use for age differences, ask whether it states its rule for these two cases; if it does not, its leap-day and month-end answers are guesses.
Worked examples
Born 15 June 1990 and 15 June 1995
5 years, 0 months, 0 days — exactly five years apart: 1,826 days in total, 60 complete months, or 260 weeks and 6 days. Same birthday, five years apart, so there is nothing left over in months or days.
Born 29 February 2000 and 1 March 2001
1 year, 0 months, 1 day — 366 days in total. The leap-day-born person turns one on 28 February 2001 under the convention above, and one more day reaches 1 March 2001 exactly.
Born 31 December 1999 and 1 January 2000
0 years, 0 months, 1 day — born in different centuries, in different millennia, and still only one day apart. Birth years alone say nothing; the exact gap is one day.
The half your age plus 7 rule and the “7-year rule”
Two famous rules of thumb come up whenever age gaps are discussed, and both belong firmly in the category of social custom — they are quoted constantly, but neither is a law, a scientific finding, or medical advice. The half your age plus 7 rule says the youngest age it is supposedly acceptable to date is half your age plus seven: at 40, that is 27; at 30, it is 22; at 24, it is 19. The “7-year rule” is looser still — a common observation that gaps beyond about seven years tend to draw comment, mostly because the two people are more likely to be at different life stages.
How much weight to give either rule is a personal and cultural judgement, and attitudes have shifted a great deal over the decades these sayings have circulated. What the numbers can do — and all this page claims to do — is give you the exact gap to have the conversation about. A “seven-year gap” in a headline is often really six years and two months, or seven years and eleven; the difference between those is exactly what an exact calculator is for.
Age difference in Excel and Google Sheets
In a spreadsheet, put the older person's birthdate in cell A1 and the younger person's in cell B1. The total days apart is a plain subtraction, =A1-B1, because spreadsheets store dates as serial numbers. For the years, months and days breakdown, use DATEDIF with the earlier (younger) birthdate first: =DATEDIF(B1,A1,"y") for complete years, =DATEDIF(B1,A1,"ym") for the remaining complete months, and =DATEDIF(B1,A1,"md") for the remaining days. Google Sheets accepts the same three formulas. One warning: DATEDIF returns an error if its first date is later than its second, so the order matters there even though it does not matter in the calculator above.
Frequently asked questions
What is the half-your-age-plus-7 rule?
It is a well-known social rule of thumb about dating ages: take the older person's age, halve it, and add seven — the result is the youngest age that is supposedly socially acceptable for them to date. At 40, that gives 40 ÷ 2 + 7 = 27; at 28, it gives 21. It is a custom people quote, not a law, a scientific finding or medical guidance, and plenty of people ignore it entirely. This calculator gives you the exact age gap; what you make of the gap is a personal judgement, not a calculation.
What is the 7-year age gap rule?
There is no official 7-year rule. The phrase is used loosely for the common observation that age gaps of more than about seven years tend to attract comment, because the two people are more likely to be at different life stages — one finishing education while the other is established in a career, for example. Attitudes vary a lot by culture, family and the ages involved: a seven-year gap means something very different at 20 and 27 than at 45 and 52. Treat it as a talking point, not a standard anyone is measured against.
Is a 5-year or 10-year age gap too much?
No calculator can answer that, because it is not really a maths question. What tends to matter more than the raw number is that both people are adults, what your local law says, and whether you are at compatible stages of life — education, work, plans for children, and so on. A 10-year gap between a 40-year-old and a 50-year-old is unremarkable in most places; the same gap at younger ages raises different questions. This tool's job is narrower and more useful: it gives you the exact gap in years, months and days, so any conversation about it starts from the right number.
How do I calculate an age difference by hand?
Start from the younger person's birthdate and count forward to the older person's birthdate. First count whole years: add years until the next anniversary would pass the older birthdate. Then count whole months from that anniversary, clamping to the end of the month when the day does not exist (31 January plus one month is 28 February). Whatever is left is counted in days. For example, 24 March 1988 to 9 November 1992 is 4 years (to 24 March 1992), then 7 months (to 24 October 1992), then 16 days — a gap of 4 years, 7 months and 16 days, or 1,691 days in total.
How do I calculate an age difference in Excel?
Put the older person's birthdate in cell A1 and the younger person's in cell B1. The total days apart is simply =A1-B1. For a years, months and days breakdown, use DATEDIF with the earlier date first: =DATEDIF(B1,A1,"y") for complete years, =DATEDIF(B1,A1,"ym") for the remaining complete months, and =DATEDIF(B1,A1,"md") for the remaining days. Google Sheets supports the same formulas. Note that DATEDIF errors if the first date is later than the second, so keep the younger birthdate first in those formulas.
How are leap-day birthdays (29 February) counted?
On this calculator, a person born on 29 February turns a year older on 28 February in a common year, because that is the last day of their birth month — the standard convention used by most age calculators. (Some families and some countries celebrate on 1 March instead; neither is 'wrong', they are different conventions.) The convention matters for exact gaps: someone born on 29 February 2000 is exactly 1 year and 1 day older than someone born on 1 March 2001, a gap of 366 days, and the breakdown above always adds back up to that total.
Related tools
Date Difference Calculator
The exact days between any two dates, with working days and public holidays.
Open tool →Date Calculator
Add or subtract days, count business days, and find the days between dates.
Open tool →How Many Days Until
A live countdown to Christmas, your birthday or any date you pick.
Open tool →