The short answer: age is a count of completed anniversaries, not elapsed days divided by 365. Subtract the birth year from the reference year, then take one more year off if this year’s birthday has not arrived. Age in days is the difference between two calendar dates, and it includes every February 29 in the span. Age in months is 12 × the completed years plus the whole months since the last birthday.

Key takeaways

  • Age is whole years. It increases on the birthday, not steadily through the year.
  • One comparison decides it. If the month and day have not been reached, subtract a year.
  • Leap days are real days. Total days must include every February 29 between the dates.
  • February 29 birthdays need a rule. The policy or statute decides whether the anniversary is February 28 or March 1.
  • Dates are not timestamps. Converting a birth date through UTC can move it by one day.

Age is completed years, not a division

Two different questions get confused constantly. “How many days have I been alive?” is a duration, measured between two dates. “How old am I?” is a count of birthdays already completed. Dividing the first by 365 produces a decimal that has to be floored, and the floor is wrong near anniversaries: the Gregorian calendar averages 365.2425 days per year, so 36 years is roughly 13,149 days, not 13,140.

The anniversary count is exact, cheap, and matches what people mean. A child born on 2016-03-01 is 11 months old on 2017-02-28, because the first birthday has not happened. Dividing 364 days by 365 gives 0.997, which rounds to 1 and is wrong. The subtraction rule gives the correct answer without any assumption about average year length.

The subtraction rule for years, months, and days

Given a birth date (y1, m1, d1) and a reference date (y2, m2, d2), compute in three steps:

  1. If d2 ≥ d1, set days = d2 − d1. Otherwise borrow from the month before the reference date: days = d2 + length(m2 − 1, y2) − d1, and reduce the month count by one.
  2. Set months = m2 − m1, adjusted by any borrow. If months is negative, add 12 and subtract one year.
  3. Set years = y2 − y1, adjusted by any borrow from step 2.

Worked example: born 1990-05-17, reference date 2026-11-14. Years: 2026 − 1990 = 36. Months: 11 − 5 = 6. Days: 14 < 17, so borrow from October, which has 31 days: 14 + 31 − 17 = 28, and months drop to 5. The answer is 36 years, 5 months, 28 days. Checking forward: 1990-05-17 plus 36 years is 2026-05-17, plus 5 months is 2026-10-17, plus 28 days is 2026-11-14.

The check is one line: add the answer back to the birth date and confirm it lands exactly on the reference date. If it lands a day early or late, the borrow used the wrong month length.

The decomposition is not unique at month ends

Calendar subtraction is not a division, so more than one (years, months, days) triple can add back to the same date. Someone born 2025-01-31, on 2026-03-01, can be described as 1 year, 0 months, 29 days — January 31 plus one year is 2026-01-31, and 29 days later is March 1 — or as 1 year, 1 month, 1 day, because 2026-01-31 plus one month clamps to 2026-02-28 and one more day is March 1.

Both descriptions round-trip through a different path. A calculator has to pick a convention, and the usual one is to borrow from the month immediately before the reference date. That is why two age tools can differ by a day for people born on the 29th, 30th, or 31st. The total-day count never disagrees; only the borrowed decomposition does.

Leap years and February 29 birthdays

A year is leap when it is divisible by 4, except that century years are leap only when divisible by 400. So 2024 and 2028 are leap, 2000 was leap, and 1900 and 2100 are not. Between 1990-05-17 and 2026-11-14 there are nine leap days — 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, and 2024 — which is why the total is 13,330 days rather than the 13,140 that 36 × 365 would predict.

For a person born on February 29, the day count is unambiguous but the anniversary is not. In a common year there is no February 29, so the anniversary is either February 28 (clamping back) or March 1 (treating the day after February 28 as the anniversary). Most software clamps to February 28; some legal codes default to March 1 so that the person does not gain rights a day early. Check the applicable rule rather than assuming, and note that the difference can matter for driving ages, voting eligibility, and benefit start dates.

Leap days also break the shortcut of adding 365 days per year. Adding 365 days to a date is a fixed move of one day fewer than a calendar year whenever a February 29 falls inside the interval, so the weekday and the date both drift.

Total days, weeks, and hours

