Skip to main content

Online Calculator Lab

📅 Date & Time

Calculate Age from Date of Birth — Step by Step

⏱ 7 min read ✍️ Online Calculator Lab

To calculate age from a date of birth sounds like the easiest maths in the world — until you actually try to do it for a date that crosses year boundaries, involves a February birthday, or lands on a day-of-month that is awkward. The steps are logical, but the edge cases are where most manual calculations go wrong.

This guide walks through the exact method used to calculate age from any date of birth: how the three-step process works, where the errors come in, and a fully worked example using one of the trickiest cases — a February 29 birthday.

📌 Quick Answer — How to Calculate Age from DOB

To calculate age from a date of birth: (1) Subtract birth year from current year, minus 1 if the birthday hasn't passed yet. (2) Count complete months from the last birthday to today, checking the day-of-month. (3) Count remaining days. Leap years and variable month lengths affect the total day count.

The Three-Step Age Calculation Method

There is no single arithmetic formula for calculating age from a date of birth — because months have different lengths, the only reliable method is a three-step process that handles each component separately.

Step 1 — Count Completed Years

Subtract the birth year from the current year. Then ask: has the birthday already occurred this year? Compare the birth month and birth day to today's month and day. If today falls before the birthday (same month but earlier day, or earlier month entirely), subtract one more year. The raw subtraction overcounts by one in that case.

Step 2 — Count Completed Months

Starting from the most recent birthday, count forward in whole months. Each whole month means you have passed that "monthly birthday" date. The check is this: has today's date reached or passed the birth day-of-month in the current month? If yes, count the current month. If no, stop at the previous month.

Step 3 — Count Remaining Days

After all complete months are counted, the remaining days are from the last "monthly birthday" date to today. This requires knowing how many days are in the last complete month — and this is where February creates a complication every four years.

💡 Expert Insight

The day-of-month check in Step 2 is what most people skip or get wrong. Consider someone born on the 28th of a month, and today is the 15th. Even if the calendar month looks "past," the person has not yet reached their monthly birthday this month — the 28th hasn't come around yet. Counting that month would add one extra month to the result. Always check the day number before including the current month in the count.

Worked Example — The February 29 Birthday Case

A February 29 birthday is the trickiest case in age calculation because the birth date only exists in leap years. Here is a fully verified example. Date of birth: February 29, 2000. Calculation date: February 28, 2025 (their 25th birthday in a non-leap year).

Verified Worked Example — Feb 29 Birthday
Date of Birth: February 29, 2000 (leap year)
Calculation Date: February 28, 2025 (25th birthday, non-leap year)

Step 1 — Completed Years:
2025 − 2000 = 25 (raw)
Feb 29 does not exist in 2025. Convention: use Feb 28.
Has Feb 28, 2025 passed on Feb 28, 2025?
Yes — it IS Feb 28 (the birthday). Birthday passed.
Completed years = 25

Step 2 — Completed Months (from Feb 28, 2026):
It is exactly the birthday (Feb 28) → Completed months = 0

Step 3 — Remaining Days:
It is exactly the birthday → Remaining days = 0

Result: exactly 25 years, 0 months, 0 days
Total days since Feb 29, 2000: 9,131 | Total weeks: 1,304
Verify: 25 × 365 + 6 leap years (2000,2004,2008,2012,2016,2020,2024)... wait, up to Feb 28 2025 = 6 leap years after 2000 → 25×365+6 = 9,131 ✓

The age calculator handles February 29 birthdays automatically using the February 28 convention, which is the standard in most insurance, immigration, and government systems worldwide.

Days in Each Month — Reference Table

When counting remaining days in Step 3, you need to know how many days are in the last complete month. This table is your quick reference:

MonthDays (Regular Year)Days (Leap Year)
January3131
February2829
March3131
April3030
May3131
June3030
July3131
August3131
September3030
October3131
November3030
December3131

Only February changes between leap and non-leap years — every other month has a fixed length. Leap years are those divisible by 4, except century years (which need to also be divisible by 400). So 2024 is a leap year, 2025 and 2026 are not, 2028 will be. The next century leap year is 2400. For a complete reference, TimeAndDate has a detailed guide to leap year rules.

3 Common Myths About Age Calculation

Myth 1: "You can calculate age with a single formula"

There is no clean algebraic formula because months have variable lengths. Software uses calendar logic — counting actual days through the calendar — not a single equation. Any formula you see (like "age = (today - DOB) / 365.25") gives an approximation, not an exact age in years, months, and days. The Gregorian calendar averages 365.2425 days per year — slightly different from 365.25 — because of the century rule. Britannica explains the history of calendar systems and why this precision matters.

