How to Calculate Age Between Two Dates
Learn how to calculate exact age in years, months, and days between two dates, and why simply dividing total days by 365 gives an inaccurate result.
Understanding the Calculation
Calendar age is normally expressed as years, months, and days — not as a single decimal number — because that's how birthdays and calendars actually work. Someone is 36 years old the moment their 36th birthday passes, regardless of how many total days that took.
The tricky part is that months don't all have the same number of days, and years aren't all the same length either, because of leap years. A method that just divides total elapsed days by 365 will drift slightly out of sync with true calendar age over time.
The reliable way to calculate age is to work directly with the calendar: subtract year, month, and day components in order, borrowing from the next larger unit when a smaller one goes negative — the same way you'd subtract two numbers with borrowing in arithmetic.
The Formula
Age = (Reference Year - Birth Year) years, adjusted by whether the birthday has occurred yet in the reference year, plus remaining months and daysBecause months have different lengths (28-31 days) and years can be 365 or 366 days (leap years), calendar age has to be calculated by walking through the actual calendar rather than with a single fixed-length division.
Variables & Definitions
- Birth Date— Starting Date
- The date being measured from (e.g. a birth date).
- Reference Date— Ending Date
- The date being measured to (e.g. today's date).
- Years— Completed Years
- Full years elapsed, only counting a year as complete once the birth month and day have occurred in the reference year.
- Months / Days— Remaining Months and Days
- What's left over after subtracting completed years, calculated from the most recent birthday to the reference date.
Worked Example
Worked Example: Age from a Birth Date to a Reference Date
Calculate the exact age of someone born on June 15, 1990, as of September 26, 2026.
- Birth Date:June 15, 1990
- Reference Date:September 26, 2026
- 1
Count full years
2026 - 1990 = 36 years. Since the birth month/day (June 15) has already passed by the reference date (September 26) in 2026, all 36 years are complete.
2026 - 1990 = 36Result: 36 complete years - 2
Find the most recent birthday
The most recent birthday before the reference date is June 15, 2026.
Result: Most recent birthday: June 15, 2026 - 3
Count remaining full months
From June 15 to September 15 is exactly 3 full months (June 15 → July 15 → August 15 → September 15).
June 15 → September 15 = 3 monthsResult: 3 complete months - 4
Count remaining days
From September 15 to September 26 is 11 days.
26 - 15 = 11Result: 11 days
Calculate Your Own Numbers
Put these formulas into practice with our free, in-browser calculators:
What the Results Mean For You
- Dividing total elapsed days by 365 undercounts slightly for anyone whose date range includes leap years, since those years actually have 366 days. Over a 36-year span, several leap years accumulate, which is enough to shift a days/365 estimate away from the true calendar age.
- Calendar age (years, months, days) is the standard, intuitive way people express age, and it's exact by construction — it doesn't need a leap-year correction because it works directly with real calendar months and years instead of an average day count.
- When someone's reference date falls before their birth month/day in the current year (for example, checking age in March for someone born in June), the year count must not include the current year yet — this is the 'has the birthday happened this year' check.
Common Pitfalls & Mistakes
Estimating age with days ÷ 365
This treats every year as exactly 365 days, ignoring leap years, and produces a fractional-year estimate that drifts from true calendar age the longer the time span.
Forgetting to check whether the birthday has occurred yet
Simply subtracting birth year from reference year overcounts by one year whenever the reference date falls before the birth month/day within that year.
Assuming every month has the same number of days
Counting 'months remaining' by treating every month as 30 days produces incorrect results — the day count must follow the actual calendar (28-31 days per month, with February varying by leap year).
Authoritative References & Sources
All formula representations and regulatory context are verified against authoritative public sources:
- Introduction to CalendarsU.S. Naval Observatory / USNO Astronomical Applications Department
Reference on the Gregorian calendar's leap-year rules and calendar structure.
Visit source documentation