πŸŽ‚ Dates & Everyday Calculations

How to Calculate Age in Days, Months and Years

πŸ“… Updated November 15, 2026⏱️ 10 min read✍️ ToolPond

Whole years first, then months, then days. Learn the method, the month-end rule and the formulas, with worked examples and practice problems.

Calculating age sounds easy until you need it in months, days or on a specific date. This guide shows how to do all of it by hand, with worked examples, a rule for tricky month-ends, ready-made spreadsheet formulas and practice problems. When you just want the answer, the free age calculator does it instantly and also lets you pick any date to measure to.

⚑ Quick answer

Age = completed years + completed months + remaining days. Subtract the birth year from the current year (minus 1 if the birthday has not happened yet), then count forward from the last birthday in whole months, then days. Example: 15 May 1990 to 8 October 2026 = 36 years, 4 months, 23 days.

How to calculate age in years

πŸ“ Formula
Age in years = current year βˆ’ birth year, minus 1 if the birthday has not yet occurred this year

Someone born on 12 March 2000 is 26 on 12 March 2026 and for the rest of that year. On 1 January 2026 they are still 25, because the 2000 β†’ 2026 year gap is 26 but the March birthday has not arrived. Forgetting that last adjustment is the most common mistake.

How to calculate age in years, months and days

To get a precise age, add two more steps after the years.

  1. Find the last birthday on or before the date you are measuring to.
  2. Count whole months from that birthday until the same day-of-month is reached again, without going past the end date.
  3. Count the remaining days from that point to the end date.

Example: 15 May 1990 to 8 October 2026. The last birthday is 15 May 2026, so the age is 36 years. From 15 May to 15 September is 4 whole months. From 15 September to 8 October is 15 days left in September plus 8 days in October, so 23 days. The answer is 36 years, 4 months, 23 days.

πŸ’‘ Borrowing days

If the end day-of-month is smaller than the birth day-of-month, you cannot get a full month from the last matching date. Step back one month and count the days from there instead. Born 28 November 1995, measured on 5 March 2026: 30 years, then 3 months to 28 February 2026, then 5 days to 5 March, giving 30 years, 3 months, 5 days.

How to calculate age in days

Age in days is the number of calendar days between two dates. It is the cleanest measure because it ignores uneven month lengths.

  1. Count the days left in the birth month after the birth day.
  2. Add the days of every full month between the two dates.
  3. Add the day number of the end date within its month.
  4. Add 365 or 366 for every full year, using 366 for leap years.

Done by hand, this is error-prone over decades, which is why most people use a date function or the age calculator. For reference, 15 May 1990 to 8 October 2026 is 13,295 days. Do not shortcut with years Γ— 365: for an adult that is several days short because leap days are left out. Use the average of 365.2425 days a year only for estimates.

Age in weeks, hours, minutes and seconds

Everything else is a conversion from total days.

UnitHow to get itFor 13,295 days
WeeksTotal days Γ· 7 (round down)1,899 weeks and 2 days
HoursTotal days Γ— 24319,080 hours
MinutesTotal days Γ— 1,44019,144,800 minutes
SecondsTotal days Γ— 86,4001,148,688,000 seconds

These figures assume you count from midnight at the start of the birth date. Add the hours since midnight today for a "to the minute" figure. If you know your birth time and time zone you can be more exact, but the day-based number is usually all you need.

How to calculate age on a specific date

Replace "today" with the date you care about and use the same steps. This matters for school entry dates, application deadlines, eligibility rules and "as of" fields on forms. Always use the date the organisation publishes, because cut-offs differ by school, region and sport. In the age calculator, type that date into the "Age at the date of" box and read the result.

The month-end rule for 29th, 30th and 31st birthdays

A birth day of 29, 30 or 31 has no match in some months. The simplest consistent rule is to use the last day of the shorter month. Under that rule, someone born on 31 January reaches "1 month" on 28 February (or 29 in a leap year), "2 months" on 31 March, "3 months" on 30 April and so on. The rule keeps month counts moving forward and never skips a month. Other tools may round differently, which is one reason two calculators can disagree by a day or two at month-ends.

