Everyday Life · Time & Date
Age Calculator
Calculates your exact age in years, months, and days from your date of birth to a target date.
Calculator
Formula
Age is computed as the elapsed time between the date of birth (D_birth) and the target date (D_target), broken down into complete years, remaining complete months, and remaining days. A year increments each time the anniversary of the birth date is reached. A month increments each time the day-of-month of the birth date is reached within the year portion. Remaining days are the leftover days after whole months are counted.
Source: Standard calendar arithmetic based on the proleptic Gregorian calendar system, ISO 8601 date standard.
How it works
Age is not simply the difference between two calendar years. A person born on 15 June 1990 does not turn 35 until 15 June 2025, even if both dates fall in years that are 35 years apart. Accurate age calculation requires tracking complete anniversaries of the birth date, taking into account varying month lengths, leap years, and whether the birth day has already passed in the current year. This is the standard method used in legal, medical, and administrative contexts worldwide.
The calculation proceeds in three steps. First, the number of complete years is found by counting how many full anniversaries of the birth date have elapsed before the target date. Second, the number of remaining complete months is computed by advancing the birth date by the calculated years and then counting how many full months fit before the target date. Third, the remaining days are found by advancing from the last whole-month mark to the target date. Additionally, the total days elapsed is calculated simply as the difference between the two dates in milliseconds converted to days, and total weeks is derived from that figure.
Practical uses are wide-ranging. Medical professionals use precise age to determine drug dosages for paediatric patients, where the difference between 11 months and 12 months can be clinically significant. Legal systems use exact age to establish eligibility for voting, driving, retirement, and contracts. Genealogists use it to verify historical records. Parents use it to track infant developmental milestones. Immigration authorities use it to verify age-based visa eligibility. The calculator follows the proleptic Gregorian calendar, consistent with ISO 8601, which is the international standard for date representation.
Worked example
Suppose a person was born on 15 June 1990 and the target date is 10 January 2025.
Step 1 — Calculate complete years: From 1990 to 2025 is a raw difference of 35 years. However, the birthday (15 June) has not yet occurred in 2025 by 10 January, so we subtract one year. Complete years = 34.
Step 2 — Calculate remaining months: Advance the birth date by 34 years to get 15 June 2024. Now count complete months from 15 June 2024 to 10 January 2025. July, August, September, October, November, December = 6 complete months (since the 15th of each month was passed). January 10 is before January 15, so January does not complete. Remaining months = 6.
Step 3 — Calculate remaining days: Advance from 15 June 2024 by 6 months to reach 15 December 2024. Count days from 15 December 2024 to 10 January 2025: 16 days remaining in December + 10 days in January = 26 remaining days.
Result: Age = 34 years, 6 months, 26 days.
Total days lived: From 15 June 1990 to 10 January 2025 = approximately 12,632 days, which equals approximately 1,804 complete weeks.
Limitations & notes
This calculator uses the proleptic Gregorian calendar for all calculations. Dates before the adoption of the Gregorian calendar (15 October 1582 in most Catholic countries; later in others) may not accurately reflect historical age as recorded at the time, since the Julian calendar was in use. People born on 29 February (leap day) are handled correctly — their birthday is considered to fall on 28 February in non-leap years for the purposes of this calculator, which is the most common legal convention, though some jurisdictions use 1 March instead. The calculator does not account for time-of-day or timezone differences; if a person was born late at night and the target date is early morning of what would be their birthday, the result may differ by one day depending on local timezone. For ages spanning very large historical ranges, minor discrepancies may arise from leap year irregularities. This tool is intended for general reference; for legal or medical determinations, always consult the relevant authority or official record.
Frequently asked questions
How is age calculated when the birthday hasn't occurred yet this year?
When the birthday falls after the target date within the current year, one full year is subtracted from the raw year difference. For example, if someone born on 20 November 1995 is measured on 1 March 2025, they have not yet had their birthday in 2025, so their age is 29, not 30. The remaining months and days are then counted forward from the last birthday that occurred.
What happens if someone is born on 29 February — a leap day?
For people born on 29 February, their birthday is treated as falling on 28 February in non-leap years. This is the most widely used legal convention in most countries, including the UK and the US. Some jurisdictions (notably some parts of East Asia) treat 1 March as the equivalent non-leap birthday. Always check the relevant legal standard if this distinction matters for official purposes.
Why is simple year subtraction not accurate enough?
Subtracting birth year from current year gives the age you will turn during that calendar year, not your current age. A person born on 31 December 2000 and measured on 1 January 2025 would show a raw year difference of 25 but is actually only 24 years old, having celebrated their 24th birthday just two days prior. Precise age calculation requires checking whether the birthday has passed in the current year.
What is the difference between total days and age in years, months, and days?
Total days is a straightforward count of calendar days elapsed between two dates, useful for comparing durations or calculating rates. Age in years, months, and days is a human-readable breakdown that reflects how people experience and communicate age. Both represent the same elapsed time, just expressed differently. Total days is more useful in scientific or engineering calculations, while the year-month-day format is standard in legal and social contexts.
Can this calculator be used to calculate the age of objects, documents, or historical events?
Yes. The calculator works for any two dates, not just human birthdays. You can enter the date a building was constructed, a document was signed, or a historical event occurred as the 'date of birth' field and today's date as the target to find the exact age of that item or event. This is useful in archaeology, archival research, engineering asset management, and legal document verification.
Last updated: 2025-01-15 · Formula verified against primary sources.