Live demo (works without JavaScript):
Sample: Bob born 2019-06-15; as of any date you choose the tool returns years, months and days.
enter values in the form → exact resultWritten by Sarah Mitchell · Reviewed by Alex Chen · August 2, 2026
Calculate your exact age in years, months, days, hours, minutes, and seconds.
Select a date and click Calculate.
Given a date of birth and a second "as of" date, this tool reports the elapsed time in years, months, and days, then breaks the same span into total months, weeks, days, hours, minutes, and seconds. The second date defaults to today but can be set to anything — a school enrollment cutoff, a retirement target, a court date, or the day you started a job. The one hard rule is that the earlier date comes first; the tool refuses to count time before someone was born.
Different people reach for it for different reasons. Parents check whether a child turns five before a district's kindergarten cutoff. HR staff verify that a candidate clears a minimum age. Researchers quote a precise duration in a methodology section. Developers compare the output against their own date arithmetic when testing. And because both fields are date pickers, the same page works as a general date-span calculator with no birth date in sight.
The math is calendar arithmetic, not a fixed 365-day year. It starts with three subtractions:
years = target year − birth year
months = target month − birth month
days = target day − birth day
If the day difference comes out negative, the tool borrows one month: it subtracts one from the month count and adds back the number of days in the month that precedes the target month. If the month difference then turns negative, it borrows one year and adds back twelve months. That borrow step is why a span is reported in calendar units that line up with the dates on a wall calendar.
The totals underneath come from the same pair of dates by a different route. Total months is the year figure times twelve plus the month figure. Total days is the raw difference between the two dates measured in 24-hour units. Total weeks is that day count divided by seven, rounded down. Hours, minutes, and seconds are the day count multiplied up, which is why date-only inputs always produce exact multiples.
Take someone born on March 3, 2000, checked against August 4, 2026. The three subtractions give 26 years (2026 − 2000), 5 months (August − March), and 1 day (4 − 3), so the tool shows 26 years, 5 months, 1 day.
Now the totals. Twenty-six years of 365 days come to 9,490 days. The leap years in that window — 2004, 2008, 2012, 2016, 2020, and 2024 — add six more, bringing the count to 9,496 by March 3, 2026. The remaining 154 days from March 3 to August 4, 2026 make 9,650 days in total. That same span also works out to 317 months, 1,378 weeks, 231,600 hours, or 833,760,000 seconds. The next birthday, March 3, 2027, is 211 days away.
A second example shows the borrow step in action. From March 31 to May 2, 2026 the subtractions give 2 months (May − March) and −29 days (2 − 31). The tool borrows one month, counts April's 30 days, and reports 1 month and 1 day. A wall calendar counts March 31 to April 30 as one month and April 30 to May 2 as two more days, so the tool's figure runs one day short of what a calendar shows — a real consequence of borrowing only once.
Because months are counted as calendar-month boundaries, not 30-day chunks. A person born on the 15th turns exactly one month older on the 15th of the next month, even though the gap may be 28, 30, or 31 days. The total-days row is the one to use for a flat count.
Yes. Put any start date in the first field and any end date in the second. The same calendar arithmetic applies, so it works for tenancy periods, visa stay calculations, job tenure, or time served toward a license.
Date-only inputs are treated as the start of their day, so the hour, minute, and second totals are exact multiples of the day count. If you need sub-day precision, your browser's time zone decides which day a timestamp falls on.
It stops and asks for an earlier date. Negative ages are never computed, so the results are always a non-negative span from the first date to the second.
When a form asks for age in years only, quote the years number as shown; it is completed years, never rounded up. Someone the tool reports as 26 years 5 months old is 26, not 27, until the 27th birthday passes.
No. The math runs in your browser, so nothing you enter is sent to a server, and the tool keeps working if you disconnect from the internet after the page loads.
Most of the time "26 and a half" is close enough, but some decisions hang on calendar boundaries: whether a child is old enough to start school in a given district, whether a driver's license renews this quarter, whether a claim falls inside a statute of limitations, or how long a visa stayed valid. When the boundary is a specific date, count the days exactly — the age calculator above does that in one pass, down to the second if you want it.
There are also moments to put the tool away. If a government form, visa, insurance policy, or court filing depends on your age, confirm the number against the official record or agency rather than a web calculator. And if the interval you care about runs between two clock times rather than two dates, a duration calculator that accepts times of day is the better fit.