HealthSave Get the iPhone app
Free tool · Runs in your browser

Health Age Calculator: Four Habits, In Your Browser

Type your 90-day averages for resting heart rate, steps, sleep and cardio minutes. You get one number on an age scale, the share each habit has in it, and the math behind it, from published studies. It is calculated on your device: nothing you type into the calculator is sent anywhere.

Health Age

1. Your 90-day averages

Beats per minute, your average at rest.
Your average daily step total.
Time asleep, not time in bed.
Moderate minutes once, hard minutes twice.
Without it you see only the difference from your age.

Counting cardio minutes. Count each minute of moderate effort once, like a brisk walk, and each minute of hard effort twice, like a run. Your Apple Watch's weekly Exercise minutes are a floor: they count each brisk minute once, so add your hard minutes a second time.

Have an Apple Health export? Fill the four averages from the file instead of typing them.

2. Your result

How to read this

  • The number is your age, plus or minus what four habits add or take off.
  • Each row shows what one habit adds (+) or takes off (−) in years, and how much room it has left.
  • Two futures shows what other 90-day averages would read.

Type your four 90-day averages above, or fill them from your Apple Health export, to see your Health Age.

HabitYour 90-day averageShare in years
Resting heart rateNo change at 60 bpm or below. Above 60 the share goes up.MissingNone yet
What counts

Your daily resting heart rate from one device, averaged over the days that have a value. It is a result, not a habit, so Two futures holds it where it is.

Steps per dayNo change at 8,000 steps a day. Fewer move it up; more move it down until 9,000, where it stops moving.MissingNone yet
What counts

Your daily step total, averaged over the days with any steps. Steps that a phone and a watch both record count once.

SleepNo change from 6 to 9 hours a night. Less than 6 or more than 9 moves it up.MissingNone yet
What counts

Time asleep in your main sleep each night, from one device. Time in bed and time awake do not count.

Cardio minutes per weekNo change under 115 minutes a week. From 115 it moves down, and stops moving at 500.MissingNone yet
What counts

Each minute of moderate effort counts once and each minute of hard effort twice, as a weekly average. Rest days count as 0, so three 40-minute brisk walks a week come to 120.

The most these four habits can show is 3.3 years younger.

Fill from Apple Health

Drop your Apple Health export and this page fills the four averages, and your age if its box is empty. You can still edit every box afterwards.

Drop export.zip or export.xml here

On iPhone: Health app, tap your picture, then Export All Health Data. The file is read on this page and never uploaded.

  • The 90 full days before the exportAn average needs data on at least 14 of those days. With fewer, its box stays empty and there is no total. The export day itself is left out.
  • Resting heart rate: one deviceThe mean of the daily resting heart rate values from the device with the most days. Other devices are left out, never blended in.
  • Steps: the day totalsThe mean over days with any steps. Each day uses the highest single-device total, because iPhone and Apple Watch count the same steps.
  • Sleep: time asleep, one deviceCore, deep, REM and unspecified asleep time from the device with the most nights. Time in bed and time awake are not counted. Each day counts its longest sleep, so naps are left out.
  • Cardio: which days countExercise minutes are the day totals in the Activity summaries in your export. A day counts when the watch recorded it: it has a resting heart rate value from the device chosen above, or Exercise minutes above zero. A counted day with no Exercise minutes counts as 0. The weekly number is 7 times the mean over counted days, and needs at least 14 counted days. An export with no Activity summaries leaves cardio empty.
  • Cardio: hard minutes count twiceA hard minute is a clock minute a recorded workout covers, even in part, whose heart-rate records average at or above resting + 0.60 × (220 − age − resting), with resting the 90-day mean above. It counts a second time. A minute two workouts cover counts once, and a day's hard minutes never exceed its Exercise minutes. Without an age, every minute counts once. An empty age box takes the date of birth in the export.
  • Not countedAnything outside the 90 days, heart rate outside workouts, a workout's overall average, workout minutes with no heart-rate records (their Exercise minutes still count once), and data that never reached Apple Health.

Two futures

Move steps, sleep and cardio minutes to see what this number would read with other 90-day averages. It is arithmetic on the formula below, nothing more.

Two futures opens once all four averages are in.

How this is calculated

Health Age is a summary of four habits on an age scale, from published studies. It is calculated on your device, and the math is printed below in full. It is not a medical test. It does not look at any medical condition.

The formula

difference in years = (1 / G) × sum over the four habits of ( w × ln HR ),   G = 0.1
Health Age = your age + difference in years, and never below 18

For each habit, HR is the ratio its study reports for your 90-day average against that habit's reference level, ln is the natural log, and w is the habit's weight. A habit's share in years is w × ln HR ÷ G. A negative total reads younger than your age; a positive one reads older.

