X-Calculator
Everyday 6 min read Updated November 23, 2026

How to Calculate Age: Years, Months, Days and Excel Formulas

Step-by-step methods to calculate exact age in years, months and days, plus age in days, leap-year birthdays and the Excel DATEDIF formula.

Advertisement
Advertisement

To calculate age, subtract the birth year from the current year, then subtract 1 if the birthday has not happened yet this year. Someone born on May 15, 1990 is 2026 − 1990 = 36 on or after May 15, 2026, and 35 before that date.

That gives age in whole years. For an exact age in years, months and days, a count of days lived, or a formula for a spreadsheet, you need a little more care with month lengths and leap years. This guide covers each method with worked examples. For an instant result, enter a date of birth in the age calculator.

Method 1: Age in whole years

This is the age you write on forms.

  1. Subtract the birth year from the current year.
  2. Compare the birthday (month and day) with today’s month and day.
  3. If today is before the birthday, subtract 1.

Example: born September 28, 1985; today is March 10, 2026. 2026 − 1985 = 41, but September 28 has not arrived yet, so the age is 40.

Quick reference: age by birth year in 2026

Birth year Age before 2026 birthday Age after 2026 birthday
1950 75 76
1960 65 66
1970 55 56
1980 45 46
1985 40 41
1990 35 36
1995 30 31
2000 25 26
2005 20 21
2008 17 18
2010 15 16
2020 5 6

Method 2: Exact age in years, months and days

Write both dates as year / month / day and subtract from right to left, borrowing when a column goes negative — the same way you subtract multi-digit numbers.

      Year   Month   Day
Today 2026     3      10
Birth 1985     9      28
  1. Days: 10 − 28 is negative. Borrow one month: add the number of days in the month before today’s month (February 2026 has 28 days). 10 + 28 − 28 = 10 days, and today’s month drops from 3 to 2.
  2. Months: 2 − 9 is negative. Borrow one year: add 12. 2 + 12 − 9 = 5 months, and the year drops from 2026 to 2025.
  3. Years: 2025 − 1985 = 40 years.

Result: 40 years, 5 months, 10 days. Check: September 28, 2025 was the 40th birthday; five months later is February 28, 2026; ten more days is March 10.

Second example: born May 15, 1990, on November 24, 2026. Days 24 − 15 = 9; months 11 − 5 = 6; years 2026 − 1990 = 36. No borrowing needed: 36 years, 6 months, 9 days.

Why month lengths matter

Months have 28, 29, 30 or 31 days, so “one month” is not a fixed number of days. Different tools can disagree by a day when a birthday falls on the 29th, 30th or 31st and the current month is shorter. The convention most calculators use — including ours — is to borrow the length of the month just before the current date, as shown above.

Advertisement
Advertisement

Method 3: Age in days, weeks and hours

Counting total days lived means counting every day between the two dates, including the extra day in each leap year. Doing it by hand is error-prone, so use a date-difference tool or spreadsheet. For the May 15, 1990 birthday on November 24, 2026:

  • Days: 13,342
  • Weeks: 13,342 ÷ 7 = exactly 1,906 weeks
  • Hours: 13,342 × 24 = 320,208
  • 10,000-day milestone: reached on September 30, 2017

To estimate by hand, multiply the age in years by 365.25 (the average year length including leap days) and add the days since the last birthday. 36 × 365.25 = 13,149, plus the 193 days from May 15 to November 24 = 13,342. The days between dates calculator gives an exact count between any two dates.

Leap-year birthdays (February 29)

About 1 in 1,461 people is born on February 29. Their birthday only appears on the calendar every four years, but they still age one year every year.

The open question is which day they turn a year older in common years. Conventions differ:

  • March 1: the day after February 28 is the first moment a full year has passed. Many legal systems use this for coming-of-age dates, such as turning 18 or 21.
  • February 28: keeps the birthday in February; many people celebrate on this day, and some agencies and software use it.

If an exact legal date matters — a driver’s license, contract or benefit eligibility — check the rule in your state or with the agency involved.

Example: born February 29, 2004. On November 24, 2026 that person is 22 years old and has lived 8,304 days, but has only had five calendar birthdays (2008, 2012, 2016, 2020 and 2024). The next one is February 29, 2028.

