CalculatorSquare
Everyday Guide

How to Calculate Age from Date of Birth

Age calculation sounds simple, but subtracting birth year from the current year is not always enough. The birthday within the current year determines whether another full year has actually been completed.

Basic age calculation

Start by subtracting the birth year from the current year. Then determine whether the birthday has occurred yet in the current year.

Age ≈ Current year − Birth year

Adjust for the birthday

If the person's birthday has not yet occurred in the current year, subtract one from the initial year difference.

Example

Someone born on December 20, 2000 is not yet 26 on October 1, 2026. The year difference is 26, but because the December birthday has not occurred, the completed age is 25.

Age in years, months and days

A detailed age calculation compares calendar dates rather than assuming every month has the same number of days. Month lengths and leap years can affect the remaining months and days.

Why leap years matter

Leap years contain February 29, so date calculations spanning February can contain one additional calendar day compared with a typical year.

Common uses for age calculations

  • Checking exact age on a particular date
  • Eligibility calculations
  • School or event age requirements
  • Finding elapsed time since birth
  • Comparing ages between dates
Calendar-based calculation

Exact age should be based on calendar dates rather than assuming a fixed number of days in every month or year.

Worked age example

Suppose a person was born on March 10, 2000 and you want their age on October 5, 2026. The year difference is 26, and because the March birthday has already occurred in 2026, the completed age is 26 years.

Example when the birthday has not happened yet

For someone born on December 20, 2000, the year difference on October 5, 2026 is also 26. However, the December birthday has not yet occurred, so the completed age is 25 years.

Why exact age is not just days divided by 365

Calendar years contain different numbers of days because of leap years, and calendar months vary from 28 to 31 days. Dividing elapsed days by 365 may be useful for a rough decimal-year estimate, but it does not reproduce an exact calendar age in years, months and days.

Age on a past or future date

An age calculator can also use a reference date other than today. This is useful when you want to know how old someone was on a historical date or how old they will be on a future event date. The same birthday logic applies to the chosen reference date.

Common age-calculation mistakes

  • Subtracting birth year from current year without checking whether the birthday has occurred.
  • Treating every year as exactly 365 days.
  • Treating every month as the same length.
  • Using today's date when the question asks for age on another reference date.