Age Calculator Guide: Exact Age in Years, Months and Days

Why exact age needs a calculator

Most people know their age in years without thinking: it is the number of birthdays they have had. Exact age in years, months and days is harder, because months have different lengths and years sometimes have an extra day. Asking how old someone is on a particular date, how many days old a baby is, or whether a person had reached a legal age on a specific past date all require careful date subtraction, and the borrowing involved is easy to get wrong by a day or a month.

The difficulty is that calendar subtraction is not decimal subtraction. Subtracting the fourteenth of June from the twenty-sixth of October is straightforward, but subtracting the thirtieth of one month from the fifth of the next requires borrowing days from the previous month, and the number of days borrowed depends on which month that is. The Age Calculator handles the borrowing, the varying month lengths and the leap years, and reports the result in years, months and days, often alongside the total in days or weeks for uses that need a single number.

Exact age matters in more places than birthdays. Schools set entry cut-offs by age on a given date. Sports competitions group children by age band. Pensions, driving licences, voting rights and legal consent all turn on reaching a specified age on a specified date. Medical dosing for children is sometimes weight-based but age-checked, and historical research often needs a person's exact age at an event. In each case, being a month out can change the answer, so the calculation deserves care.

How the calculation works

The method is subtraction with borrowing, applied to years, months and days in turn. Start with the reference date and subtract the birth date. If the reference day is smaller than the birth day, borrow the days of the previous month from the months column and add them to the reference day. If the reference month, after any borrowing, is smaller than the birth month, borrow twelve months from the years column. What remains is the exact age in years, months and days.

Leap years complicate the day count but not the years-months-days result, because the method works with calendar months rather than counting individual days. A leap year is a year divisible by four, except that century years are leap years only if divisible by four hundred, so the year two thousand was a leap year but nineteen hundred was not. The extra day, the twenty-ninth of February, affects total-days counts and the weekday of later dates, but the years-months-days age of a person born on any date is computed by the borrowing method regardless.

People born on the twenty-ninth of February face a small legal and social quirk: in non-leap years, their birthday is observed on either the twenty-eighth of February or the first of March depending on jurisdiction and custom. An age calculator that reports years completed handles this by counting completed years, so a person born on the twenty-ninth of February two thousand reaches eighteen years in two thousand and eighteen whether the celebration falls on the twenty-eighth of February or the first of March, though the legal date of majority may differ by jurisdiction and is worth checking where it matters.

A worked example

Consider a person born on the fourteenth of June nineteen ninety-eight, and find their exact age on the twenty-sixth of October two thousand and twenty-six. First, the years: two thousand and twenty-six minus nineteen ninety-eight is twenty-eight, but the birthday in two thousand and twenty-six, the fourteenth of June, has already passed by October, so the full twenty-eight years stand. Next, the months: from the fourteenth of June to the fourteenth of October is four months. Next, the days: from the fourteenth of October to the twenty-sixth of October is twelve days. The exact age is therefore twenty-eight years, four months and twelve days.

The borrowing becomes visible in a case where the birthday has not yet occurred. The same person on the tenth of March two thousand and twenty-six has not yet had their birthday that year, so the completed years are twenty-seven, not twenty-eight. From the fourteenth of June two thousand and twenty-five to the fourteenth of February two thousand and twenty-six is eight months, and from the fourteenth of February to the tenth of March requires borrowing: March has no fourteenth yet, so borrow February's twenty-eight days, giving ten plus twenty-eight, which is thirty-eight, minus fourteen, which is twenty-four days, with the months reduced by one to seven. The exact age is twenty-seven years, seven months and twenty-four days, and the borrowing step is where hand calculations most often go wrong.

As a check, the two results are consistent: from the tenth of March to the twenty-sixth of October two thousand and twenty-six is seven months and sixteen days, and twenty-seven years, seven months and twenty-four days plus seven months and sixteen days is twenty-eight years, fourteen months and forty days, which normalises, carrying twelve months into a year and thirty-one days of October into a month, to twenty-eight years, four months and twelve days after careful carrying. The round trip is fiddly by hand, which is precisely why the calculator exists.

Common uses and pitfalls

The most common pitfall is reporting age in years without checking whether the birthday has passed. A person born in December who is asked their age in June is a full year younger in completed years than the simple subtraction of birth year from current year suggests. Forms that ask for age should be answered in completed years, and the calculator's years figure is the correct one for such forms.

Another pitfall is confusing age with the number of the year of life. A child in their sixth year of life is five years old, because the first year of life runs from birth to the first birthday. Medical, educational and legal documents almost always mean completed years, so a child described as being in year six at school is a different statement from a child aged six, and the two should not be swapped.

Time zones and date lines add a final subtlety for births near midnight or for events recorded in different zones. A birth recorded on one date in one country may fall on the adjacent date in another, and legal age is usually determined by the date recorded in the birth record rather than by a converted date. For ordinary purposes this does not matter, but for legal thresholds near a boundary, the recorded date governs.

Beyond birthdays

The same subtraction works for any pair of dates, not just birth dates: the age of a company since incorporation, the time since a qualification was earned, or the duration of a project. The Date Calculator counts days between dates for such uses, the guide to Age Difference compares two people's ages, and the guide to Business Days counts working days between dates, which is the variant most offices actually need. Exact age is a small calculation, but it is one where precision matters, because a day can be the difference between eligibility and ineligibility.

For neighbouring time and number work, the Pomodoro Timer structures focused work intervals, and the Average Calculator summarises sets of figures such as a series of ages or durations.