Age Calculator
Exact age in years, months, and days between two dates, plus totals and 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
- Enter the birth date from the record, not a rough month.
- Set the end date. Leave the demo date to follow the example, or set today for a current age.
- Read the exact age first, then totals for day and week counts.
- Use the next birthday line for planning; it rolls to next year once this year date passes.
Formula
- 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.
- Raw years: 2026 - 1990 = 36, and June already passed, so 36 stands.
- Raw months: October minus June = 4, but day 10 is before day 15, so borrow one month: months become 3.
- Days: 10 + 30 (September length) - 15 = 25 days.
- Exact age: 36 years, 3 months, 25 days.
- Total days: 13,266, with the next birthday 15 Jun 2027, 248 days later.
Reference table
| Case | Days used | Note |
|---|---|---|
| 31 day months | 31 | Jan, Mar, May, Jul, Aug, Oct, Dec |
| 30 day months | 30 | Apr, Jun, Sep, Nov |
| February | 28 or 29 | 29 in leap years such as 2024 and 2028 |
| Leap rule | 366 day year | Divisible 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.