Skip to content

8 min read  

How to Calculate Your Exact Age (and Why Most People Get It Wrong)

Calendars are messy. Here is the right way to compute age in years, months, and days — by hand and by calculator.

If someone asks how old you are, you probably round up to the nearest birthday. That is fine for small talk. It is not fine for an immigration form, a hospital admission, a school enrollment, a custody filing, or a standardized test. In any context where age matters, the answer is required in the format years, months and days — and the math behind that simple-looking format trips up almost everyone, including most online "age calculators".

This article walks through the correct way to compute someone\u2019s exact age. You will learn the borrowing rule used by every legal calendar, the leap-year edge cases that catch people out, the time-zone quirk that produces off-by-one errors, and the standardized format used by clinicians and educators. By the end you will be able to calculate any person\u2019s exact age to the day — and you will know why the answer matters.

Why subtraction alone does not work

The naive approach is to subtract the birth year from the current year. If you were born in 1990 and today is 2026, the subtraction gives 36. But your birthday this year may not yet have arrived. If today is March 1st and your birthday is in November, you are still 35.

Adding "minus one if your birthday has not happened yet" fixes the year, but you still do not have the months and days. Those are what every official form actually wants.

The standard borrowing rule

The accepted method, used by registrars, clinicians, and courts the world over, is the borrowing rule. Lay out today\u2019s date and your date of birth in three columns — year, month, day. Subtract right-to-left, just like long subtraction.

  1. Subtract day from day. If the result is negative, "borrow" the actual length of the previous calendar month and reduce the months column by one.
  2. Subtract month from month. If the result is negative, borrow 12 months and reduce the years column by one.
  3. Subtract year from year. The remainder is your age in completed years; the months and days columns hold the remainder.

The crucial detail is in the borrowing in step one. You do not borrow a flat 30 days. You borrow the actual length of the previous calendar month — which can be 28, 29, 30 or 31. Get that wrong and your age can be a day off, which is enough to push a child into a different school year or a patient into a different growth percentile.

A worked example

Suppose today is March 1, 2026, and you were born on June 15, 1990.

  Year  Month  Day
  2026   03    01
- 1990   06    15

Day column: 1 minus 15 is negative. Borrow from February — which in 2026 has 28 days because 2026 is not a leap year. Day column becomes 1 + 28 = 29. Reduce months from 03 to 02.

Month column: 02 minus 06 is negative. Borrow 12 months from the years column. Month column becomes 02 + 12 = 14, then minus 06 = 08. Reduce year from 2026 to 2025.

Year column: 2025 minus 1990 = 35.

Result: 35 years, 8 months, 14 days.

The leap-year trap

Leap years break two things: the borrowing rule (because February switches between 28 and 29) and the day-count rule (because some years contain 366 days, not 365). The famous "every fourth year" rule has two exceptions:

  • Years divisible by 100 are not leap years…
  • unless they are also divisible by 400.

So 1900 was not a leap year, 2000 was, and 2100 will not be. If your calculator does not handle the 100/400 exception you will get a one-day error in any age calculation that crosses a century boundary. Most cheap calculators get this wrong because their author tested with 2024 and called it a day.

February 29 birthdays

People born on February 29 ("leaplings") have a unique problem: their birthday only exists every four years. Legally, almost every jurisdiction treats their "birthday for purposes of age" in non-leap years as either February 28 or March 1. In the United Kingdom, the legal age of majority is reached on March 1; in Hong Kong it is also March 1. In the United States, practice varies by state but March 1 is most common. For age calculation, this matters only when the reference date is exactly between February 28 and March 1; the day-count totals are unaffected.

Time zones and the off-by-one error

Suppose you were born at 11:30 PM in New York on June 15. The instant you were born, it was already June 16 in London. Twenty years later, on which date do you "turn 20"? In a strictly local sense, you turn 20 on June 15 in New York and June 16 in London. Most calculators ignore this entirely and treat both your birth date and the reference date as calendar dates with no time component, which is the right answer for legal purposes — but it can produce surprising results when you compare a birthday party in one country with a celebration in another.

If you want to be pedantic, store the birth time in UTC and compare against the reference time in UTC. For everything else, treat the date as a calendar date and ignore the time.

The clinical and educational format: Y;M.D

If you have ever scored a developmental test or an IQ assessment, you have seen ages written as 5;3.21 — five years, three months, twenty-one days. The semicolon separates years from months, the period separates months from days. This format is required by every major test publisher (Pearson, Riverside, NCS, MHS) because percentile tables are indexed at the month or sometimes week level. A child whose chronological age is mis-reported by a single month can land in a different percentile band, which can change a recommendation, an eligibility decision, or a diagnosis.

Calculating age between two arbitrary dates

The same borrowing rule works between any two dates, not just between a birthday and today. Need to know how long someone was the CEO? Subtract their start date from their end date using the same Y/M/D borrowing logic. Need to know the age of a contract? Same method. The output ("3 years, 2 months and 4 days") is the format you would write into a renewal letter, a press release, or an audit report.

Doing it in your head: the "round and adjust" trick

If you do not have a calculator, here is a quick mental hack accurate to within a day or two:

  1. Subtract the birth year from the current year.
  2. If today\u2019s month/day is earlier than the birth month/day, subtract one.
  3. For months: count from the birth month to the current month. If the day-of-month has not yet been reached this month, subtract one.

This will get you the right years and months. The day component is the tricky bit and is where you will want a calculator.

A word about old calendars

The Gregorian calendar was introduced in 1582 and adopted by different countries at very different times. Russia did not adopt it until 1918; Greece until 1923. For genealogy involving dates before adoption in the relevant country, the difference between the Julian and Gregorian calendars matters. Most modern calculators (including ours) use the proleptic Gregorian calendar — that is, they apply the Gregorian rules backward in time even before 1582. This is the convention recommended by ISO 8601 and is correct for most purposes, but if you are working from an original document you should note which calendar the document used.

Putting it all together

Calculating your exact age is not hard, but it is not as trivial as subtraction. The borrowing rule gives you the standard Y M D format that legal and medical documents require. The leap-year exceptions matter at century boundaries. Time zones produce surprising edge cases that you can usually ignore. And in clinical or educational contexts, the format Y;M.D is universal.

If you would rather have a computer do the work, our age calculator applies all the rules in this article to any date you enter — and like every tool on this site, the math runs in your browser without sending your date of birth anywhere.


Found an error? Email info@agecalculating.com — we publish corrections within 48 hours.