CALCULATOR GUIDE · NEXATOOLPRO

How to Calculate Age Between Two Dates (Years, Months and Days)

Sometimes you do not need your age today, but your age on a specific day: a school cut-off, a job application, a policy start date. This guide explains how to count the years, months and days between two dates and how to avoid the usual mistakes.

Open the free age calculator →

By the NexaToolPro Editorial Team · Updated 3 December 2026 · How we write guides

The quick method

  1. Write the earlier date (birth date) and the later date.
  2. Subtract the years first.
  3. Then subtract the months. If the result is negative, borrow one year, which adds 12 months.
  4. Then subtract the days. If the result is negative, borrow one month and add the number of days in the month before the later date.

Worked example

Birth date 15 March 1990, second date 20 June 2020.

The age on 20 June 2020 is 30 years, 3 months and 5 days. In total that is about 11,055 days, or 1,579 full weeks. You can confirm this with the age calculator by entering the birth date and filling in the optional second date.

When the days or months go negative

Take 28 February 2000 to 5 March 2020. The days step gives 5 − 28 = −23, so you borrow a month. The month before March has 29 days in 2020, so the day count becomes 29 − 23 = 6 and the months drop by one. The answer is 20 years, 0 months and 6 days. Borrowing from the right month matters, and leap years change February.

Age or number of days?

Age is shown as years, months and days. If you only want the total number of days, weeks or hours between two dates, use the date difference calculator instead. For example, 1 January 2026 to 1 March 2026 is 59 days.

Common mistakes

Frequently asked questions

How do I calculate age on a particular date?

Enter the birth date, then fill in the optional second date in the age calculator. Leave it empty to count to today.

Does the calculator handle leap years?

Yes. Dates are handled by the browser’s calendar, so leap years are counted correctly.

What if the second date is before the birth date?

The tool asks you to choose dates in chronological order.

How do I get only the number of days?

Use the Date Difference Calculator, which shows days, weeks, hours and minutes.

Related tools and guides

This guide is general information. Figures are estimates and should be checked against official documents. See the disclaimer.