How to Calculate Age Between Two Dates
A step by step method for working out the exact age between two dates, with the borrowing rule, month ends and leap years explained.
Use the age calculator between two dates
The method in four steps
Take the two dates. The earlier date is the start, the later date is the end. Work in this order: years, then months, then days. The order matters, because a year is not always 365 days and a month is not always 30 days.
- Count completed years. Subtract the start year from the end year. Then take one year off if the birthday has not arrived yet in the end year. For 15 March 1990 to 20 November 2026, that is 2026 minus 1990, which is 36, and the birthday has passed, so 36 stands.
- Count whole months. From the last birthday, count the months to the last time the day of the month came round. From 15 March 2026 to 15 November 2026 is 8 months.
- Count leftover days. From 15 November to 20 November is 5 days. The age is 36 years, 8 months and 5 days.
- Check the total days. Count the calendar days from the start date to the end date, leap days included. For this example it is 13,399 days.
Do not try to get the months and days by dividing the total days. Dividing 13,399 days by 365.25 gives 36.68 years, which does not tell you the 8 months and 5 days. Keep the total days as a separate check. To skip the hand work, use the age calculator, and check the day count with the days between dates calculator. The same method also works when you compare two people: see how to calculate the age difference between two people.
Borrowing when a number goes negative
Worked example: 30 November 1990 to 1 January 1991. Subtract the days: 1 minus 30 is minus 29, and no month has minus 29 days. Borrow the length of December, which is 31 days. The days become 1 plus 31 minus 30, which is 2. Then borrow a year for the months in the same way. The result is 1 month and 2 days, or 32 days in total. This is why hand calculations that subtract day numbers directly often disagree with a calendar tool.
The rule is simple once you see it: borrow from the month before the end date, and borrow that month's real length, not 30. December has 31 days, so borrowing from December gives 31. If the month before the end date were April, you would borrow 30, and if it were February in a common year, you would borrow 28, or 29 in a leap year.
Month ends and leap years
From 31 January to 28 February is 1 month, because February has no 31st. From 31 January to 31 March is 2 months. A leap year adds 29 February inside the span. From 1 January 2024 to 1 January 2025 is 366 days, not 365. The same rules apply in a spreadsheet: in Excel, =DATEDIF(A1,B1,"Y") gives whole years, =DATEDIF(A1,B1,"YM") gives the months since the last birthday, and =B1-A1 gives total days. See the age in Excel guide for the full formulas and the month end warning.
Month ends deserve a second look, because they are the one place where the day number changes. If someone is born on 31 January, there is no 31 February, so the monthly anniversary falls on the last day of February instead. That is why 31 January to 28 February counts as a full month, even though the day number drops from 31 to 28. A birthday on 31 August reaches its monthly anniversary on 30 September, because September has only 30 days. The completed months still count as one, and only the day number moves.
A 29 February worked example
Someone born on 29 February 2000 has a real birthday only in leap years, so the answer depends on the rule you use in other years. The two common rules are the 28 February rule and the 1 March rule, and you should always say which one you used. The total days never change, because total days count real calendar days. Only the split into years, months and days changes.
Take 29 February 2000 to 28 February 2026. The span is 9,496 days. Under the 28 February rule, the birthday is treated as 28 February in other years, so by 28 February 2026 the person has had 26 birthdays, and the age is 26 years, 0 months and 0 days. Under the 1 March rule, the birthday is treated as 1 March in other years, so on 28 February 2026 it has not arrived yet. The last birthday under that rule was 1 March 2025. From 1 March 2025 to 1 February 2026 is 11 months, and from 1 February to 28 February is 27 days, so the age is 25 years, 11 months and 27 days.
One day later the two rules agree again: from 29 February 2000 to 1 March 2026 is 9,497 days, and the age is 26 years and 1 day under either rule. The same person turned 24 on 29 February 2024, after 8,766 days. For an official form, check which rule the organisation uses first.
Working backwards: find a birth date from an age
Sometimes you know the age and the later date, and you need the birth date. Work backwards through the same three steps, in reverse order: take off the years first, then the months, then the days.
Worked example: someone is 36 years, 8 months and 5 days old on 20 November 2026. Take off 36 years from 20 November 2026 and you reach 20 November 1990. Take off 8 months and you reach 20 March 1990. Take off 5 days and you reach 15 March 1990. That is the birth date, and it matches the first example on this page.
A second example, with whole years only: someone turns exactly 40 on 1 January 2030. Take off 40 years and the birth date is 1 January 1990. But if all you know is that the person is 40 years old on 1 January 2030, the birth date is not pinned down to one day. Anyone born from 2 January 1989 to 1 January 1990 is 40 on that date. A person born on 2 January 1989 is 40 years, 11 months and 30 days old on 1 January 2030. A person born on 1 January 1989 is already 41, and a person born on 2 January 1990 is still 39. So whole years alone give a one-year window, and the exact age in years, months and days is what narrows it to a single date.
Worked-example table
Each row below was counted the same way: completed years first, then whole months, then leftover days, with the total days counted separately on the calendar.
| Start date | End date | Age | Total days |
|---|---|---|---|
| 4 July 1985 | 26 November 2026 | 41 years, 4 months, 22 days | 15,120 |
| 14 February 2010 | 26 November 2026 | 16 years, 9 months, 12 days | 6,129 |
| 30 June 2020 | 26 November 2026 | 6 years, 4 months, 27 days | 2,340 |
| 31 December 1999 | 1 January 2026 | 26 years, 0 months, 1 day | 9,498 |
Check the last row by hand: from 31 December 1999 to 31 December 2025 is 26 years, and one more day reaches 1 January 2026, so the answer is 26 years and 1 day.
Frequently asked questions
What is the formula for age between two dates?
Count completed years first, then whole months, then leftover days. There is no single division that gives all three, because months and years have different lengths.
Why does my hand calculation differ by a day?
Usually the borrowing step, or counting both the first and the last day. From 1 March to 2 March is 1 day as a span, and 2 days counting both dates.
How do leap years change the answer?
They change the total days, and can change the month count around February. A span that includes 29 February has one more day than the same span in a common year.
How do I find a birth date from an age?
Subtract the age from the later date, years first, then months, then days. For example, 36 years, 8 months and 5 days before 20 November 2026 is 15 March 1990. Whole years alone give a one-year window, not a single date.
What if I was born on 29 February?
Pick one rule and say which one you used. On 28 February 2026, someone born on 29 February 2000 is 26 under the 28 February rule and 25 years, 11 months and 27 days under the 1 March rule. The total is 9,496 days either way.
Can I just divide the total days by 365?
No. Dividing 13,399 days by 365.25 gives 36.68 years, which does not tell you the 8 months and 5 days.