Skip to content

Compare two people

Age Difference Calculator

Enter two dates of birth to see who is older and how far apart the birthdays are. This is just a date comparison, not relationship advice.

By The WorkItOut.Tools Editorial Team Reviewed

Age difference calculator

Compare two dates of birth

See who is older and how far apart the two birthdays are.
Answer
Age difference4y 6m 17d

Second person is older by 4 years, 6 months and 17 days.

Total days
1,661
Older
Second person

Method

later birth date - earlier birth date = age gap
  1. Put the earlier birth date first.
  2. Count full years, then full months, then days.
  3. Show total days too, in case you need one exact number.

How it works

How to use the age difference calculator

Enter the dates, choose any needed option, and read the result with the method shown.

1

Enter both birth dates

Label the people A and B only for input. The calculator accepts the dates in either order and does not require names or other personal information.

2

Let the dates determine order

The earlier date belongs to the older person. Reversing A and B changes the label in the result, but not the size of the age gap.

3

Use the right result

Use years, months and days for a normal readable gap. Use total days when you need one exact number.

Ordering

Find the earlier and later birth dates

An age difference is the time between two dates of birth. The earlier date belongs to the older person, no matter which box it was entered in.

If both dates are the same, neither person is older. The difference is zero years, zero months and zero days.

older person = earlier birth date

Calendar gap

Count years, then months, then days

Start with the earlier date. Count full years without going past the later date. Then count full months, then the days left over.

That gives a readable gap, such as 2 years, 5 months and 14 days. Because months have different lengths, the calculator also shows the total number of days.

age gap = later birth date - earlier birth date

1 January 1990 to 15 June 1992 = 2 years, 5 months, 14 days.

Total days

Use total days when you need one number

For total days, the calculator counts the calendar days between the two birth dates.

The total does not change if you swap the inputs. Leap days are included automatically.

total days = later date - earlier date

Keep this handy

Calendar gap or total days?

The same dates can be expressed in two useful forms.

OutputBest forImportant detail
Years, months and daysReading the gap in normal calendar languageUses real month lengths
Total daysComparing with one exact numberDoes not depend on month names
Older-person labelUnderstanding directionBased on the earlier date
Zero differenceIdentical datesNeither person is older

Follow the calculation

Worked age difference calculator examples

Each example uses the same calendar rules as the calculator.

1

A multi-year difference

1 January 1990 and 15 June 1992

Person A is older by 2 years, 5 months and 14 days
  1. Count two full years to 1 January 1992.
  2. Count five full months to 1 June.
  3. Count 14 days to 15 June.

The calculator also shows the same gap as total days.

2

Dates in reverse order

15 June 1992 entered before 1 January 1990

Person B is older; the gap is unchanged
  1. Put the earlier date first behind the scenes.
  2. Use 1 January 1990 as the start.
  3. Calculate the same positive gap.

Input order changes the label, not the age difference.

3

Across New Year

31 December 2000 and 1 January 2001

1 day
  1. The earlier date is 31 December.
  2. The following calendar date is 1 January.
  3. Exactly one day has elapsed.

Subtracting birth years alone would misleadingly suggest a one-year gap.

Calendar details

Edge cases the calculator handles

These are the small details where quick shortcuts often get the wrong date.

Identical dates

The result is zero years, zero months and zero days, and neither person is described as older.

Reversed inputs

You can enter the dates either way round. The calculator sorts them before counting.

Month ends

If the gap involves the 29th, 30th or 31st, the calculator uses real month lengths, not a fixed 30-day month.

Leap years

Total days includes 29 February whenever it falls between the two birth dates.

Avoid mistakes

Common age difference calculator mistakes

A few quick checks make the answer easier to trust.

1

Subtracting birth years

Years alone ignore the month and day. Two people in adjacent birth years may be only one day apart.

2

Assuming input A is older

The earlier calendar date determines who is older. Field order is only a label.

3

Treating months as 30 days

Months are not all the same length. Use total days if you need one fixed unit.

4

Using the result as advice

An age gap is just a time difference. Personal, legal or safeguarding questions need proper context.

Choose the right page

More age and birthday calculators

Use the page that matches the question you actually have.

Related guides

Read the calendar method behind the result

These guides explain the rules that most often change an age, birthday or day-count answer.

References

Sources and calendar conventions

These references support the calendar facts and definitions used on this page. Calculator-specific choices are disclosed separately.

FAQ

Age Difference Calculator questions

Short answers to the questions that usually come up after using the calculator.

How do you calculate the exact age difference?

Order the birth dates, then count complete years, complete months and remaining days from the earlier date to the later date.

Does reversing the inputs change the answer?

It changes which person is labelled older, but the positive calendar gap and total number of days remain the same.

Can two people born in different years be one day apart?

Yes. A person born on 31 December and another born on 1 January of the following year are one day apart.

Why show total days as well as years, months and days?

Total days gives one exact number. Years, months and days are easier to read, but months are not all the same length.

Does the calculator judge whether an age gap is acceptable?

No. It only measures the interval between two dates and offers no relationship, legal or safeguarding judgement.