Skip to content
FreeToolsKit.app

Time & Astronomy guide

How to Calculate Your Exact Age, Including Leap-Day Birthdays

8 min read · Updated 20 November 2026 · Uses Age Calculator

Quick answer

Your exact age is counted in three steps, in this order:

  1. Years: count the birthdays you've completed.
  2. Months: count the whole calendar months since your last birthday (0 to 11).
  3. Days: count the days left over.

Don't divide a number of days by 365 or 365.25: years and months vary in length, so division can be a day out near a birthday.

Two cases need a rule, because the calendar doesn't settle them:

  • A 29 February birthday in a year without 29 February. FreeToolsKit's Age Calculator counts the birthday on 1 March in those years. Some laws, organisations and software use 28 February instead.
  • A birthday on the 29th, 30th or 31st. When a month is too short, the calculator uses that month's last day. From 31 January, one month is 28 February (29 in a leap year) and two months is 31 March.

Other calculators, spreadsheets and databases can differ from this by a day, because they follow different rules, shown in the tested examples below. If the age matters legally, check the rule that applies where you are.

Age CalculatorFree to use · No account required · Calculated in your browserOpen Age Calculator

Work it out by hand

Take a fictional date of birth, 14 May 1988, and an age-on date of 20 September 2026:

  1. Find the last birthday on or before the age-on date: 14 May 2026. From 1988 to 2026 is 38 completed birthdays, so the age is 38 years.
  2. Count whole months from that birthday: 14 June, 14 July, 14 August and 14 September 2026 are all on or before 20 September. That's 4 months.
  3. Count the remaining days: from 14 September to 20 September is 6 days.

The answer is 38 years, 4 months, 6 days.

In the Age Calculator, the same dates gave the same answer:

  1. On the Exact age tab, enter the Date of birth.
  2. Set Age on date. It starts as today's date on your device, and Today puts it back.
  3. Choose Calculate age.

The result read "38 years, 4 months, 6 days". It also showed Total days "14,008 days", Completed months "460 months", Next birthday "Friday, 14 May 2027" and Days until birthday "236 days", turning 39.

The tool accepts dates from 1600-01-01 to 2399-12-31 and uses calendar dates only, so time zones don't change the result. It applies today's leap-year rule throughout: "2000 and 2400 count as leap years, but 1900, 2100, and 2300 do not" (timeanddate.com: Leap years).

A 29 February birthday, tested

As soon as you enter 29 February as the Date of birth, the tool shows a note:

"Born on 29 February: in years without 29 February, this calculator observes the birthday on 1 March. This is a calendar convention, not a legal ruling — laws and organisations can use a different date (for example 28 February)."

These are the results for a fictional date of birth of 29 February 2004:

  • Age on 28 February 2025: 20 years, 11 months, 30 days. Next birthday showed "Saturday, 1 March 2025" with "Observed on 1 March (no 29 February that year)."
  • Age on 1 March 2025: 21 years, 0 months, 0 days, with the label "Birthday today — 21 today".
  • Age on 28 February 2027: 22 years, 11 months, 27 days.
  • Age on 1 March 2027: 23 years, 0 months, 0 days, "Birthday today — 23 today".
  • Age on 29 February 2028: 24 years, 0 months, 0 days, "Birthday today — 24 today". In a leap year, the birthday is 29 February itself.

Why 30 days in 2025 but 27 in 2027. The months and days are counted from the last birthday. In February 2025, the last birthday was a real 29 February (in 2024), and 11 months later is 29 January, which leaves 30 days to 28 February. In February 2027, the last birthday was the one counted on 1 March 2026. Eleven months later is 1 February, which leaves 27 days. The completed years are the same either way.

With the 28 February rule instead, the person in this example turns 21 on 28 February 2025, a day earlier. The python-dateutil library works this way. Its documentation says that when a day doesn't exist, "the last day of the month is used instead" (dateutil: relativedelta). In our check, it returned 21 years for 29 February 2004 to 28 February 2025.

Month ends: born on the 31st or the 30th

The calculator counts each month from the birthday itself, never from an earlier shortened date. If the target month is too short, it uses that month's last day. These are the tested results for fictional births:

  • Born 31 January 2025, age on 28 February 2025: 0 years, 1 month, 0 days. February 2025 has no 31st, so its last day completes the month.
  • Born 31 January 2025, age on 30 March 2025: 0 years, 1 month, 30 days. The second month isn't complete until 31 March.
  • Born 31 January 2025, age on 31 March 2025: 0 years, 2 months, 0 days. Two months from 31 January is 31 March, not 28 March.
  • Born 31 January 2024, age on 28 February 2024: 0 years, 0 months, 28 days. 2024 is a leap year, so the month isn't complete until 29 February.
  • Born 31 January 2024, age on 29 February 2024: 0 years, 1 month, 0 days.
  • Born 30 April 2004, age on 1 June 2004: 0 years, 1 month, 2 days. One month is 30 May, and two more days reach 1 June.

