How to calculate age on a date
Use complete Gregorian dates in YYYY-MM-DD format. The as-of date is the date you want the age measured on, not an automatically assumed today. The initial 2000-02-29 → 2025-02-28 values are a synthetic example. “Use my local today” uses your device's local calendar date; it does not use the UTC date.
Calendar years, months and days
- Count completed annual anniversaries up to the as-of date using the selected February 29 convention.
- Starting from that most recent anniversary, add the largest number of months from 0 to 11 that does not pass the as-of date. Each candidate is added directly to the anniversary, not repeatedly month by month. If its day does not exist in the target month, use that month's final day.
- Count the remaining calendar days from that monthly anchor to the as-of date.
This is one explicit calendar decomposition; different month-end conventions can give different decompositions. For example, 2024-01-31 → 2024-02-29 is 0 years, 1 month, 0 days here, and 29 elapsed days. Adding two months directly to January 31 reaches March 31, not March 29.
February 29 birthdays
Choose February 28 or March 1 for the anniversary in non-leap years. In leap years the anniversary remains February 29. On 2025-02-28, the synthetic 2000-02-29 birth has completed 25 years under February 28, or 24 years under March 1. Remaining days can be 31: 2020-02-29 → 2024-02-28 is 3 years, 11 months, 31 days with the February 28 rule; the fourth leap anniversary is still one day away. The rule is a calculation option, not a statement of legal age.
Elapsed days are not a rounded number of years
Elapsed days = Gregorian day number(as-of) − Gregorian day number(birth). The same date gives zero days. Full weeks = floor(elapsed days ÷ 7); the remainder is 0–6 days. A year has 365 or 366 days, and months differ in length, so dividing by 365 or 30 does not yield this calendar age. The calculation uses civil dates rather than timestamps; daylight-saving changes do not add or remove days.
Gregorian leap years are divisible by 4, except years divisible by 100 unless also divisible by 400. Thus 1900 and 2100 are not leap years, but 2000 is. Reference: U.S. Naval Observatory: leap-year rule. This tool uses the proleptic Gregorian calendar for all supported years 0001–9999; it does not reproduce historical local calendar switches.
Privacy and limits
No account is needed. This calculator does not read dates from the URL, store dates or send them to analytics; the shared tool link excludes query strings and fragments. The result is date-only: no birth time, time-zone duration, legal qualification or eligibility decision is inferred. Future birth dates relative to the chosen as-of date and impossible dates are rejected. You may deliberately select a future as-of date for a hypothetical calculation.
Frequently asked questions
Does the calculator automatically use today?
No. It starts with fixed synthetic example dates. Use the local-today button or enter an explicit as-of date.
What happens to February 29 in a non-leap year?
Choose February 28 or March 1. The selected convention determines completed annual anniversaries; this does not determine legal age.
Why do month-end results differ between calculators?
Months have different lengths. Here we first count completed years, then add 0–11 months directly to that anniversary, clamping the day to the end of a shorter target month, then count remaining days. Other conventions can differ.
Are both dates counted in elapsed days?
No. The elapsed-day difference excludes the starting day: the same date gives 0, and consecutive dates give 1.
Does daylight saving change the result?
No. Gregorian civil-day arithmetic is independent of clock changes. The tool does not calculate elapsed hours or seconds.
Can I use this to decide legal eligibility?
No. This is a date-arithmetic tool. Legal or institutional rules may use different anniversary and eligibility conventions.