This age calculator finds your exact age in years, months and days from your date of birth. It also shows your age in total months, weeks and days, the day you were born and the days left until your next birthday.
How to use the age calculator online
- Enter your date of birth.
- The "Age on this date" box is set to today. Change it to find your age on any other date.
- Read your age in years, months and days.
- Check the extra lines: total months, total weeks, total days and the next birthday.
Forms for exams and government jobs often ask your age "as on" a cut-off date. Enter that date in the second box to get the exact figure they want.
How age is calculated
Years = full years from the date of birth
Months = full months after the last birthday
Days = days left after those months
Example: born on 15 Aug 2004, age on 4 Dec 2026.
| Step | From | To | Count |
|---|---|---|---|
| Full years | 15 Aug 2004 | 15 Aug 2026 | 22 years |
| Full months | 15 Aug 2026 | 15 Nov 2026 | 3 months |
| Days left | 15 Nov 2026 | 4 Dec 2026 | 19 days |
So the age is 22 years, 3 months and 19 days.
Common mistake: A common mistake is subtracting the birth year from the current year. 2026 − 2004 = 22 is right only after the birthday. On 1 Aug 2026 the same person is still 21.
Leap years and month ends
The calculator uses real calendar dates, so these cases come out right:
| Case | How it is handled |
|---|---|
| Leap years | February has 29 days in leap years, such as 2024 and 2028, and 28 days otherwise. |
| Born on 29 February | In years without 29 February, the birthday is taken as 28 February. |
| Born on the 31st | When a month has fewer days, the month counts as complete on its last day. |
| Total days | Every real day is counted, including 29 February. |
A year is a leap year if it divides by 4, except years that divide by 100 but not by 400. So 2000 was a leap year and 1900 was not. See the rule as code in this leap year program in Python.
Write an age calculator as a program
Age calculation is a common coding exercise because of these edge cases. Try it yourself with calculate age from date of birth, then compare your answers with this tool for dates such as 29 Feb 2000 and 31 Jan 2004.
Related date tools
- Count the days between two dates with the days calculator.
- Work out your job experience from joining and leaving dates with the experience calculator.
Pro tip: For job applications, write your age exactly as the form asks. Some ask for completed years only, which is the first number this tool shows.
Your dates stay on your device. This age calculator does not send or save them.
