Age Calculator
How old are you in years, months, and days?
Calculate your exact age in years, months, and days from your birth date to today or any specific date.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Age calculation seems straightforward until you encounter the quirks of our calendar system. A person born on January 31st will have their 1-month birthday fall on February 28th (or 29th in leap years) because February lacks a 31st day. This creates cascading effects throughout age calculations.
The algorithm works by subtracting birth year from target year, then adjusting backward if the birth month and day haven't occurred yet in the target year. When the target day is earlier in the month than the birth day, it borrows days from the previous month and adjusts the month count accordingly.
Leap years add complexity because February 29th only exists every four years (with exceptions for century years not divisible by 400). Someone born on February 29th technically ages only on leap years, but legal systems typically recognize February 28th as their birthday in non-leap years for practical purposes.
When To Use This
Right tool, right situation
Use precise age calculation for legal documents, medical records, government applications, and insurance policies that depend on exact dates. Passport applications, Social Security benefits, and age-restricted purchases all require day-level accuracy.
This calculator is also essential for milestone planning—tracking when someone will reach exactly 18, 21, or 65 years old for legal purposes. Parents use it to monitor infant development stages measured in weeks and months.
Don't rely on this calculator for historical dates before the Gregorian calendar adoption (1582 in most countries, later in others) or for cultures using different calendar systems. The calculator assumes modern Western calendar conventions throughout history.
Common Mistakes
Why results sometimes look wrong
The most common mistake is using approximate values like 30 days per month or 365 days per year. These averages create errors that compound over time, especially around month boundaries and leap years.
Another frequent error occurs when comparing ages across time zones or daylight saving transitions. Birth certificates record local time, but age calculators often use UTC time, creating off-by-one-day errors for births near midnight.
Many people miscalculate their age in months by multiplying years by 12 and adding months, forgetting that partial months require day-level precision. A person born on January 31st is not 1 month old on February 28th—they're still a few days short depending on the specific birth date.
The Math
Worked examples and deeper derivation
Age calculation involves three calendar units that don't convert evenly: years (365 or 366 days), months (28-31 days), and days. The challenge lies in handling month-end dates when the target month has fewer days than the birth month.
The algorithm first calculates the year difference, then month difference, then day difference. If days go negative, it borrows from months by adding the number of days in the previous month. If months go negative, it borrows from years by adding 12 months.
Total day calculation divides the millisecond difference between dates by 86,400,000 (milliseconds per day). This handles leap years automatically because it counts actual elapsed time rather than estimating with average values. The result is always exact, never approximate.
Expert Unlock
The thing most explanations skip
Legal systems handle edge cases differently than mathematical age calculation. Some jurisdictions consider you a day older at midnight on your birthday, while others require the full 24-hour period to pass. This matters for age-of-consent laws and mandatory retirement dates that hinge on specific timing.
How does leap year affect age calculation?
Need something this doesn't cover?
Suggest a tool — we'll build it →