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

  1. 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.
  2. Completed months: from that birthday, count full calendar months to the target date. A month completes on the same day of the next month.
  3. Remaining days: the days left after the last completed month are counted one by one.

Edge cases

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

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.