New: 100+ health biomarkers for $190

Apple Watch uses three different algorithms for heart rate

Brandon Ballinger ·

Apple Watch uses three different algorithms to measure heart rate: foreground, background, and tachogram. The watch picks between them depending on whether you’re working out, going about your day, or sitting still while it checks your rhythm.

The reason is that no single algorithm is best at everything. Measuring heart rate from light on the wrist is a tradeoff between power draw, motion, and how much detail you need. A method that works while you run drains the battery. A method that uses little power struggles when you’re in motion.

In this post, we’ll break down the three algorithms (foreground, background, and tachogram), the optical hardware sensor they run on, and how the underlying approach shifted from hand-tuned signal processing to a neural network.

How Apple Watch’s optical heart rate sensor works

The Apple Watch shines LED light through your skin and measures what reflects back off your blood with an array of photodiodes. This is called photoplethysmography, or PPG. As your heart beats, blood volume in your wrist rises and falls, and the reflected light changes with it.

Apple Watch photodiode arrangement Apple Watch uses green, infrared, and red light. Green and infrared measure pulse; red measures blood oxygen.

The sensor uses three wavelengths: green (525 nm), infrared (850 to 940 nm), and red (660 nm). Green and infrared measure your pulse. Red measures blood oxygen. The choice of which light to use is the first thing that separates the three algorithms.

The three Apple Watch heart rate algorithms

Apple uses three algorithms to read your pulse: foreground, background, and tachogram (2024 Apple white paper). Let’s go through each one.

Foreground algorithm

The foreground algorithm runs when you open the Heart Rate app or start a workout. It uses bright green LEDs and aims for one reading roughly every five seconds.

Green light is the most accurate choice during motion because it is absorbed strongly by blood and is less sensitive to movement than infrared. The cost is power, so the watch only runs it when you need a live number. It is accurate to within 5 bpm about 98% of the time at rest, and within 5 bpm about 87% of the time during exercise.

Background algorithm

The background algorithm runs throughout the day when you are not actively looking at your heart rate. It uses infrared light instead of green.

Infrared draws less power, which is why it is the right choice for all-day monitoring. The tradeoff is accuracy under movement, so the background algorithm is accurate to within 5 bpm about 89% of the time, and within 10 bpm about 98% of the time. The watch also leans on the accelerometer to discard readings taken while you move, then fills in around them.

Tachogram algorithm

The tachogram is the most precise of the three, but it only runs while you are still. It uses green PPG to capture the exact timing between consecutive beats rather than just a rate.

That beat-to-beat timing is what heart rate variability (HRV) is built from, and it is what feeds irregular rhythm notifications. Tachograms are within 5 bpm of the truth 99.6% of the time in normal rhythm, and 95% of the time during atrial fibrillation (Apple arrhythmia detection). By default the watch records one every four hours. Enabling irregular rhythm notifications or AFib History increases that to every two hours or every 15 minutes.

From a heart rate path optimizer to a neural network

The original Apple Watch heart rate algorithm was hand-engineered. Apple’s “heart rate path optimizer” was used until watchOS 4. HRPO used the accelerometer to suppress motion artifacts, then traced the most probable path of heart rate values through the noisy optical signal, choosing each beat based on the likelihood of the values around it.

In watchOS 5 (2018), Apple introduced a heart rate neural network (HRNN). Relatively little information is available about what type of neural network is used for heart rate estimation (ConvNet, LSTM, etc). However, Apple has subsequently published work on wearable foundation models. In December 2025, Apple researchers showed a foundation model trained on optical sensor data could pull richer cardiac signal from the same sensor than the standard pipeline (9to5Mac, Dec 2025).

Rumored heart rate accuracy improvements in watchOS 27

Mark Gurman reported that watchOS 27 will include improved heart rate tracking. It’s currently unknown whether that will involve the foundation model work reported above, or a new algorithm entirely. We’ll ultimately see what Apple announces at WWDC in June 9, 2026.

Why three HR algorithms matter for your health metrics

Each heart rate algorithm produces the inputs for a different set of health metrics on Apple Watch. The background algorithm drives your resting heart rate and all-day trends. The foreground algorithm covers workouts and cardio recovery. The tachogram drives HRV and rhythm detection. Knowing which one produced a number tells you how much to trust it, which is why we wrote a companion post on Apple Watch heart rate accuracy.

Get your free 30-day heart health guide

Evidence-based steps to optimize your heart health.

Heart disease kills more people than all cancers combined. Don't let it be you.

Stop by one of 2,200 testing sites today and start your journey to better heart health.

Image of a man on cellphone