Skip to content
All calculators

Age Calculator

Calculate exact age in years, months, days and total days lived.

Age formula. Age is calculated as the difference between two dates: age = age-at date − birth date. Years are counted as full 365-day cycles (plus leap days), months as full calendar-month cycles, and days as the remainder. Total days lived = (age-at date − birth date) in milliseconds ÷ 86,400,000.

Example. If you were born on 1995-06-15 and today is 2026-11-17, your age is 31 years, 5 months and 5 days. You have lived 11,481 total days (approximately 1,640 weeks or 275,544 hours), and your next birthday is in 207 days.

Inputs

Results

Enter valid dates to see results.

What your result means

Your age in years, months and days is calendar-based, not a simple division. Someone born January 15, 2000, checked on January 15, 2026, is exactly 26 years, 0 months, 0 days old — 9,497 total days including 7 leap days (2000, 2004, 2008, 2012, 2016, 2020, 2024). The same birthdate checked on February 14, 2026, is 26 years, 0 months, 30 days — not 26 years 1 month, because the 15th of February has not been reached.

Total days include leap days, which is why a 26-year-old has lived 9,497 days, not 26 × 365 = 9,490. The 7 February 29ths in that span add 7 days. This matters for anything prorated by day (interest, rent, age-based eligibility) — the leap days are real time that has passed.

Your next birthday is measured to the exact calendar date, not rounded. If today is March 10 and your birthday is March 15, your next birthday is in 5 days, not 'this month'. The calculator finds the next occurrence of your birth month and day in the calendar — this year if it has not passed, next year if it has.

Method & assumptions

Age is computed by calendar subtraction: years = ageAtYear − birthYear, then borrow down for months and days (if ageAtMonth < birthMonth, borrow a year; if ageAtDay < birthDay, borrow a month from the previous month's last day). Total days = differenceInCalendarDays(ageAt, birth). Total weeks = floor(totalDays / 7). Total months = years × 12 + months. Leap days are counted by the calendar library, not estimated.

What we assume

  • The Gregorian calendar is used throughout, including for dates before its 1582 introduction (proleptic Gregorian).
  • Birth date and age-at date are both valid calendar dates (Feb 29 only exists in leap years).
  • Time of day is not considered — age changes at midnight, not at the exact hour of birth.
  • A Feb 29 birthday in a non-leap age-at year is treated as Feb 28 for the 'has the birthday passed' check (JavaScript Date behavior).

What is not included

  • Time of birth (some cultures count age from the hour of birth).
  • Time-zone differences, which can shift the day count by one near the date boundary.
  • Lunar or non-Gregorian calendars (Hijri, Hebrew, Chinese) used in some cultural contexts.
  • Gestational age (used in pregnancy), which counts from the last menstrual period, not birth.

What is the Age Calculator?

An age calculator is a free online tool that calculates your exact age in years, months, and days from your date of birth. It also shows total days, weeks, and hours lived, plus a countdown to your next birthday.

How to use the Age calculator

  1. 1Enter your date of birth in the 'Birth Date' field.
  2. 2Optionally change the 'Age At Date' to calculate age as of a past or future date (defaults to today).
  3. 3Results update as you type to show your age in years, months and days.
  4. 4Review the totals below: total days, weeks, hours lived, and days until your next birthday.

Example calculation

If you were born on 1995-06-15 and today is 2026-11-17, your age is 31 years, 5 months and 5 days. You have lived 11,481 total days (approximately 1,640 weeks or 275,544 hours), and your next birthday is in 207 days.

Limits & common mistakes

  • Feb 29 birthdays roll to Feb 28 (or Mar 1, depending on jurisdiction) in non-leap years — legal age still increments on March 1 in most countries.
  • The total-days count includes the start date by convention (differenceInCalendarDays), so 'today' reads as 1 day, not 0. Adjust if your use case needs exclusive counting.
  • Years/months/days breakdown is a human-friendly approximation; the total-days figure is the exact one.
  • Dates before 1582 use the proleptic Gregorian calendar and may not match historical records kept under the Julian calendar.

Frequently asked questions

How do I calculate my exact age?
Subtract your date of birth from today's date. Years come from full year cycles, months from full calendar-month cycles between the two dates, and days are the leftover remainder. Our calculator does this automatically.
How many days old am I?
Take the difference in milliseconds between today and your birth date and divide by 86,400,000 (the number of milliseconds in a day). The 'total days lived' field in this calculator shows that number directly.
Does the age calculator account for leap years?
Yes. We use calendar-aware date arithmetic, so every February 29 is handled correctly. The total-days figure includes all leap days that occurred between your birth date and the age-at date.
Can I calculate age at a future date?
Yes. Change the 'Age At Date' to any future date and the calculator will tell you how old you will be on that day, plus how many days remain until then.
How is age in months calculated?
Months are counted as full calendar-month cycles between the two dates. For example, from January 15 to April 14 is 2 months and 30 days, not 3 months, because the 15th of April has not yet been reached.

Last reviewed: November 17, 2026. Spotted an error? Tell us and we will correct it.