Features

Your phone has never watched you walk. It sits in your pocket, in the dark, and yet at the end of the day it tells you that you took 6,432 steps. It figured it out by feel — by noticing the tiny rise and fall of your body with every stride.

Features — 84

How your phone counts your steps

Filed UnderPhones, How It Works
Read Time~3 minutes
PublishedNovember 13, 2026 at 3:56 PM
A woman walking on a path in pink sneakers, seen from behind at ankle level
Photo: Daniel Reche / Pexels

          Inside your phone is a sensor called an accelerometer. It measures acceleration — changes in speed and direction — along three axes: forward and back, side to side, and up and down. It does this hundreds of times a second, whether the screen is on or not. When you walk, your body bobs up and down in a regular rhythm, and the accelerometer feels each bob as a little wave of acceleration.
          Your phone's step counter watches for that wave. Each time your foot hits the ground, your body dips slightly and then rises; the sensor records a peak, then a valley. One peak-valley pair is roughly one step. The counter isn't watching your feet. It's watching the rhythm of the bounce.

The rhythm gives it away
          The trick is telling a step apart from everything else your phone feels. A phone in a pocket experiences a lot of motion: you sit down, you stand up, you shift in your chair, the car hits a bump. The step counter deals with this by looking for regularity. Walking produces a steady, repeating pattern — peak, valley, peak, valley — at a pace that stays roughly constant for a while. Random jolts don't repeat, so they get ignored.
          Most people walk at roughly 100 steps a minute at an easy pace, closer to 120 when hurrying. The counter is tuned to look for rhythms in that range. A pattern that's too fast, too slow, or too irregular doesn't count. That's why shaking your phone up and down sometimes adds steps — you're faking the rhythm — and why a bumpy bus ride usually doesn't: the bumps are too random to pass as walking.

“ Your phone never sees you walk. It feels the bounce, listens for the rhythm, and counts the beat.”

More sensors join in
          The accelerometer does most of the work, but it has help. A second sensor, the gyroscope, measures rotation — which way the phone is tilting and turning. Together, the two sensors can tell whether the phone is swinging in your hand, bouncing in your pocket, or sitting still on a table, and the counter adjusts its expectations for each case. That's part of why a phone in a loose jacket pocket counts about as well as one held in your hand.
          Some phones also use their barometer — the sensor that measures air pressure — to notice when you're climbing stairs. Air pressure drops slightly as you go up, so a flight of stairs shows up as a small pressure change paired with steps. Your phone turns that into the "floors climbed" number, a separate count from the steps themselves.

Why the count is never exact
          If you've ever compared two phones, or a phone and a watch, you've seen the counts disagree. That's normal. Step counting is estimation, not measurement. A slow shuffle may not bounce enough to register. A walk with a stroller or a shopping cart changes the rhythm of your arms and body. And every phone maker tunes the detection a little differently, so the same walk can produce different totals on different devices.
          The counts are still useful, because they're consistent with themselves. The same phone, carried the same way, will count a similar walk similarly day after day. The absolute number might be off by a few hundred, but the trend — more active Tuesday than Monday — is real. Health researchers treat phone step counts as a good rough guide, not a laboratory instrument.

A pocket full of physics
          It's worth pausing on how strange this is. A sensor the size of a grain of rice, measuring forces you can't feel, turns the jiggle in your pocket into a daily step total, a distance estimate, and a guess at the calories you burned. No satellites involved, no camera, no watching. Just a tiny weight on a spring, feeling the world move, and software patient enough to count the rhythm.
          The next time your phone congratulates you on a big day, give a little credit to the bounce. Every step you took left a small wave in the dark of your pocket, and your phone was paying attention.

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections