Age Calculator

Calculate exact age from a date of birth.

Time & Date Exact age Y M D + totals
Rate this calculator · 3.7 (3)

Age Calculator (Years, Months, Days)

Calendar method · SSA rule · leap-year aware

Instructions — Age Calculator

1

Pick the date of birth

Enter any birthdate from 1900 onward. The calculator uses the calendar method recommended by the US Social Security Administration: subtract years, then borrow from months and days. This is the standard approach for legal age determination.

2

Set the reference date

Default is today. Change it to a future date to ask "how old will I be on...", or to a past date to ask "how old was I when...". Quick picks shift the reference date by ±1 year.

3

Read every measure of age

The big number is your age in years-months-days. The grid shows total days, total weeks, total hours, total minutes, total months, and days until your next birthday. Below that: day of the week you were born, generation, western zodiac, and Chinese zodiac.

SSA rule: Under 20 CFR § 404.102, you reach a given age the day before your birthday for Social Security purposes. The calendar method here matches the social and legal convention used everywhere else — you turn the new age on the birthday itself.
Leap-day birthdays: If you were born on February 29, this calculator advances your birthday to March 1 in non-leap years (the common US/UK convention). New Zealand uses February 28 for some legal purposes. Either way you celebrate the same number of birthdays as everyone else.

Formulas

The calendar method works in three steps: subtract years, borrow if the birthday has not happened yet, then settle months and days. Total days is computed directly from the millisecond difference between dates. Years, months, days, and total days are all independent of each other — the “years” figure ignores fractional months.

Age in full years
$$ \text{Years} = Y_r - Y_b - \delta $$
Y_r and Y_b are reference and birth years. Delta is 1 if the birthday has not yet occurred this year, else 0.
Total days lived
$$ \Delta d = \left\lfloor \frac{t_r - t_b}{86\,400\,000} \right\rfloor $$
Millisecond difference between the two dates divided by 86,400,000 (ms per day). Floor to the integer. Account for daylight-saving transitions by anchoring both dates at local midnight.
Leap-year rule
$$ \text{Leap} = (Y \bmod 4 = 0 \land Y \bmod 100 \neq 0) \lor (Y \bmod 400 = 0) $$
Gregorian leap rule. Divisible by 4 unless also divisible by 100, unless also divisible by 400. 2000 was a leap year; 1900 was not. The cycle has 97 leap years per 400 years, averaging 365.2425 days.
Total hours and minutes
$$ \text{Hours} = \Delta d \times 24, \;\; \text{Minutes} = \Delta d \times 1{,}440 $$
Once total days is known, hours and minutes are simple multiples. A 30-year-old has lived roughly 263,000 hours (= 30 × 365.25 × 24).
Day of the week
$$ DOW = (\text{day count since epoch}) \bmod 7 $$
JavaScript's Date object exposes the day of the week directly. The Gregorian week cycle (Mon-Sun) repeats every 7 days, so day-of-week is determined by date modulo seven offsets.
Days until next birthday
$$ D_{next} = \text{date of next birthday} - \text{reference date} $$
Set the next birthday as month-day in the current year; if already past, advance to next year. Leap-day birthdays advance to March 1 in non-leap years.

Reference

Age in different units
Age (years)DaysWeeksHoursMinutes
1365528,760525,600
103,65252187,6485,258,880
186,574939157,7769,466,560
217,6701,095184,08011,044,800
259,1311,304219,14413,148,640
3010,9571,565262,96815,778,080
4014,6102,087350,64021,038,400
5018,2622,608438,28826,297,280
6523,7413,391569,78434,187,040
7928,8544,122692,49641,549,760
10036,5245,217876,57652,594,560

Generation reference and life expectancy

Pew Research generation definitions (US convention) and CDC NCHS Data Brief No. 548 (2024 US life expectancy).

Generation
Birth yearName
before 1928Greatest Gen
1928 - 1945Silent Gen
1946 - 1964Baby Boomer
1965 - 1980Generation X
1981 - 1996Millennial
1997 - 2012Generation Z
2013+Generation Alpha
US life expectancy 2024
GroupYears
Overall79.0
Women81.4
Men76.5
Verified record122.5 (J. Calment)

Source: CDC NCHS Data Brief No. 548. Life expectancy at birth has rebounded after the 2020-2022 pandemic dip and is now at a US all-time high.

Article — Age Calculator

Age Calculator: Years, Months, Days, and Everything Between

