AJ Designer

Age Calculator

Solution

Share:

Age from Date of Birth

Calculates calendar age as years, months, and days between two dates, with the elapsed time also reported in total days, hours, minutes, and weeks.

Age = As-of date − Date of birth

How It Works

The age calculator walks the calendar from your date of birth forward to the as-of date and reports the difference as whole years, then whole months past the last birthday, then leftover days. It uses real calendar lengths — February has 28 or 29 days, longer months have 30 or 31 — so the breakdown never drifts the way a naïve days ÷ 365.25 calculation does. Total days, hours, minutes, and weeks come from a straight elapsed-time subtraction, and the next-birthday countdown is the number of days from today to your birthday in the next applicable year.

Example Problem

How old is someone born on March 15, 1990 as of May 20, 2026, and when is their next birthday?

  1. Identify the two dates: date of birth = March 15, 1990 and as-of date = May 20, 2026.
  2. Count whole years past birthday: 2026 − 1990 = 36 years (because May 20 is after March 15 in 2026, the latest birthday already happened).
  3. Count months past the last birthday: from March 15 to May 15 is 2 full months.
  4. Count leftover days: from May 15 to May 20 is 5 days, giving 36 years, 2 months, 5 days.
  5. Compute total elapsed days by subtracting the two timestamps: 13,215 days, which equals 13,215 × 24 = 317,160 hours and 13,215 ÷ 7 ≈ 1,887.86 weeks.
  6. Find the next birthday: the next March 15 after May 20, 2026 is March 15, 2027, about 299 days away.

Wolfram Alpha confirms the same result: 36 years, 2 months, 5 days, and 13,215 days elapsed between 1990-03-15 and 2026-05-20.

Key Concepts

Age is calendar-aware, not a fixed number of days per year. A 365-day year has shorter months in February and 30- or 31-day longer months — using a simple difference in years would miss whether the current year’s birthday has happened yet. Leap years also matter: someone born on February 29 only gets an exact birthday once every four years, so non-leap years use February 28 as the comparison day and March 1 as the next-birthday anchor depending on the convention. This calculator uses the common rule: in non-leap years, treat the birthday as “passed” on March 1 (so the next birthday is March 1, not February 28).

Applications

  • Passport, visa, and ID verification — agencies need an exact years/months/days breakdown rather than a rounded year count
  • School enrollment cutoffs — kindergarten and grade-level placement often hinge on age as of a specific September 1 cutoff date
  • Retirement planning — exact age in days helps when calculating Social Security claiming windows or required minimum distribution start dates
  • Pet and animal age — vets and shelters track age in months for puppies, kittens, and other young animals
  • Insurance underwriting — life and health premiums step up at exact age boundaries
  • Personal milestones — count days until a wedding anniversary, milestone birthday, or graduation

Common Mistakes

  • Using simple year subtraction (2026 − 1990 = 36) without checking whether the birthday has happened yet this year — the day before your birthday you are still 35, not 36
  • Approximating with days ÷ 365.25 — this returns a decimal age that drifts up to a day across long spans because real years have 365 or 366 days, not 365.25
  • Forgetting leap years when crossing February 29 — multi-year spans across leap years pick up an extra day compared to naïve month math
  • Mixing up “total days lived” with “days in the current year past birthday” — they are different quantities and useful in different contexts

Frequently Asked Questions

How do you calculate age from date of birth?

Subtract the year of birth from the current year, then check whether the birthday has already happened this calendar year. If not, subtract 1 from the years. The remaining months past the last birthday and leftover days give the full breakdown. This calculator does the calendar math for you, including the correct handling of leap years and uneven month lengths.

How many days old am I?

Enter your date of birth and today’s date — the calculator reports total elapsed days. For a person born on January 1, 2000 and asked as of January 1, 2025, that is 9,131 days. Total days include leap days, so a 25-year span typically includes 6 leap days for a total of about 9,131 (instead of 9,125).

