Skip to content
CalcTide logo
Time & Date

Age Calculator

An age calculator turns a date of birth and a comparison date into an exact age broken into years, months, and days. Enter a date of birth and an as-of date (it defaults to today), and the tool returns a full age breakdown, the total number of days you have been alive as of that date, and a countdown of days until the next birthday. It is built for calendar-accurate math rather than rough estimates, so it correctly handles month-end dates, leap years, and February 29 birthdays instead of assuming every month is 30 days long. People use it to settle a quick birthday-math argument, to fill in an exact age field on a form, to check age eligibility rules, or to satisfy curiosity about how many days they have actually lived.

Time & DateBy

Quick answer

Age is calculated with calendar-accurate year, month, and day differences, not a flat 365-day-per-year estimate.

What this tells you

  • Age is calculated with calendar-accurate year, month, and day differences, not a flat 365-day-per-year estimate.
  • The calculator subtracts the birth date from the as-of date one calendar unit at a time: years first, then months, then days.
  • Total days lived is the exact day count between the birth date and the as-of date, including every leap day in between.
  • The next-birthday countdown is measured in days from the as-of date to the next occurrence of the birth month and day.
  • You can set the as-of date to any date on or after the birth date, so the tool also works for past-dated or future-dated age checks.
  • A birth date entered after the as-of date returns no result, since a person cannot have a negative age.

How to Use

  1. 1Enter the date of birth in the Date of birth field. This is the fixed starting point for every calculation.
  2. 2Enter the as-of date in the second field. It defaults to today, but you can change it to check age on a past date, a future date, or a specific event date.
  3. 3Click Calculate to see the full age breakdown alongside the years, months, and days figures.
  4. 4Check the secondary results for total days lived and the number of days remaining until the next birthday.
  5. 5If you need age on a specific document date, such as an enrollment cutoff or an eligibility deadline, set the as-of date to that exact date rather than leaving it on today.

How It Works

Formula

Age = calendar difference between birth date and as-of date, computed as years, then months, then days

The calculator starts by subtracting the birth year from the as-of year, the birth month from the as-of month, and the birth day from the as-of day. If the day subtraction goes negative, meaning the as-of day falls earlier in the month than the birth day, it borrows a month: it adds the number of days in the month before the as-of month to the day count and reduces the month count by one. If the month subtraction is then negative, it borrows a year the same way, adding 12 to the months and reducing the years by one. This mirrors how people count age by hand, working from the largest unit down to the smallest. Total days lived is a separate, direct calculation: the exact millisecond gap between the two dates converted to days. The next-birthday countdown builds a birthday date in the as-of date's year using the birth month and day. If that date has already passed, it moves the search to the same month and day in the following year, then reports the day gap to the as-of date.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Standard adult age calculation

Date of birth2000-01-01
As-of date2026-05-07
Result26 years, 4 months, 6 days

From January 1, 2000 to May 7, 2026 is 26 full years plus 4 more months plus 6 more days, since May 7 is 6 days past the April-to-May monthly mark. Total days lived on that date comes out to 9,623, and the next birthday on January 1, 2027 is 239 days away. This is the typical case most people are checking when they want their exact age spelled out.

One day after a birthday just passed

Date of birth1990-06-15
As-of date2026-07-16
Result36 years, 1 month, 1 day

The person turned 36 on June 15, 2026, so by July 16 they are 36 years, 1 month, and 1 day old. Total days lived reaches 13,180, and the next birthday is 334 days out. This example shows how the month and day figures reset right after a birthday instead of continuing to climb toward the next full year.

Leap day birthday checked in a non-leap year

Date of birth2000-02-29
As-of date2026-07-16
Result26 years, 4 months, 17 days

Someone born on February 29, 2000 reaches 26 years, 4 months, and 17 days by July 16, 2026, with 9,634 total days lived. Because 2026 is not a leap year, the next-birthday calculation treats the birthday as landing on March 1, 2027, which is 228 days away. This is the clearest case of the calendar-math quirk that leap day birthdays create in years without a February 29.

Newborn age in the first weeks

Date of birth2026-06-30
As-of date2026-07-16
Result0 years, 0 months, 16 days

