Exact Age Calculator: Years, Months, Days, and Hours from a Birth Date

Exact age from a birth date: years, months, days, weeks, and hours. Why precise age matters for health screenings, legal documents, and travel.

Why exact age matters

Chronological age, measured from the date of birth, is a required input across legal, medical, and financial systems. In many jurisdictions, age 18 marks the threshold of legal adulthood, age 21 the legal drinking age in the United States, and age 65 traditional retirement and Medicare eligibility. A difference of a single day can determine eligibility for a benefit, a contract, or a medical dosage.

In pediatrics, age is measured to the day or week for the first two years, because growth charts from the World Health Organization and the Centers for Disease Control are indexed by precise age. Vaccine schedules from the CDC specify minimum intervals in days and weeks, so an infant who is 42 days old may qualify for a dose that a 40-day-old does not. Reporting the wrong age by even a few days can delay or invalidate a vaccination.

In research and demographics, exact age enables year-precise life expectancy tables and cohort analysis. The Social Security Administration calculates benefits using age in years and months, and claiming benefits a few months early or late permanently changes the monthly payment. Precision, not approximation, is what these systems require.

How age calculation works

The standard method subtracts the birth date from the current date. The raw year difference is reduced by one if the current month and day have not yet reached the birth month and day, because the birthday has not yet occurred this year.

Age (years) = Current year − Birth year − ( 1 if today is before the birthday this year, else 0 )

Worked example: a person born on March 15, 1990. On July 30, 2026, the raw year difference is 36. Because July 30 comes after March 15, the birthday has passed, so the age is 36. If the current date were February 10, 2026, the birthday had not yet occurred, so the age would be 35 until March 15 arrives.

This month-and-day adjustment is the detail that manual subtraction most often gets wrong. A person born on December 31 is a full year younger than someone born on January 1 of the same year for almost the entire year, even though they share a birth year. Any correct age calculation must account for whether the birthday has passed within the current calendar year.

Age in different units

Sometimes age is needed in days, weeks, or months rather than years. These are found by computing the total number of days between the two dates and then converting, because each smaller unit derives from the day count rather than from the year count.

Unit Conversion
Years Total days ÷ 365.25 (averaging leap years)
Months Years × 12 + remaining months
Weeks Total days ÷ 7
Days Direct date difference
Hours Total days × 24

For the March 15, 1990 birth date as of July 30, 2026: the total span is 36 years and about 137 days, or roughly 13,287 days, 1,898 weeks, and 438 months. The 365.25 divisor accounts for leap years, since a full four-year cycle averages 365.25 days. Precise day counts require a date library rather than simple multiplication, because leap years and the varying lengths of months complicate the arithmetic.

Months are the least intuitive unit because month length varies from 28 to 31 days. For this reason, medical and developmental age in infants is often reported in weeks for the first months and then in months, following WHO guidance. The choice of unit should match the context: legal age uses years and months, infant care uses weeks and months, and scientific calculations use days.

Common use cases

Sources: World Health Organization child growth standards, Centers for Disease Control and Prevention immunization schedule, and the U.S. Social Security Administration benefit-age rules. Day-count precision depends on correct handling of leap years and calendar quirks; the Metriova age calculator performs the full date subtraction and converts the result into years, months, weeks, and days automatically.

Try the calculator

Age Calculator — Exact Years, Months & Days

Put the numbers from this guide to work. The calculation runs entirely in your browser — nothing is sent to a server.

Open calculator

Categories

Learning Center

Legal