How Your iPhone Camera Measures Heart Rate

The flash lights your fingertip, the camera watches the light change with every beat. A plain-English guide to photoplethysmography and what affects it.

Key points

  • The method is called photoplethysmography, or PPG.
  • Each heartbeat changes how much light passes through your fingertip.
  • Movement, cold fingers and heavy pressure are the main causes of poor readings.

The idea in one paragraph

Every time your heart beats, a pulse of blood reaches the small vessels in your fingertip. Blood absorbs light, so for a fraction of a second slightly less light passes through. A camera pressed against the finger sees the image get a touch darker and then lighter again, once per beat. Count those cycles and you have a heart rate. The technique is called photoplethysmography (PPG).

What the phone does, step by step

  • Light. The flash shines steadily into your fingertip.
  • Capture. The camera records many frames each second. With your finger over the lens, each frame is a field of red.
  • Signal. The app averages the brightness of each frame, which produces a wave that rises and falls with your pulse.
  • Clean-up. Filtering removes slow drift and jitter that have nothing to do with your heart.
  • Result. The app finds the beats and works out beats per minute. Heart Rate Hero uses two methods together, one that times individual peaks and one that analyses the wave's frequency.

Where HRV comes from

Once each beat has a timestamp, the gaps between beats can be measured. Those gaps are the raw material for heart rate variability figures such as SDNN, RMSSD and pNN50. HRV asks more of the signal than heart rate does, because a small timing error on one beat changes the result, so a still hand matters even more.

The same principle as a wearable

The green lights on the back of a fitness watch are doing PPG too, reflecting light off the wrist instead of shining it through a fingertip. Hospitals use the same principle in the clip-on finger sensor. The physics is shared; the hardware, placement and testing differ.

What gets in the way

  • Movement. Any shift of the finger changes the light far more than a heartbeat does.
  • Cold hands. Less blood flow means a weaker signal.
  • Pressing hard. Too much pressure squeezes blood out of the fingertip.
  • Partial cover. If stray light reaches the lens, the wave gets noisy.

Our accuracy guide shows how to avoid each of these.

What it can and cannot tell you

A camera reading is a convenient way to check your pulse and follow trends. It is not an ECG, which records the heart's electrical activity, and it is not a medical device. If a reading worries you, a healthcare professional can check properly.

This article is general information, not medical advice. Heart Rate Hero is a wellness app, not a medical device. If you are worried about your heart, speak to a healthcare professional. Medical disclaimer.

Questions

Frequently asked questions

Is a phone camera heart rate reading accurate?
With a still, warm finger fully covering the camera and flash, a PPG reading gives a good estimate of pulse rate. Movement, cold hands and pressure reduce accuracy.
Do I need a wearable to measure heart rate?
No. The iPhone camera and flash are enough for spot readings. A wearable is only needed if you want continuous tracking.
Is PPG the same as an ECG?
No. PPG detects blood volume changes with light. An ECG records the heart's electrical signals and is the clinical standard for assessing rhythm.
Keep reading

Related articles

All articles

Check your heart rate now

Heart Rate Hero is free to download. All you need is your iPhone.

Download free on the App Store