The Mathematics Behind Exact Age Calculations
In this guide
Working out an exact age sounds trivial until months have different lengths, leap years intervene, and someone born on 29 February needs a birthday. A good calculator handles these details so that the answer in years, months and days is right.
Years, months and days
Exact age is calculated by counting complete years from the birth date, then complete months, then the remaining days. Someone born on 15 March 2000 is, on 10 June 2026, 26 years, 2 months and 26 days old. The day count depends on the length of the month you are borrowing from, which is where hand calculations go wrong.
Leap years
A leap year has 366 days, occurring every four years, except century years not divisible by 400. So 2000 was a leap year and 1900 was not. Counting total days between two dates must include the extra days, while counting years does not.
People born on 29 February
These people have a birthday only in leap years. Many places treat 28 February or 1 March as the legal birthday in other years, and the rule differs by jurisdiction. For legal purposes such as age limits, check the local rule.
Time zones and cut-offs
A person born late at night may have a different calendar date in another time zone. For eligibility, such as school entry or retirement, authorities define the cut-off date, so use their rule and not just an age figure.
Uses
Application forms, milestone planning, finding the number of days between two dates, and countdowns. Enter dates carefully and use the same date format throughout.
Worked example: 15 March 2000 to 10 June 2026
The Age Calculator returned 26 years, 2 months and 26 days for a birth date of 15 March 2000 and an end date of 10 June 2026, with 9,583 total days, 1,369 whole weeks and a next birthday on Monday 15 March 2027. A date calculation in Python gives the same 9,583 days.
Notice how the answer is built: 26 whole years take you to 15 March 2026, then two whole months reach 15 May, then 26 days reach 10 June. Different tools may count the last partial month differently, so use the same method when you compare results.
Key Takeaways
- Count whole years, then months, then days.
- Leap years add a day every four years, with exceptions.
- 29 February birthdays follow local rules.
- Official age cut-offs may differ from simple calculation.
Frequently Asked Questions
Was 1900 a leap year?
No. Century years must be divisible by 400, so 2000 was a leap year but 1900 was not.
How old is someone born on 29 February?
Age counts whole years elapsed; birthdays in non-leap years follow local convention.
Why do online calculators sometimes differ by a day?
They may count inclusively or use different month-length rules.
Free tools mentioned in this guide
Browse every Calculator Tools utility, or see all tools.