How Exact Age Is Calculated: Years, Months, Days
- Subtract years, then months, then days, borrowing when a value is negative.
- Month lengths and leap years can make tools differ by one day.
- Check which convention a calculator uses for the end date.
- You can verify any result by hand with the steps below.
Counting age in whole years is easy. Counting exact age in years, months and days is harder, because months have different lengths and leap years add an extra day. This guide explains the method step by step, with worked examples, so that you can understand what an age calculator does and check its answer yourself.
The basic method
Subtract the birth date from the current date in three steps: years, then months, then days. Whenever a step gives a negative number, borrow from the next larger unit:
- If the current day of the month is smaller than the birth day, borrow one month and add the number of days in the previous month to the day count.
- If the current month number is smaller than the birth month number, borrow one year and add twelve months.
- Subtract each unit to get years, months and days.
Worked example 1: a normal case
Someone was born on 25 August 2000 and today is 10 March 2026. Start with the days: 10 minus 25 is negative, so borrow one month. February 2026 has 28 days, so the days become 28 + 10 − 25 = 13, and the current month drops from March (3) to February (2) for the next step. Months: 2 minus 8 is negative, so borrow one year and add twelve, which gives 14 − 8 = 6 months, and the year drops from 2026 to 2025. Years: 2025 minus 2000 = 25. The result is 25 years, 6 months and 13 days.
Worked example 2: no borrowing needed
Born on 5 January 2010, today is 20 April 2026. Days: 20 − 5 = 15. Months: 4 − 1 = 3. Years: 2026 − 2010 = 16. The result is 16 years, 3 months and 15 days. When the current day and month are both larger than the birth day and month, the subtraction is direct.
Counting total days
To count the number of days between two dates, count full years first and then the remaining days, remembering that a leap year has 366 days. For example, from 1 January 2000 to 1 January 2026 there are 26 years, and 7 of them contain a leap day (2000, 2004, 2008, 2012, 2016, 2020 and 2024). The total is 26 × 365 + 7 = 9,497 days. Between 1 January 2026 and 1 March 2026 there are 31 + 28 = 59 days, because 2026 is not a leap year.
Worked example 3: a leap-day birthday
Take someone born on 29 February 2000. On 28 February 2026, the days are 28 − 29, which is negative, so you borrow a month. The previous month, January, has 31 days, so the days become 31 + 28 − 29 = 30. The month count drops from 2 to 1, and 1 − 2 is negative, so you borrow a year and add twelve, which gives 13 − 2 = 11 months, with the year dropping to 2025. Years: 2025 − 2000 = 25. The result is 25 years, 11 months and 30 days. On 1 March 2026, the same method gives 26 years, 0 months and 0 days, which matches the convention of celebrating on 1 March in non-leap years.
Common mistakes when calculating by hand
| Mistake | Effect | Fix |
|---|---|---|
| Using 30 days for every month | Wrong day count for 28, 29 and 31-day months | Use the real length of the previous month |
| Forgetting to lower the month after borrowing | Months are one too high | Reduce the current month by one when you borrow days |
| Ignoring leap years in total day counts | Off by a day for each leap year | Count leap days between the two dates |
| Entering the date in the wrong order | Completely wrong age | Check day, month and year order before you calculate |
Why leap years matter
A leap year adds 29 February. The usual rule is that a year divisible by 4 is a leap year, except years divisible by 100, unless they are also divisible by 400. So 2000 was a leap year, 1900 was not and 2024 was. People born on 29 February celebrate on 28 February or 1 March in non-leap years, depending on local rules and personal preference, and legal systems differ about which date counts for age in official documents.
| Year | Divisible by 4? | By 100? | By 400? | Leap year? |
|---|---|---|---|---|
| 2024 | Yes | No | n/a | Yes |
| 2026 | No | n/a | n/a | No |
| 1900 | Yes | Yes | No | No |
| 2000 | Yes | Yes | Yes | Yes |
Why different tools can disagree by a day
- Which month supplies the borrowed days. Some tools borrow from the previous month, others from the birth month.
- Whether the end date is included. Counting both the start and end date adds one day.
- Time zones. Near midnight, "today" can differ between places.
- Leap day births. Tools differ in how they treat 29 February.
When two results differ by a day, check these four causes before you decide that one is wrong.
Where exact age is useful
- Checking eligibility rules that need a minimum age on a given date.
- Tracking a child's development milestones, which are often counted in months.
- Filling in forms that ask for age in years and months.
- Planning anniversaries and countdowns.
- School, sports and event categories that use an age cut-off date.
How to verify a calculator result by hand
- Write the birth date and today's date as day, month and year.
- Subtract days; borrow a month if the result is negative and note the length of the previous month.
- Subtract months; borrow a year if the result is negative.
- Subtract years.
- Compare your answer with the tool and check whether the end date is counted.
Using the Age Calculator on this site
Open the Age Calculator, enter a date of birth and read the result in years, months and days. Try one example from this guide, such as 25 August 2000, and compare the answer with the hand calculation above. The calculation runs in your browser, so the date you enter is used only to show your result.
When this method does not work
Exact age follows a simple calendar method but is not defined the same way everywhere. Some countries count age differently in official or traditional systems, and legal documents may use specific rules for leap-day births. For legal, medical or immigration decisions, rely on the rule given by the official authority instead of a general calculator. Also remember that a calculator is only as good as the date you enter: a wrong date of birth gives a wrong age.
Frequently asked questions
How do I calculate my age in months?
Multiply the full years by 12 and add the extra months. For example, 25 years and 6 months is 306 months.
Does a leap year change my age?
Not in whole years, but leap days affect the total number of days lived and the borrowed days when you count months and days.
Why does one calculator give a different number of days?
Calculators differ in how they borrow days from months and whether they count the end date. A difference of one day usually comes from this.
Is it safe to enter my date of birth in an online calculator?
Check how the tool handles data. This calculator runs in your browser, but never enter personal data into tools you have not reviewed.