Skip to content
Quasar Tools Logo

How to Calculate Age from Date of Birth

How to calculate age from date of birth — exact years, months, days, hours, and minutes. Covers the formula, edge cases, special ages, and a free online age calculator.

DH
Tutorials & How-Tos11 min read2,650 words

Calculating age from a date of birth sounds simple — subtract the birth year from the current year — but the correct result depends on whether today is before or after the birthday this year. Add leap years, different month lengths, and special cases like February 29 birthdays, and there are more edge cases than most people expect. This guide covers the exact formula, every edge case, and how to get a precise age in years, months, days, and hours instantly.

365.25Average days per yearAccounting for leap years
4Leap year frequencyEvery 4 years (with exceptions)
6Age units availableYears, months, weeks, days, hours, mins

What Is Chronological Age?

Chronological age is the amount of time that has elapsed since a person's date of birth. It is the most common meaning of "age" — the number you state on forms, the number that determines legal thresholds like voting and driving, and the number used to compare developmental milestones. Chronological age is always measured from the exact birth date to a specific reference date, which is usually today but can be any past or future date.

Why age calculation is more complex than subtraction

The simple formula "current year minus birth year" only works correctly when the birthday has already occurred in the current year. A person born on 1 December 1990 has not yet turned 36 on 1 June 2026 — they are still 35 until their birthday arrives in December. This birthday-occurrence check is the step most people miss when calculating age manually, and it is why manual calculations are often off by one year.

Chronological age vs. other age types

  • Chronological age: time elapsed since birth — the standard meaning used in everyday life and most legal contexts
  • Corrected age: used for premature babies — chronological age minus the number of weeks born early
  • Biological age: a measure of how well the body functions relative to chronological age — used in health contexts
  • Mental age: a measure of cognitive development relative to typical development at a given chronological age

Note

For most everyday purposes — legal documents, birthday calculations, retirement planning — chronological age is the only one that matters. The other types are specialised measures used in medical, psychological, and health contexts.

The Age Calculation Formula

The correct formula for calculating completed years of age has two components: a raw year difference and a birthday-occurrence adjustment. Together, they give the exact number of full years of age as of any reference date.

The two-step formula

Step 1: Subtract the birth year from the reference year to get the raw year count. Step 2: Subtract 1 if the birthday has not yet occurred in the reference year (i.e. the reference month is before the birth month, or the months are equal but the reference day is before the birth day). The result is the exact number of completed years of age.

Age in completed years = (Reference Year − Birth Year) − (1 if birthday has not yet occurred in the reference year, else 0).

Age calculation principle

A worked example

Person born on 15 August 1988. Reference date: 10 June 2026. Raw count: 2026 − 1988 = 38. Has the birthday occurred in 2026? August 15 is after June 10, so no — the birthday has not yet passed. Subtract 1: 38 − 1 = 37. The person is 37 years old on 10 June 2026. They will turn 38 on 15 August 2026.

How to Calculate Age Step by Step

For an exact age in years, months, and days — rather than just completed years — you need three separate calculations. The process builds on the two-step formula above and adds month and day precision.

1

Calculate completed years

Apply the two-step formula: (reference year − birth year) minus 1 if the birthday has not yet occurred in the reference year. This gives the year component of the exact age. For someone born 15 August 1988 and a reference date of 10 June 2026, the year component is 37.

2

Calculate completed months since the last birthday

Count the full calendar months from the most recent birthday to the reference date. The most recent birthday for our example is 15 August 2025. From 15 August 2025 to 10 June 2026 is 9 complete months (September, October, November, December, January, February, March, April, May). The month component is 9.

3

Calculate remaining days

Count the days from the last completed month to the reference date. From 15 May 2026 (9 months after the last birthday) to 10 June 2026 is 26 days. The day component is 26. The exact age is therefore 37 years, 9 months, and 26 days on 10 June 2026.

4

Use the Age Calculator for automatic precision

Manual calculation works for one date but becomes tedious for multiple dates or when you need hours and minutes as well. The Age Calculator accepts any birth date and reference date and instantly returns the exact age in years, months, weeks, days, hours, and minutes — including a countdown to the next birthday.

Age Calculator

Calculate exact chronological age in years, months, weeks, days, hours, and minutes from any birth date — with next birthday countdown and milestone dates, free and browser-local.

Open tool

Edge Cases in Age Calculation

Most birth dates are straightforward to calculate, but several specific scenarios introduce ambiguity or require a deliberate convention decision. These edge cases are important in legal, medical, and administrative contexts.

February 29 — leap day birthdays

