Methodology: how age is calculated
Every age on this site is counted in completed years, then completed months, then remaining days. Total days are never divided by 365. All maths runs in your browser, on calendar dates only, in UTC, so daylight-saving changes cannot shift a result by a day.
The method, step by step
- Completed years: count full years from the birth date to the target date. A year completes on the birthday. Someone born 15 June 2000 completes 26 years on 15 June 2026.
- Completed months: from that birthday, count full calendar months to the target date. A month completes on the same day of the next month.
- Remaining days: the days left after the last completed month are counted one by one.
Edge cases
- 29 February birthdays count as 28 February in non-leap years. Born 29 February 2000, you turn 25 on 28 February 2025.
- Month-end births: when the birth day does not exist in a month, the last day of that month is the monthly anniversary. 31 January to 28 February is one completed month.
- Leap years: a year is a leap year when it divides by 4, except century years, which must divide by 400. 2000 was a leap year; 1900 was not; 2100 will not be.
- Same-day births: a date of birth equal to the target date is 0 years, 0 months, 0 days. A birth date after the target date is an error, not a negative age.
Worked example (verified)
Born 15 June 2000, age as on 1 September 2026 = 26 years, 2 months, 17 days. 26 years complete on 15 June 2026; 15 June to 15 August is 2 completed months; 15 August to 1 September is 17 days.
Test cases
The date engine ships with 43 automated unit tests, all passing, covering: leap years (1900, 2000, 2024, 2100), 29 February birthdays, month-end births, DOB equal to and one day before the target date, DOB after the target date, weekday and ISO week numbers, business days, zodiac and Chinese zodiac boundaries, generation labels, Korean ages, Hijri conversion (1 January 2000 = 24 Ramadan 1420), dog and cat age methods, daylight-saving-time weekends (spring forward and fall back, counted as exactly one day per calendar day), time-zone independence of the date-only arithmetic, negative month arithmetic, and the birth-date range (years-only, years-and-months, and exact).
Other methods on this site
- Zodiac: standard twelve-sign date ranges; cusp days are flagged.
- Chinese zodiac: twelve-year cycle with a Chinese New Year lookup table for 1990–2031; January and February birthdays near the boundary are flagged.
- Generations: commonly used labels (Silent, Boomer, Gen X, Millennial, Gen Z, Alpha) with the birth-year ranges shown. These are conventions, not official categories.
- Korean age: international age (official in South Korea since 28 June 2023), traditional Korean age (birth year + 1) and year age. Source: Ministry of Government Legislation, South Korea.
- Hijri age: tabular (civil) Islamic calendar conversion. Observational calendars can differ by a day.
- Dog age: 15 human years for the first year, 9 more for the second, then about 4 (small), 5 (medium) or 7 (large) per year — the American Veterinary Medical Association guideline for medium-sized dogs, as published by the American Kennel Club. An estimate, not a medical assessment.
- Cat age: 15 for the first year, 9 more for the second, then about 4 per year — the conversion in the AAHA/AAFP Feline Life Stage Guidelines (2021). An estimate.
- Birth-date range: when only an age in years is known, the birth date is a range of about a year (from the day after the same date one year further back, up to the date exactly that many years back); when years and months are known, the range is about a month; when days are known too, the date is exact.
- Retirement ages: U.S. Social Security Administration; GOV.UK; Government of Canada; Services Australia. Each country page links its official source and shows a last-reviewed date.
Last reviewed 2026-11-13. If you find a calculation error, report it on the contact page and it will be logged on the corrections page.
Author: Shahzad · Last reviewed 2026-11-13.