1. Home
  2. Calculators
  3. How to calculate age from date of birth
Dates, decoded

How to calculate age from date of birth

Subtract the birth date from today's date, part by part: days, then months, then years, borrowing when you need to.

The quick answer: whole years

For age in whole years, subtract the birth year from the current year, then subtract 1 more if this year's birthday hasn't happened yet. Born 20 September 1998? On 10 May 2026 that's 2026 − 1998 = 28, minus 1 because September hasn't come yet: 27.

Exact age in years, months and days

Write both dates as year, month, day and subtract each part, starting from the day:

YearMonthDay
Today2026510
Birth date1998920
  1. Days: 10 − 20 is negative, so borrow a month. Add the number of days in the month before today's month (April has 30): 10 + 30 − 20 = 20 days. Today's month drops from 5 to 4.
  2. Months: 4 − 9 is negative, so borrow a year: 4 + 12 − 9 = 7 months. Today's year drops from 2026 to 2025.
  3. Years: 2025 − 1998 = 27.

Exact age: 27 years, 7 months, 20 days. Borrowing from the previous month's length is the usual convention, and it's what the age calculator uses.

Age in total days, weeks or months

  • Months: years × 12 + leftover months. 27 years 7 months = 331 months.
  • Days: count the actual days between the two dates, leap days included. By hand that's tedious; a date calculator does it exactly.
  • Weeks: total days ÷ 7.

Babies' ages are often given in weeks until about 3 months, then in months until age 2.

Leap-day birthdays

Someone born on 29 February only has a calendar birthday every four years (with some century exceptions). In other years, people celebrate on 28 February or 1 March. For legal purposes, the rule depends on the country or organization, so check if an exact date matters.

Spreadsheet formulas

In Excel or Google Sheets, with the birth date in A2:

  • Whole years: =DATEDIF(A2, TODAY(), "Y")
  • Leftover months: =DATEDIF(A2, TODAY(), "YM")
  • Leftover days: =DATEDIF(A2, TODAY(), "MD")
  • Total days: =TODAY() - A2

Excel's own documentation notes that the "MD" option can give inaccurate results in some cases, so double-check edge cases with the calculator. For the gap between any two dates, see how many days are between two dates.

Two more worked examples

A birthday that just passed. Born 14 November 2011; today is 25 November 2026. Days: 25 − 14 = 11. Months: 11 − 11 = 0. Years: 2026 − 2011 = 15. Age: 15 years, 0 months, 11 days.

A double borrow across February. Born 28 August 1985; today is 3 March 2026.

  1. Days: 3 − 28 is negative. The month before March 2026 is February, which has 28 days that year: 3 + 28 − 28 = 3 days. The month drops from 3 to 2.
  2. Months: 2 − 8 is negative, so borrow a year: 2 + 12 − 8 = 6 months. The year drops to 2025.
  3. Years: 2025 − 1985 = 40.

Age: 40 years, 6 months, 3 days. Check it by counting forwards: 28 August 1985 plus 40 years is 28 August 2025, plus 6 months is 28 February 2026, plus 3 days is 3 March 2026.

Age in days, worked out

From 1 January 2000 to 1 January 2026 is 26 years. Most years have 365 days, and every leap year in that span adds one: 2000, 2004, 2008, 2012, 2016, 2020 and 2024, which makes 7. So 26 × 365 + 7 = 9,490 + 7 = 9,497 days, or about 1,356.7 weeks (9,497 ÷ 7).

Quick reference: age in 2026 by birth year

Born inAge before birthday in 2026Age after birthday in 2026
19566970
19665960
19764950
19863940
19962930
20061920
2016910

Common mistakes

  • Subtracting years only. 2026 − 1998 = 28 is only right once the 2026 birthday has passed.
  • Treating every month as 30 days. It drifts by a day or two. Borrow the real length of the previous month.
  • Ignoring leap days in total-day counts. Over 26 years that's a week of days missing.
  • Mixing age systems. Some places have used other counting systems. South Korea, for example, switched official documents to the international "full age" method in 2023. The method on this page is the international one.
  • Age "on" a date. For eligibility rules (school entry, retirement benefits) the cut-off date and how it's counted are set by the rule itself, so check the wording.

Frequently asked questions

How do I calculate age from date of birth?

Subtract the birth year from the current year, and subtract 1 more if the birthday hasn't happened yet this year.

How do I calculate exact age in months and days?

Subtract day, month and year separately, borrowing a month or a year when a part goes negative.

How do I calculate age in Excel?

Use =DATEDIF(A2, TODAY(), "Y") for whole years.

How old is someone born in 2000?

25 or 26 in 2026, depending on whether their birthday has passed.

How many days old am I?

Count the days from your birth date to today, including leap days. Someone born on 1 January 2000 was 9,497 days old on 1 January 2026.

How do I calculate age on a specific date?

Use that date in place of today and subtract part by part: days, then months, then years, borrowing when a part goes negative.

Why does my age in months not match years × 12?

Years × 12 only counts whole years. Add the leftover months: 27 years 7 months is 331 months.

Keep reading

Related tools

See everything in Calculators →