People born on 29 February have a calendar birthday that only exists in leap years. In non-leap years, two conventions exist: treat the birthday as 28 February (more common in the US) or 1 March (more common in the UK and some European countries). For age calculation purposes, the Age Calculator uses 28 February as the default non-leap convention, matching the most widely used legal standard. This affects whether a leap-day birthday person has turned a given age by the end of February in a non-leap year.

End-of-month birth dates

A person born on 31 January has a month anniversary in months that have 28, 29, or 30 days. The standard convention is to treat the last day of a shorter month as the month anniversary — so 31 January's monthly anniversary in February is 28 February (or 29 in a leap year). This matters when calculating exact months for medical or legal purposes, such as a baby's age in completed months.

ScenarioBirth DateReference DateCorrect AgeCommon Mistake
Birthday not yet passed15 Aug 199010 Jun 202635 years36 years (raw subtraction)
Birthday today10 Jun 199010 Jun 202636 years35 years (off-by-one)
Leap day, non-leap year29 Feb 200028 Feb 202625 years (US)24 years
End of short month31 Jan 199028 Feb 202636 yrs 0 mths 28 days36 yrs 0 mths 27 days
Future reference date15 Aug 199015 Aug 203040 years exactly39 years

Warning

The off-by-one error — using raw year subtraction without the birthday-occurrence check — is the most common age calculation mistake. Always verify whether the birthday has passed in the current year before reporting a final age. This is especially important for age-gated applications where being one year off has legal consequences.

Age in Months, Weeks, Days, and Hours

Completed years are not always the most useful unit of age. Infant development is tracked in months. Legal age thresholds in some jurisdictions are measured in days. Exact age for time-sensitive eligibility windows may require hours. Each unit requires a slightly different calculation approach.

Age in total months

Total months of age = (completed years × 12) + completed months since last birthday. For the example above (37 years, 9 months), total months = (37 × 12) + 9 = 453 completed months. This is the primary measure used by pediatricians for children under 24 months, where monthly developmental differences are clinically significant. The Baby Age Calculator is optimised for this use case, showing age in weeks and months with developmental milestone context.

Age in total days

Total days of age requires counting every calendar day from the birth date to the reference date, accounting for the varying number of days in each month and for leap years in each traversed year. The approximate formula is: (completed years × 365.25) + remaining days, but for exact results, use the Date Difference Calculator, which counts the precise number of days between any two calendar dates.


Age in hours and minutes

For the most precise age — useful for novelty "exact age" displays or for applications that need to check eligibility down to the minute — multiply total days by 24 for hours and by 1440 for minutes. The Age Calculator provides these values automatically alongside years, months, and days. At 37 years and 9 months, a person has lived approximately 13,800+ days, 331,000+ hours, or 19,900,000+ minutes.

Special Types of Age Calculation

Several specific use cases require age calculation approaches that go beyond the standard chronological formula. Each has its own conventions and tools.

Corrected age for premature babies

Corrected age (also called adjusted age) is used for premature infants. It subtracts the number of weeks born early from the chronological age. A baby born 10 weeks early who is now 6 months (approximately 26 weeks) old has a corrected age of 16 weeks — about 4 months. Paediatricians use corrected age to assess developmental milestones until around 24 months. The Corrected Age Calculator handles this automatically when you enter the birth date and the number of weeks premature.

Age at a future date

