Age Calculator

Find your exact age in years, months and days from your date of birth, plus the number of days until your next birthday.

  • Free — No signup required
  • Instant — Results update as you type
  • Private — Processed in your browser

Age looks like a subtraction until you try to write it down: months have different lengths, February sometimes has 29 days, and "one month after 31 January" has no obvious answer. The calculator resolves those questions the way people do in everyday speech, counting whole years first, then whole months, then the days left over.

How it works

Both inputs are calendar dates with no time of day. The tool reads them as local midnight in your browser, so daylight-saving transitions cannot shift a result by an hour and produce an off-by-one day.

The calculation runs in three passes:

  1. Years. Start from the birth date and step forward one year at a time while the anniversary still falls on or before the "as of" date.
  2. Months. From that last anniversary, step forward one month at a time on the same basis.
  3. Days. Whatever remains between the last month step and the "as of" date, counted as whole days.

When a month step lands on a day that does not exist in the target month, the date is clamped to the last day of that month. Someone born on 31 January is treated as one month old on 28 February (or 29 February in a leap year), which is the convention most people and most date libraries use. A person born on 29 February has their birthday anniversary counted on 28 February in years that lack a leap day, so their age in years increases then rather than on 1 March.

Two extra numbers are shown. Total days is the exact number of days between the two dates, which is often what a form or a benefit calculation actually wants. Days until the next birthday looks for the birth month and day in the current year, or the next year if that date has already passed; when the birth date is 29 February and the year is not a leap year, the browser's date arithmetic rolls the anniversary forward to 1 March, so the countdown targets that day.

The "as of" date defaults to today but can be any date, so you can ask how old someone was on a particular date, or how old they will be at a future event. The birth date must not be after the "as of" date; the tool reports an error rather than showing a negative age.

Details worth knowing

The default "as of" date is derived from the UTC calendar date. Late in the evening in time zones far from UTC it can already show tomorrow's date; check it if the day count matters.

Copy produces a sentence such as 34 years, 2 months, 17 days, which pastes cleanly into forms and messages.

Different institutions count age differently. Some legal systems treat a person as reaching an age on the day before their birthday, insurers may use "age next birthday", and some East Asian traditions count a newborn as one year old. The calculator implements the plain Western convention: you turn a year older on the anniversary of your birth.

Beyond birthdays

Because the inputs are just two dates, the tool doubles as a general elapsed-time calculator: the tenure of an employee, the age of a contract, the time since a product launch, or the interval between two medical appointments. Reading the result as "1 year, 3 months and 4 days" is usually clearer than a bare figure of 460 days, but both are shown so you can pick the one your document needs.

Learn more

The same year-month-day decomposition is what Period.between returns in Java, and the clamping rule for month ends is spelled out in that API. The guide to Optional and the java.time API covers LocalDate, Period and the pitfalls of doing this arithmetic with raw timestamps, and the timestamp converter is the companion tool when you start from Unix time instead of a calendar date.

FAQ

How is age calculated in years, months and days?
The calculator counts full years between the two dates, then the remaining full months, then the remaining days — the same way you'd count age by hand, just precise to the day.
Does the calculator account for leap years?
Yes. Calculations use actual calendar dates, so leap years and varying month lengths are handled automatically.
Can I calculate age as of a specific date?
Yes — set the "as of" date to any date, past or future, to see age or elapsed time relative to that date.