The day count between two dates is the difference of their day numbers — for the example above, 13,330 days. Divide by 7 to get 1,904 weeks and 2 days. Multiply by 24 to get 319,920 nominal hours — a useful approximation rather than an exact elapsed-time count, since a daylight-saving day can run 23 or 25 hours.

If the question is about elapsed physical time, subtract two instants expressed in UTC. If it is about the calendar, subtract dates and ignore the clock.

Time zones and the birth date

A birth certificate records a civil date and time in the place of birth. A database that stores only a UTC timestamp loses that context. Someone born at 00:30 on 2000-01-01 in a UTC+13 zone was born at 11:30 on 1999-12-31 UTC. Format that value as a date and the birth date looks a day earlier, shifting every day count by one.

The fix is to store the civil date as three numbers (or an ISO 8601 date string such as 2000-01-01) plus the IANA zone identifier, and to do date arithmetic on the civil date. Note also that a local time can be missing or duplicated: clocks jump from 02:00 to 03:00 on the spring transition, so 02:30 never occurs that day, and 01:30 occurs twice in autumn. A date-only birthday is immune to both.

Midnight and the day boundary

A date has no time component. “2026-11-14” means the interval from 00:00:00 through 23:59:59.999 in the chosen zone, so a birth at 23:59 on the 14th and a birth at 00:01 on the 14th share the same civil date.

Age in hours does not. Two people born on the same date can be 23 hours apart. If you need that precision, keep the time of birth and subtract instants in UTC.

Common mistakes

  • Dividing total days by 365 or 365.25 and calling the floor an age — it drifts around anniversaries.
  • Forgetting to subtract a year when the birthday has not yet occurred this year.
  • Assuming every month has 30 days when borrowing, which breaks January and March dates.
  • Ignoring leap days when converting between “years” and “days”.
  • Treating February 29 as March 1 without checking the applicable rule.
  • Storing the birth date as a UTC timestamp and formatting it back into a date.
  • Reporting an age in months without saying whether the partial month is included.

Worked examples

Birth date Reference date Age Total days
1990-05-17 2026-11-14 36 y 5 m 28 d 13,330
2016-03-01 2026-11-14 10 y 8 m 13 d 3,910
2024-02-29 2026-11-14 2 y 8 m 16 d 989
2000-01-01 2026-11-14 26 y 10 m 13 d 9,814

The February 29 row uses the clamping convention: the 2025 and 2026 anniversaries fall on February 28, so the age advances there. Under a March 1 convention the same person is a day younger in the year-month-day form, though the day count is identical. This is the clearest demonstration that “age” has a convention behind it.

How to check an age calculation

Add the reported age back to the birth date with the same clamping rule; the result must equal the reference date exactly. Then add one more year; the result must be after the reference date.

For a legal age threshold, compare the anniversary date against the threshold date rather than comparing day counts, and apply the jurisdiction’s February 29 rule.

Frequently asked questions

How is exact age calculated?

Subtract the birth year from the current year, subtract one more year if the birthday has not yet occurred this year, then count whole months and days forward from the last birthday.

Why is age not total days divided by 365?

Because a calendar year is 365 or 366 days, and leap years cluster unevenly. The division drifts, especially for people born shortly after a leap day.

How do you treat a February 29 birthday?

In common years the anniversary is February 28 or March 1, depending on the policy or statute. The day count is unaffected either way.

Can a time zone change my age?

It can move the recorded date by a day. That changes the age in years only when the birthday falls on the shifted boundary.

Is 2000 a leap year?

Yes. It is divisible by 400. 1900 and 2100 are divisible by 100 but not 400, so they are common years.

What is corrected age for a premature baby?

Chronological age minus the number of weeks the baby was born early. It is used for growth and development milestones for roughly the first two years.

Further reading

Keep exploring

Read next Date Countdown: Days Until, Inclusive, and Time Zones Count the days between two dates with exclusive and inclusive conventions, weeks, weekdays, and months, and see why… Read next Age Difference: Exact Years, Months, and Days Get the exact gap between two birth dates in years, months, and days, including month-end clamping, leap days,… Read next Work Hours: Shifts, Breaks, and Overnight Schedules Turn clock times into paid hours: decimal minutes, unpaid breaks, overnight shifts, quarter-hour rounding, and the fixed 40-hour…

Decision path

Use this guide in a decision

Open Date & Time Decision Center Open companion solver