Calculate your exact age in years, months, and days from any birthdate.
Calculating age sounds simple but involves several subtleties. The most obvious: leap years. A year is not exactly 365 days โ it averages 365.25 days. This means simply dividing the number of days since birth by 365 gives a slightly wrong answer for many dates.
Calendar months have different lengths (28, 29, 30, or 31 days depending on the month and whether it is a leap year). A person born on January 31 who is 1 month old could be measured on February 28 or 29, March 1, or March 2 depending on how "one month" is defined. The standard convention: one month later means the same day number in the following month, or the last day of that month if the number doesn't exist.
Leap day birthdays (February 29) present a special case: in non-leap years, most conventions celebrate the birthday on either February 28 or March 1, depending on jurisdiction. Legal age calculations in many countries recognize February 28 as the effective birthday in non-leap years.
Legal age thresholds (voting at 18, retirement at 65, pediatric dosing calculations) require precise age determination. In most jurisdictions, you reach a given age on the anniversary of your birth date โ the start of your birthday, not the end. A person born on December 31 turns 18 at 12:00:01 AM on December 31 of their 18th year.
Medical dosing, especially for children, sometimes uses age in months rather than years for precision. A 23-month-old and a 24-month-old may receive different medication doses despite being very close in age. Pediatric growth charts use age in months through age 2 for the same reason.