Age Calculator
Published Updated
Enter a birth date for an exact age in years, months, days, weeks and hours, plus the next birthday, or compare any two dates. Months are whole calendar months, so 31 January to 28 February counts as one.
How the months are counted
Subtracting two dates gives days easily and months badly, because months differ in length. The calculator finds the largest whole number of months whose anniversary has not passed the end date, with a short month clamping the day to its last day. The days that remain are counted from that anniversary.
Month ends show the effect. From 31 January 2023 to 28 February 2023 is 1 month 0 days; to 1 March 2023 it is 1 month 1 day, which is 29 days in all. A person born on 29 February 2000 is 0 years, 11 months and 29 days old on 27 February 2001, and 1 year on the 28th.
A worked example
Born 15 May 1990, with the Age at date set to 3 November 2026. All figures come from the page's own code:
| Result | Value |
|---|---|
| Age | 36 years, 5 months, 19 days |
| Total days | 13,321 |
| Total weeks | 1,903 weeks and 0 days |
| Total hours | 319,704, which is days times 24 |
| Next birthday | 15 May 2027, in 193 days, turning 37 |
Exactly 100 years from 3 November 1926 to 3 November 2026 is 36,525 days: 100 x 365 plus 25 leap days.
Month ends side by side
We ran the calculator's own code in Node 22.23.1 on start dates at the end of January 2023. Four different start dates give the same years, months and days on 28 February and on 1 March, because a month counted from 29, 30 or 31 January ends on the last day of February. The total days still differ, so the Total days card is the figure to compare when such results must line up.
| Start date | To 28 February 2023 | To 1 March 2023 | To 28 March 2023 |
|---|---|---|---|
| 28 January 2023 | 1 month, 0 days (31 days) | 1 month, 1 day (32 days) | 2 months, 0 days (59 days) |
| 29 January 2023 | 1 month, 0 days (30 days) | 1 month, 1 day (31 days) | 1 month, 28 days (58 days) |
| 30 January 2023 | 1 month, 0 days (29 days) | 1 month, 1 day (30 days) | 1 month, 28 days (57 days) |
| 31 January 2023 | 1 month, 0 days (28 days) | 1 month, 1 day (29 days) | 1 month, 28 days (56 days) |
In the leap year 2024 the month from 31 January ends on 29 February instead: 28 February 2024 is 0 months and 28 days, and 29 February is 1 month. Ticking Include end date can move a result across a month boundary, because the end date is moved one day later before counting: 31 January to 27 February 2023 gave 27 days unticked and 1 month, 0 days (28 days) ticked.
Leap-day birthdays, year by year
The same Node run for a date of birth of 29 February 2000. In years without a 29 February the calculator puts the birthday on 28 February, and in leap years on the 29th:
| Age at | Age shown | Next birthday |
|---|---|---|
| 27 February 2001 | 0 years, 11 months, 29 days | In 1 day, 28 February 2001, turning 1 |
| 28 February 2001 | 1 year, 0 months, 0 days | Today, turning 1 |
| 1 March 2001 | 1 year, 0 months, 1 day | In 364 days, 28 February 2002, turning 2 |
| 28 February 2004 | 3 years, 11 months, 30 days | In 1 day, 29 February 2004, turning 4 |
| 29 February 2004 | 4 years, 0 months, 0 days | Today, turning 4 |
| 16 November 2026 | 26 years, 8 months, 18 days | In 104 days, 28 February 2027, turning 27 |
| 28 February 2100 | 100 years, 0 months, 0 days (36,524 days) | Today, turning 100 |
So in a leap year the age on 28 February is one day short of the next whole year, and the calculator gives 2100 no 29 February. This is the calculator's counting rule, shown for understanding; an official age can follow a different rule for leap-day births.
Which today? The device's date decides
The Age at box starts on today's date, read from the device's own clock and time zone. We rendered the calculator's own component in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), with the clock fixed at 23:30 UTC on 16 November 2026 (15:30 on the 16th in Los Angeles, 08:30 on the 17th in Tokyo), and typed a date of birth of 17 November 2000. All four engines showed the same:
| Time zone | Age at filled in | Result |
|---|---|---|
| UTC | 2026-11-16 | 25 years, 11 months, 30 days. Next birthday in 1 day |
| America/Los_Angeles | 2026-11-16 | 25 years, 11 months, 30 days. Next birthday in 1 day |
| Asia/Tokyo | 2026-11-17 | 26 years, 0 months, 0 days. It's a birthday: turning 26! |
With the Age at date typed in as 16 November 2026, every zone and engine gave 25 years, 11 months, 30 days. The hour of birth plays no part, since only calendar dates are compared. On the birth date itself the card reads It's a birthday: turning 0!, which we saw with both dates set to 16 November 2026.
Calculating an age
Step 1
Pick Age or Date difference
Age needs a date of birth and an Age at date. Difference needs a start and an end date. Both take years 1000 to 9999.
Step 2
Enter the dates
The Age at date can be filled with the Use today button, which takes the date from your device. The result updates as soon as both dates are valid.
Step 3
Read the breakdown
Years, months and days lead, followed by total months, weeks, days and hours. In age mode a card gives the next birthday and the age being reached.
What it leaves out
- Time of day and time zones. Dates are handled as plain calendar days, so daylight-saving changes cannot shift a result.
- Older calendars. The Gregorian leap rule of 97 leap years in 400 is applied to all years, including those before it was adopted.
- Forms and law. An official age may be defined differently, for instance for leap-day births. Use the rule your form states.
- Related tools. For clock times, see Time Converter; for raw seconds since 1970, Unix Timestamp Converter.
Age and date questions
Why is 31 January to 28 February one month?
The tool counts the largest number of whole months whose anniversary has not passed. Adding one month to 31 January gives the last day of February, so on 28 February the month is complete. By 1 March the result is 1 month and 1 day.
How is a leap-day birthday handled?
In years without a 29 February, the birthday falls on 28 February. Someone born on 29 February 2000 reads 1 year 0 months 0 days on 28 February 2001, and 24 years on 29 February 2024. Laws and forms differ, so check the rule your purpose needs.
Are the hours real hours?
No. Only calendar dates are used, with no time of day or time zone, so the figure is days times 24. The 36-year-old in the table above has 319,704 listed hours, not the hours since a particular birth minute.
When should I tick Include end date?
Tick it to count both the first and the last day, as for a booking or a deadline stated inclusively. From 1 to 31 January the result is 30 days without it and 31 days, or 1 month, with it.
What happens if the dates are in the wrong order?
In Date difference mode the dates are swapped, and a note says so. In Age mode a birth date after the Age at date gives a message and no result.
Does it handle dates before 1582?
It accepts years from 1000, but counts them in the Gregorian calendar throughout. Wikipedia notes that such proleptic dates may not match historical records, so treat very old ages as approximate.
Why do 29, 30 and 31 January all give one month to 28 February?
A month counted from a day that February lacks ends on February's last day. In our test 29, 30 and 31 January 2023 each gave 1 month, 0 days on 28 February 2023, with 30, 29 and 28 total days. Compare the Total days card when the difference between such dates matters.
Why does the age differ for someone in another time zone?
Today is read from the device's clock and time zone. At 23:30 UTC on 16 November 2026 a browser set to Tokyo filled in 17 November and showed a birthday for someone born on 17 November 2000, while browsers set to UTC and Los Angeles showed the birthday 1 day away. Typing the Age at date gives the same answer everywhere.
Can I work out how old someone will be on a future date?
Yes. The Age at date can be any day up to the year 9999, as long as it is not before the date of birth. A birth date of 15 June 2000 with an Age at date of 15 June 2040 gave 40 years, 0 months, 0 days, or 14,610 days.
Does Include end date change the months as well as the days?
It can, because the end date is moved one day later before anything is counted: 31 January to 27 February 2023 gave 27 days without the box and 1 month, 0 days (28 days) with it, and the same date as start and end gave 0 days without it and 1 day with it.