Age Difference Calculator
The exact gap between two birthdays, in years, months, and days — and who is older.
Last updated
Age difference
1,356days
3 years, 8 months, 15 days
- Whole months apart
- 44
- Weeks apart
- 193
The first person is the older of the two, by 3 years, 8 months, 15 days.
The short answer
How do I work out the age difference between two people?
Measure from the earlier birth date to the later one on the calendar, rather than subtracting birth years. Someone born 15 June 1990 and someone born 2 March 1994 are 3 years, 8 months, 15 days apart — 1,356 days, or 44 whole months. That gap was fixed the moment the younger one was born and never changes again.
Only the two whole-number ages move: a pair born 8 months apart will call themselves the same age for part of every year and a year apart for the rest.
How to use the age difference calculator
Put in two dates of birth and the tool measures the gap between them. The fields open on 15 June 1990 and 2 March 1994 so there is a worked result on screen from the first second; swap in the two real dates and every figure follows along as you type. Neither field will accept a date in the future. Order does not matter either: the tool compares the two dates, works from the earlier one to the later one, and then tells you in plain words which of the two people is the older, so you can enter them in whatever order they came to mind and get the same answer. Enter them the other way round and only the label changes — the gap itself is identical, because a distance between two points does not depend on which end you started from.
The headline is the gap in whole days, with the same span written underneath as years, months, and days. Those are calendar months rather than thirty-day blocks, which is why the breakdown will not divide neatly out of the day count and why it should not be expected to. The tool counts whole months from the earlier birth date, clamps the monthly anniversary into whatever month it lands in, and measures the leftover as an exact number of days. Below that you get the gap as whole months and as whole weeks, which are the units people actually reach for when the gap is small — a difference of a few months between two babies is far more legible as 26 weeks than as 0 years, 6 months, 0 days.
The last two rows give each person’s age today, measured against your own device’s calendar date. That is the context the raw gap is missing: four years between a pair of toddlers and four years between two adults are the same number and a completely different fact. Because those ages track your real today, they move on every birthday while the gap itself never budges. This is also where most confusion about age gaps comes from. Two people born 8 months apart spend four months of every year describing themselves as the same age and eight months describing themselves as a year apart, purely because of where their birthdays fall relative to each other. The measured gap in days and months is the stable figure; the pair of round-number ages is the one that keeps changing.
The address bar mirrors both dates as you edit them, so the URL you are looking at always reproduces the result you are looking at. Copy it and whoever opens it sees the same two birth dates and the same gap, though their ages-today rows will be recalculated against their own date. Nothing is stored on our side and nothing is sent to a server; the dates travel only in the link you choose to share, which is worth knowing before you paste a link containing someone else’s date of birth into a group chat. If you need the figure for a form or a record, note the gap rather than the two ages, since the gap is the part that will still be true next year.
Worked age gaps against a fixed first birth date of 15 June 1990, showing how the same span reads as years plus months plus days, as a flat day count, and in weeks and whole months.
| Second birth date | Gap in years, months, days | Total days | Whole weeks | Whole months |
|---|---|---|---|---|
| 15 June 1990 (same day) | 0 y, 0 m, 0 d | 0 | 0 | 0 |
| 15 December 1990 | 0 y, 6 m, 0 d | 183 | 26 | 6 |
| 15 June 1991 | 1 y, 0 m, 0 d | 365 | 52 | 12 |
| 29 February 1992 | 1 y, 8 m, 14 d | 624 | 89 | 20 |
| 31 January 1993 | 2 y, 7 m, 16 d | 961 | 137 | 31 |
| 2 March 1994 (the default) | 3 y, 8 m, 15 d | 1,356 | 193 | 44 |
| 14 June 1995 | 4 y, 11 m, 30 d | 1,825 | 260 | 59 |
| 16 June 1996 | 6 y, 0 m, 1 d | 2,193 | 313 | 72 |
| 1 January 2000 | 9 y, 6 m, 17 d | 3,487 | 498 | 114 |
| 15 June 2005 | 15 y, 0 m, 0 d | 5,479 | 782 | 180 |
| 31 December 2010 | 20 y, 6 m, 16 d | 7,504 | 1,072 | 246 |
| 15 June 1985 (second person older) | 5 y, 0 m, 0 d | 1,826 | 260 | 60 |
| 29 February 1988 (second person older) | 2 y, 3 m, 17 d | 837 | 119 | 27 |
The formula
An age gap is a plain date difference, and nothing about it depends on today. The tool sorts the two birth dates, counts the whole calendar months from the earlier to the later, anchors on the monthly anniversary of the earlier date, and measures whatever is left as an exact number of days. The flat total-days figure is calculated separately, straight from the two dates, so the two views of the gap are independent of one another.
The anniversary is clamped into its month, so one month after 31 January is 28 February, or 29 February in a leap year. That single rule is what keeps the leftover day count from ever going negative, and it is why leap years need no special handling anywhere else: 29 February is simply a date that either exists in the span or does not. It also settles the genuine ambiguity in month arithmetic, since there is no correct answer to "31 January plus one month" — only a stated convention.
earlier, later = the two birth dates, sorted
months = (later.year − earlier.year) × 12 + (later.month − earlier.month)
− 1 if the anniversary in that month has not arrived yet
days = exact day count from (earlier + months, day clamped) to the later dateWorked example with the defaults — 15 June 1990 and 2 March 1994. Whole months: (1994 − 1990) × 12 + (3 − 6) = 45. But 15 June 1990 plus 45 months is 15 March 1994, which is later than 2 March 1994, so step back to 44 months. The 44-month anniversary is 15 February 1994, and from there to 2 March 1994 is 15 days — 13 days to 28 February, then 2 more. That gives 44 ÷ 12 = 3 years, 44 mod 12 = 8 months, and 15 days: a gap of 3 years, 8 months, 15 days. The person born in 1990 is the older of the two, which is the label the tool prints alongside the figure.
The same gap in flat units comes to 1,356 total days. Check it the long way: 15 June 1990 to 15 June 1994 is 1,461 days, which is 4 × 365 plus the 29 February that fell in 1992, and 2 March 1994 is 105 days before 15 June 1994, so 1,461 − 105 = 1,356. That is 44 whole months and 193 whole weeks with 5 days left over. Notice how little the two views resemble each other: 1,356 divided by 30 would suggest 45 months rather than 44, and divided by 365.25 it would suggest 3.71 years rather than 3 years and 8 months. Neither approximation is what people mean, which is why the tool counts on the calendar instead.
The gap is fixed for life; only the two ages move. Read against 15 June 2026, the first person is 36 years, 0 months, 0 days and the second is 32 years, 3 months, 13 days — still 3 years, 8 months, 15 days apart, exactly as they were on the day the younger one was born. Read six weeks later, on 26 July 2026, they are 36 years, 1 month, 11 days and 32 years, 4 months, 24 days, and the gap is unchanged again. The rows in the table show how sensitive the years-months-days form is to a single day: a second birth date of 14 June 1995 gives 4 years, 11 months, 30 days, one day short of a round five years, while 16 June 1996 gives 6 years, 0 months, 1 day.
Frequently asked questions
Related guides
How Are Loan Payments Calculated? Amortization, Explained
One level payment, front-loaded interest — the formula worked by hand, the two levers you control, and why the smaller payment is often the costlier loan.
July 23, 2026 · 13 min read
How Does Inflation Work? The Math That Shrinks Money
One growth factor, two answers — what today's money will buy later, and how many future dollars it takes to keep up.
July 23, 2026 · 13 min read
How Is Sales Tax Calculated? Rates, Rules, and the Reverse Math
The combined-rate reality, the one-multiplication forward formula, and the division that pulls the tax back out of any total.
July 23, 2026 · 13 min read