Try the Age Calculator
Free and instant — plug in your own numbers.

To calculate an exact age, count the whole years from the date of birth to the date you care about, then the whole months since the last birthday, then the days left over. Someone born March 18, 1994 is 32 years, 8 months and 25 days old on December 13, 2026.

That method is simple, but month ends, leap days and official rules can change the answer by a day or a month. The age calculator handles all of them and also gives the age in total months, weeks and days.

The three-step method

Work from the largest unit to the smallest:

  1. Years. Find the most recent birthday on or before the target date. The number of years between the birth date and that birthday is the age in years.
  2. Months. From that birthday, count forward one month at a time, keeping the same day of the month, as long as you don't pass the target date.
  3. Days. Count the days from the last monthly step to the target date.

For the example above:

Step From To Result
Years March 18, 1994 March 18, 2026 32 years
Months March 18, 2026 November 18, 2026 8 months
Days November 18, 2026 December 13, 2026 25 days
Age = whole years + whole months after the last birthday + days left over = 32 years, 8 months, 25 days

For a quick answer in years only: subtract the birth year from the current year, then take off 1 if this year's birthday hasn't happened yet. On December 13, 2026, that is 2026 − 1994 = 32.

When the day is smaller: borrow a month

Subtracting dates by hand works like subtracting numbers, column by column. When the day of the target date is smaller than the day of birth, you borrow a month.

Take someone born August 30, 2011, on December 13, 2026:

Year Month Day
Target date 2026 12 13
Date of birth 2011 8 30
After borrowing 2026 11 13 + 30 = 43
Difference 15 3 13

The day column can't do 13 − 30, so you take one month from the month column (12 becomes 11) and add the days of the month before the target month. November has 30 days, so the day column becomes 43, and 43 − 30 = 13. The age is 15 years, 3 months and 13 days, the same answer as counting forward: August 30, 2026 is the 15th birthday, November 30 is 3 months later, and December 13 is 13 days after that.

Month ends: where methods disagree

Trouble starts when the birth date is the 29th, 30th or 31st and a shorter month gets in the way. Take a baby born January 31, 2026. How old is the baby on March 1, 2026?

  • Counting forward, which is what the age calculator does: one month after January 31 is February 28, because February has no 31st. One more day reaches March 1, so the baby is 1 month and 1 day old.
  • Borrowing by hand fails: 1 − 31 needs a borrowed month, but February only adds 28 days, and 1 + 28 − 31 is −2.

The counting-forward rule also means a baby born January 30 is 1 month and 1 day old on March 1 as well. Two birth dates, one answer. Neither result is wrong; they just show that a "month" isn't a fixed number of days. When the exact length matters, such as for a contract or a deadline, count total days instead. The date calculator counts the days between any two dates and uses the same month-end rule when you add months.

Leap-day birthdays

Someone born February 29, 2004 has a real birthday only in leap years. In other years, the age calculator counts February 28 as the birthday:

Date Age
February 27, 2027 22 years, 11 months, 29 days
February 28, 2027 23 years

Some laws count March 1 instead, which can matter for a driver's license or a benefit start date. If the legal date matters, check the rule that applies to you.

Age in total days, weeks and months

Totals are useful for milestones and for checking work. For the person born March 18, 1994, on December 13, 2026:

  • Months: 32 × 12 + 8 = 392 months, plus 25 days.
  • Days to the 32nd birthday: 32 × 365 = 11,680, plus 8 leap days (February 29 in 1996, 2000, 2004, 2008, 2012, 2016, 2020 and 2024) = 11,688 days.
  • Days since that birthday: March 18 to December 13, 2026 is 270 days.
  • Total: 11,688 + 270 = 11,958 days, which is 1,708 weeks and 2 days.

The next birthday, March 18, 2027, is a Thursday and 95 days away. All three examples side by side:

Born On Age Total days
March 18, 1994 December 13, 2026 32 years, 8 months, 25 days 11,958
August 30, 2011 December 13, 2026 15 years, 3 months, 13 days 5,584
January 31, 2026 March 1, 2026 1 month, 1 day 29

Age in Excel and Google Sheets

Both use the DATEDIF function, with the birth date in A2 and the target date in B2:

Years: =DATEDIF(A2, B2, "Y") Months after the last birthday: =DATEDIF(A2, B2, "YM") Total days: =DATEDIF(A2, B2, "D") or simply =B2 - A2

Microsoft's DATEDIF help page defines "Y" as the number of complete years and "YM" as the difference in months with days and years ignored. For the leftover days there is an "MD" unit, but Microsoft says it doesn't recommend it because it "may result in a negative number, a zero, or an inaccurate result." A safer way to get the days is to subtract the date of the last whole month:

Days after the last whole month: =B2 - EDATE(A2, DATEDIF(A2, B2, "M"))

Google's DATEDIF help page notes that months and years only count once the day of the month is reached. Its example: 9/30/15 to 2/28/16 is 4 months, even though February 28 is the last day of that month. That's the same month-end effect described above.

Official ages: the day before your birthday

For some government rules, you reach an age a day early.

  • IRS. "You are considered age 65 on the day before your 65th birthday," according to IRS Publication 554. So you count as 65 at the end of a year if your 65th birthday is on or before January 1 of the next year. Someone born January 1, 1962 is considered 65 on December 31, 2026, in time for 2026 tax benefits such as the $6,000 senior deduction.
  • Social Security. The Social Security Administration also treats you as reaching an age on the day before your birthday, and if you were born on the 1st of a month, it figures your benefit and full retirement age as if your birthday were in the previous month. Full retirement age is 67 for people born in 1960 or later. Our guide to the 2027 Social Security COLA covers what happens to benefits once they start.

Frequently asked questions

How do I calculate my age in days?

Count the days from your date of birth to today, including every February 29 in between, or subtract the two dates in a spreadsheet. The age calculator shows the total under the main answer.

Why can two people born on different days be the same age in months and days?

Because a month isn't a fixed length. Counting forward from January 30 or January 31 both reach February 28, the last day of February, so on March 1 both babies are 1 month and 1 day old.

Does the time of birth matter?

Only on the birthday itself. Age calculators work in whole days, so the new year of age starts in the morning of your birthday, whatever time you were born.

How old was someone on a past date?

Use the same three steps with that date as the target. In the age calculator, change Age on this date to any day after the birth date.

A quick checklist

  1. Find the last birthday on or before the target date for the years.
  2. Count whole months forward from that birthday.
  3. Count the leftover days.
  4. Watch for month ends and February 29.
  5. For tax or Social Security ages, remember the day-before-birthday rule.

Written by Muaaz Shaheen

Muaaz Shaheen runs Calcnio. Every figure in our blog posts is calculated, not estimated, and the assumptions are stated so you can check them with our calculators. Spotted an error? Tell us.

This article is for general education and is not financial advice. Rules, rates and products vary by lender and country. See our disclaimer.