Age Calculator

Starts as today. Change it to measure age on another date.

Results:

Enter a birth date and an as-of date.

This is a calendar period, not a legal determination of age.

Find an exact age in completed years, months, and days from a birth date to an as-of date. The result also shows the number of days between those dates. The result updates as you change either date. There is no Calculate button. A worked example below uses March 15, 1990 and November 21, 2026. The day count by itself is on the date difference calculator.

How to use this age calculator

  1. Enter the birth date.
  2. Enter the as-of date. It starts as today in your local calendar. Change it when you want the age on another date.
  3. Read the result. It recalculates when either date changes. There is no Calculate button.
  4. Choose Clear to empty the birth date and set the as-of date back to today.

Both fields must be real calendar dates. February 29 is accepted only in a leap year. If the as-of date is earlier than the birth date, the result says so. The same two dates produce 0 years, 0 months, 0 days (0 days).

The age formula

The age is the calendar period from the birth date to the as-of date on the proleptic Gregorian calendar. Count complete years, then the remaining complete months, then the remaining days. This is the breakdown documented for Java Period.between. Oracle’s example is January 15, 2010 to March 18, 2011, which is 1 year, 2 months, and 3 days.

When the as-of day-of-month is earlier than the birth day-of-month, the period borrows a month. The borrowed month is the length of the calendar month that remains, not a flat 30 days. A birth day that does not exist in the landing month, such as January 31 plus one month in a non-leap February, is clamped to the last real day of that month before the leftover days are counted.

Total days are the number of midnights from the birth date to the as-of date. The as-of date is the end of that count, so it is not an extra day. March 15, 1990 to March 15, 2026 is 36 years, 0 months, 0 days.

Worked example

Take a birth date of March 15, 1990 and an as-of date of November 21, 2026. The result reads:

36 years, 8 months, 6 days (13,400 days)

  1. From March 15, 1990 to March 15, 2026 is 36 complete years.
  2. From March 15, 2026 to November 15, 2026 is 8 complete months.
  3. From November 15, 2026 to November 21, 2026 is 6 days.
  4. The civil dates are 13,400 days apart.

On the percentage calculator, choose “X is what percent of Y?” with X = 8 and Y = 12. The result is 8 is 66.67% of 12. That is the 8 months as a share of a 12-month year. It is not added to the age.

Sample results

Birth date As-of date Age Days
March 15, 1990 November 21, 2026 36 years, 8 months, 6 days 13,400
January 15, 2010 March 18, 2011 1 year, 2 months, 3 days 427
February 1, 2024 March 1, 2024 0 years, 1 month, 0 days 29
February 29, 2000 February 28, 2026 25 years, 11 months, 30 days 9,496

The 2024 row is a leap-year month: the calendar period is 1 month, and the day count is 29. The last row is one day short of a February 29 anniversary. March 1, 2026 is 26 years, 0 months, 1 day.

What this count leaves out

Age calculator FAQ

How is exact age calculated?
The age is the Gregorian calendar period from the birth date to the as-of date: complete years, then the remaining complete months, then the remaining days. March 15, 1990 to November 21, 2026 is 36 years, 8 months, 6 days (13,400 days). Oracle’s documented check for this breakdown is January 15, 2010 to March 18, 2011, which is 1 year, 2 months, 3 days.

Why can the day count disagree with the years, months, and days?
A calendar month is not a fixed number of days. February 1, 2024 to March 1, 2024 is 0 years, 1 month, 0 days, and it is also 29 days, because 2024 is a leap year.

What happens for a February 29 birth date?
February 29, 2000 to February 28, 2026 is 25 years, 11 months, 30 days. March 1, 2026 is 26 years, 0 months, 1 day. This page does not move a February 29 birthday onto February 28, and it is not a legal rule for the day someone turns a year older.

Does the as-of date count as an extra day?
No. The as-of date is the end of the period. On the anniversary, March 15, 1990 to March 15, 2026 is 36 years, 0 months, 0 days. The day count is the number of midnights between the two dates.

What if the as-of date is before the birth date?
The result says the as-of date is before the birth date. Use the date difference calculator when you only need the span and the order does not matter.

How do I turn the months into a percent of a year?
On the percentage calculator, choose X is what percent of Y? For the 8 months in the worked example, X = 8 and Y = 12. The result is 8 is 66.67% of 12. That percent is not added to the age.

Everyday calculators

By Gino Flores Updated