How to Calculate Age from Date of Birth (Years, Months, Days)
A practical guide to calculating exact age from a birth date. Includes a simple method, edge cases like leap years, and quick examples in years, months, and days.
Quick answer
To calculate age, compare the date of birth to a reference date (usually today) and count full years, then months, then days. The main idea is: subtract dates, then adjust if the birthday has not happened yet in the current year.
Step-by-step: years, months, days
- Pick your reference date (today, or any date in the past or future).
- Count full years: if the birthday has not happened yet this year, subtract 1 year.
- Count remaining months after the last birthday.
- Count remaining days after the last full month.
Worked examples
Example 1: birthday already passed this year
- Date of birth: 1995-03-10
- Reference date: 2026-02-16
- Birthday in 2026 has not happened yet, so full years = 2026 - 1995 - 1
Example 2: leap day (Feb 29)
If someone was born on Feb 29, age rules depend on jurisdiction and personal convention (Feb 28 vs Mar 1 in non-leap years). A calculator should handle this consistently and make the reference date explicit.
Common mistakes
- Ignoring whether the birthday occurred in the reference year.
- Not handling different month lengths (28 to 31 days).
- Forgetting leap years when counting total days.
Fastest way: use the calculator
If you want the exact breakdown in years, months, and days (plus total days), use the tool here: Age Calculator. You can also set a custom "as of" date to calculate past or future age.
FAQ
Can I calculate age for a future date?
Yes. Just use the future date as the reference date.
What is the most accurate age format?
For legal or medical contexts, include the reference date and show years, months, and days.