Myth 2: "Leap year birthdays mean you age slower"

People born on February 29 age at exactly the same rate as everyone else — they just have fewer "official" birthday dates on the calendar. Between official Feb 29 birthdays, their legal age updates on February 28 (or March 1 in some systems) every non-leap year. The number of days they have lived is identical to anyone born on the same day and year.

Myth 3: "Total days = age × 365 is accurate enough"

Over a 26-year span (2000–2026), there are 7 leap years — that is 7 extra days not accounted for by age × 365. For a 26-year-old (on their 25th birthday), the simple estimate gives 25 × 365 = 9,125 days; the actual count is 9,131 days — a difference of 6 days, matching the 6 leap years completed in that span. Always count actual calendar days for an exact figure.

Practical Use Cases for Calculating Exact Age from DOB

Knowing how to calculate age from a date of birth precisely matters in these real situations:

  • School enrollment cutoffs — many school systems require a child to be a specific age by a cutoff date. September 1 cutoffs, for example, mean a child needs to have their birthday before that date. The exact age in years and days on the cutoff determines eligibility.
  • Medical age thresholds — screening programs, vaccine schedules, and surgical eligibility often use age thresholds to the month. A colorectal cancer screening program starting at age 45 means the patient needs to have reached exactly 45 years and 0 months.
  • Financial and loan maturity — some lending products have a maximum age at loan maturity expressed in months. A borrower must be under X total months old when the loan ends, not just under a certain year.
  • Legal age verification — alcohol purchase, driving licences, and voting registration all have specific age requirements. In most jurisdictions, the legal age is reached on the birthday, not at the beginning of the birth year.

For any of these uses, the age calculator can accept a future target date — not just today — so you can check the exact age on any date that matters. Browse the full Date & Time calculator category for related tools.

Calculate Any Age from Any Date of Birth

Enter a date of birth and any target date — today, a past date, or a future date. Get the exact age in years, months, days, and total days instantly.

Try the Age Calculator →

Frequently Asked Questions

How do you calculate age from a date of birth?

Three steps: (1) Subtract birth year from current year, minus 1 if the birthday hasn't passed yet this year. (2) Count complete months from the last birthday, checking whether today's day-of-month has reached the birth day-of-month. (3) Count remaining days after whole months. Or use the free age calculator to skip all three steps.

What is the formula for calculating age from date of birth?

There is no single arithmetic formula because months have variable lengths. The calculation follows a three-step calendar logic method: years (with birthday-passed check), months (with day-of-month check), and remaining days. Any formula using 365 or 365.25 as a divisor gives an approximation — not an exact age in years, months, and days.

How do you calculate age for a February 29 birthday?

In non-leap years, most systems treat February 28 as the birthday equivalent for Feb 29 births. Someone born Feb 29, 2000 turns 25 on Feb 28, 2025 — using the February 28 convention in a non-leap year. On that day they are exactly 25 years, 0 months, 0 days old — with a total of 9,131 days lived. The age calculator uses the Feb 28 convention automatically.

Why does age calculation sometimes give one year too many?

This happens when you subtract the birth year from the current year without checking whether the birthday has passed this calendar year. If today is before the birthday date this year, the person is still in the previous year of life. Always compare today's month and day against the birth month and day before finalising the year count.

Can I calculate someone else's age from their date of birth?

Yes. The age calculator works for any date of birth — not just your own. Enter the person's birth date and any target date to get their exact age. This is useful for parents tracking children's ages, HR teams verifying employee ages, and medical staff calculating patient ages at a specific appointment date.

How does a leap year affect the age calculation from a date of birth?

Each leap year adds one extra calendar day to the total count. Between 2000 and 2026, there are 7 leap years: 2000, 2004, 2008, 2012, 2016, 2020, and 2024. A person born in 2000 has lived through all 7, adding 7 extra days to their total count beyond what a simple years-times-365 estimate would give.

What is the difference between age last birthday and exact age?

Age last birthday is the completed years — the whole number without months or days. Exact age includes the months and days since the last birthday. Someone who is 26 years, 4 months, and 22 days old has age last birthday of 26. The months and days matter for insurance premiums, visa eligibility, and medical eligibility checks.

Reviewed by: Online Calculator Lab Editorial Team
This content has been reviewed for accuracy and follows accepted calculation methods where applicable. The February 29 worked example is verified using Python's datetime module. Leap year rules follow the proleptic Gregorian calendar.