Home › Guides › How to Calculate Age and Date Differences
🎂

How to Calculate Age and Date Differences

Learn exactly how age is computed from two dates, how leap years and birthdays affect the result, and a hand method for any date difference. Free calculator inside.

Try it yourself: use our free Age Calculator to apply what you learn below.

How old am I, exactly? It sounds like a question with an obvious answer, but computing age from dates — in years, months, and days — trips up more people than you would expect. Leap years, month lengths, and whether a birthday has passed this year all change the result.

The same arithmetic answers many everyday questions: how long someone has worked at a company, how many days until a deadline, or how many weeks along a pregnancy is. This guide shows how the calculation works, how to do it by hand, and where the edge cases hide — or skip the arithmetic with our free Age Calculator.

What 'age' actually means

Your age is the time passed since you were born, measured in completed calendar units: the difference between your date of birth and a second date, usually today. The rest of this guide measures that gap.

Three ideas keep the subject straight. First, age starts at zero: a newborn is 0, not 1, and stays 0 until the first birthday. Second, age counts completed years: you are 36 from your 36th birthday until the day before your 37th, while living through your 37th year of life. Confusing “37th year of life” with “37 years old” is a classic off-by-one error.

Third, every age needs a reference date, the “as of” date. “How old is she?” means “how old is she as of today?” Change the reference date and the answer changes, though the birthday stays fixed. Forms asking “age as of 1 September” name that date in advance.

Key takeaways
  • Age = reference date minus birth date, in completed years, months, days.
  • You are 0 at birth; age rises only on birthdays.
  • Always name the “as of” date.
  • Leap days change day counts, never year counts.

The formula, with worked examples

The completed-years formula fits on one line: subtract the birth year from the reference year, then subtract 1 if this year’s birthday has not happened yet. Age = (reference year − birth year) − 1 before the birthday, and Age = reference year − birth year after it.

For the exact age, count forward from the most recent birthday: whole calendar months first, then leftover days. When the birth day does not exist in a month — the 31st reaching a 30-day month — calculators use the month’s last day as the stand-in.

One birthday, 20 May 1990, across three days: the day before is 35 years, 11 months and 29 days, not “almost 36”: age jumps a whole year on the birthday itself.

Reference dateExact ageTotal days
19 May 202635 years, 11 months, 29 days13,148
20 May 202636 years, 0 months, 0 days13,149
21 May 202636 years, 0 months, 1 day13,150

Second check: born 15 August 1988, measured 10 June 2026, gives 37 years, 9 months, 26 days — 37 years to 15 August 2025, 9 months to 15 May 2026, then 26 days. If your count differs, re-check the borrowing step below, or use our free Age Calculator.

How Age Is Computed, Step by Step

Computing age means answering three questions in order: how many full years, then how many full months, then how many days. Start with the years: subtract the birth year from the current year, then subtract one more year if the birthday has not happened yet this year.

Next the months: count the whole months between the birthday month and the current month, adjusting if the birthday day has not arrived yet. Then count the remaining days. Someone born on 14 March 1990, measured on 8 October 2026, is 36 years, 6 months, and 24 days old.

The fiddly part is that months have different lengths, so one month after 31 January is not a fixed number of days — most calculators resolve it by counting calendar months rather than 30-day blocks. That is also why doing it by hand feels harder than it should.

The Hand Method: Borrowing Like Subtraction

To find the difference between two dates by hand, write the later date above the earlier one as year-month-day and subtract column by column, borrowing exactly as in ordinary subtraction. If the day column goes negative, borrow the number of days in the previous month; if the month column goes negative, borrow 12 months from the year.

Example: from 14 March 1990 to 8 October 2026. Days: 8 minus 14 will not work, so borrow September's 30 days: 38 minus 14 = 24 days. Months: October is month 10, but we borrowed one, so 9 minus 3 = 6 months. Years: 2026 minus 1990 = 36 years. Result: 36 years, 6 months, 24 days.

The only step that needs care is knowing how many days to borrow, which depends on the month you borrow from — 28, 29, 30, or 31. Get that right and the method never fails; get it wrong and the day count slips by one or two.

Age in months, weeks, days and hours

Age is also expressed in months (babies), weeks (pregnancies) and days (milestones), each with its own rule.

