Age calculator guide
An age calculation compares a birth date or start date with a target date using calendar years, months, and days.
Calendar-aware arithmetic is more useful than dividing total days by 365 because leap years and month lengths vary.
How to calculate age
- Enter the starting date: Use the date of birth or another start date.
- Choose the target date: Use today or any later date.
- Read both results: Compare calendar age with total elapsed days.
Formula and variables
The calculator borrows calendar months and days when needed, then reports total elapsed days separately.
Age = target date − birth date- B — Birth date
- Starting date
- T — Target date
- Date on which age is measured
Date of birth example
A person born January 1, 1990 is evaluated on January 1, 2020.
- Birth date
- 1990-01-01
- Target date
- 2020-01-01
- 2020 − 1990 = 30 calendar years
- The dates align exactly on the birthday
Result: The exact age is 30 years, 0 months, and 0 days.
The same method works for any valid later target date.
Understanding your results
Calendar age versus total days
Calendar age is easier to understand for birthdays and anniversaries. Total days is useful for elapsed-time calculations and may include leap days.
Assumptions
- Dates are interpreted in UTC to avoid daylight-saving shifts.
- The target date is not earlier than the starting date.
Limitations
- Date-only calculations do not account for time of day.
- Cultural age-counting conventions can differ from elapsed calendar age.
Common mistakes
- Reversing the dates.
- Estimating age as total days divided by 365.
- Entering an invalid date such as February 30.
Practical use cases
Everyday planning
Use it for birthdays, anniversaries, eligibility dates, and elapsed-time checks.
Frequently asked questions
Can I calculate age on a future date?
Yes, as long as the target date is on or after the starting date.
Why can total days differ from years × 365?
Leap years add extra days, and calendar years are not all the same length.
Sources and review
- Calendars and time standards — National Institute of Standards and Technology. Accessed 2026-07-16.
Reviewed 2026-07-16.