← Guides

How to calculate age from a date of birth, and why the law counts the day before

Everyday Tools ·

Most ages are easy to work out. The hard cases are the ones forms care about: a rule that says you reach an age the day before your birthday, a birthday on February 29, or a request for an age in years, months and days. This guide shows how to get an exact age with the Count days calculator, how to work backwards from an age to a date of birth, and what Social Security and the IRS mean when they ask how old you are.

Exact age in years, months and days

Open the Count days calculator, enter the date of birth as the Start date and today as the End date, leave Include end date unchecked, and click Calculate duration. For someone born on Friday, June 15, 1990, the result on Monday, November 23, 2026 reads "Result: 13,310 days" and, under it, "Or 36 years, 5 months and 8 days excluding the end date." The first figure is the days lived so far; the second is the age the way people say it.

The breakdown counts whole calendar months forward from the earlier date, then the days left over. Today stays unchecked because the day is not over. Checking Include end date adds one to both figures; use it only when a form says to count both the first and the last day.

The years figure moves on the birthday

From June 15, 1990 to June 14, 2027 the calculator shows 36 years, 11 months and 30 days. One day later, to June 15, 2027, it shows exactly 37 years. That is the everyday rule: you are 36 until your 37th birthday and 37 from that day on.

Why Social Security and the IRS count the day before

Federal rules take a different view. The Social Security regulations define attainment of age this way: an individual attains a given age on the first moment of the day preceding the anniversary of his birth corresponding to such age [1]. The agency's operating manual explains that Social Security follows English common law, under which a person attains an age on the day before the birthday, so a person born January 15, 2003 attains age one on January 14, 2004 [2]. Its retirement example is the one that matters to most people: a person born on 1/1/1962 attains age 65 on 12/31/2026 [3].

The IRS applies the same rule to the higher standard deduction for seniors: "You are considered age 65 on the day before your 65th birthday," so you count as 65 at the end of a year if your 65th birthday is on or before January 1 of the following year [4]. Run the Social Security example through the calculator: January 1, 1962 to December 31, 2026 is 23,740 days, or 64 years, 11 months and 30 days, and to January 1, 2027 it is exactly 65 years. The calculator reports completed time, the everyday age; the law treats the last day of that time as the day the age is reached. For someone born on January 1 that moves "age 65" into the previous calendar year.

Born on February 29

A leap day exists only in leap years: years evenly divisible by 4, except century years that are not evenly divisible by 400 [5]. So 2000 was a leap year and 2100 will not be. For someone born on Tuesday, February 29, 2000, the result on February 28, 2026 is 25 years, 11 months and 30 days, and on March 1, 2026 it is 26 years and 1 day. No date in 2026 shows exactly 26 years; the month count completes between those two days. On February 29, 2028 the age reads exactly 28 years. The Social Security and IRS pages cited here do not say which day a February 29 birthday counts as; when a deadline depends on it, ask the agency.

Finding a date of birth from an age

Turn the problem around with the Add days calculator. Enter today as the Start date, choose Subtract, type the age in Years and, if you have them, Months, then click Calculate new date. Someone who turns 40 on Monday, November 23, 2026 was born on Sunday, November 23, 1986. Someone who is 40 years and 3 months old was born about Saturday, August 23, 1986. A whole number of years pins the birth date down only to a one year window: on November 23, 2026, anyone born from November 24, 1985 (40 years, 11 months and 30 days) through November 23, 1986 (exactly 40 years) is 40.

Checking an age by hand

  1. Years: subtract the birth year from the current year, then take one away if this year's birthday has not happened yet. For June 15, 1990 on November 23, 2026 that is 2026 minus 1990, or 36.
  2. Months and days: count forward from the last birthday to today. June 15 to November 15 is five months, and November 15 to November 23 is eight days, giving 36 years, 5 months and 8 days.
  3. Days: multiply the completed years by 365, add one for each February 29 inside the span, then add the days since the last birthday. 36 times 365 is 13,140; the nine leap days from 1992 to 2024 make it 13,149; the 161 days from June 15 to November 23, 2026 make it 13,310.

Sources

Explore all four tools