Total months are simple: completed years × 12 plus completed months, so 2 years and 7 months is 31 months. Total days are counted one calendar day at a time, leap days included: no shortcut formula, only counting (or a calculator). Total weeks are total days ÷ 7, with the remainder as leftover days: 100 days is 14 weeks and 2 days. Hours are total days × 24.

Years × 365 fails on leap days. Two people turning 18 in 2026 can differ by a day: born 15 February 2008 means 6,575 days to the 18th birthday, born 15 March 2008 means 6,574, because 29 February 2008 falls inside the first span only. Multiplying by 365.25 fails too: leap days arrive in clumps. The average month (365.2425 ÷ 12 ≈ 30.44 days) is why calculators disagree on months and days but never on years: real months run 28–31 days.

Day counts below use the average year, so they are approximate; months are exact.

AgeTotal monthsApprox. days
1 year12365
10 years1203,652
18 years2166,574
21 years2527,670
30 years36010,957
40 years48014,610
50 years60018,262
65 years78023,741

Leap years: the 4-100-400 rule

The rule: a year is a leap year if it divides evenly by 4, except century years, which must also divide evenly by 400. So 2024 and 2028 are leap years, 1900 was not, 2000 was, and 2100 will not be. The century exception holds the average year at 365.2425 days, near the tropical year of about 365.2422 days.

YearLeap?Why
2024YesDivisible by 4, not a century
2025NoNot divisible by 4
1900NoCentury, not divisible by 400
2000YesCentury, divisible by 400
2100NoCentury, not divisible by 400

Over 400 years the rule gives exactly 97 leap years — 100 multiples of 4, minus 3 century years failing the ÷400 test — totalling 146,097 days: 146,097 ÷ 400 = 365.2425, the Gregorian average year.

When does a 29 February baby turn a year older in a common year? In Scotland, the Age of Legal Capacity (Scotland) Act 1991, section 6, puts the anniversary on 1 March. In England and Wales, the Family Law Reform Act 1969, section 9, names no substitute date, so convention decides; families celebrate on 28 February or 1 March by custom.

If births were spread evenly, about 1 in 1,506 babies would arrive on 29 February (97 leap days in 146,097).

Leap Years and the February 29 Problem

People born on February 29 face a small annual puzzle: in common years, is their birthday February 28 or March 1? Most legal systems pick one by convention, and most age calculators treat March 1 as the birthday in non-leap years, though some use February 28 — which is why two tools can disagree by a day.

For ordinary date differences, leap days simply count as days like any other. A span that crosses February 29 of a leap year contains one more day than the same span in a common year, and careful calculators account for this automatically.

Calculating age in Excel and spreadsheets

Spreadsheets have a purpose-built function: DATEDIF(start, end, unit). "Y" gives completed years, "M" total months, "D" total days, "MD" leftover days after whole months, "YM" leftover months after whole years, "YD" leftover days after whole years. A full age needs three calls, one per unit.

One warning. Microsoft’s support page says DATEDIF exists for old Lotus 1-2-3 workbooks and “may calculate incorrect results under certain scenarios”. MD carries an explicit caution: Microsoft does not recommend it, as it “may result in a negative number, a zero, or an inaccurate result”.

The standard workaround avoids MD: take total months with DATEDIF, step forward with EDATE, subtract — =end - EDATE(start, DATEDIF(start, end, "M")) — leaving the days after all whole months.

Reversed dates return #NUM!, not a negative age. For a plain day count, subtract the dates (=end - start) and format the result as a number.

Beyond Birthdays: Everyday Uses

The same arithmetic measures job tenure (five years and three months of experience), project timelines, and rental periods. Employers, landlords, and contracts all run on exact date differences, and being able to compute them removes a surprising amount of guesswork.

Pregnancy is counted in weeks from the first day of the last menstrual period — 40 weeks being the standard full term — which is just a date difference expressed in weeks. Deadlines work the same way: the days remaining until a date, counted exclusively of today, tell you exactly how much runway is left.

Anniversaries, warranty periods, subscription renewals, and visa durations are all date differences in disguise. Whenever precision matters — a contract, a medical schedule, a legal deadline — compute the exact span rather than rounding to about six months. Our free Age Calculator handles any two dates, not just birthdays.

Special cases: babies, cutoffs, and other countries