The constants

HabitWeight wRatio HRWhere it does not move
Sleep, hours asleep a night0.87901.20 for each hour under 6, 1.34 for each hour over 96 to 9 hours
Resting heart rate, bpm0.70661.08 at 70 bpm and 1.33 at 90 bpm, in straight lines on the ln scale from 60, between and past them60 bpm or below
Cardio minutes a week0.69500.76 at 245, 0.71 at 418 and 0.68 at 500 minutes, in straight lines on the ln scale from 115Under 115, and 500 or more
Steps a day0.47730.88 for each 1,000 steps above 8,000, and 1 ÷ 0.88 for each 1,000 below9,000 or more

The best possible total is 3.29 years younger: resting heart rate at 60 bpm or below, 9,000 steps a day or more, 6 to 9 hours of sleep and 500 cardio minutes a week or more. That is the cap the result shows. The study's own worked example, 60 bpm, 9,000 steps, 7 hours of sleep and 420 cardio minutes, comes to 2.9978 years younger, so an age of 29 reads 26.0.

Cardio minutes

One point for each minute of moderate effort and two for each minute of hard effort, added up over a week. Apple Watch Exercise minutes count every brisk minute once, so they are the floor of this number; hard minutes earn their second point on top.

The same math as code

This page runs these functions in JavaScript (health-age.js). The reference version, in Python with the natural log:

from math import log
W = {"sleep": 0.8790, "rhr": 0.7066, "cardio": 0.6950, "steps": 0.4773}
G = 0.1

def ln_hr_rhr(bpm):                      # resting heart rate, beats per minute
    if bpm <= 60: return 0.0
    if bpm <= 70: return (bpm - 60) / 10 * log(1.08)
    return log(1.08) + (bpm - 70) / 20 * (log(1.33) - log(1.08))

def ln_hr_steps(steps):                  # mean steps per day; plateau at 9,000
    return (min(steps, 9000) - 8000) / 1000 * log(0.88)

def ln_hr_sleep(hours):                  # mean hours asleep per night
    if hours < 6: return (6 - hours) * log(1.20)
    if hours <= 9: return 0.0
    return (hours - 9) * log(1.34)

def ln_hr_cardio(minutes):               # cardio minutes per week; plateau at 500
    if minutes < 115: return 0.0
    if minutes < 245: return (minutes - 115) / 130 * log(0.76)
    if minutes < 418: return log(0.76) + (minutes - 245) / 173 * (log(0.71) - log(0.76))
    if minutes < 500: return log(0.71) + (minutes - 418) / 82 * (log(0.68) - log(0.71))
    return log(0.68)

def part_years(name, ln_hr):             # one habit's share, in years
    return W[name] * ln_hr / G

Sources

  • Lee, Esmaeilpour et al., arXiv:2611.08568 (2026): the formula and the weights.
  • Spiegelhalter, “How old are you, really?”, BMC Med Inform Decis Mak 16:104 (2016): the age-scale method.
  • Zhang, Shen, Qi, CMAJ 188(3):E53 (2016): resting heart rate.
  • Master et al., Nature Medicine 28:2301 (2022): steps.
  • Daghlas et al., JACC 74(10):1304 (2019): sleep duration.
  • Kany et al., Circulation 150(16):1236 (2024): activity minutes.

Questions, answered straight.

Is what I type sent anywhere?
Nothing you type into the calculator or load from a file is sent anywhere. The number is calculated by JavaScript on this page, on your device; the page stores nothing and runs no analytics, so the calculator keeps working offline once the page has loaded. The one thing here that can send anything is the email form below: it sends only your email address, and only if you submit it.
Is Health Age a medical test?
No. It is a summary of four habits on an age scale, from published studies. It does not look at any medical condition.
Why is there no slider for resting heart rate?
Resting heart rate is a result, not a habit you set directly. Two futures holds it at your current value and moves only steps, sleep and cardio minutes.
Why does the number stop moving at 9,000 steps and 500 minutes?
The formula has a plateau there: past 9,000 steps a day or 500 cardio minutes a week, those shares stay the same. Sleep has a flat band instead, where anything from 6 to 9 hours counts as no change.
Why 3.3 years younger at most?
Resting heart rate and sleep never go below zero, and steps and cardio minutes stop at their plateaus, so the four shares together reach 3.29 years younger at most.

Keep your Apple Health data in files you own.

HealthSave reads Apple Health on your iPhone and exports it as CSV, JSON or PDF, or syncs it to a server you choose. Pro is a one-time purchase.

Get HealthSave on the App Store