An exact age is the calendar difference between today and your date of birth, expressed in years, months, and days. The calculator above also delivers the totals: a 30-year-old has lived roughly 10,957 days, 1,565 weeks, 262,968 hours, or 15.7 million minutes. The method follows the calendar convention used by the US Social Security Administration: subtract years, borrow if the birthday has not yet occurred, then settle remaining months and days. Leap years are handled by the Gregorian rule. Sources: SSA 20 CFR Part 404.102, CDC NCHS Data Brief No. 548 (2024), US Naval Observatory.

The default reference date is today, but you can set any past or future date to ask “how old will I be on...” or “how old was I when...”. The calculator also identifies the day of the week you were born, the generation you belong to, your western zodiac sign, and your Chinese zodiac animal. All inputs stay in your browser; nothing is sent or stored.

What this age calculator does

An age calculator does what subtracting one date from another seems simple to do but rarely is. Month lengths vary (28-31), leap years add a day every four years with exceptions, and the convention says a February 29 birthday in 1992 still counts as a birthday in 2026 even though the date does not exist. This calculator handles all three.

The primary output is age in years, months, and days. Secondary outputs — total days, weeks, hours, minutes, months — are derived from the same calendar difference and stay consistent. The next-birthday countdown advances normally except for February 29 births, where the US and UK convention shifts the celebration to March 1 in non-leap years.

Did you know

The verified human longevity record is Jeanne Calment of France, who lived 122 years and 164 days (1875-1997). At her death she had lived 44,724 days, 1,073,400 hours, or 64.4 million minutes. She reportedly sold canvases to Vincent van Gogh in her father’s shop in Arles when she was a teenager. No one since has lived past 120 years with verifiable documentation.

How exact age is calculated

The calendar method works in three steps. Subtract birth year from reference year. If the birthday has not yet occurred, subtract one more year — that gives the years figure. Then count calendar months from the most recent birthday to the reference date, then remaining days.

Example: born March 15, 1990, reference May 8, 2026. 2026 − 1990 = 36. Has March 15 passed by May 8? Yes, so years stay at 36. From March 15 to May 8 = 1 month + 23 days. Final: 36 years, 1 month, 23 days.

Calendar method
Years, months, days
Used by SSA, courts, recipes for age
Divide-by-365.25
Decimal years
Wrong on leap years, OK for statistics

Age in days, weeks, hours, and minutes

Total days = millisecond difference / 86,400,000, rounded down. Weeks = days / 7. Hours = days × 24. Minutes = days × 1,440. A 30-year-old has lived 10,957-10,958 days (depending on leap year count), 1,565 weeks, 262,968 hours, and 15.78 million minutes.

Pediatricians measure age in days for newborns and in weeks for the first two years. A six-month-old is tracked as 26 weeks. Many medication dosing schedules use weight-times-age-in-days for the first month, then switch to weight alone.

Tip

When projecting forward, use a future reference date in the calculator and read the result. To ask “how many days until my 50th birthday,” set the reference date to your 50th birthday and read the “total days” figure, then subtract today’s total days. The next-birthday count below the grid shows the closest birthday only.

Leap-year rules and the Feb 29 question

The Gregorian leap rule (1582): every fourth year is a leap year, except century years not divisible by 400. So 2000 was a leap year; 1900 was not; 2024 was; 2100 will not be. The 400-year cycle has 97 leap years, averaging 365.2425 days per year — close to the astronomical tropical year of 365.2422 days.

Roughly 1 in 1,461 babies is born on February 29 — about 5 million leaplings worldwide. In non-leap years, US and UK convention celebrates the birthday on March 1; New Zealand uses February 28 for some legal purposes. Leaplings age the same way as anyone else: a leap-day baby born in 2020 turned 4 in 2024 and will turn 8 in 2028.

The SSA rule: aging the day before your birthday

Under 20 CFR Part 404.102, the US Social Security Administration determines that a person attains a given age the day before their birthday. So a person born on January 1, 1960 reached age 65 on December 31, 2024, not January 1, 2025. The rule comes from English common law (the day-on-which-born is counted as the first day of life) and is preserved in federal benefit eligibility.

This matters for retirement claims: the “full retirement age” window opens on the SSA-attained-age date, not the birthday. For most everyday purposes — driving licenses, voting, alcohol purchase, social birthdays — the birthday itself remains the relevant date. The calculator uses the calendar-method age, matching the social convention; the SSA rule shifts the threshold by exactly one day for federal-benefit determinations.

