StatGardenREF. DESK
Calculators/Date & time/Age calculator
Date & time

Age calculator calculator

Exact age in years, months and days, plus the next birthday.

What this calculator does

Age calculator works out exact age in years, months and days, plus the next birthday. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaYears = whole years between the dates; remaining months and days are counted forward from the last birthday

The inputs explained

FieldWhat to enter
Date of birthA calendar date.
Age at this dateA calendar date.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Examples across different dates

The same calculation at a range of dates, with every other input held at its starting value. These are generated relative to the day the page was built.

Examples across different dates
Date of birthAgeIn total daysIn weeks
2021-08-045 years, 0 months, 0 days1,826261
2011-08-0415 years, 0 months, 0 days5,479783
2001-08-0425 years, 0 months, 0 days9,1311,304
1991-08-0435 years, 0 months, 0 days12,7841,826
1981-08-0445 years, 0 months, 0 days16,4362,348
1966-08-0460 years, 0 months, 0 days21,9153,131