FormulaCraft

How to calculate age from a birthday in Excel and Google Sheets

Topic:Date arithmetic
Excel & Google Sheets
=DATEDIF(A2,TODAY(),"Y")

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 birth date in a cell, e.g., A2, formatted as a date.
  2. 2In an adjacent cell, enter =DATEDIF(A2,TODAY(),"Y").
  3. 3DATEDIF calculates the complete years between the birth date and today.
  4. 4For a more detailed result such as '32 years, 4 months', extend to: =DATEDIF(A2,TODAY(),"Y")&" yrs "&DATEDIF(A2,TODAY(),"YM")&" mo".
  5. 5Press Enter. The cell displays the person's age in whole years.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Why does my age show as a date serial number?

The result cell is formatted as a date. Change the cell format to Number or General: right-click the cell, choose Format Cells, and select Number.

Can I calculate age at a specific past or future date instead of today?

Replace TODAY() with any date: =DATEDIF(A2,"2030-01-01","Y") calculates the age on January 1, 2030.

More on Date arithmetic

See all →

Formulas used

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

Last reviewed: