Age Calculator

Calculate your exact age in years, months, and days. See total days, minutes, seconds, and how many days until your next birthday.

Examples

Exact 30th birthday

Born 1 January 1996, measured on the 30th birthday.

Date of birth
Jan 1, 1996
Reference date
Jan 1, 2026
Exact age
30 years 0 months 0 days
Total days
10,958
Total minutes
15,779,520
Total seconds
946,771,200
Next birthday
2027-01-01 (365 days)

Embed this calculator

Copy a free iframe snippet for articles, learning pages, forums, wikis, newsletters, and internal docs.

How It Works

Formula

totalDays=Δt86400000\text{totalDays} = \frac{\Delta t}{86400000}

Variables, symbols and units

Δt\Delta t

Milliseconds between the birth date and the reference date

totalDays\text{totalDays}

Whole calendar days between the two dates

8640000086400000

Milliseconds in one day (24 × 60 × 60 × 1000)
Calculation method explained

Enter your date of birth and an optional reference date (defaults to today). The calculator computes your exact age broken down into years, months, and days, plus total days, minutes, seconds, and the date of your next birthday.

Calendar-style age breakdown, the same way you would count on your fingers:

  1. Tentatively take the year, month, and day differences: years=refYearbirthYear\text{years} = \text{refYear} - \text{birthYear}, months=refMonthbirthMonth\text{months} = \text{refMonth} - \text{birthMonth}, days=refDaybirthDay\text{days} = \text{refDay} - \text{birthDay}.
  2. If the day count is negative, the reference day has not yet caught up to the birth day this month — borrow the days of the previous month and subtract one from the months count.
  3. If the months count is then negative, the reference month is still before the birth month this year — borrow 12 months and subtract one from the years count.
  4. Compute total elapsed days from the raw timestamps: totalDays=Δt/86400000\text{totalDays} = \Delta t / 86400000; minutes and seconds are derived from that whole-day count.
  5. Find the next birthday by setting the year of the birth month-and-day to the reference year (or the next year if that anniversary has already passed) and counting the days remaining.

Examples

Exact 30th birthdayJan 1, 1996 · Jan 1, 202630 years 0 months 0 days

Born 1 January 1996, measured on the 30th birthday.

Date of birth
Jan 1, 1996
Reference date
Jan 1, 2026
Exact age
30 years 0 months 0 days
Toddler age todayJun 15, 20242 years 0 months 0 days

A child born 15 June 2024, checked against today.

Date of birth
Jun 15, 2024
Exact age
2 years 0 months 0 days

Jun 15, 2026

Einstein todayMar 14, 1879147 years 3 months 1 day

Albert Einstein (born 14 March 1879) measured against today.

Date of birth
Mar 14, 1879
Exact age
147 years 3 months 1 day

Jun 15, 2026

Frequently Asked Questions

How does the age calculation work?
The calculator subtracts the birth date from the reference date, handling month and day boundaries correctly. It counts full years, then remaining months, then remaining days — the same way you would count on a calendar.
What is the reference date?
The reference date is the date you want to measure age against. It defaults to today but you can change it to any date — past or future — to calculate age at a specific point in time.
How is "next birthday" calculated?
The calculator finds the next occurrence of your birth month and day after the reference date and shows both the date and the number of days remaining.
Does it account for leap years?
Yes. The total days calculation uses actual calendar dates, so leap years (with 366 days) are handled automatically. February 29 birthdays will show March 1 as the next birthday in non-leap years.
Can I calculate age for a future date?
Yes. Set the reference date to a future date and the calculator will show the projected age at that point. This is useful for planning milestones or retirement dates.

Related Calculators

All calculators