Skip to main content
SwiftTools

How to Calculate Someone's Exact Age

Published 18 October 2026Guide for the Age Calculator

Asking "how old are they, exactly?" sounds simple until a form wants the answer in years, months and days, or an application requires the age as of a specific date. The trap is that age is not a division - it is an elapsed-time count, and the two give different answers.

This guide covers how elapsed age is actually computed, where leap years and reference dates bite, and how to present the result in the format each kind of form expects.

Age is elapsed time, not a division

The wrong way: count the days between two dates and divide by 365. It is wrong for two reasons at once. Years are not all 365 days (leap years are 366), and even the average year is 365.2425 days - so the quotient drifts by a few days every few years, in the direction that makes someone a fraction too old.

The right way is calendrical: subtract year for year, month for month, day for day, borrowing as a calendar would. Born 2 Jan 2000, on 15 Oct 2026, the person is 26 years, 9 months, 13 days - because 2 Jan 2026 to 15 Oct 2026 is 9 months and 13 days. When the current day of the month is smaller than the birth day, the month count borrows a month from the year, exactly like subtracting numbers with borrowing.

Worked example
Born:      2 Jan 2000
As of:     15 Oct 2026
Years:     2026 - 2000 = 26  (birthday already passed this year)
Remainder: 2 Jan 2026 -> 15 Oct 2026 = 9 months 13 days
Age:       26 years, 9 months, 13 days
(day-count method: 9798 days / 365 = 26.84 -> "26 years 10 months" - wrong)

Leap years and edge cases

Two edge cases matter. First, 29 February birthdays: in a non-leap year the birthday has no day, and conventions treat the age as advancing on 1 March (some legal systems say 28 February - it varies by jurisdiction, and for court or visa deadlines the local rule wins).

Second, month-length borrowing: a month is not a fixed number of days, so "borrowing one month" from 31 July means subtracting to 30 June, then 29 May, then 31 April - the calendar handles it, and a calculator that does calendar arithmetic handles it correctly. Day-division methods handle none of this.

The reference date changes everything

"Age" without a date is ambiguous: the person's age on 30 Dec 2026 differs from their age on 1 Jan 2027 by one year. Historical calculations (age at an event), eligibility checks (age on a deadline date) and HR records (age as of the review date) all need the as-of date stated explicitly.

A good habit: when you state an age, state the reference date with it. "26 years 9 months as of 15 Oct 2026" is unambiguous; "26 and a bit" is not an answer on a form.

Matching the format the form wants

Forms and authorities want different shapes of the same answer:

  • Years only: the whole years elapsed - the number before the birthday rule applies. Most common, and the one to default to.
  • Years, months, days: the full calendrical age, the format for legal and visa documents.
  • Exact days: total days since birth - used in a few medical and actuarial contexts.
  • Future ages: the age on a target date (e.g. "age at retirement") is the same operation run forward.

Read the instruction line, not your habit: "age in years" and "years, months and days" are different answers even when they describe the same person.

Frequently asked questions

Why is dividing the days by 365 wrong?

Years are 365 or 366 days long, and average 365.2425. Dividing by 365 overcounts the age by a fraction of a month on average - small, but persistent, and wrong in exactly the cases (legal, visa, HR) where it matters.

How are 29 February birthdays handled?

In non-leap years the age normally advances on 1 March (some jurisdictions say 28 February). For everyday use the difference is cosmetic; for legal deadlines, check the applicable rule.

Can I calculate age as of a past date?

Yes - set the reference date to the historical date (e.g. the date of an event). The same calendrical arithmetic applies, which is how "age at the time" is computed reliably.

What is the difference between age and date difference?

Age is a date difference with a specific shape (years, months, days) and a specific subject (a birth date). A general date-difference tool counts days or durations; the age calculator counts in calendrical units.

Want to try it?

The Age Calculator is free and runs right in your browser (date & time). Open it now and see the guide in action.

Try the Age Calculator