Worked example: Age Calculator
Exact birthday: May 20, 2000 to May 20, 2026. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Date of birth
- 2000-05-20
- Age on date
- 2026-05-20
| Calculated quantity | Example result |
|---|---|
| Calendar age | 26 years, 0 months, 0 days |
| Completed years | 26 years |
| Additional months | 0 months |
| Additional days | 0 days |
| Total elapsed days | 9,496 days |
| Next birthday | 2026-05-20 |
| Days until birthday | 0 days |
| Completed calendar months | 312 months |
How to calculate age from a date of birth
How old am I today, or on another date?
Enter your date of birth and the date on which you want to know your age. The age calculator initially uses your browser’s local date for the second field. You can replace it with an event date, a past date or a future date. For example, someone born on May 20, 1990 is 36 years, 5 months and 2 days old on October 22, 2026.
The displayed age describes the dates you selected. A shared link preserves its saved as-of date, so opening it later reproduces that scenario rather than silently changing it to today. Reset refreshes the as-of field to the browser’s current local date. The calculator is not a live clock that updates every second or automatically changes the date at midnight.
How are years, months and days calculated?
Calendar units have unequal lengths. This calculator finds the largest number of whole calendar months whose anniversary falls on or before the as-of date. Every anniversary is calculated directly from the original birth date. If that day is missing in the target month, the anniversary is clamped to the month’s last day.
The whole-month count is split into complete years and 0–11 additional months. Remaining days run from that month anniversary to the as-of date. On May 20, 2026, a May 20, 2000 birth therefore gives 26 years, 0 months and 0 days. Its elapsed day count is 9,496, because leap days are included. Dividing that day count by 365 would answer a different question.
Why can two age calculators disagree near the end of a month?
A calendar-month convention is needed when a month has fewer days than the birth month. Under this calculator’s clamped rule, January 31 to February 28, 2021 is one month with no extra days. A method that waits for the numbered day can instead report 28 days. The elapsed day count agrees even though the calendar representation differs.
February 28 to March 31, 2022 is one month and three days here: the direct one-month anniversary is March 28. The tool does not treat all pairs of month ends as whole months. Computing every anchor from the original date also prevents a shortened February from permanently moving later monthly anniversaries to the 28th.
How does the age calculator handle February 29 birthdays?
In the Gregorian calendar, years divisible by four are leap years unless they are divisible by 100 without also being divisible by 400. Thus 1900 and 2100 are not leap years, while 2000 and 2400 are. The date parser rejects a February 29 that does not exist instead of silently rolling it into March.
For a February 29 birth, this tool uses February 28 as the anniversary in non-leap years and February 29 in leap years. From February 29, 2000 to February 28, 2025, it therefore reports 25 years. On February 28, 2024, someone born on February 29, 2020 has not yet reached the next leap-year birthday: the result is 3 years, 11 months and 30 days.
This is the calculator’s arithmetic convention, not a universal rule for legal birthdays, school admission, insurance or other eligibility. Use the relevant organization’s actual cutoff and rules when those are the question.
How many months, weeks or days old am I?
The unit table gives alternative representations of the same interval. Complete calendar months retain their extra day remainder; they are not elapsed days divided by 30. Whole weeks use seven-day blocks and retain a remainder from zero to six days. Total elapsed days are the direct difference between the two selected dates.
These rows are alternatives, not quantities to add together. A person who is 26 years old is not an additional 312 months plus another 9,496 days old. The same date entered in both fields has zero elapsed days. No extra inclusive endpoint is added; use the Day Counter when you want an inclusive count of listed dates.
Are the hours, minutes and seconds my exact age?
They are date-only equivalents. The calculator multiplies whole elapsed days by 24 for hours, 1,440 for minutes and 86,400 for seconds. It does not ask for a birth time, current time or time zone, so it cannot determine the exact elapsed seconds since a real birth instant.
Using UTC date arithmetic keeps daylight-saving changes from adding or removing a calendar day. It does not model actual 23-hour or 25-hour local days or leap seconds. If exact clock-time duration is the goal, supply the actual date-times and the appropriate time-zone convention in a time calculator.
When is my next birthday, and how many days are left?
The next-birthday result finds the first birthday on or after the selected as-of date. If that date is the birthday, the countdown is zero. The weekday is displayed with the date, and the calendars highlight both selected dates so you can check the inputs visually.
The milestone table lists up to five later birthdays from common planning ages, using the same anniversary rule. These can help plan invitations or a family timeline; they do not establish eligibility for a benefit, license or service. The countdown is measured from the entered as-of date, which may differ from today.
Can I calculate age for historical dates or future dates?
Yes. The supported range is year 0001 through 9999, with the as-of date on or after birth. Historical dates use the Gregorian calendar extended backward mathematically. The tool does not reconstruct a country’s switch from another calendar, and it does not use cultural age systems that begin counting at one.
If the next birthday would fall after year 9999, the age calculation remains available but the next-birthday date is reported as outside the supported range. Use the stated calendar convention and the selected dates when comparing results from another source.
Calendar age examples at month ends and leap days
Fixed examples of this tool’s direct-anniversary convention. Alternative month-end conventions can change calendar parts without changing the elapsed day count.
| Birth / start date | As-of date | Our clamped calendar age | Elapsed days |
|---|---|---|---|
| 2021-01-31 | 2021-02-28 | 0 years, 1 month, 0 days | 28 |
| 2022-02-28 | 2022-03-31 | 0 years, 1 month, 3 days | 31 |
| 2000-02-29 | 2025-02-28 | 25 years, 0 months, 0 days | 9,131 |
| 2020-02-29 | 2024-02-28 | 3 years, 11 months, 30 days | 1,460 |
| 2020-02-29 | 2021-03-28 | 1 year, 0 months, 28 days | 393 |
| 2021-01-31 | 2021-02-28 | 0 years, 1 month, 0 days | 28 |
| 2022-02-28 | 2022-03-31 | 0 years, 1 month, 3 days | 31 |
| 2000-02-29 | 2025-02-28 | 25 years, 0 months, 0 days | 9,131 |
| 2020-02-29 | 2024-02-28 | 3 years, 11 months, 30 days | 1,460 |
| 2020-02-29 | 2021-03-28 | 1 year, 0 months, 28 days | 393 |
Gregorian leap-year examples
The 400-year exception matters: 2000 and 2400 include February 29; 1900 and 2100 do not. Source: US Naval Observatory Gregorian leap-year rule.
| Year | Leap year? | Days in February |
|---|---|---|
| 1,900 | No | 28 |
| 2,000 | Yes | 29 |
| 2,024 | Yes | 29 |
| 2,025 | No | 28 |
| 2,100 | No | 28 |
| 2,400 | Yes | 29 |
| 1,900 | No | 28 |
| 2,000 | Yes | 29 |
| 2,024 | Yes | 29 |
| 2,025 | No | 28 |
| 2,100 | No | 28 |
| 2,400 | Yes | 29 |
Formula and calculation method
Count the largest whole number of calendar months whose direct birth-date anniversary is on or before the as-of date. Clamp a missing day to that month’s last day. Split those months into years and 0–11 remaining months, then count the remaining calendar days.
All month anchors are computed directly from the original birth date, not by repeatedly adding one month to an already shortened month. February 29 anniversaries use February 28 in non-leap years; a leap-year anniversary remains February 29.
Elapsed days exclude an extra inclusive endpoint: the same date gives zero days. Whole weeks and remaining days use division by 7. Hour, minute and second figures are date-only equivalents: days × 24, × 1,440 and × 86,400.
The next birthday includes the as-of date: if it is the birthday, the countdown is zero. Dates use the proleptic Gregorian calendar, without local time zones, daylight-saving changes, birth times, leap seconds or historical calendar cutovers.
Scope and Limitations
- Calendar age is convention-dependent near month ends and leap-day birthdays. The explicit clamped-anniversary rule is not a determination of legal or administrative eligibility.
- Hour/minute/second totals are conversions of whole calendar days, not an exact time-of-birth measurement or a live counter. Future as-of dates are allowed; dates before birth are rejected.
- The supported range is 0001–9999. A next birthday beyond that range is reported as unavailable. The calendar is extended backward mathematically rather than reproducing every country’s historical calendar.
Reference Sources
Frequently asked questions
How do I calculate my age from my date of birth?
Enter your Gregorian birth date and an as-of date on or after it. The calculator finds completed calendar months, splits them into years and remaining months, and then counts the remaining days.
Can I calculate how old I was on a past date?
Yes. Change Age on date to the relevant date. Future dates also work. A date before birth is rejected.
Does the age calculator count the birth date as day one?
No. It reports elapsed differences: the same birth and as-of date gives zero days, and the following date gives one elapsed day.
What happens if I was born on February 29?
This calculator uses February 28 as the anniversary in non-leap years and February 29 in leap years. A particular legal or administrative rule may use another convention.
Why is January 31 to February 28 shown as one month?
The direct one-month anniversary is clamped to February’s last day. Another day-of-month convention may report 28 days instead. Both can describe the same elapsed interval under different calendar rules.
Are age in seconds and the birthday countdown live?
No. Seconds are a conversion of whole calendar days, without a birth time or time zone. The birthday countdown uses the selected as-of date. Reset refreshes that date to the browser’s current local date.
Can I use the result to decide legal eligibility?
The calculator supplies calendar arithmetic under its stated convention. Eligibility requires the applicable rule and cutoff date, which this tool does not infer.
Can I save, export or print my age calculation?
Copy link with inputs preserves the selected dates. Download results saves the results and assumptions. The unit and milestone tables have complete CSV downloads, and Print includes the results and selected-date calendars.