What this calculator does
An age gap is a simple idea that gets awkward once months and leap years enter the picture. This calculator subtracts one birth date from the other using calendar months and days, so the answer matches how people talk about a five-year gap. It also reports total days and names the earlier date, which settles the direction of the difference. Because it compares two fixed dates, it is not the same as each person's age today, and the two views can drift apart as birthdays pass.
How to use it
- Enter the first birth date.
- Enter the second birth date.
- Read the difference in years, months, and days, then the total days.
- Check which date is earlier so you know whose age is greater.
- Swap the dates to confirm that the gap stays the same.
How it works
Example calculations
Example 1: five years and a few months
June 15, 1990, compared with March 10, 1985, is 5 years, 3 months, and 5 days. The total is 1,923 days. March 10 comes first, so the person born on that date is the older of the two.
Example 2: a leap-day clamp
February 29, 1996, compared with February 28, 2001, is 5 years, 0 months, and 0 days, or 1,826 total days. Adding five years to a leap day lands on a date that does not exist in 2001, so it clamps to February 28.
Example 3: a gap across different months
March 2, 1988, compared with July 19, 1983, is 4 years, 7 months, and 12 days, which comes to 1,688 total days. Both forms describe the same span, one in calendar units and one in plain days.
What the result means
The years, months, and days figure is how people usually describe an age gap, but it measures elapsed time between two fixed dates. It is not either person's age today: each person also grows older, and birthdays fall on different days, so the gap in calendar units can shift by a day depending on the reference date you have in mind. The total-days figure avoids that ambiguity and is the better choice for legal, medical, or genealogical work. When a birth date is late in a month, expect clamping to move a result by a day or two. If you need each person's current age, calculate those separately and then compare.
Common mistakes
- Treating the age gap as either person's age today.
- Subtracting years first and then months without borrowing when the day of month is smaller.
- Assuming every month has 30 days when converting the gap into days.
- Forgetting that a leap day adds one day to the total-day count.
- Ignoring month-end clamping, such as a birth on the 31st compared with a shorter month.
Assumptions and limits
- Both dates are valid dates in the Gregorian calendar.
- Each date is treated as a whole day at midnight, with no birth time.
- Whole years and months are counted first, then leftover days.
- Month-end dates clamp to the last day of a shorter month.
- Total days counts elapsed calendar days and excludes the later date.
Frequently asked questions
Is the age gap the same as each person's age?
No. The gap is the distance between two fixed birth dates, so the answer itself does not change. Each person's age grows every year, so the two numbers answer different questions.
Why does the gap change by a day sometimes?
Calendar months have different lengths, and month-end clamping can absorb or add a day. A birth on the 31st compared with a month that has 30 days is the usual cause.
Does the order of the dates matter?
The size of the gap is the same either way, but the earlier date changes. The calculator reports which date comes first so you can tell whose age is greater.
How are leap years handled?
The Gregorian rule applies: a year is a leap year if it is divisible by 4, except century years, which must be divisible by 400. February 29 counts in total days and clamps in non-leap years.
Can I use this for an age gap on a future date?
Yes, because the result depends only on the two dates. For an age on a specific date, such as a school cutoff, use an age calculator on each date instead.
Why do years, months, and days not add up to the total days?
Years and months vary in length, so converting calendar units to days is approximate. The total-day figure is exact and is the better choice for precise work.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.
Part of a decision center
Date & Time Decision Center
See the companion tools, decision guides, and patterns that go with this calculator.
Go deeper
