Skip to main content

Age Calculator

Enter a date of birth to get an exact age — years, months, and days, not a rough “about 36”. The calculator also shows the total number of days, the weekday of birth, and the next birthday with a countdown. Change the “as of” date to find the age on any past or future date — a school cut-off, a retirement date, an anniversary.

All calculations use pure calendar arithmetic in your browser. No dates are sent anywhere or stored.

Defaults to today; change it to find the age on any date.

Loading today's date…

Embed this calculator on your website →

The formula

total days = day-number(as of) − day-number(date of birth)

age = years, months, days by calendar subtraction with borrowing

  • day-number — the exact count of days from a fixed epoch on the real calendar, leap days included; subtracting two day-numbers can never drift.
  • borrowing — if the birth day is larger than the as-of day, borrow the true length (28–31 days) of the month before; if the birth month is larger, borrow 12 months from the years.
  • leap year — a year divisible by 4, except century years, which must divide by 400 (2000 was a leap year; 1900 was not).

Worked example: born 15 May 1990, as of 22 October 2026 — the day-numbers differ by 13,309 days, and the calendar subtraction gives 36 years, 5 months, 7 days.

How it works

Years, months, days — by borrowing. The calculator subtracts the birth date from the “as of” date the way you would on paper: if the birth day is larger than the current day, it borrows the real length of the previous month (28, 29, 30, or 31 days); if the birth month is larger, it borrows a year. That is why “1 month” is not a fixed number of days.

Total days are counted exactly on the calendar, leap years included — a span covering 29 February contains one more day, and this calculator never approximates it away.

The 29 February rule. Someone born on 29 February has no calendar birthday in a non-leap year. This calculator follows the common convention: they turn a year older on 1 March in non-leap years, and on 29 February in leap years. The age and the next-birthday countdown use the same rule, so they always agree. (Legal ages for driving, voting, and similar can follow different local rules — check the authority that applies to you.)

Next birthday is the next observed birthday on or after the “as of” date, with the age being turned and the number of days to wait.

Examples

  • Born 15 May 1990 → on 22 October 2026 the exact age is 36 years, 5 months, 7 days — 13,309 days in total, born on a Tuesday.
  • Born 29 February 2020 → turns 3 on 1 March 2023 (2023 has no 29 February) and 4 on 29 February 2024.
  • Born 31 January 2000 → on 15 March 2026 the age is 26 years, 1 month, 12 days — the day count borrows February 2026's 28 days.

Frequently asked questions

Why does the day count change depending on the month?

Because months genuinely have different lengths. Borrowing days from February gives 28 or 29; borrowing from January gives 31. Any age calculator that treats a month as a flat 30 days will be off by a day or two in many cases — this one uses the real calendar.

When does a leap-day baby legally turn 18?

It depends on the country and sometimes the specific law — common conventions are 28 February or 1 March in non-leap years. This calculator uses 1 March for display purposes; for anything legal, check the rule of the authority involved.

Does the calculator count the birthday itself in total days?

Total days is the exact number of days between the two dates (the difference), so someone born today has a total of 0 days. Some traditions count inclusively (both endpoints), which would add 1 — the calculator uses the standard difference.

Can I calculate the age of a building, pet, or company?

Yes — the maths is identical for anything with a start date. Enter the founding, construction, or adoption date as the “date of birth”.