Home · Date & Time · Ages & Birthdays · Age Difference Calculator
Age Difference Calculator
Find the exact gap between two people's ages from their birth dates, as a calendar breakdown of years, months and days and as a total in days.
What this calculator does
Find the exact gap between two people's ages from their birth dates, as a calendar breakdown of years, months and days and as a total in days. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Dates use the proleptic Gregorian calendar; a year is a leap year when divisible by 4, except centuries not divisible by 400.
The breakdown counts whole years, then whole months, then days, with the day clamped to the target month's length.
The order of the two dates does not matter: the gap is measured from the earlier birth date to the later one.
Worked example
With the example inputs this page opens with, the result is 5 years, 2 months, 26 days — age difference.
Quick reference
| Figure | Value |
|---|---|
| Age difference | 5 years, 2 months, 26 days |
| Total days | 1,913 |
| Total months | 62 |
| Older of the two | Person 2 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Does the order I enter the birth dates matter?
No. The calculator always measures from the earlier birth date to the later one and tells you which person is older.
Why is the difference not just a whole number of years?
Unless both people were born on the same month and day, the gap includes leftover months and days after the last whole year — this calculator shows all three parts.
How does the Age Difference Calculator work?
Find the exact gap between two people's ages from their birth dates, as a calendar breakdown of years, months and days and as a total in days. Birth date 1 · Birth date 2 → Age difference. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Age Difference Calculator need?
Birth date 1 · Birth date 2 → Age difference. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.