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.
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.
- 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 date | Exact age | Total days |
|---|---|---|
| 19 May 2026 | 35 years, 11 months, 29 days | 13,148 |
| 20 May 2026 | 36 years, 0 months, 0 days | 13,149 |
| 21 May 2026 | 36 years, 0 months, 1 day | 13,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.
| Age | Total months | Approx. days |
|---|---|---|
| 1 year | 12 | 365 |
| 10 years | 120 | 3,652 |
| 18 years | 216 | 6,574 |
| 21 years | 252 | 7,670 |
| 30 years | 360 | 10,957 |
| 40 years | 480 | 14,610 |
| 50 years | 600 | 18,262 |
| 65 years | 780 | 23,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.
| Year | Leap? | Why |
|---|---|---|
| 2024 | Yes | Divisible by 4, not a century |
| 2025 | No | Not divisible by 4 |
| 1900 | No | Century, not divisible by 400 |
| 2000 | Yes | Century, divisible by 400 |
| 2100 | No | Century, 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?
When do people born on February 29 celebrate their birthday?
How do I count the days between two dates by hand?
Should I count both the start and end dates?
Why do two age calculators give different answers?
What Excel formula calculates age from a date of birth?
How many days old am I, and why can't I just multiply my age by 365?
What is Korean age, and what changed in 2023?
What is corrected age for a premature baby?
What does 'age as of' mean on a form?
At what exact moment do I turn a year older?
More guides
How Loan EMI Is Calculated (Formula + Examples)
Rent vs Buy: The True Cost Comparison Guide
BMI Chart Explained: Categories & Formula
💬 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.