How to calculate an exact age
Age in whole years is easy. Age in years, months and days is harder, because months have different lengths and some birthdays fall on February 29. This page shows a method that always gives a consistent answer.
Age calculator
Whole years only
Subtract the birth year from the current year. Then ask one question: has the birthday happened yet this year? If not, subtract one. Someone born on 14 June 1990 is 33 on 3 March 2024, because 2024 − 1990 = 34 but the June birthday has not arrived.
Years, months and days by hand
- Count the whole months from the birth date to the target date. A month counts once the same day number is reached.
- Split those months into years (divide by 12) and leftover months.
- Count the days from the last month anniversary to the target date.
Worked example. Born 14 June 1990. Target date 3 March 2024.
- From 14 June 1990 to 14 February 2024 is 404 whole months, which is 33 years and 8 months.
- 14 March 2024 has not arrived, so the last anniversary is 14 February 2024.
- From 14 February to 3 March 2024 is 18 days (2024 is a leap year, so February has 29 days).
- Answer: 33 years, 8 months, 18 days, or 12,316 days in total.
When the day does not exist
A month anniversary can land on a date that is not in the calendar, such as 31 April. A clear rule is needed. This page uses the last day of the month when the day number is missing. The same rule is used by common date libraries, so results match most software.
| Born | Measured on | Result |
|---|---|---|
| 31 Jan 1985 | 1 Mar 2024 | 39 years, 1 month, 1 day |
| 31 Mar 1985 | 30 Apr 2024 | 39 years, 1 month, 0 days |
| 31 Dec 1999 | 1 Jan 2024 | 24 years, 0 months, 1 day |
| 20 Aug 2010 | 19 Aug 2024 | 13 years, 11 months, 30 days |
Leap years and February 29
A year is a leap year if it divides by 4, except century years, which must also divide by 400. So 2000 and 2024 were leap years, while 1900 was not and 2100 will not be.
For someone born on 29 February, the month-end rule makes 28 February the birthday in common years:
- Born 29 Feb 2000, on 27 Feb 2023: 22 years, 11 months, 29 days.
- Same person on 28 Feb 2023: 23 years, 0 months, 0 days.
- On 28 Feb 2024 (a leap year): 23 years, 11 months, 30 days, because the real birthday arrives the next day.
Some forms and rules treat 1 March as the birthday in common years instead. If a legal or official age matters, check the rule that the organisation uses.
Total days between two dates
For a day count, convert both dates to a day number and subtract. Spreadsheets do this when you subtract one date cell from another. The calculator does the same in UTC, so a daylight saving change cannot add or lose an hour and shift the result.
Common mistakes
- Dividing total days by 365. Leap days make this drift, and it cannot give months.
- Borrowing 30 days for every month. Months have 28 to 31 days, so a fixed borrow gives wrong day counts.
- Using local midnight timestamps. A daylight saving shift can make a day appear 23 or 25 hours long.
FAQ
Why can two calculators disagree by a day?
They may use different rules for missing month ends or February 29. Both can be consistent; they just follow a different convention.
Does this count the birth date as day one?
No. On the day of birth the age is 0 days, the same way you are 0 years old until the first birthday.
Is my date of birth saved?
No. The calculation runs in your browser and nothing is sent or stored.