How to Calculate Your Age by Hand (Including Leap Years)

An age calculator gives you the answer in a second, but knowing how the calculation works is useful: you can check a form, explain a result to someone else, or spot when a spreadsheet gets it wrong. This guide walks through the pen-and-paper method, the leap-year rules that trip people up, and the spreadsheet formulas that do the same job.

The short version: subtract, then borrow

Write both dates as year, month and day, with the later date on top, and subtract column by column from right to left — exactly like subtracting large numbers at school.

Year Month Day
Today 2025 3 10
Date of birth 1990 5 15

Days: 10 − 15 is negative, so borrow one month. The month you borrow is the month before the later date — here February 2025, which had 28 days. Days become 10 + 28 − 15 = 23, and the month column of the top row drops from 3 to 2.

Months: 2 − 5 is negative, so borrow one year (12 months). Months become 2 + 12 − 5 = 9, and the year drops from 2025 to 2024.

Years: 2024 − 1990 = 34.

The age is 34 years, 9 months and 23 days, which is exactly what our age calculator shows for these dates.

Why the borrowed month matters

The only tricky step is deciding how many days a borrowed month is worth. Using the month before the later date keeps the result consistent with how birthdays work: the last “monthly birthday” was 15 February, and from 15 February to 10 March is 23 days because February 2025 had 28 days. If you used a flat 30 days you would get 25, and on a different pair of dates you could even end up a whole day out.

There is one awkward case. If someone was born on the 31st and the borrowed month has fewer days, the subtraction can still go negative. The cleanest rule is to treat the “monthly birthday” as the last day of a short month: one month after 31 January is 28 (or 29) February. Under that rule, 31 January to 1 March is 1 month and 1 day.

The leap-year rules

A leap year adds 29 February to keep the calendar aligned with the Earth's orbit, which takes about 365.2422 days. The Gregorian rules are:

  1. A year divisible by 4 is a leap year…
  2. …except years divisible by 100, which are not…
  3. …except years divisible by 400, which are.

So 2024 is a leap year, 1900 was not, and 2000 was. This matters for counting days: from 1 January 2000 to 1 January 2001 there are 366 days, while from 1 January 1900 to 1 January 1901 there were only 365.

Counting the total number of days

To find someone's age in days by hand, count in three parts:

  1. The rest of the birth year: days from the birthday to 31 December.
  2. The full years in between: 365 for each, plus 1 for each leap year.
  3. The current year: days from 1 January to today.

It is laborious, which is exactly why a calculator is useful. Our tool shows the total days, weeks, months and approximate hours alongside the years-months-days answer.

Leap-day birthdays

People born on 29 February have a real birthday only every four years. In other years, two conventions exist: some treat 28 February as the day another year is completed, others 1 March. The difference rarely matters, but for legal purposes — a driving licence, a pension, a contract — the rule of your country applies, so check it if the date is close.

Doing it in Excel or Google Sheets

Both programs include a DATEDIF function that calculates the difference between two dates in a chosen unit. With the birth date in A1 and the later date in B1:

  • =DATEDIF(A1, B1, "Y") returns the complete years.
  • =DATEDIF(A1, B1, "YM") returns the remaining months.
  • =DATEDIF(A1, B1, "MD") returns the remaining days.
  • =B1 - A1 returns the total number of days.

Microsoft's own documentation warns that the "MD" option can give wrong results in some month-end situations, so double-check the day figure for dates near the end of a month, or compare it with an online calculator.

Ages in the Hijri calendar

Everything above applies to the Gregorian calendar. In the lunar Hijri calendar, years are about 11 days shorter, so a person's age in Hijri years is higher — roughly one extra year for every 33 Gregorian years. Converting a birth date with the Hijri ⇄ Gregorian converter and then subtracting Hijri dates gives a Hijri age, though borrowing is harder because Hijri months can be 29 or 30 days depending on the year.

A quick checklist

  • Put the later date on top and subtract right to left.
  • Borrow from the month before the later date, using its real length.
  • Remember the century rule for leap years.
  • For 29 February birthdays, check which convention applies.
  • When in doubt, compare your result with the calculator.

More articles