ToolGlobalHubGlobal • Free • No sign-up

Tool

Age—
Total days—
Next birthday—
← All Tools Home Every tool has its own page — bookmark it and come back any time.

Related tools

Age Calculator

The Age Calculator takes two dates — a date of birth and a Calculate as of date — and returns the age as years, months and days. It also shows the total number of whole days between the two dates and the date of the next birthday.

Both date fields start empty, and the workspace also fills the as-of date with today when the tool is opened from the shared date defaults. The calculation runs whenever either date changes.

How the Age Calculator works

The tool subtracts the birth date from the as-of date field by field: years from the calendar years, months from the calendar months and days from the days of the month. It then corrects the result by borrowing when the day or month difference is negative, which is what makes the answer an exact calendar age rather than a simple division of days.

Formula: Years = as-of year − birth year; Months = as-of month − birth month; Days = as-of day − birth day. If Days < 0, Months decreases by 1 and Days increases by the number of days in the month before the as-of month. If Months < 0, Years decreases by 1 and Months increases by 12. Total days = floor((as-of date − birth date) ÷ 86,400,000).
  • Enter the date of birth: Pick the birth date in the Date of birth field.
  • Set the as-of date: Leave or change the Calculate as of date — today for a current age, or another date to calculate age on that day.
  • Read the age: The Age box shows the result in the form years, months and days, such as 26y 5m 13d.
  • Check the extra figures: Total days shows the whole days between the dates, and Next birthday shows the next date on which the birth month and day fall, moving to the following year if this year's date has passed.

If either date is missing, nothing is calculated. If the date of birth is after the as-of date, the Age box shows Invalid dates and the other boxes show dashes. The next birthday is built from the birth month and day in the as-of year; if that date is on or before the as-of date, one year is added. The tool works in whole calendar days and does not calculate hours, minutes or weeks separately.

Worked examples

Example — born 15 June 2000, calculated as of 28 November 2026

Years: 2026 − 2000 = 26. Months: 11 − 6 = 5. Days: 28 − 15 = 13, so no borrowing is needed. The tool shows 26y 5m 13d, a total of 9,662 days, and the next birthday as Jun 15, 2027, because 15 June 2026 is already past.

Example — why borrowing matters

For a birth date of 20 March 2000 calculated as of 10 March 2026, the raw day difference is 10 − 20 = −10. The tool borrows the 28 days of February 2026, giving 18 days, and reduces the months by one, producing 25y 11m 18d rather than a negative day count.

Age Calculator FAQs

What does the Age Calculator show besides years?

It shows the age as years, months and days, the total whole days between the two dates, and the next birthday date. All three update together when a date changes.

Can I calculate the age someone will be on a future date?

Yes. The second field is a Calculate as of date, not fixed to today. Set it to any future or past date and the age is worked out as of that date.

What happens if the date of birth is after the as-of date?

The tool detects that the birth date is later than the as-of date and shows Invalid dates in the Age box, with dashes in the Total days and Next birthday boxes.

How is the next birthday decided?

The tool places the birth month and day in the as-of year. If that date is on or before the as-of date, it adds one year, so the result is always the next upcoming birthday date.

Does it count leap years correctly?

The borrowing step uses the real number of days in the relevant month, taken from the calendar, and total days come from the actual difference between the two dates, so February in a leap year is counted with 29 days.

Related tools

Date and measurement tools that pair naturally with age calculations.

Days Between Dates — Count total days, weeks plus days, and Monday-to-Friday weekdays between two dates.

Unit Converter — Convert length, weight and temperature between common units.

BMI Calculator — Calculate body mass index from height in centimetres and weight in kilograms.

Converters — Browse the full Converters category on ToolGlobalHub.