Why another calculator can be a day out

On ordinary dates, software agrees: 14 May 1988 to 20 September 2026 gave 38 years, 4 months, 6 days everywhere we tried. Month ends and leap days are where it differs. We ran the same date pairs through PostgreSQL 16's age(), Java 21's Period.between, python-dateutil 2.9 and LibreOffice Calc 24.2:

  • 31 January to 28 February 2025: the Age Calculator and dateutil gave 1 month, 0 days. Java and PostgreSQL gave 28 days and no month. Java's documentation says "A month is considered if the end day-of-month is greater than or equal to the start day-of-month" (Oracle: Java Period), and 28 is less than 31.
  • 30 April to 1 June 2004: the Age Calculator, Java and dateutil gave 1 month, 2 days. PostgreSQL gave "1 mon 1 day". Its documentation explains why: age() "uses the month from the earlier of the two dates when calculating partial months", so April's 30 days are used. It also warns of "ambiguity in the months field" (PostgreSQL: Date/time functions).
  • 29 February 2004 to 28 February 2025: the Age Calculator and Java gave 20 years, 11 months, 30 days. PostgreSQL gave 20 years, 11 months, 28 days, and dateutil gave 21 years.
  • Spreadsheets: Microsoft advises against DATEDIF with the "MD" unit (days after the last whole month): "We don't recommend using the "MD" argument, as there are known limitations with it." It "may result in a negative number, a zero, or an inaccurate result" (Microsoft Support: DATEDIF function). We didn't test Excel itself. In LibreOffice Calc, which also has DATEDIF, the "MD" unit returned −2 for 31 January to 1 March 2025.

If two tools disagree, a 29 February birth or a birthday on the 29th, 30th or 31st is the usual cause. Use the rule your organisation uses, not whichever tool you opened first.

Comparing two people's ages

The Age difference tab compares two dates of birth. Enter Person A's date of birth and Person B's date of birth in any order, then choose Calculate difference.

With 1 March 2003 for Person A and 29 February 2000 for Person B, it showed "3 years, 0 months, 0 days" and "Person B is older (born 29 February 2000)." It also showed Total days between "1,096 days" and a note: "The earlier date is 29 February, so its anniversaries in years without 29 February are counted on 1 March." Swapping the two dates gave the same gap, with Person A named as older.

Java, PostgreSQL and dateutil all gave 3 years and 1 day for the same pair, because they treat 28 February 2003 as the anniversary.

29 February and the law

The Age Calculator labels its result as "not a legal age determination", and this guide isn't legal advice. The legal texts we read don't settle the question in one way:

  • England and Wales: "The time at which a person attains a particular age expressed in years shall be the commencement of the relevant anniversary of the date of his birth." The section doesn't mention 29 February (legislation.gov.uk: Family Law Reform Act 1969, section 9).
  • Taiwan: the Civil Code says "The age of a person is counted from his birthday". For periods in months or years, "if there is no corresponding day in the last month, the period ends with the ending of the last day of the last month" (Laws & Regulations Database of the Republic of China (Taiwan): Civil Code, articles 121 and 124).
  • Japan: if a period in months or years ends in a month without the corresponding day, "the period expires on the last day of that month" (Japanese Law Translation: Civil Code, article 143).
  • Germany: the Civil Code has the same kind of rule. If the day is missing in the last month, the period ends at the end of that month's last day (gesetze-im-internet.de: BGB § 188, paragraph 3, in German).

The Taiwanese, Japanese and German rules are general rules for counting periods, and none of them names leap days. On their wording, a year counted from 29 February ends with the end of 28 February in a common year. Whether that makes someone legally older on 28 February or on 1 March depends on how each law counts the start and end of a day. For a legal deadline, an age limit or an official form, check the rule of the authority involved.

Check your result

  1. Inputs: the Date of birth and Age on date are the dates you mean. The age-on date starts as today on your device, so set it for a past or future date.
  2. Years: the years equal the number of birthdays on or before the age-on date.
  3. Edge cases: if the date of birth is 29 February, or the 29th, 30th or 31st of a month, expect other tools to differ by a day or so in the months and days.
  4. Leap-day rule: for a 29 February birth, you know whether the organisation that needs the age uses 1 March or 28 February.
  5. Working days: if you need business days rather than calendar days, use the Business Days Calculator and see how to calculate business days.