What is my age in months?

Convert your years and months breakdown to total months: years × 12 + months. Someone who is 36 years, 2 months, 5 days old is 434 months, 5 days old. For more precision in months including the fractional day part, divide total days by 30.4375 (the average month length).

How do leap years affect age calculation?

Leap years add an extra day (February 29) every 4 years (with century-year exceptions). For total-days counts, this means a 4-year span is 1,461 days, not 1,460. For people born on February 29, this calculator uses the common rule of treating the birthday as “passed” on March 1 in non-leap years, so the next birthday lands on March 1 in non-leap years and on February 29 in leap years.

How do you calculate age in Excel or Google Sheets?

Use =DATEDIF(birthdate, asof, “Y”) for whole years, =DATEDIF(birthdate, asof, “YM”) for the remaining months past the last birthday, and =DATEDIF(birthdate, asof, “MD”) for leftover days. Combine them as a string for a full breakdown. For total days use =asof − birthdate. This online calculator matches DATEDIF’s logic for the years/months/days split.

When is my next birthday?

Find the upcoming occurrence of your birthday in the current or next calendar year. If today is already past this year’s birthday, the next one is next year. The calculator also reports the number of days until that date so you can plan ahead.

Can the calculator handle ages of pets, infants, or historical dates?

Yes — it works for any pair of valid dates from year 1 onward. For infants, the months-and-days breakdown is the most useful field. For pets and animals, the same elapsed-time math applies, although biological age (often expressed in “dog years” or “cat years”) is a separate calculation handled by our Dog Age and Cat Age calculators.

Why does the calculator say I am one day younger than I expected?

Time zones and the as-of time of day can shift the day count by ±1. This calculator uses midnight at the start of each date, in your local time zone, so on the morning of your birthday it correctly shows the new age. If you are checking close to midnight or comparing against another tool, an off-by-one in the day count often comes from a different time-zone or rounding convention.

Reference: Years/months/days breakdown matches Microsoft Excel’s DATEDIF function and the ISO 8601 calendar. Total day counts include all leap days in range.

How Age is Computed from a Birth Date

The calculator walks the calendar from your date of birth to the as-of date and reports both the calendar-aware years/months/days breakdown and the raw elapsed time:

Age calculation diagramDOBelapsedAge

Worked Examples

Personal Milestone

How old is someone born on March 15, 1990 as of May 20, 2026?

Find the exact age in years, months, and days from a date of birth in March 1990 to a snapshot date in May 2026.

  • Date of birth = March 15, 1990
  • As-of date = May 20, 2026
  • Years past birthday = 36 (May 20 is after March 15 in 2026, so the latest birthday has happened)
  • Months past last birthday = 2 (March 15 → May 15)
  • Leftover days = 5 (May 15 → May 20)
  • Total elapsed days = 13,215, equal to 317,160 hours

the person is 36 years, 2 months, 5 days old.

Day Before Birthday

How old are you the day before your 36th birthday?

A person born on May 21, 1990 checks their age on May 20, 2026 — the day before their 36th birthday.

  • Date of birth = May 21, 1990
  • As-of date = May 20, 2026
  • Since May 20 is before May 21, the 36th birthday has not happened yet
  • Age = 35 years, 11 months, 29 days (one day short of 36)

the person is still 35 years old; they turn 36 the next day.

Leap-Year Birthday

How is age calculated for someone born on February 29?

A person born on February 29, 2000 checks their age on March 1, 2026 — a non-leap year, the day after the “treated as passed” birthday.

  • Date of birth = February 29, 2000
  • As-of date = March 1, 2026
  • 2026 is not a leap year, so February 29 does not exist that year
  • The calculator treats the birthday as passed on March 1 in non-leap years
  • Age = 26 years, 0 months, 1 day past the effective birthday

the person is 26 years, 0 months, 1 day old; their next birthday is February 29, 2028 (a leap year).

Related Calculators

Related Sites