How to Calculate Age from Date of Birth (Manual Formula + Free Tool)
Learn how to calculate age from date of birth manually, in exact years, months, and days, plus try our free age calculator for instant, accurate results.
Filling out a form, checking eligibility for something age-restricted, or just settling a casual argument about exactly how old someone is down to the day: there are more reasons to know how to calculate age from date of birth precisely than most people expect. The simple version, subtracting birth year from the current year, is almost always slightly wrong.
This guide walks through the correct manual method, how to express age in years, months, and days at the same time, how to calculate age as of any specific date rather than just today, and how to find your birth weekday and total elapsed time in days or hours.
How to Calculate Age Manually
Start with the obvious step: subtract the birth year from the current year. Then check whether the birthday has actually occurred yet this year by comparing the current month and day to the birth month and day. If the birthday has not happened yet, subtract one more year from your initial result.
The core check
Age = Current Year − Birth Year (− 1 if this year's birthday hasn't happened yet)
For example, someone born on June 15, 1995, calculated on June 20, 2026: the simple subtraction gives 2026 − 1995 = 31. Since June 15th has already passed this year (the calculation date is June 20th), no adjustment is needed, and the age is confirmed at 31.
Calculating Age in Years, Months, and Days
A single age-in-years number is often not precise enough, especially for forms that need exact age in years, months, and days. The process extends the year-subtraction approach by also comparing months and days directly:
- Subtract birth year from current year to get a starting year count.
- Subtract birth month from current month. If negative, borrow a year from the result above and add 12.
- Subtract birth day from current day. If negative, borrow a month from the result above and add the number of days in the previous calendar month.
This three-step borrowing process is exactly how calendar subtraction works in general, similar to borrowing across columns in long subtraction, just applied to years, months, and days instead of ordinary digits.
Try it yourself
Age Calculator
Enter a date of birth and a target date to get exact age in years, months, and days, a next birthday countdown, and fun facts like your birth weekday and generation.
How to Calculate Age Between Two Specific Dates
Sometimes you need an age calculation that is not based on today's date at all, such as figuring out how old someone was at the time of a historical event, or how old a child will be on the first day of school. The method is identical to calculating current age, except you substitute the specific target date everywhere "today" would normally be used, comparing the target date's year, month, and day against the birth date's year, month, and day in exactly the same order.
What Day of the Week Were You Born?
Determining the day of the week for an arbitrary historical date involves a calendar algorithm, since the day of the week shifts in a pattern tied to leap years and the specific number of days in each month. Doing this by hand is genuinely tedious, which is part of why it is one of the more popular "fun fact" outputs in age calculators, alongside generational labels based on birth year ranges.
How to Calculate Age in Total Days or Hours
To express age as a single number of elapsed days, calculate the number of days between the birth date and the target date directly, accounting for the exact number of days in every month and year in between, including leap years. From there, total hours is simply the total days multiplied by 24, and total minutes is total hours multiplied by 60.
This kind of total-elapsed-time figure is mostly used for novelty purposes, such as celebrating a "10,000th day" milestone, but the underlying date-difference calculation is the same one used for more practical purposes like contract terms or eligibility windows.
Frequently asked questions
Why is calculating exact age harder than just subtracting years?
Subtracting birth year from the current year only gives the correct age if the birthday has already happened this year. If it has not happened yet, that simple subtraction overstates the age by one year, which is why the month and day also need to be checked before finalizing the result.
How do leap years affect age calculations?
Leap years add an extra day, February 29th, roughly every four years. This mostly affects people born on February 29th, who technically have a birthday that only occurs in leap years, and it has a small effect on total day counts for everyone else over long spans of time.
How do I calculate someone's age on a date other than today?
Use the same method, but substitute the specific target date wherever the current date would normally go. Compare the target date's month and day to the birth date's month and day exactly the same way, using the target year for the year subtraction.
What is the easiest way to find out what day of the week I was born on?
If you do not want to work through a calendar algorithm by hand, the simplest approach is to use a calculator that returns it directly. Knowing your birth weekday is a fun, low-stakes fact, but the calculation behind it (called a day-of-week algorithm) is genuinely tedious to do manually for an arbitrary date.
Now that you know how to calculate age from date of birth using the year, month, and day borrowing method, the same logic applies whether you are checking today's date or any date in the past or future. Use the Age Calculator above to get the exact breakdown instantly, along with a next birthday countdown and fun facts about your birth date.
For related date math, see how to calculate days between two dates , or for tracking hours on the clock, see how to calculate work hours with a lunch break.