How Does Your Phone Count Your Steps? Accelerometers and the Pedometer

5 min read

Open your health app and today’s step count sits right there. Which is odd, if you think about it. You never swung a pedometer while walking; the phone just sat in a pocket or bag. It cannot see your legs — how does it count steps? And it must have been counting all day — why is the battery fine? This post covers the mechanics.

Your phone has an organ that senses motion #

The starting point is the accelerometer. Smaller than a fingernail clipping, this sensor inside every smartphone feels which direction the phone is moving and how hard (strictly, how it accelerates). Rotating the screen when you turn the phone sideways, waking the display when you lift it — all this sensor’s work.

The principle is surprisingly classical. Inside the sensor, a tiny weight hangs on spring-like structures. When the phone moves, inertia nudges the weight ever so slightly, and that nudge is read out as an electrical signal. It is the lurch you feel when a bus pulls away — rebuilt in silicon with structures thinner than a hair. These micro-machines are called MEMS, one of the quiet heroes of the smartphone revolution.

The sensor feels three directions at once — up-down, left-right, forward-back — so no matter how the phone lies in your pocket, motion is not missed.

Steps look like waves #

When a person walks, the body lifts and settles slightly with every step. You do not notice it, but to the accelerometer in your pocket this motion looks like a regularly rolling wave — one wave per step. In principle, then, counting steps is simple: count the crests.

Reality is messier. All kinds of jiggle reach the sensor besides steps, so a pedometer’s real skill is not counting but discriminating.

  • Is this a human walking rhythm? Steps beat at roughly one to three per second, steadily. Vibrations outside that band — a bus’s fine, irregular buzz, or the single spike of the phone being bumped — are ruled out.
  • Does it continue for several steps? Only when several crests appear in rhythm does the counter accept that walking has begun. This is why many pedometers register your first several steps late, in one lump — they are watching to be sure you are really walking.
  • Cross-checking with other sensors: combining signals from the gyroscope (which senses rotation) helps distinguish a hand shaking the phone from a whole body in transit.

Even so, it is not perfect. Push a shopping cart and your fixed hands make a smartwatch miss steps; ride a bike over rough ground and it may count phantom ones. A step count is best read not as a precision measurement but as a pretty good estimate.

Counting all day without draining the battery #

Counting steps means watching the sensor continuously. But the phone’s main brain (the application processor) is a glutton — assign it the watch duty and the battery melts.

So modern phones carry a separate ultra-low-power companion chip dedicated to sensor duty. Often called a motion coprocessor, this little chip stays awake while the main processor sleeps, reading the sensor and tallying steps into a ledger. It is engineered to sip power, so counting through the night leaves no mark on the battery. When you open the health app, what the app really does is closer to collecting that ledger than computing anything live.

In short, a division of labor: the cheap watching runs 24 hours on the frugal chip, and the expensive brain wakes only when needed.

Why every app shows a different number #

Same day, yet the phone’s health app, the smartwatch, and a third-party pedometer all disagree — a common experience, and the reasons are all in the story so far.

  • Discrimination thresholds differ by vendor. Whether a borderline jiggle counts as a step differs, and over a day that compounds into hundreds of steps.
  • Wearing position differs. A phone in a pocket and a watch on a wrist see completely different waveforms for the same walk. The watch tends to count hand-busy housework as steps; the phone knows nothing of steps taken while it sat on a desk.
  • Aggregation differs. How overlapping periods are merged when combining multiple devices varies by app — syncing devices can make the numbers look more inconsistent.

So a few hundred steps of disagreement between apps means nothing. What matters is comparing yesterday to today on the same yardstick, and for that purpose, any of the apps is accurate enough.

Summary #

  • The accelerometer reads the inertial nudge of a microscopic weight on springs, sensing motion in three directions at once.
  • Walking looks like a regular wave to the sensor, and pedometers count the crests — the real skill is filtering out bus vibrations and hand-waving.
  • Walking is only accepted once several crests keep rhythm, which is why the first few steps register late.
  • The watching is done by an ultra-low-power companion chip, not the main processor — the reason all-day counting leaves the battery intact.
  • Apps disagree because thresholds, wearing positions, and aggregation differ. Trust trends within one app, not absolute numbers across apps.
X