A baby born on June 30, 2026 is exactly 16 days old on July 16, 2026, with total days lived also equal to 16 since no full month has passed yet. The next birthday is 349 days away, which reflects the full year still ahead before the first birthday. This case is common for parents tracking a newborn's exact age for medical appointments or milestone records.

Age calculated exactly on the birthday

Date of birth2005-08-20
As-of date2026-08-20
Result21 years, 0 months, 0 days

When the as-of date matches the birth month and day, the age lands on a clean whole number with 0 months and 0 days remaining, here 21 years exactly. Total days lived is 7,670, and the next-birthday countdown correctly reports 0 days, since the birthday is the as-of date itself. This confirms the calculator resets the month and day counters to zero right on the birthday rather than one day after it.

Age the day before a birthday

Date of birth2005-08-20
As-of date2026-08-19
Result20 years, 11 months, 30 days

One day before the same birthday, the person is still counted as 20 years, 11 months, and 30 days old, one day short of turning 21. Total days lived is 7,669, and the next birthday shows just 1 day away. Comparing this example with the one directly above shows how the age figures roll over cleanly at the exact moment the calendar date matches the birth date.

Approximate Age Unit Conversions

Rough equivalents for translating a whole number of years into other common age units, based on the average calendar year length of 365.2425 days.

UnitApprox. equalsCommon use
1 year365.24 daysGeneral age reference and birthday tracking
1 year52.18 weeksPediatric and infant milestone tracking
1 month30.44 daysRough month-length estimate, not exact calendar math
1 decade3,652.4 daysLong-range planning and demographic reference
18 years6,574.4 daysCommon legal age-of-majority reference point

These figures are averages for quick estimation only. The calculator itself always uses exact calendar dates, not these averaged conversions, for the years, months, days, and total-days results it displays.

Common mistakes

  • Using a future birth date. The calculator requires the birth date to fall on or before the as-of date, and it will not return a result for a birth date that is later than the comparison date.
  • Confusing today's date with the as-of date. Leaving the as-of date on today when you actually need age on a specific past or future date, such as an enrollment deadline, gives an answer for the wrong point in time.
  • Expecting each month to count as a fixed 30 days. The calculator uses the actual number of days in each calendar month, so the day figure in the breakdown will vary depending on which months fall between the two dates.
  • Assuming a February 29 birthday always lands on February 29 for the next-birthday countdown. In years without a leap day, that countdown resolves to March 1 instead, which can look off by a day if you were expecting February 29.
  • Reading total days lived as the same thing as age in years multiplied by 365. Because of leap years, total days lived is usually a few days higher than a simple 365-times-years estimate once someone has lived through several leap years.

Embed this calculator on your site

Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.

<script src="https://calctide.com/embed.js" data-tool="age-calculator" async></script>

Preview the embed at /embed/age-calculator/.

Frequently Asked Questions

It subtracts the date of birth from the as-of date using calendar-accurate math, working out full years first, then leftover months, then leftover days. It also reports the exact total number of days lived and the number of days remaining until the next birthday, all based on the same two dates you enter.
Yes. Change the as-of date to any date on or after the birth date, and the calculator recalculates the age breakdown, total days lived, and next-birthday countdown for that specific date instead of today.
Yes. All calculations use real calendar dates, so leap years and leap days are factored in automatically, both for the year-month-day breakdown and for the total days lived figure.
The age breakdown still works normally using calendar-accurate math. The next-birthday countdown treats the birthday as March 1 in any year that is not a leap year, since February 29 does not exist on the calendar that year.
The calculator uses the actual length of each calendar month rather than a flat 30-day assumption, so a leftover day count that spans a 31-day month or a 28-day February will differ from a simple 30-day estimate.
It is the exact number of full days between the birth date and the as-of date, calculated directly from the date difference rather than derived from the years, months, and days breakdown. It includes every leap day that fell within that span.
The calculator builds a birthday date in the current year using the birth month and day. If that date has already passed relative to the as-of date, it moves to the same month and day the following year and counts the days from the as-of date to that point.
Yes. The calculator only needs a date of birth and an as-of date, so it works the same way for checking a child's exact age, a document subject's age, or any other person's age as long as you know their birth date.
It uses standard calendar-date math, which matches how age is generally counted, but it does not apply jurisdiction-specific legal rules, time zones, or birth-time precision. Treat the result as a general reference rather than a formal legal determination.
It estimates age calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Time & Date