Time & Date / calculator
Age calculator
Calculate calendar age from birth date to a chosen date in years, months, days, and total days. Today defaults to your browser's local date.
Calculator
Calculator
Calculate a calendar age.
Enter a birth date and target date. Target defaults to today in your browser. Month-end anniversaries clamp to that month’s last day; February 29 becomes February 28 in non-leap years.
Your result
Enter details to see the result.
Complete the inputs and calculate to see the main result and its supporting breakdown.
Example
Worked example
Example inputs
- Birth date (YYYY-MM-DD)
- 2000-02-29
- Target date (YYYY-MM-DD)
- 2026-10-04
Calculation breakdown
Count the greatest number of whole months whose anniversary is no later than the target. Years = floor(months ÷ 12); remaining months = months modulo 12; remaining days count from that anniversary.
- Total calendar days
- 9,714
Example result
Calendar age
26 years, 7 months, 5 days
Calendar anniversaries, not days divided by 365; no legal age determination.
How to interpret the result
Count the greatest number of whole months whose anniversary is no later than the target. Years = floor(months ÷ 12); remaining months = months modulo 12; remaining days count from that anniversary. Today defaults to your browser’s local date, while the worked example uses a fixed target. This describes elapsed calendar age and does not determine legal eligibility or jurisdiction-specific birthday rules.
How to use this calculator
- Enter the birth date as YYYY-MM-DD.
- Check the target date: it starts as today in your browser but can be changed to a date on or after birth.
- Calculate calendar years, months, days, and total days; legal birthday conventions may differ.
How it works
Formula
Count the greatest number of whole months whose anniversary is no later than the target. Years = floor(months ÷ 12); remaining months = months modulo 12; remaining days count from that anniversary.
How is age calculated accurately from a birth date?
Calendar age counts completed months from birth, then splits them into years and remaining months and counts remaining days. Dividing total days by 365 does not reproduce calendar age because month lengths and leap years vary. This tool clamps February 29 anniversaries to February 28 in non-leap years.
What this calculator does
Enter a birth date and target date to measure whole calendar months and remaining days, with total calendar days shown separately.
Who this is useful for
People recording completed calendar years, months and days as of a specific date, including birthdays near month ends.
Inputs you will need
Required or selected inputs
- Birth date (YYYY-MM-DD)
- Target date (YYYY-MM-DD)
What to check before using the result
Calendar age counts completed anniversaries, not total days divided by 365. Months have different lengths and leap years add days. Here a February 29 birthday reaches its anniversary on February 28 in non-leap years, and month-end dates clamp to the last day. This explicit convention may differ from a legal age rule.
Assumptions
- Gregorian calendar dates in years 0001–9999 are supported. Anniversaries clamp to the last day of the month; February 29 becomes February 28 in a non-leap year.
Limitations
- Today defaults to your browser’s local date, while the worked example uses a fixed target. This describes elapsed calendar age and does not determine legal eligibility or jurisdiction-specific birthday rules.
Useful next steps
For calendar-day gaps or adding days to a date, use Date calculator.
Count weekdays within a date range with Working days calculator.
See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.
Good to know
Frequently asked questions
How are leap-day birthdays counted?
The anniversary is February 28 in non-leap years and February 29 in leap years. The calculator states this convention rather than applying a jurisdiction’s legal rule.
Keep going