For babies born early, doctors use corrected age: chronological age minus weeks born early (weeks early = 40 − gestational age in weeks). Born at 32 weeks (8 early), a baby aged 26 weeks has a corrected age of 18 weeks, about 4 months, used for milestones through about 24 months, on the child’s doctor’s guidance. The World Health Organization bands: extremely preterm (under 28 weeks), very preterm (28 to under 32), and moderate to late preterm (32 to under 37).

Cutoffs: schools, exams and sports ask “how old were you on the cutoff date?” One day either side can change a child’s year group, so compute against the stated date exactly, and never round.

Korea traditionally used counting age: 1 at birth, plus 1 every 1 January, so a December baby could be 2 within weeks. On 28 June 2023 South Korea made international age (man nai) the default for laws and official documents, via December 2022 amendments to the Civil Act and the General Act on Public Administration. Year age (yeon nai) remains for alcohol, tobacco and military service.

Two final traps: use the birth-certificate date, the local date where the birth happened, not a converted one. And formats: ISO 8601 writes YYYY-MM-DD (2026-06-10), unambiguous, while 06/10/2026 is 10 June in the US and 6 October elsewhere. A day/month swap is the first suspect when a spreadsheet misreads a date.

Mistakes That Throw Off the Count

The most common error is the off-by-one: counting both the start and end dates when you should count only one of them. If an event runs from Monday to Friday, that is 4 days of elapsed time but 5 calendar days touched — decide which one you mean before you start.

The second is treating every month as 30 days. Over a few months the error is small, but across years of tenure or interest calculations it compounds into something meaningful. Always borrow the actual month length.

Finally, remember that time of day and time zone rarely matter for calendar-age math but matter enormously for deadlines: due October 10 in one time zone can be October 11 in another. For legal and travel purposes, pin down the exact moment, not just the date.

Frequently asked questions

How is age calculated from a birth date?
Subtract the birth year from the current year, then subtract one more year if this year's birthday has not happened yet. Months and days are counted the same way, borrowing month lengths as needed — which is why most people use a calculator for the exact figure.
When do people born on February 29 celebrate their birthday?
In non-leap years there is no February 29, so by convention the birthday is observed on February 28 or March 1 depending on local law and family choice. Most age calculators use March 1, but a few use February 28, which can shift results by a day.
How do I count the days between two dates by hand?
Subtract the earlier date from the later one column by column (day, month, year), borrowing the correct number of days when the day column goes negative. Alternatively, count whole months first and then the leftover days.
Should I count both the start and end dates?
Pick one convention and stay consistent. Elapsed time between two moments counts the end but not the start; days touched counts both. Deadlines and durations almost always mean elapsed time.
Why do two age calculators give different answers?
They usually differ on conventions, not arithmetic: whether February 29 birthdays fall on February 28 or March 1, and whether day counts are inclusive or exclusive. The differences are never more than a day or two.
What Excel formula calculates age from a date of birth?
Use =DATEDIF(birth_date, TODAY(), "Y") for completed years, "M" for months, "D" for days. Avoid "MD": Microsoft warns it can return a negative number, a zero, or an inaccurate result. For leftover days use =end - EDATE(start, DATEDIF(start, end, "M")). Reversed dates return #NUM!.
How many days old am I, and why can't I just multiply my age by 365?
It ignores leap days. Turning 18 in 2026 takes 6,575 days if born 15 February 2008 but 6,574 if born 15 March 2008: 29 February 2008 falls inside the first span only. Count calendar days for the exact figure.
What is Korean age, and what changed in 2023?
Counting age starts at 1 at birth and adds a year every 1 January. On 28 June 2023 South Korea made international age (man nai), completed years, the default for laws and official documents. Year age (yeon nai) remains for alcohol, tobacco and military service.
What is corrected age for a premature baby?
Chronological age minus weeks born early (weeks early = 40 - gestational age). Born at 32 weeks and now 26 weeks old, corrected age is 18 weeks, about 4 months. Commonly used for milestones through about 24 months, on the child’s doctor’s guidance.
What does 'age as of' mean on a form?
It names the reference date: your age on that date, not today. Schools, exams and sports use cutoff dates this way. Compute completed years, months and days against the stated date.
At what exact moment do I turn a year older?
At the first moment of your birthday, not your birth time. For 29 February birthdays, Scotland’s Age of Legal Capacity (Scotland) Act 1991 (section 6) puts the anniversary on 1 March in non-leap years; England and Wales name no substitute date.

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.