Age Calculator

Exact age in years, months, and days between two dates, plus totals and next birthday.

Everyday LifeUpdated 2026-10-102 min read
Age Calculator
Defaults to 2026-10-10 in this demo. Set it to today for your current age.
Exact age
...
Total days lived...
Next birthday...

What it does

Age math looks easy until months enter the picture. Months run 28 to 31 days and leap years add a day, so a plain day count divided by 30 drifts. The exact form counts full years first, then full months, then leftover days.

The tool above follows that order. Enter a birth date and an end date to get the exact split, the total day count, the weekday of birth, and the next birthday with its countdown.

Results use calendar dates, not times of day. Someone born late in the evening counts the same as someone born that morning, which is the convention forms and records use.

How to use

  1. Enter the birth date from the record, not a rough month.
  2. Set the end date. Leave the demo date to follow the example, or set today for a current age.
  3. Read the exact age first, then totals for day and week counts.
  4. Use the next birthday line for planning; it rolls to next year once this year date passes.

Formula

Years = end year - birth year, adjusted down if the birthday has not occurred yet this year. Months and days follow by borrowing month length where needed. Total days = floor((end - birth) / 86400 seconds).
years
End year minus birth year, down one if the birthday has not come yet.
borrowed month
One month turned into its real day count when days run short.
total days
Date difference in milliseconds divided by 86,400,000.

Borrowing works like subtraction in school: when the end day is smaller than the birth day, take one month and add that month length in days. Leap days fall out of the date difference on their own, since real calendar dates already hold them.

Worked example

Example: born 15 Jun 1990, at 10 Oct 2026

Birth 1990-06-15 was a Friday. End date 2026-10-10.

  1. Raw years: 2026 - 1990 = 36, and June already passed, so 36 stands.
  2. Raw months: October minus June = 4, but day 10 is before day 15, so borrow one month: months become 3.
  3. Days: 10 + 30 (September length) - 15 = 25 days.
  4. Exact age: 36 years, 3 months, 25 days.
  5. Total days: 13,266, with the next birthday 15 Jun 2027, 248 days later.

Reference table

Lengths the calculator borrows from
CaseDays usedNote
31 day months31Jan, Mar, May, Jul, Aug, Oct, Dec
30 day months30Apr, Jun, Sep, Nov
February28 or 2929 in leap years such as 2024 and 2028
Leap rule366 day yearDivisible by 4, except centuries unless divisible by 400

Limits

  • Date precision only. Hours and minutes ignored.
  • Calendar reforms before 1900 sit outside the math.
  • Time zones can shift edge cases by a day.
  • Legal age rules vary by country and case.

Common mistakes

  • Dividing total days by 30 for months, which drifts by several days.
  • Forgetting leap days over long spans, worth 9 days across 36 years here.
  • Reading time zones into it. Calendar age ignores hours and zones.
  • Using the christening or registration date instead of the birth date.
  • Counting the start day twice when adding manual day counts.

Try it yourself

Quick checks. Answers sit tucked under each question.

Born 1 Jan 2000, at 1 Jan 2026. Age and days?

26 years exactly. Total 9,497 days. Birth weekday was Saturday.

Days from 1 Jan to 10 Oct 2026?

282 days.

Questions

How is exact age different from total days divided by 365?

Exact age respects real month lengths and leap days. Division by 365 averages them away and lands days off.

What weekday was I born?

The tool prints it under the results. The example birth, 15 Jun 1990, was a Friday.

Can it count between any two dates?

Yes. Enter any earlier start and later end date to measure service length, anniversaries, or deadlines the same way.

Does it handle leap day birthdays?

Yes. Someone born 29 Feb ages normally in common years for this math, with the next birthday shown on 1 Mar or 28 Feb per local convention.

Why does the month count change near month ends?

Borrowing uses the real length of the prior month. From 31 Jan to 28 Feb is 28 days, not one month, since February never reaches the 31st.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.