Guides

How to Calculate Age in Years, Months, and Days

Calculate age in years, months, and days from a birth date with the manual 365-and-31-day method, a worked 1998-to-2022 example, and the calculator inputs.

Miryori Editorial Team3 min read
Open the calculator

An age in years, months, and days breaks the time since a birth date into the calendar units people actually use, rather than reporting one number of years. You can work it out by hand from two dates with a short conversion method, or use the calculator to get the exact breakdown.

To calculate age in years, months, and days, find the differences between the birth and current year, month and day, then combine them as age = (years × 365) + (months × 31) + days. Divide by the year difference and truncate for years, multiply the remainder by 12 and truncate for months, and multiply the last remainder by 31 for days. That hand method is approximate; the calculator returns the exact breakdown from the dates.

How do I calculate age in years, months, and days by hand?

The manual method starts with the differences between the birth date and the current date:

years=birth year−current year,months=birth month−current month,days=birth day−current day\text{years} = \text{birth year} - \text{current year}, \qquad \text{months} = \text{birth month} - \text{current month}, \qquad \text{days} = \text{birth day} - \text{current day}

Those three differences are combined into a day count, then split back into calendar units:

age=(years×365)+(months×31)+days\text{age} = (\text{years} \times 365) + (\text{months} \times 31) + \text{days}

Step Operation Rule from the source method
1 Find the date differences years = birth year minus current year; months = birth month minus current month; days = birth day minus current day
2 Convert to days age = (years × 365) + (months × 31) + days
3 Get the years Divide the result by the year difference from step 1 and truncate
4 Get the months Multiply the remainder from step 3 by 12 and truncate
5 Get the days Multiply the last remainder by 31

The calculator itself reduces the two dates to a single relationship, where the floor operation drops the time portion of each date:

result=⌊current date⌋−⌊date of birth⌋\text{result} = \lfloor \text{current date} \rfloor - \lfloor \text{date of birth} \rfloor

Which fields does the calculator use?

Enter the birth date and the tool fills in the rest. The calculator exposes these inputs and outputs:

Field Type Role
Date of birth (DOB) date The birth date used as the starting point
Current date (currentDate) date Defaults to the present day; it can be changed to another date
Your age (result) numerical, output only The calculated age
months, weeks, days, hours, minutes, seconds presentation The same span shown in other units

Worked example: a 1998 birth date checked in 2022

Take a person born in 1998 and check their age in 2022. The source FAQ gives the result directly: from 1998 to 2022, 24 years have passed, so the answer is 24 years old. If that person's birthday has not occurred yet in 2022, they are 23 years old instead.

With the hand method, the year, month and day differences feed into age = (years × 365) + (months × 31) + days; the truncation steps then turn that day count into years, months and days. Entering the same two dates in the calculator returns the exact years, months and days, along with the other units shown in the presentation fields.

FAQ

Can I see my age in units other than years, months, and days?

Yes. The calculator also presents months, weeks, days, hours, minutes and seconds, so the same birth date can be read as an age in other units such as months or days.

Do I have to type in today's date?

No. The Current date field defaults to the present day, so typing only the birth date is enough for an age as of today. Change that field only when you want a different endpoint.

Which other age calculators does the tool suggest?

The source points to the chronological age calculator and to age in weeks, months, years, days, hours, minutes and seconds calculators, plus a days old calculator.

References

  • The Omni article for this calculator, "Age in Years, Months, and Days Calculator": manual calculation steps, approximation note and FAQ.
  • The calculator's own field definitions and equation (Date of birth, Current date and Your age result).
Calculator

Age in Years, Months, and Days Calculator

Calculate Age in Years, Months, and Days with practical everyday formulas, interactive references and step-by-step results. Free, fast and private.

Open the calculator