Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Age difference calculator

Enter two birth dates, in either order. You get the exact age gap, who's older, both people's ages, and the half-your-age-plus-seven rule worked out.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Want one person's exact age and next birthday? Use the age calculator. Counting days to an anniversary? Try days between dates.

What this calculator does

It finds the exact gap between two birth dates: siblings, a couple, a parent and child, or two historical figures. Unlike a plain date difference, it works with the dates in either order, says who's older, and shows both people's ages on any date you choose. For two adults, it also shows the "half your age plus seven" rule of thumb, with the numbers filled in.

How the gap is calculated

The gap is counted the same way as an age: whole years, then whole months, then leftover days, from the older person's birth date to the younger person's.

Gap = the younger birth date − the older birth date
→ whole months ÷ 12 = years and months, then the remaining days
Decimal years = total days ÷ 365.2425

If a month doesn't have the right day (like the 31st), the month step lands on the last day of the month. 365.2425 days is the average length of a Gregorian year.

Worked example

One person was born May 15, 1990 and the other August 20, 1993. From May 15, 1990 to May 15, 1993 is 3 years. To August 15, 1993 is 3 more months, and to August 20 is 5 more days. The gap is 3 years, 3 months, 5 days, or 1,193 days (3.27 years). On October 27, 2026 they are 36 and 33.

The "half your age plus seven" rule

This is an old rule of thumb, not a scientific, medical or legal standard. Its earliest known printed version is from Max O'Rell's 1901 book Her Royal Highness Woman, which advised that "a man should marry a woman half his age, plus seven." Today it's usually applied to anyone, in both directions:

Youngest partner by the rule = older person's age ÷ 2 + 7
Oldest partner by the rule = (younger person's age − 7) × 2

For the example above, 36 ÷ 2 + 7 = 25, and 33 is at least 25, so the pair is within the rule. Because the gap never changes, any pair eventually meets the rule: it holds once the older person's age is at least twice the gap plus 14. The calculator only applies it when both people are adults, and it's meant as a curiosity. Plenty of happy couples fall outside it.

Older person's ageYoungest by the ruleYounger person's ageOldest by the rule
20171822
30222536
40273046
50324066
60375086

Limitations

  • Ages are whole years on the comparison date, the way people state their age.
  • The rule of thumb says nothing about whether a relationship is healthy, legal or a good idea.
  • Time of birth isn't included, so twins born minutes apart show the same birthday.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • May 15, 1990 and Aug 20, 1993: 3 years, 3 months, 5 days ✓
  • Same pair: 1,193 days apart ✓
  • Same pair at 36 and 33: within the half-plus-seven rule (minimum 25) ✓
  • Dates in either order: Person B (Nov 25, 1999) is older by 1 year, 3 months, 13 days ✓
  • Jan 31, 1980 and Mar 1, 2000 (month-end rule): 20 years, 1 month, 1 day; 46 and 26 fall outside the rule ✓
  • Edge: same birth date ✓
  • Edge: the rule isn't applied to minors ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do I calculate the age difference between two people?

Count the whole years and months from the older person's birth date to the younger person's, then the leftover days. Enter both dates above and it's done for you, in either order.

What is the half your age plus seven rule?

A rule of thumb that says the youngest partner someone should date is half their age plus seven. For a 40-year-old, that's 27. It dates back at least to 1901 and isn't a scientific or legal standard.

Does the age gap change over time?

No. The gap in days is fixed for life. What changes is how big it seems: 5 years is a lot at 15 and 20, and little at 60 and 65.

Who is older if both have the same birthday year?

The one with the earlier birth date. The calculator compares full dates, so January 3 is older than November 20 of the same year.

Is my information saved?

No. Names and dates stay on your device. A shared link includes them in the link itself.

Related calculators