Skip to content
CalculatorsRuns in your browserPopular

Age Calculator

Calculate an exact age in years, months and days between two dates.

Input
No upload needed — instant
Privacy
Nothing is uploaded
Cost
Free · no sign-up · no watermark

Loading tool…

The tool is loading its code on your device. This happens once and is cached for later visits.

Processed entirely on your device

Everything you type or paste is handled by JavaScript running in this tab. No request is sent, nothing is logged and nothing is stored. Close the page and it is gone.

Overview

About the Age Calculator

Calculate age free and exactly. Get years, months and days, total days, weeks and months, the next birthday countdown, and the weekday you were born on.

Age looks like the simplest date calculation there is, and it is the one most implementations get wrong. Dividing the total number of days by 365.25 gives a number that is usually within a day or two of correct — and occasionally wrong by a full year, which is exactly when it matters.

Why the naive approach fails

A year is not 365.25 days. The Gregorian calendar averages 365.2425, and individual years are 365 or 366. Months range from 28 to 31 days. So "18 years" is not a fixed number of days, and no constant divisor reproduces calendar age reliably.

The correct method is calendar arithmetic:

  1. Compute the raw year difference.
  2. If the reference date's month and day fall before the birth date's month and day, subtract one year — the birthday has not yet occurred.
  3. Compute months from the birth month to the reference month, borrowing a year when the day has not been reached.
  4. Compute the remaining days by borrowing the length of the previous month.

Step 4 is where implementations diverge. When the birth day is 31 and the reference month has 30 days, "borrowing the previous month's length" can mean February's 28 or March's 31. There is no single right answer — this tool borrows the length of the month preceding the reference date, which matches the convention used by most legal and HR systems.

What the outputs mean

Years, months, days is the human answer. It is what a form asks for and what a birthday card says.

Total days is the arithmetic answer, and it is what you want for anything involving rates — medication schedules, subscription day-counts, elapsed-time billing.

Total months is useful for infant ages and for financial products measured in months rather than years.

Next birthday answers two questions at once: how long until, and which weekday it falls on. The weekday shifts by one each common year and two each leap year, which is why birthdays seem to migrate.

Legal age and jurisdiction

The moment a person reaches a given age is not universal. Many common-law jurisdictions consider the age attained at the beginning of the anniversary day; several East Asian systems historically counted from birth as one year old and advanced at the lunar new year. For anything with legal consequences — eligibility, consent, retirement, statutory deadlines — check the rule in the relevant jurisdiction rather than trusting an arithmetic result.

Beyond birthdays

The same machinery answers a family of practical questions: how long until a contract expires, how many days a notice period covers, how old a building or a domain is, how long a project has been running, when a warranty lapses. Swap the two dates and the calculation is identical — which is why the tool accepts any start and any reference.

Step by step

How to use the Age Calculator

  1. Enter the date of birth — or any start date you want to measure from.

  2. Set the reference date; it defaults to today.

  3. Read the exact age in years, months and days.

  4. Check the additional totals: days, weeks, months, hours and the next birthday.

  5. Swap the dates to measure any interval, not just an age.

Why use it

Benefits and common use cases

What this tool is good for, and what it deliberately does not try to do.

Calendar-exact, not averaged

Computes years, months and days properly across varying month lengths and leap years, instead of dividing total days by 365.25 and rounding.

Next birthday countdown

Shows the weekday of the next birthday and how many days remain — the two things people actually want to know after the age itself.

Works for any interval

Project deadlines, subscription renewals, notice periods, gestation, elapsed service — any two dates, in either order.

Timezone-safe

Parses dates as calendar dates rather than UTC instants, so a birthday entered in one timezone does not come out a day early in another.

Questions

Frequently asked questions

Short, honest answers about quality, limits and privacy.

How is age calculated exactly?

By calendar subtraction, not by dividing days. Take the year difference, then reduce it by one if the month and day of the reference date have not yet reached those of the birth date. Months and days are then computed with borrowing across variable-length months.

Why does my age in days not equal years × 365?

Because of leap years and because months have different lengths. A 30-year span contains seven or eight leap days depending on where it falls, and 365.2425 days is the Gregorian average, not the length of any particular interval.

How are leap-year birthdays handled?

Someone born on 29 February has a legal birthday on 28 February or 1 March in non-leap years, depending on jurisdiction. This calculator counts their age as advancing on 1 March in common years and shows the next-birthday date accordingly.

Can I calculate age at a past or future date?

Yes. Set the reference date to any value — a past date for a historical age, or a future date to see how old you will be. The same calendar arithmetic applies in both directions.

Does it account for timezones and time of day?

No, deliberately. Age is a calendar concept, and introducing times would produce results that change depending on where the calculation is run. If you need elapsed time including hours, the total-hours figure is provided alongside the calendar age.