ThisCalculator

Date and time

Calculate Age at a Date: Formula and Examples

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Calculate Age at a Date: Formula and Examples

To calculate age at a date, enter a birth date and the date you want to measure age on; the calculator returns the number of completed years, months, and days. Age is found by comparing the dates in calendar order, not by dividing the number of days lived by 365.

Formula

Completed age in years = target year − birth year − 1 if the target month and day come before the birth month and day in that target year; otherwise, subtract 0. In symbols:

Age = Y₂ − Y₁ − I[(M₂, D₂) < (M₁, D₁)]

  • Y₁, M₁, D₁ are the birth year, month, and day.
  • Y₂, M₂, D₂ are the target year, month, and day.
  • I is 1 when the target month and day are earlier in the calendar year than the birth month and day, and 0 otherwise.

The calculator expresses the comparison by treating each month and day as a two-part calendar position: target month × 100 + target day. The entered month and day must form valid dates. This calculator reports completed years only; it does not calculate a detailed years-months-days age.

Worked Example

Using the default values—born February 29, 2000, and measuring on March 1, 2025:

  1. Subtract the birth year from the target year: 2025 − 2000 = 25.
  2. Compare the target month and day with the birthday: March 1 comes after February 29.
  3. Because the birthday has occurred by the target date, subtract 0: 25 − 0 = 25 years.

The result is 25 completed years. On February 28, 2025, the same person would be 24 by the common convention that a February 29 birthday is observed on March 1 in non-leap years; exact rules for particular administrative purposes can depend on jurisdiction or policy.

How to Calculate Age at Any Date

“Age at a date” means the person’s age on a chosen calendar date, which may be in the past, today, or in the future. A straightforward manual method is:

  1. Write down the complete birth date and the target date, including year, month, and day.
  2. Subtract the birth year from the target year.
  3. Check whether the birthday has happened yet in the target year.
  4. If it has not, subtract one from the year difference. If it has, keep the year difference.

For example, someone born on October 10, 1990 is 34 on October 9, 2025, and 35 on October 10, 2025. The birthday itself counts: a person reaches the next completed year of age on that date, not the day after it.

Why Calendar Age Is Not Days Divided by 365

A calendar year is not always 365 days. Leap years add February 29, and months have different lengths. Dividing elapsed days by 365 can therefore give a decimal estimate that differs from a person’s completed calendar age, especially across many years. For the ordinary question “How old was this person on this date?”, the birthday comparison is the relevant calculation.

Different systems can define age for particular purposes using special rules, such as how to treat someone born on February 29 in a non-leap year. A general age calculator cannot determine which convention applies to a particular form, law, or organization. Use the stated convention where one is specified.

Common Mistakes and Limits

  • Forgetting the birthday check: Year subtraction alone can overstate age by one when the target date falls before the birthday.
  • Reversing the dates: Confirm which date is the birth date and which is the date of measurement.
  • Entering an impossible date: Month 1-12 is not enough; the day must exist in that month and year. February 29 is valid only in a leap year.
  • Confusing completed age with a decimal age: The result here is whole completed years, not years with a fraction or an exact duration in days.
  • Using the wrong calendar convention: Date formats can vary. Enter the month and day in their separate fields rather than relying on an ambiguous format such as 03/04.

The calculation assumes both dates are interpreted in the same calendar system and that the target date is not earlier than the birth date. It does not validate dates or handle time of day, time zones, or disputed date-of-birth records. If the target date is before the birth date, the result is not a meaningful age.

When This Calculation Is Useful

Calculating age at a specific date is useful when a question refers to a past event or a future milestone rather than someone’s age today. For instance, you might need to know a person’s age on a school-year cutoff date, at the time of a family event, or on a particular historical date. The date of measurement matters: a person’s current age cannot simply be assumed to be their age on an earlier date.

For records or forms that require an exact age in years, months, and days, first confirm the format the form expects. The completed-years result is often sufficient for everyday questions, but it does not supply those additional calendar units.

Frequently Asked Questions

How do I calculate my age on a past date?
Subtract your birth year from the past year, then subtract one if your birthday had not yet occurred by that past date. Otherwise, the year difference is your completed age.

Do you count the birthday itself?
Yes. On the birthday, the person has reached the next completed year of age.

How do you calculate age for someone born on February 29?
Compare the target date with the applicable birthday convention. In leap years, February 29 is the birthday; in non-leap years, conventions may use February 28 or March 1, so follow the rule relevant to the context.

Can I calculate age on a future date?
Yes. Enter the future date as the target date. The result is the person’s completed age on that date, assuming the date is after the birth date.

Why is my age one year less than the difference between the years?
The birthday has not happened yet in the target year. Subtract one from the difference between the target year and birth year until the birthday arrives.

Related

Formula used
in by | Birth year | year | 2000 | 1
in bm | Birth month | month (1-12) | 2 | 1
in bd | Birth day | day | 29 | 1
in ty | Target year | year | 2025 | 1
in tm | Target month | month (1-12) | 3 | 1
in td | Target day | day | 1 | 1
out age | Completed age in years | years | ty - by - ((tm * 100 + td) < (bm * 100 + bd)) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.