Skip to main content

Age Calculator

Age in years, months, days, and hours from a birth date to today or any reference date

Last updated:

What this calculator computes

Age calculation looks trivial but carries surprisingly subtle calendar arithmetic, and the calculator handles the common edge cases automatically rather than relying on hand-calculations that frequently produce off-by-one errors. The calculator takes two date inputs — a birth date and a reference date that defaults to today — and outputs the age in multiple units: completed years, total months, total days, total hours, and the mixed years-plus-months-plus-days format that aligns with everyday speech. The tricky cases include leap-year birthdays (February 29), where the legal convention treats March 1 as the "anniversary" in non-leap years; month-length variability, where a person born on March 31 hits their "monthly anniversary" on April 30 (the last day of April) rather than April 31 (which does not exist); and the distinction between completed years (the standard age in everyday speech and on legal documents) and fractional years (used in medical pediatric contexts and life-expectancy actuarial work). The calculator also handles the inverse case: given an age and a reference date, compute the implied birth date or birth-date range, which is useful for census reporting and historical-record reconstruction. Pediatric medical contexts often use age in months (especially for infants under 2 years where developmental milestones are tracked at month-level precision), while actuarial and life-expectancy work uses fractional years to enable cleaner statistical aggregation.

Calculator

The formula

Formula

age = years_diff(reference_date, birth_date), with month/day rollover

Worked example

A person born on March 15, 1985 wants to know their exact age on the reference date of May 6, 2026. Step 1: compute completed years — 2026 − 1985 = 41 years; check whether the birthday has passed in 2026 — March 15 has passed by May 6, so the full 41 years count. Step 2: compute remaining months — May 6 minus March 15 spans March, April, and partial May; the calculation is 1 month (March 15 to April 15) plus an additional 21 days (April 15 to May 6), giving 1 month and 21 days remaining after the 41 completed years. Step 3: total age — 41 years, 1 month, 21 days. Step 4: alternative units — 41 years × 365.25 days/year + 21 days ≈ 14,995 total days, or about 49,980 days × 24 ≈ 1,199,520 hours.

When to use this calculator

Use this calculator for personal age tracking, retirement-eligibility planning (where the precise age in years and days matters for Social Security and pension calculations), pediatric pharmaceutical dosing (where dose-per-kg-per-month matters for infants and toddlers), pet age calculations (where dog-year and cat-year heuristics translate calendar age to biological-age proxies), and historical-record-keeping where exact ages need to be reconstructed from birth-and-reference dates. The calculator is especially useful for leap-year birthdays where hand calculations frequently produce off-by-one errors, and for cross-decade calculations where the cumulative day count matters more than the rounded year count. The calculator does not handle pre-Gregorian calendar dates without conversion (Julian calendar dates before 1582 in Catholic countries, or before 1752 in Britain and its colonies, need explicit calendar-shift handling), and it does not handle time-zone-aware age calculation across international date lines.

Common input mistakes

  • Treating leap-year February 29 birthdays as having no anniversary in non-leap years. The common-law and statutory convention in most jurisdictions is that a February 29 birthday's anniversary in a non-leap year falls on March 1, so a person born February 29, 2000 turns 25 on March 1, 2025 in non-leap years and on February 29, 2024 in leap years. Some jurisdictions instead use February 28; check the local convention for legal-age purposes.
  • Confusing "age in completed years" with "age in fractional years". A person 5 years and 6 months old has completed 5 years (the everyday age figure) but is 5.5 years old in fractional terms (sometimes used in pediatric medical records and actuarial life-expectancy calculations). Cross-context use of the wrong age form can change clinical-decision thresholds and statistical-grouping outcomes.

Frequently asked questions

How do I calculate age in years and months?

Subtract the birth-year from the reference-year to get raw years, then check whether the birthday has passed in the reference year. If the birthday has not yet occurred, subtract one from the year count. The remaining months are the difference between the current month and the birth month, with day-of-month rollover handled by checking whether the day-of-month in the reference exceeds the day-of-month in the birth.

How do leap-year birthdays work in non-leap years?

In most US and UK jurisdictions, a person born on February 29 celebrates their legal anniversary on March 1 in non-leap years and on February 29 in leap years. Some jurisdictions, including parts of New Zealand, instead recognise February 28 as the anniversary in non-leap years. The calculator follows the more common March 1 convention, so a person born February 29, 2000 turns 24 on March 1, 2024 in the rare years where the reference year is not itself a leap year.

How accurate is "age in days" calculation?

The day-count between any two dates is exact when computed as a Julian-day-number difference, with no ambiguity from leap years or daylight saving. The calculator uses Julian-day arithmetic internally, so a "10,000 days old" milestone always falls on a precise calendar date. Hand-calculations often produce off-by-one errors at month and year boundaries, which the Julian-day approach avoids by treating the calendar as a continuous numbered sequence.

What is "dog years" and how does it differ from human age?

The popular "dog years equals seven human years" heuristic is too crude to be biologically meaningful. Modern veterinary research shows that dogs age very rapidly in their first two years (a 2-year-old dog is biologically equivalent to a 21-year-old human) and then more slowly thereafter (each subsequent dog-year ≈ 4–5 human-years). Cat aging follows a similar non-linear pattern. The calculator does not implement these non-linear adjustments; it returns straight calendar-year age and leaves the species-specific biological adjustment to specialised veterinary calculators.

How do I calculate age at a future or past reference date?

Enter the desired reference date instead of accepting the default "today" — the calculator subtracts the birth date from the reference date using the same year-month-day arithmetic as for the present-day case. This is useful for retirement-eligibility planning (computing age on a specific future date), historical biography (computing age at a past event), and actuarial work (computing age at a policy-effective date). The calculation is accurate to the day for any reference within the Gregorian calendar era (1582 onward in Catholic countries, 1752 onward in Britain).

Related calculators