The Apple Health app tracks steps using a tiny motion sensor built into your iPhone (and Apple Watch, if you have one). This sensor detects the rhythmic up-and-down pattern your body produces with each step, then software algorithms filter out non-walking movements to give you a daily count. The whole process happens automatically in the background, no setup required.
The Sensor Inside Your Phone
Your iPhone contains a miniaturized accelerometer that measures movement along three axes: up and down, side to side, and forward and back. These sensors belong to a category called inertial measurement units, and they’re sensitive enough to detect not just walking and running but the specific acceleration pattern of a single step. Some devices also include a gyroscope and magnetometer, which help distinguish between types of motion, but the accelerometer alone can handle step counting and posture detection.
The sensor runs continuously on a dedicated low-power chip (Apple calls it the motion coprocessor), so it tracks your movement all day without draining your battery the way a GPS signal would.
How Software Turns Motion Into Steps
Raw accelerometer data is noisy. Riding in a car, fidgeting at your desk, or gesturing while you talk all produce movement signals. The step-counting algorithm’s job is to separate real steps from everything else, and it does this by looking for a very specific pattern: the rhythmic peaks and valleys that walking creates in your acceleration data.
When you walk, your body bobs slightly up and down with each stride. That produces a roughly sinusoidal wave in the accelerometer signal. The algorithm identifies steps by detecting peaks (moments of maximum acceleration) and valleys (moments of minimum acceleration) in the filtered signal. It checks how many peaks fall between two valleys, the timing between them, and whether the pattern matches known walking signatures.
The math gets more interesting depending on what you’re doing with your hands. When your arm swings freely as you walk, the wrist accelerometer picks up two peaks between each pair of valleys, corresponding to two steps. But if your phone is in your pocket, in a bag, or held in your hand while texting, the dominant signal comes from your torso’s center-of-mass movement instead. In that case, there’s only one peak per valley. The algorithm adapts its detection thresholds for each scenario. It also sets a minimum time interval between valleys so it doesn’t double-count steps from sudden jolts or vibrations.
Where You Carry Your Phone Matters
The position of your phone on your body meaningfully affects how well it counts steps. Research testing phones in four common locations found that the pocket delivers the highest accuracy at about 95%, followed closely by a belt clip at around 94%. A bag came in at roughly 89%, and holding the phone in your hand was the least accurate at about 79%.
The reason is straightforward: your pocket and belt are close to your center of mass, where the up-and-down walking pattern is cleanest and most consistent. A bag swings and shifts unpredictably. Your hand introduces extra noise from gestures, texting, and phone-checking movements that can look like steps to the sensor or mask real ones. If you want the most reliable count, keeping your phone in a front pocket is the simplest improvement you can make.
How Accurate Is the Step Count?
A validation study of iPhones worn in free-living conditions (meaning normal daily life, not a treadmill lab) found that iPhones recorded an average of about 9,250 steps per day compared to 10,530 from a research-grade pedometer. That’s roughly a 12% undercount. The iPhone tended to miss steps rather than invent them, which makes sense: the algorithms are designed to be conservative so that random movements don’t inflate your total.
That 12% gap slightly exceeds the 10% threshold that researchers typically consider acceptable for consumer devices. In practical terms, if you actually walked 10,000 steps, your iPhone might report around 8,800. The undercount isn’t consistent across everyone, either. The study found a standard deviation of 21%, meaning some people’s counts were very close while others were further off. Factors like walking speed, gait patterns, and where the phone was carried all contribute to individual variation.
GPS Calibration on Apple Watch
If you also wear an Apple Watch, the system gets smarter over time. During outdoor walks and runs, the watch uses GPS to measure the actual distance you covered, then works backward to calculate your stride length at different speeds. This calibration process means the accelerometer becomes more accurate even when GPS isn’t available, like on an indoor track or a treadmill.
Apple recommends calibrating by walking or running in a flat, open outdoor area with clear skies and good GPS reception. You don’t need to do a special calibration session. Every outdoor workout you complete with GPS active continues refining the watch’s understanding of your stride.
How Multiple Devices Avoid Double-Counting
If you carry an iPhone in your pocket and wear an Apple Watch, both are counting steps simultaneously. The Health app handles this through timestamp-based merging: it compares the time windows from each device and, when they overlap, uses data from whichever source it considers most accurate (typically the Apple Watch, since it’s always on your wrist).
This system isn’t perfect. If a third-party fitness tracker sends data with timestamps that are even slightly offset from your Apple Watch, the Health app may interpret those as separate activity periods and add them together, inflating your count. You can fix this by opening the Health app, navigating to the Steps category, scrolling to Data Sources & Access, and reordering or disabling sources so the app prioritizes one device over others.
What the Health App Actually Records
Step count is just one piece of what the pedometer system tracks. Apple’s motion framework also calculates distance traveled, floors climbed (using a barometric pressure sensor that detects altitude changes), walking pace, and cadence (steps per minute). All of this feeds into the Health app’s daily summaries and trends. The floors-climbed feature relies on a separate barometer sensor, which is why it works even when you’re climbing stairs indoors without GPS. A change of about 10 feet in elevation registers as one flight.
The Health app stores this data locally on your device and in encrypted iCloud backups. It updates throughout the day in near real-time, which is why you can open the app mid-afternoon and see your current count without manually syncing anything.