Age cheat sheet
1 year 365.25 days (averaged)
Total days at age 30 ~10,957
Hours at age 30 ~263,000
Leap year rule 4, not 100, except 400
US life expectancy 79.0 years (CDC, 2024)
Verified record 122.5 years (J. Calment)
Leap-day birth rate ~1 in 1,461

Age generations and zodiac signs

Pew Research uses fixed birth-year ranges: Greatest (before 1928), Silent (1928-1945), Baby Boomer (1946-1964), Generation X (1965-1980), Millennial (1981-1996), Generation Z (1997-2012), Generation Alpha (2013+). The boundaries are conventional, not legal. Western zodiac assigns 12 signs in 30-day blocks starting around March 21 (Aries). Chinese zodiac assigns 12 animals on a 12-year cycle; the lunar transition at Chinese New Year matters for precise assignment but the year-based version is the common simplification.

Chronological age vs biological age

Chronological age is calendar time since birth. Biological age estimates how old the body acts based on biomarkers — telomere length, DNA methylation (Horvath clock), inflammatory markers, organ function. The two can diverge by a decade or more. The Horvath clock (Steve Horvath, UCLA, 2013) uses about 350 DNA methylation sites and estimates biological age within roughly 3-4 years of chronological age in healthy populations. Only chronological age is unambiguous.

Do not divide total days by 365

A common error: estimating years by dividing days by 365 (or 365.25). For exact age, use the calendar method (years, then months, then days). Dividing by 365 ignores leap years and yields a decimal that does not match the calendar-method age. For statistical work (epidemiology, actuarial science), the decimal age is acceptable as long as everyone uses the same definition.

Common age calculation mistakes

Three errors recur. First, mixing the SSA “day before birthday” rule with the everyday “day of birthday” convention — the two differ by one day. Use the SSA rule only for federal benefit calculations. Second, treating Feb 29 as an invalid birthday: it is valid; only the non-leap-year celebration date is debatable. Third, off-by-one between “how old am I” and “what year of life am I in.” A 30-year-old is in their 31st year of life. Both are correct; they just answer different questions.

  • Calendar method = subtract years, borrow months/days as needed
  • Total days at 30 = roughly 10,957
  • Leap rule = divisible by 4, not 100, unless also by 400
  • Days in a Gregorian year (averaged) = 365.2425
  • SSA aging rule = age attained day before birthday (20 CFR Part 404.102)
  • Leap-day birth probability = 1 in 1,461
  • US life expectancy 2024 = 79.0 (CDC)
  • Verified longevity record = 122 years 164 days (J. Calment)
  • Generation Z range = 1997 to 2012 (Pew)
  • Total minutes at age 30 = ~15.78 million

FAQ

Subtract birth year from current year, then adjust. If your birthday this year has not happened yet, subtract one more year. Remaining months and days come from the calendar difference. Example: born March 15, 1990; today May 8, 2026 = 36 years, 1 month, 23 days. The calculator above runs this for you and adds total days, weeks, hours, and minutes.
About 10,957 days (= 30 × 365.25). The exact figure depends on your birth date and how many leap years fell between then and now. The calculator above uses your exact birth date so the total days figure is precise to the day.
Leap-day babies (Feb 29) age normally. They turn one year older after 365 or 366 days like everyone else. In non-leap years, most US and UK conventions celebrate the birthday on March 1; New Zealand uses February 28 for some legal purposes. SSA rule (20 CFR Part 404.102) counts age as reached the day before the birthday for benefit purposes.
Multiply total days by 24 (hours) or 1,440 (minutes). A 25-year-old has lived roughly 219,144 hours or about 13.1 million minutes. The calculator above shows both figures alongside total days, total weeks, and total months.
Take your birth month and day, set it in the current year. If that date is in the past, advance to next year. Subtract today. The calculator above shows the days-until figure and the exact date of your next birthday. Leap-day birthdays default to March 1 in non-leap years.
The calculator above shows it. Day-of-week is calculated from the date directly, using JavaScript Date semantics aligned with the proleptic Gregorian calendar. A baby born on January 1, 2000 was born on a Saturday; one born on January 1, 2020 on a Wednesday.
Chronological age is calendar time since birth — what this calculator computes. Biological age is an estimate of how old a body acts based on health markers (telomere length, methylation patterns, organ function). They can diverge by a decade or more in either direction. Only chronological age has a single, unambiguous value.
Legally, age changes at the start of your birthday (midnight local time). The SSA technical rule pushes that boundary back by one day for federal benefits (20 CFR § 404.102), but in everyday and most legal contexts, you turn a new age on the birthday itself. Hour of birth does not enter the calendar calculation.