Age Calculator

Calculate age from date of birth in years, months, and days.

Choose the date of birth.
Choose the date you want to measure against.

Estimated age

30

Additional months6
Total days11,165
Days until next birthday158

How to use this age calculator

  1. Enter the birth date

    Choose the date of birth in the Birth date field.

  2. Set the reference date

    Choose the date you want to measure against in the Reference date field (defaults to today).

  3. Read the age breakdown

    The result shows years, additional months, total days, and days until the next birthday.

Methodology

How this age calculator works

This age calculator determines the exact elapsed time between a birth date and a reference date by performing Gregorian calendar subtraction across years, months, and days. Rather than dividing a raw day count by 365.25, it walks the calendar month by month to respect varying month lengths (28–31 days) and leap-year rules, producing the same year-month-day breakdown people use in everyday life. The result is useful for verifying eligibility requirements, medical milestone tracking, legal age thresholds, and satisfying simple curiosity about the precise gap between two dates.

Formula
Age = (reference year – birth year) adjusted by whether the birthday has occurred in the reference year; remaining months and days from calendar subtraction
Years Complete calendar years between the birth date and reference date
Months Additional complete calendar months beyond the last full year
Days Remaining days beyond the last complete month
Total days Absolute day count between the two dates (inclusive of leap days)
Next birthday Days remaining until the next anniversary of the birth date
Example

For a birth date of March 15, 1990 and a reference date of November 8, 2025: the calculator counts 35 complete years (March 15, 1990 → March 15, 2025), then 7 complete months (March 15 → October 15), then 24 remaining days (October 15 → November 8). The result is 35 years, 7 months, and 24 days. The total elapsed day count is 13,022 days, and the next birthday (March 15, 2026) is 127 days away.

For a birth date of January 1, 2000 and a reference date of July 15, 2025: the calculator counts 25 complete years (January 1, 2000 → January 1, 2025), then 6 complete months (January 1 → July 1), then 14 remaining days (July 1 → July 15). The result is 25 years, 6 months, and 14 days, with 9,309 total days elapsed.

Assumptions
  • The calculation uses the Gregorian calendar exclusively — dates from the Julian calendar or other calendar systems are not converted.
  • Leap years follow the standard rule: divisible by 4, except centuries that are not divisible by 400 (e.g. 2000 was a leap year, 1900 was not).
  • Month lengths are taken from the actual calendar (28/29 for February, 30 or 31 for other months), not averaged.
  • The reference date defaults to today but can be set to any future date for planning or milestone lookups.
  • Reference dates earlier than the birth date are treated as invalid input.
Notes
  • People born on February 29 see their birthday recognized on March 1 in non-leap years for everyday purposes, though legal conventions vary by jurisdiction.
  • Medical and developmental milestones (pediatric growth charts, gestational age) often use week- or month-based age rather than year-based, so the month and day outputs are clinically relevant.
  • For legal age thresholds (voting, drinking, retirement), the convention in most jurisdictions is that you reach the age at the start of your birthday, not the day after.
  • Time-zone differences are not factored in — the calculation operates on calendar dates without hour-level precision.
Sources
  1. Gregorian calendar leap-year rules — U.S. Naval Observatory
  2. ISO 8601 date arithmetic conventions — International Organization for Standardization

Why year-month-day instead of total days?

People naturally describe age in years and months — a child is 3 years and 4 months old, not 1,219 days. The calculator walks the Gregorian calendar month by month rather than dividing a raw day count by 365.25, so it respects varying month lengths and leap years. This produces the same breakdown used for eligibility checks, medical milestones, and legal age thresholds. Total days are still shown for those who need the exact elapsed count.

Age calculator FAQs

How does this calculator handle leap years?

It uses the standard Gregorian leap-year rule (years divisible by 4, except centuries not divisible by 400) and counts February 29 when it exists, so the total day count and month calculations are accurate across leap-year boundaries.

What does the month count represent?

It represents the additional completed calendar months beyond the full-year count. For example, 30 years and 6 months displays 6 in the months field, not 366.

Can I use a future date as the reference?

Yes. Setting the reference date in the future lets you see how old someone will be at a specific milestone — for example, age at a future graduation, retirement date, or event.

Is the total days count the same as dividing years by 365?

No. The total day count is computed directly from the calendar and includes every leap day that falls within the range. Multiplying years by 365 (or 365.25) is an approximation that can drift by several days over long spans.

Does this work for historical dates?

It works for any date within the Gregorian calendar. For dates before the Gregorian adoption (varies by country, generally 1582–1752), the result reflects Gregorian rules retroactively, which may differ from the calendar system in use at that time.

Written by Jan Křenek Founder and lead developer
Reviewed by DigitSum Methodology Review Formula verification and QA
Last updated Mar 10, 2026

Use this as an estimate and validate important decisions with a qualified professional.

Inputs stay in the browser unless a future feature explicitly tells you otherwise.