Skip to content

How to calculate age from a date of birth

Topic:Date arithmetic
Excel & Google Sheets
=DATEDIF(DATE(A2,B2,C2),DATE(D2,E2,F2),"Y")

Verified example

Computed by a real spreadsheet engine on the sample data below.

Birth yearBirth monthBirth dayAs-of yearAs-of monthAs-of day
20009172026916

=DATEDIF(DATE(A2,B2,C2),DATE(D2,E2,F2),"Y")25

Both expressions are checked against an independently calculated expected result in HyperFormula. This is a sample execution check, not native Excel or Google Sheets certification.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter the two dates as numeric year, month and day components in A2:F2.
  2. 2DATE constructs spreadsheet dates without depending on an ambiguous text format such as 09/10/2000.
  3. 3Place the formula outside the input range. The birthday has not occurred yet in 2026, so the result is 25 completed years.
  4. 4For a live age calculation, replace DATE(D2,E2,F2) with TODAY(). Keep the fixed date when recreating a historical report.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why not subtract birth year from current year?

That overstates age before the birthday. DATEDIF counts completed years.

Why is the result displayed as a date?

Change the output cell to Number or General; the result is a count of years.

More on Date arithmetic

See all →

Sources and compatibility

Reviewed 2026-09-16

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: