Math & Statistics 4 min read

How to Calculate Age from Date of Birth (With Examples)

Subtract the birth year from the current year, then take one off if your birthday has not happened yet. Two worked examples, leap-year rules and the mistakes to avoid.

By the EverydayCalcPro Editorial Team · Reviewed by Reviewed byFaheem AliSoftware Developer, Digital Marketing Specialist & Technical WriterFaheem Ali is a software developer, digital marketing specialist and technical writer with over 12 years of experience in programming, digital marketing and content development. He holds two master’s degrees in Management Sciences and has professional certifications in programming and digital marketing. Based in Finland, Faheem focuses on developing reliable calculators, verifying mathematical formulas and calculation logic, and making technical and financial information accessible through clear, practical guides. on
Updated · Published
How to Calculate Age from Date of Birth (With Examples)

Key takeaways

  • Age = current year minus birth year, minus 1 if your birthday has not happened yet.
  • For exact age, count complete months since your last birthday, then the leftover days.
  • When the target day is smaller than the birth day, borrow the real length of the previous month.
  • Leap years change days lived, not age in years; 29 February birthdays are commonly counted on 1 March.
  • Use the exact date of birth, not just the year, for school, sports, insurance and legal limits.
In this article
  1. Quick answer: the age formula
  2. How to calculate exact age step by step
  3. Worked example 1: birthday already passed
  4. Worked example 2: birthday not reached yet (with borrowing)
  5. Leap years and 29 February birthdays
  6. Age on a future or past date
  7. Turn your age into days, weeks and hours
  8. Common mistakes when calculating age
  9. When an exact age matters

To calculate age from a date of birth, subtract the birth year from the current year, then subtract one more year if your birthday has not happened yet. For an exact age in years, months and days, you then count the months and days since your last birthday.

This guide shows the formula, two worked examples (one where the birthday has passed, one where it has not), how leap years and 29 February are handled, and the mistakes that cause wrong answers. All examples use the same reference date, 15 November 2026, so you can follow the arithmetic.

Quick answer: the age formula

Age = Current year − Birth year, if your birthday has already happened this year

Age = Current year − Birth year − 1, if it has not happened yet

Example: born 15 September 1998, on 15 November 2026. September is before November, so the birthday has passed: 2026 − 1998 = 28 years. If the birth date were 15 December 1998, the birthday would still be to come, so the age is 2026 − 1998 − 1 = 27 years.

How to calculate exact age step by step

  1. Write down the date of birth and the date you want the age on (today, or any other date).
  2. Subtract the birth year from the target year.
  3. If the target date is before the birthday in that year, subtract 1. This gives the age in complete years.
  4. Count the complete months from your last birthday to the target date.
  5. Count the days left over after those months. If the target day is smaller than the birth day, borrow the length of the previous month.

Worked example 1: birthday already passed

Step Value
Date of birth 12 April 1995
Target date 15 November 2026
Year difference 2026 − 1995 = 31
Birthday passed this year? Yes (12 April is before 15 November)
Months since last birthday 12 April to 12 November = 7
Days left over 12 to 15 November = 3
Exact age 31 years, 7 months, 3 days

In total that is 11,540 days lived.

Worked example 2: birthday not reached yet (with borrowing)

Step Value
Date of birth 28 November 2002
Target date 15 November 2026
Year difference 2026 − 2002 = 24
Birthday passed this year? No (28 November is after 15 November), so 24 − 1 = 23 years
Last birthday 28 November 2025
Months since last birthday 28 Nov 2025 to 28 Oct 2026 = 11
Days left over 28 to 31 October = 3, plus 15 November = 18
Exact age 23 years, 11 months, 18 days

The days step is where manual errors happen. The target day (15) is smaller than the birth day (28), so you cannot subtract directly; you count forward from the last full month, using the real length of October (31 days).

Check your own calculation

Enter a date of birth and see the result in years, months and days. Free, no sign-up, nothing stored.

Check my calculation →

Leap years and 29 February birthdays

A year is a leap year if it divides by 4, except century years, which must divide by 400. So 2000 and 2024 were leap years, and 2100 will not be. Leap years add a day to February, which changes the number of days lived but not the year rule above.

A person born on 29 February has a birthday on that date only in leap years. In other years, the common convention is to count the birthday on 1 March; some places use 28 February instead, so check the rule that applies to legal documents. Their age in complete years keeps growing the same way either way:

Date of birth Age on 15 November 2026
29 February 2000 26 years
29 February 2012 14 years

Only the months and days part depends on the convention. For example, counting the birthday on 1 March gives 29 February 2000 an exact age of 26 years, 8 months, 14 days on that date.

Age on a future or past date

The method is identical: replace today's date with the target date. For a future date, for example your age on a wedding day or at retirement, see how old you will be in 2030, 2040, 2050 and 2100. For a past date, such as your age at graduation or on a document, compare the birth date with that earlier date in the same way. The age on a date tool does either.

Turn your age into days, weeks and hours

Once you know your age in years, you can estimate other units. A year averages 365.25 days because of leap years.

Unit Rule of thumb Example: 31 years
Days Years × 365.25 about 11,323
Weeks Days ÷ 7 about 1,618
Hours Days × 24 about 271,746

These are estimates from whole years. For the exact count between two dates, use the calculator; see also how many days old am I for a lookup table and milestones.

Common mistakes when calculating age

Mistake Correct method
Only subtracting birth years Check whether the birthday has happened by the target date
Assuming every month has 30 days Months have 28 to 31 days; use the real length when borrowing days
Forgetting leap years in day counts Use 365.25 for estimates, or an exact date calculator
Treating age as changing on 1 January Age changes on the birthday
Mixing up chronological and biological age Official ages use the calendar; see chronological age explained

When an exact age matters

A one-day difference can change eligibility for school entry cut-offs, sports categories, insurance, pensions and legal age limits. These rules are set by each school, organisation or country, so always check the rule that applies and use your exact date of birth, not just the year.

Frequently asked questions

How do I calculate age from date of birth?

Subtract the birth year from the current year. If your birthday has not happened yet this year, subtract one more year. For an exact age, also count the complete months and remaining days since your last birthday.

How do I calculate my exact age in years, months and days?

Find your age in complete years first, then count the full months from your last birthday to the target date, then the days left over. If the target day is smaller than your birth day, borrow the length of the previous month.

Do leap years change my age?

Not your age in years. They add one day to February in leap years, which changes the exact number of days you have lived.

How is age calculated for someone born on 29 February?

Their age in complete years increases every year. In non-leap years the birthday is commonly counted on 1 March, though some places use 28 February, so check the rule for legal purposes.

Can I calculate my age on a past or future date?

Yes. Use the same method and replace today's date with the date you want, such as a graduation day, a wedding or a retirement date.

How do I turn my age into days?

Multiply your age in years by 365.25 for an estimate. For the exact number of days between two dates, use a date calculator.

Sources

General information only, not financial, legal or medical advice. Figures are checked when the article is updated; rules and rates can change, so confirm important details with the official source.

Was this article helpful?

Keep reading