Leap years and 29 February

A year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2000 and 2024 are leap years while 1900 and 2100 are not. A leap year has 366 days, which is why the calendar averages 365.2425 days a year.

People born on 29 February are sometimes called leaplings. In non-leap years their birthday is observed on 28 February or 1 March, depending on the person and, for legal purposes, the country. The age calculator counts 28 February. If a legal deadline depends on it, check the local rule.

Age formulas for Excel, Google Sheets and code

With the date of birth in cell A2:

GoalFormula
Completed years=DATEDIF(A2,TODAY(),"Y")
Months after the last birthday=DATEDIF(A2,TODAY(),"YM")
Days after the last full month=DATEDIF(A2,TODAY(),"MD")
Total days=TODAY()-A2
Age on a date in B2=DATEDIF(A2,B2,"Y")

DATEDIF works in both Excel and Google Sheets, but its "MD" unit is known to give unexpected results around month-ends, so cross-check important results. In Python, dateutil.relativedelta returns years, months and days between two dates, and subtracting two date objects gives total days.

Practice problems

Try each one first, then open the answer.

1. How old is someone born on 12 March 2000 on 1 January 2026?

25 years, 9 months, 20 days (9,426 days). The birthday has not happened yet in 2026.

2. How many days are there from 1 January 2024 to 1 January 2025?

366 days. 2024 is a leap year.

3. Born 31 January 2020: what is the age on 28 February 2020?

0 years, 0 months, 28 days. Under the month-end rule the first month completes on 29 February 2020, so 28 February is still 28 days.

4. Born 29 February 2004: what is the age on 28 February 2026 and on 1 March 2026?

22 years, 0 months, 0 days on 28 February 2026 and 22 years, 0 months, 1 day on 1 March 2026. Treating 28 February as the birthday in non-leap years, the 22nd birthday falls on 28 February 2026. Some jurisdictions use 1 March instead, so check the local rule for legal purposes.

5. Born 31 August 1985: what is the age on 14 November 2026?

41 years, 2 months, 14 days (15,050 days).

πŸŽ‚ Check your own age

Enter your date of birth and any date to see years, months, days, weeks, hours and your next birthday.

Open the age calculator β†’

Conclusion

Whole years first, then whole months, then days: that order gives a correct age every time. Add a clear month-end rule, remember leap years, and use total days when you need to compare ages precisely. For an age that follows a different counting tradition, read Western vs Korean age explained.

πŸ“š Related articles

Frequently asked questions

How do you calculate age in years, months and days?
Subtract the birth year from the current year, subtract 1 if the birthday has not happened yet, then count whole months from the last birthday and finally the remaining days. Example: 15 May 1990 to 8 October 2026 is 36 years, 4 months and 23 days.
How do you calculate age in days between two dates?
Subtract the earlier date from the later one. In a spreadsheet, enter =B2-A2 with the dates in cells A2 and B2. By hand, count the days left in the start month, add the full months in between, then add the days in the final month.
How do you calculate someone's age on a specific date?
Use that date in place of today. Subtract the birth year from the year of that date, subtract 1 if the birthday falls after the date in that year, then count months and days forward from the last birthday before it.
How many days are in a year when calculating age?
A common year has 365 days and a leap year has 366. Over the long run the Gregorian calendar averages 365.2425 days a year, so multiplying years by 365 under-counts the days of an adult by several days.
What is the DATEDIF formula for age in Excel or Google Sheets?
=DATEDIF(A2,TODAY(),"Y") gives completed years, "YM" gives the remaining months and "MD" gives the remaining days. The "MD" unit can give odd results around month-ends, so many people prefer an age calculator for edge cases.
Why does age in months sometimes look wrong at month-ends?
Months have different lengths, so a birth day of 29, 30 or 31 has no match in shorter months. The usual fix is to treat the last day of the shorter month as the matching day, so 31 January plus 1 month is 28 or 29 February.
Share this guide
XFacebookLinkedInWhatsAppTelegramRedditPinterestThreadsBlueskyEmail