Age Calculator
Find an exact age in years, months and days — plus totals in weeks and days.
Date of birth
Age at date
- 1
Elapsed milliseconds
837,216,000,000Milliseconds between birth and the reference date. - 2
Total days
floor(837,216,000,000 ÷ 86,400,000) = 9,690
How this is calculated
This tool takes two calendar dates: a date of birth and an "as of" date (defaulting to today). It reports the elapsed time between them in two ways. The first is a calendar breakdown — complete years, then leftover months, then leftover days. It works backward field by field: if the day-of-month on the target date is smaller than the birth day, it borrows the number of days from the previous calendar month; if the resulting month count is negative, it borrows twelve months and drops one year. This mirrors how people naturally count age and automatically respects months of different lengths.
The second is a set of raw totals: total days, total weeks, and total months. Total days come from dividing the millisecond gap between the two dates by 86,400,000 (the milliseconds in a day) and flooring the result, so partial days are not counted. Total weeks divide that day count by seven; total months are simply years times twelve plus the leftover months.
Dates are parsed at midnight UTC, so daylight-saving shifts and leap years (29 February) are handled by the calendar logic itself. The calculator only requires the target date to be on or after the birth date; otherwise it shows no result.
Examples
| Input | Result |
|---|---|
| Born 1990-06-15, on 2026-06-04 | 35 years, 11 months, 20 days |
| Born 2000-01-01, on 2026-06-04 | 26 years, 5 months, 3 days |
| Total days from 2000-01-01 to 2026-06-04 | 9,651 days |
| Born 2026-06-04, on 2026-06-04 | 0 years, 0 months, 0 days (newborn) |
About this calculator
Your age is the elapsed time between your date of birth and a reference date, usually today. While most people quote age in whole years, the precise figure is a combination of years, months, and days, which matters for legal documents, medical records, milestones, and visa or benefit eligibility. This Age Calculator computes that exact breakdown and can also express your age purely in total days, weeks, or hours.
The logic counts down from the largest unit. Starting from your birth date, it counts complete years up to the reference date, then complete months beyond the last full year, then the remaining days. Because months have different lengths and leap years add a day every four years, the calculator borrows days from the actual length of the relevant month rather than assuming a flat 30, which keeps the day count accurate across any date range.
To use it, enter your date of birth and, if you want your age on a date other than today, set the second date as well. The tool returns your age as years, months, and days, and typically lists supplementary totals such as the full number of days you have lived. Everything recalculates the moment you change a date, so checking your age on a future birthday or a past event is instant.
Interpreting the output is straightforward: the headline figure such as "26 years, 5 months, 4 days" tells you how much complete time has passed in each unit. The total-days figure is handy for counting down to milestones or comparing the ages of two people without juggling month lengths. If the day count seems off by one, it usually reflects whether the end date itself is counted, which conventions differ on.
The most common confusion arises around leap years and end-of-month birthdays, where naive subtraction can produce a negative day count. A well-built calculator handles a February 29 birthday and month rollover automatically. Also remember that age is typically counted inclusively of the birth day but exclusively of the reference day, so a baby born today is zero days old, not one.
Frequently asked questions
It uses the actual number of days in each month and year, so the extra day in a leap February is counted correctly. This prevents the small drift that happens when a calculator assumes every year has 365 days or every month has 30.
Leap years add an extra day roughly every four years, so over decades those days accumulate. Someone who is 26 years old has lived through six or seven leap days, pushing the total days slightly above 26 x 365.
In non-leap years there is no February 29, so most systems treat the birthday as falling on either February 28 or March 1, depending on jurisdiction. The calculator still counts full years correctly; only the exact day a "leapling" celebrates is a matter of local convention.
Yes. Set the second date to any date you like instead of today. This lets you find how old you were at a past event or how old you will be on an upcoming birthday or deadline.
Age is conventionally counted starting from zero on the day you are born, so you turn one year old on your first birthday. A person born today is zero days old, and the reference day is generally not added as an extra day.
Enter the earlier date as the birth date and the later date as the reference date; the total-days output is the precise gap. For example, January 1, 2000 to June 4, 2026 is 9,651 days.
Also known as
TG we-Calculate Editorial Team. (2026). Age Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/age-calculator
TG we-Calculate Editorial Team. "Age Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/age-calculator.
TG we-Calculate Editorial Team, "Age Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/age-calculator
@misc{wecalculate_age_calculator, title = {Age Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/age-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
