Age Calculator
The age calculator works out your exact age in years, months and days from your date of birth, and also shows your age in total days, months and weeks.
verified_userReviewed by the Calculopedia editorial teamLast updated 2026-08-14
Embed on your site
Embed this calculator on your site:
<iframe src="https://calculopedia.darzh.xyz/embed/age-calculator/" width="100%" height="700" style="border:0;border-radius:12px" loading="lazy"></iframe>
quizExample
How this calculator works, with real numbers (no JavaScript needed):
Inputs
- Date of birth
- 1995-06-15
- Calculate age as of
Results
- Your age
- 31 years, 2 months, 15 days
- Years
- 31
- Months
- 2
- Days
- 15
- Total days alive
- 11,399
- Total months
- 374
- Total weeks
- 1,628
- Next birthday
- 15 June 2027
- Days until your birthday
- 289
functionsThe formula
An age calculator tells you exactly how old you are — years, months and days — by subtracting your date of birth from another date (today by default) and expressing the result in the calendar units people actually think in.
How the calculation works
It is not simple day-count subtraction. An age is measured in calendar units — years, then months, then days — because that is how we describe age in everyday language, on forms, and in legal documents. The trick is that a "month" is not a fixed number of days (28, 29, 30, or 31 depending on the month and year), which is exactly why this cannot be done with raw day math alone.
For someone born on 15 June 1995, aged as of 14 August 2026:
- Years: 2026 − 1995 = 31 years
- Months: August − June = 2 months
- Days: 14 − 15 = −1 → this is negative, so we borrow one month (which becomes 30 days because July has 31 days), leaving 1 month and 30 days
- Final result: 31 years, 1 month, 30 days
Borrowing and edge cases
The borrow step is the part most manual calculators get wrong. When the birth day is later in the month than the "as of" day, you take a month back from the month count and add the length of the previous month to the day count. Because months differ in length, the number of days you borrow depends on which month just ended — August borrows from July (31 days), while borrowing from September pulls from August (also 31), and borrowing from March pulls from February (28 or 29 in a leap year).
Birthdays on 29 February are handled by convention: in non-leap years, the calculator rolls the "anniversary" to 28 February (in many legal and financial systems, the day before 1 March). So an age in days counted between leap years stays consistent.
What else the calculator shows
- Total days alive — the raw count of full days from birth to the "as of" date, useful for milestone tracking and for comparing ages across different birthdays
- Total months — the day count expressed as months (approximately), and total weeks
- Next birthday — always the next occurrence of your birth month and day after the "as of" date, rolling to the following year if your birthday has already passed this year
- Days until your next birthday — the gap in days, which the total-days figure makes easy to verify
Real-world uses
An age calculator is more than a novelty:
- Retirement and pension planning — benefits such as EPF, NPS and many private pensions unlock at specific ages, and both the exact age and the date you cross each threshold matter.
- KYC, insurance and lending — age changes eligibility and premiums, so documents often demand the precise years, months and days.
- School and college eligibility — admission cut-offs are usually stated as "at least 17 years of age" on a particular date.
- Medical reference ranges — growth charts, dosage tables and screening guidelines are indexed to exact age.
- Legal and contractual mileposts — from driving licences to the age of majority in different jurisdictions.
The "calculate as of" date is the key feature here: you are not stuck with today. You can check someone's age on a contract signing date, a court date, or a historical event, which is far more flexible than a "how old am I today" tool.
Historical note
Recording a person's age in years, months and days is an age-old practice, but the modern Gregorian birthday calendar only became standard across Europe in the 16th and 17th centuries, replacing the Julian calendar with its slightly different month-length and leap-year rules.
helpFrequently asked questions
question_markHow do I calculate my age?
Subtract your date of birth from today's date in years, months and days. Enter your date of birth in this calculator and it does the calendar math instantly.
question_markHow do I calculate age from date of birth?
Start from the birth year and count forward, then months, then days, borrowing across months where needed (e.g., from 15 June 1995 to 14 Aug 2026 is 31 years, 1 month, 30 days).
question_markHow many days old am I?
The calculator shows your total days alive — the exact number of days from your birth date to today.
question_markHow is my next birthday calculated?
The calculator finds the next occurrence of your birth month and day after today, adding a year if your birthday already passed this year. If you were born on 29 Feb, it uses 28 Feb in non-leap years.