DateBuffet

How to Calculate Your Exact Age (Down to the Day)

6 min readUpdated September 2026
Birthday cake with candles

Age looks like the simplest date calculation there is — subtract the birth year from the current year and you are done. In practice that quick trick is wrong for most of the year, because it ignores months, days and leap years. Here is what is actually going on, how to get an exact answer, and which conventions quietly change that answer.

Why subtracting years is not enough

If you were born in December 1990, then in August 2026 the year difference is 36 — but you have not turned 36 yet, because your birthday has not arrived. Your real age is still 35. Subtracting years only gives the correct result on and after your birthday within the current year; before it, the number is one too high.

To be correct you have to compare the whole date — year, month and day — and only count a full year when the month-and-day of the current date has reached the month-and-day of birth.

The error is not an edge case. For any given person the shortcut is wrong on every day from January 1 up to the day before their birthday, which averages out to roughly half the year. Across a list of people, that means a sizeable share of the ages you compute this way are a year too high at any moment — enough to fail an eligibility check or wave through a minimum-age gate.

Months and days make it harder

Expressing age as "years, months and days" introduces a subtlety: months have different lengths. Going from January 31 to March 1 is not obviously "one month and one day", because February sits in between with 28 or 29 days. A dependable method anchors the calculation to whole months measured from the birth date, then counts the leftover days — which is exactly how DateBuffet's age calculator works.

A second subtlety hides in the same calculation: which month you borrow days from. Implementations subtract year, month and day separately and borrow when a component goes negative, but they disagree about the length to borrow. From January 31 to March 30, borrowing February's 28 days leaves a remainder of 27, while borrowing January's 31 leaves 30. Both answers describe the same elapsed time; they only split it differently.

That is why the total number of days is the figure to compare when two tools disagree. Days carry no convention: the count from one calendar date to another is the same everywhere. The years-months-days breakdown is a human-friendly presentation layered on top of it, and two reasonable implementations can differ by a day in the remainder without either of them being wrong.

Leap years and February 29

People born on February 29 only see their exact birthday once every four years. For age purposes the common convention is that their birthday "lands" on February 28 in non-leap years, so they still age by one year annually. Any good age calculator handles the leap-year rule (divisible by 4, except centuries not divisible by 400) so totals in days stay accurate across decades.

The century exception almost never bites, which is why it is so easy to forget. Between 1901 and 2099 every year divisible by four really is a leap year, so code that ignores the 400-year clause behaves correctly for everyone alive today. It still shapes the calendar: 2000 was a leap year, 1900 and 2100 are not, and the resulting 97 leap days per 400 years make the average Gregorian year 365.2425 days long.

Legal systems are less consistent than calculators. Some jurisdictions treat a February 29 birthday as falling on February 28 in common years, others on March 1, and that choice can decide whether someone reaches a threshold age a day earlier or later. The elapsed days are unaffected either way — only the label attached to the anniversary moves.

Age in days, weeks and hours

Expressing age purely in days sidesteps every month-length question, which is why medical records, service histories and developmental charts prefer it. The trap is estimating rather than counting. A ten-year span holds either two or three leap days depending on where it starts, so it runs to 3,652 or 3,653 days — not the 3,652.5 that multiplying by 365.25 suggests.

Going finer than a day requires a time of birth, and most people do not have one to the minute. If you do, remember that an age in hours is not days times 24: where clocks change, one local day each spring is 23 hours long and one each autumn is 25. Measure elapsed hours on an absolute scale first, then present the result in local terms.

Not every culture counts age the same way

Completed years since birth is the international convention, not a universal law. In the traditional East Asian system a newborn is one year old at birth and everybody gains a year at New Year rather than on their own birthday, so a child born in late December can be counted as two within days. South Korea was the last country where that reckoning stayed in routine official use; a law that took effect in June 2023 made the international count the default there.

Industry rules add another layer. Life insurers often price on "age nearest birthday" rather than "age last birthday", which makes an applicant seven months past their birthday a year older on the form than in their passport. Tax, pension and school-entry rules frequently use age at a fixed cut-off — the end of the calendar year, or the start of the school year — instead of age today. It is worth checking which one a form means before writing in the obvious number.

Storing a birth date and checking the result

Keep a birth date as a plain calendar date, with no time and no zone, and compare it to today's local date. Convert either side into a timestamp and you attach a midnight that belongs to one particular zone: a person born at 00:20 in Tokyo was born on the previous day in UTC terms, and near a birthday the answer then flips by a whole year depending on where the calculation runs.

Then sanity-check the output. On a birthday, both the month and day remainders should read zero. Someone born on February 29 should gain a year every year, not every fourth. And the total days should sit within a day of the years multiplied by 365.2425. When a calculator disagrees with a colleague's spreadsheet, compare total days first: spreadsheets subtract dates as serial day numbers, so that figure is trustworthy even when the month breakdown is not.

The takeaway

For an exact age, compare full dates — not just years — and let the tool handle month lengths and leap years. Enter a birth date in the age calculator to see years, months, days and the countdown to the next birthday.

Related tool
Age Calculator

Your exact age in years, months and days — plus the next birthday.