Calculating future age — "how old will I be on 1 January 2030?" — uses the same formula with a future reference date instead of today. Substitute the target date for the "current date" in all calculations. This is useful for retirement planning (age at retirement date), eligibility checking (age when a child starts school), and legal planning (age when a will's conditions are met). The Retirement Savings Calculator uses age-at-retirement as a key input for its projections.

Tip

Need to calculate someone's age on a specific past date — for example, "how old was my grandfather when he immigrated in 1953?" — use the same formula with the historical date as the reference date. The Age Calculator accepts any reference date, not just today, making historical age calculation as easy as future age calculation.

Age Calculation Best Practices

Getting age calculations right — especially for legal and medical applications — requires consistent conventions and awareness of the edge cases that trip up manual calculations. These practices prevent the most common errors.

Always specify the reference date

"Age" without a reference date is ambiguous — it is only accurate at one moment in time. When recording or communicating age in a document, always note the date as of which the age was calculated. In legal documents, a birth certificate shows the date of birth, not the age — age is derived from it and changes daily. When building age-gating logic in software, always calculate age at runtime against today's date rather than storing a calculated age that becomes stale.

Use ISO 8601 date format for calculations

Date format ambiguity is the second most common source of age calculation errors. "06/07/1990" means 7 June in the US and 6 July in the UK. The ISO 8601 format (YYYY-MM-DD) is unambiguous and is the standard for software and data systems. When entering birth dates into calculators, forms, or database fields, always use or convert to ISO 8601 format to avoid ambiguity. The Date Difference Calculator uses ISO 8601 input to eliminate this class of error.

  • Specify reference dates: always note the "as of" date alongside any calculated age
  • Use ISO 8601 format: YYYY-MM-DD prevents ambiguity between US and UK date format conventions
  • Check leap year handling: confirm your tool or code handles February 29 correctly for leap-day birthdays
  • Validate the birthday-occurrence step: do not use raw year subtraction without checking whether the birthday has passed
  • Use exact tools for infants: for children under 2, use the Baby Age Calculator which shows weeks and months with milestone context

Date Difference Calculator

Calculate the exact number of days, weeks, months, and years between any two dates — useful for age-in-days calculations and time between events.

Open tool

Key takeaways

  • Age in completed years = (reference year − birth year) minus 1 if the birthday has not yet occurred this year — the birthday-occurrence check is the step most people miss.
  • For an exact age in years, months, and days, count completed years first, then complete months since the last birthday, then remaining days.
  • February 29 birthdays use 28 February (US) or 1 March (UK) in non-leap years — confirm the convention for your jurisdiction before using it in legal or medical contexts.
  • Use the Age Calculator for automatic precision in years, months, weeks, days, hours, and minutes from any birth date to any reference date.
  • For infants under 24 months, use the Baby Age Calculator which shows age in weeks and months with developmental milestone dates.
  • Corrected age for premature babies subtracts weeks-premature from chronological age — paediatricians use it for developmental assessments until around 2 years.
  • Always specify the reference date when recording age — a calculated age becomes stale the next day, so date-of-birth is always the authoritative source.

Frequently Asked Questions

Subtract the birth year from the current year to get a raw year count. Then check whether the birthday has already occurred this year — if not, subtract one. For example, if someone was born on 15 March 1990 and today is 10 June 2026, they are 36 years old (2026 − 1990 = 36; birthday on 15 March has passed in 2026, so no adjustment needed). For the exact age in months and days, count from the most recent birthday to today using the Age Calculator.

The formula for age in completed years is: Age = Current Year − Birth Year − (1 if birthday has not yet occurred this year, else 0). For the exact age in years, months, and days: start from the birth date, count complete years to get the year component, then count complete months from the last birthday to today for the month component, and finally count remaining days for the day component. This three-step process handles month-length differences and leap years correctly.

Start from the birth date. Count forward in complete years until you pass the most recent birthday — this gives the year component. Then count complete months from the last birthday to today — this gives the month component. Finally count remaining days from the last completed month — this gives the day component. The result is an exact age like "35 years, 4 months, 17 days." The Age Calculator at quasartools.com/tools/math/calculators/age-calculator does this automatically.

People born on 29 February (a leap day) have a birthday that only exists every four years. For legal and official purposes, most countries treat their birthday as either 28 February or 1 March in non-leap years — this varies by jurisdiction. In the UK, the common convention is 1 March; in the US, 28 February is more often used. For age calculations, the standard approach is to count 29 February birthdays as 28 February in non-leap years, which the Age Calculator handles automatically.

Multiply the number of complete years by 365.25 (to account for leap years) and add the remaining days. More precisely, count the actual number of days from the birth date to today, accounting for leap years in each year traversed. The Age Calculator shows this exact value alongside the years/months/days breakdown. The Date Difference Calculator can also compute the number of days between two specific dates including the birth date and today.

Corrected age (also called adjusted age) is used for premature babies to account for the weeks they were born early. It is calculated by subtracting the number of weeks premature from the chronological age. For example, a baby born 8 weeks early who is now 6 months old has a corrected age of approximately 4.5 months. Developmental milestones are assessed against corrected age, not chronological age, until around 2 years. The Corrected Age Calculator at quasartools.com handles this calculation automatically.

Use the birth date and the target date (past or future) as inputs to the age calculation formula: subtract the birth year from the target year and adjust if the birthday has not yet occurred by the target date in that year. The Age Calculator accepts any reference date — not just today — so you can calculate how old someone will be on their next birthday, at a specific event date, or how old they were at a historical date. Enter the target date in the "As of date" field.

Age in completed years is the number of full 12-month cycles since birth — what most people mean when they say "I am 35 years old." Age in completed months is the total number of complete calendar months since birth, which gives a more precise measure useful for infants and toddlers. A baby who is 1 year and 3 months old is 15 completed months old. Pediatricians use completed months for developmental assessments during the first two years of life when monthly development is clinically significant.

ShareXLinkedIn

Related articles