How leap years work

A year is a leap year if it is divisible by 4, except century years, which must be divisible by 400. So 2000 was a leap year, but 1900 was not and 2100 will not be. That is why the average Gregorian year is 365.2425 days, not exactly 365.25.

How to calculate age in Excel and Google Sheets

With the date of birth in cell A2, these formulas work in both Excel and Google Sheets:

Age in whole years:   =DATEDIF(A2, TODAY(), "Y")
Extra months:         =DATEDIF(A2, TODAY(), "YM")
Extra days:           =DATEDIF(A2, TODAY(), "MD")
Full text:            =DATEDIF(A2,TODAY(),"Y")&" years, "&DATEDIF(A2,TODAY(),"YM")&" months, "&DATEDIF(A2,TODAY(),"MD")&" days"
Age in days:          =TODAY()-A2
Age as a decimal:     =YEARFRAC(A2, TODAY(), 1)
  • DATEDIF is an older function that Excel still supports but does not list in its formula autocomplete — type it in full. Microsoft warns that the “MD” unit can return inaccurate results in some end-of-month cases, so double-check those.
  • Age at a specific date: replace TODAY() with a cell reference or DATE(2026,12,31) to get the age on a cutoff date, such as a school enrollment or insurance date.
  • Format the result of =TODAY()-A2 as a number, not a date; otherwise Excel shows a date in the early 1900s.
  • INT(YEARFRAC(…)) gives whole years too, and is a fallback when DATEDIF is unavailable.
Advertisement
Advertisement

Age on a specific date

Many rules use age on a cutoff date rather than today: school entry (often September 1), youth sports seasons, retirement plan milestones, or the age printed on a ticket. Use the same subtraction with the cutoff date in place of today. To find a date a certain number of days, months or years away — when someone turns 65, or the date 90 days from now — use the date calculator.

Age difference between two people

To find how much older one person is than another, treat the older person’s birth date as the start and the younger person’s birth date as the end, and use the same borrowing method. For birthdays of September 28, 1985 and May 15, 1990:

  • Days: 15 − 28 is negative, so borrow April’s 30 days: 15 + 30 − 28 = 17 days, month 5 becomes 4.
  • Months: 4 − 9 is negative, so borrow 12: 4 + 12 − 9 = 7 months, year 1990 becomes 1989.
  • Years: 1989 − 1985 = 4 years.

The age gap is 4 years, 7 months and 17 days, or 1,690 days. This difference never changes, no matter what date you check it on.

Other ways age is counted

  • Infant age in weeks and months: pediatricians use weeks for the first few months and months until age two.
  • Gestational vs. adjusted age: for babies born early, doctors may use an age adjusted for prematurity until about age two.
  • East Asian age reckoning: traditionally a person is 1 at birth and gains a year at the New Year. South Korea standardized on international age for legal and administrative use in June 2023.
  • Age to the second: multiply days by 86,400 seconds; the May 1990 example above is about 1.15 billion seconds.

Common mistakes

  • Forgetting to check the birthday. Subtracting years alone is off by one for part of every year.
  • Dividing days by 365. Over 36 years that ignores nine leap days. Divide by 365.25 for an estimate, or use a date tool for an exact answer.
  • Mixing date formats. 03/04/2026 is March 4 in the US but April 3 in most other countries. Use an unambiguous format like 2026-03-04 in spreadsheets.

Frequently Asked Questions

How do I calculate my exact age?

Subtract your birth date from today’s date as year, month and day, borrowing days from the previous month and months from the year when a column goes negative. Born September 28, 1985, you are 40 years, 5 months and 10 days old on March 10, 2026.

How do I calculate age in Excel?

Use =DATEDIF(A2, TODAY(), “Y”) with the date of birth in A2. Add “YM” and “MD” versions of the formula for the remaining months and days.

How old is someone born on February 29?

They age one year every year like everyone else. In common years, many legal systems treat March 1 as the birthday, while many people celebrate on February 28.

How many days old am I?

Count the days between your birth date and today, including leap days. Someone born May 15, 1990 is 13,342 days old on November 24, 2026. Multiplying years by 365.25 gives a close estimate.

Advertisement
Advertisement
Run the numbers

Calculators from this guide

Keep reading

More guides

All guides
Advertisement