Age Calculator Between Dates: Exact Years, Months and Days
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
An age calculator between dates works out the elapsed age from a birth date to a chosen end date, usually today. Enter the birth date and the date to calculate to; the result can be expressed as completed years, months and days, or as a total number of days.
Formula
The calculator returns completed calendar years, rather than dividing a number of days by 365. The formula is:
Age in completed years = end year − birth year − 1 if the birthday has not yet occurred in the end year; otherwise, end year − birth year.
In the calculator expression, the comparison terms represent one when the condition is true and zero when it is false. The first comparison checks whether the end month comes before the birth month. If the months match, the second checks whether the end day comes before the birth day. Subtracting one in either case accounts for a birthday that has not yet been reached.
- Birth year, birth month and birth day are the date of birth, entered as calendar numbers.
- End year, end month and end day are the date through which age is being calculated.
- Completed years is the number of whole birthdays reached by the end date.
The inputs must form valid dates, and the end date must be on or after the birth date. The expression gives the whole-year result; it does not itself validate dates or display the leftover months and days.
Worked Example
Using the defaults—birth date January 1, 2000, and end date November 4, 2026—the birthday has already occurred in 2026.
- Subtract the years: 2026 − 2000 = 26.
- Check the months: November is after January, so no year is subtracted.
- The completed age is 26 years.
This is the same result as the calculator’s first output. A more detailed calendar-age display would report 26 years, 10 months and 3 days, using the usual elapsed-date convention that excludes the starting day when counting the remainder.
How an Age Calculator Between Dates Works
Calendar age is based on anniversaries, not on a fixed count of days per year. A person born on May 20 turns a year older on May 20 each following year. On May 19, the next birthday has not yet arrived, so the current completed age is one less than the difference between the calendar years.
For an answer in years, months and days, a calculator first counts the completed years, then the completed months since the last birthday, and finally the remaining days. Month lengths differ, so the calculation must account for the particular dates rather than treating every month as 30 days. Leap years also affect February and the number of days between two dates.
A total-days result follows a different method: it counts calendar days between the start and end dates. It is useful for elapsed-time questions, but dividing that count by 365 will not always reproduce calendar age. A span can include leap days, and a calendar birthday is not always equivalent to a fixed 365-day interval.
When to Use Each Result
Choose the result that matches the question. Completed years are appropriate when someone asks how old a person is in whole years. Years, months and days are useful when a more precise calendar interval is needed. Total days can help compare elapsed spans or check how many days lie between two dates.
- Age on a past date: enter that date as the end date to find the person’s age then.
- Age on a future date: use the planned date as the end date to see the age reached by then.
- Time between events: enter the earlier event as the start date and the later event as the end date. The result is elapsed time, not necessarily a person’s age.
For example, someone born on December 15, 2000, is 25 on December 14, 2026, and turns 26 the following day. The year difference alone is 26, but it overstates completed age until the birthday arrives.
Leap Days, Date Formats and Counting Conventions
February 29 occurs only in leap years. For a person born on that date, the date on which an age milestone is observed in a non-leap year can depend on the convention used. A calculator may apply a particular calendar rule, while organizations or jurisdictions may specify their own. If the result is for a formal purpose, check the relevant rules rather than assuming every calculator uses the same convention.
Date order is another common source of error. The value 04/11/2000 can mean April 11 or November 4, depending on whether the format is month/day/year or day/month/year. Enter each component separately when possible, or use an unambiguous format such as 2000-11-04 (year-month-day). Also confirm that the selected end date is not earlier than the birth date.
Some calculations count both the starting date and ending date when reporting days, while others report the elapsed interval between them. These approaches can differ by one day. Calendar age in years, months and days also depends on how a system handles a month-end date when the destination month has fewer days. Check the calculator’s stated convention if exact day counts matter.
Common Errors and Limits
- Subtracting years only: this ignores whether the birthday has happened yet in the end year.
- Using 365 days per year: this disregards leap days and does not match calendar anniversaries.
- Reversing the dates: the birth date should be the start, and the comparison date should be the end.
- Mixing date formats: an ambiguous month/day entry can change the result substantially.
- Expecting one universal leap-day rule: calculators may differ in how they handle February 29 and month-end dates.
An age calculator is a date-arithmetic tool, not an authority on how a particular form, institution or law defines age. It also cannot resolve an incorrect or uncertain birth date. Use a reliable source for the dates and verify the calculation convention when a one-day difference could matter.
Frequently Asked Questions
How do I calculate age between two dates?
Subtract the birth year from the end year, then subtract one if the birthday has not occurred by the end date. For years, months and days, also count the completed months and remaining days on the calendar.
Should I use today’s date or another date?
Use today to find someone’s current age. Use a past or future date when you want to know how old they were or will be on that specific date.
Why is age not simply the difference between the years?
The year difference can include a birthday that has not happened yet. For example, a birth in December and an end date in November leave the birthday still ahead, so subtract one year.
How is age calculated for someone born on February 29?
The calculator must apply a rule for non-leap years, when February 29 does not exist. Conventions can differ, so check the rule used if the exact birthday date affects a formal decision.
Is age in days the same as age in years, months and days?
No. Age in days is an elapsed-day count. Calendar years and months have varying lengths, so converting days with a fixed number such as 365 does not reliably produce calendar age.
Related
Formula used
in birth_year | Birth year | year | 2000 | 0 in birth_month | Birth month | month | 1 | 0 in birth_day | Birth day | day | 1 | 0 in end_year | End year | year | 2026 | 0 in end_month | End month | month | 11 | 0 in end_day | End day | day | 4 | 0 out years | Completed years | years | end_year - birth_year - (end_month < birth_month) - ((end_month = birth_month) * (end_day < birth_day)) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.