# Pocketlab Step Counter (accelerometer CSV) > Count steps in an accelerometer recording: steps, cadence, distance and steps per minute. Counts the steps in a phone or wearable accelerometer recording, the same way the Pocketlab step counter does live: paste or upload a CSV with a time column and one to three acceleration columns. You get the number of steps, the walking cadence, an estimated distance from your step length, steps per minute and a chart with every detected step. Part of usefulweb.app (https://usefulweb.app/). Part of [Pocketlab](https://pocketlab.usefulweb.app/) (ownerApp: pocketlab). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://pocketlabstepcounter.usefulweb.app/ (interactive tool at https://pocketlabstepcounter.usefulweb.app/tool) - JSON API: POST https://pocketlabstepcounter.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://pocketlabstepcounter.usefulweb.app/api/v1/tool) - OpenAPI: https://pocketlabstepcounter.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://pocketlabstepcounter.usefulweb.app/mcp - tool `pocketlab_step_counter` ## Inputs - file (file): CSV file - One row per sample: time, then 1–3 acceleration columns; header optional. Up to 200 000 rows. - csv (textarea): Or paste the samples - Used when no file is uploaded. Comma, semicolon, tab or space separated — the CSV the Pocketlab recorders download fits. - timeUnit (select): Time unit - accelUnit (select): Acceleration unit - stride (number): Step length - For the distance estimate. Measure it: walk 10 steps and divide the distance by 10. - sensitivity (number): Sensitivity - 1 = only firm steps, 10 = also light steps (and more false counts). ## Method - The magnitude of the acceleration √(x² + y² + z²) is taken, so the phone may sit in any orientation. A 1-second moving average (gravity and slow movements) is subtracted and the rest is smoothed over about 0.12 s. - A step is a local maximum above an adaptive threshold (a share of the signal's standard deviation set by the sensitivity, at least 0.5 m/s²). Peaks closer than 0.25 s count once (the higher one); single peaks without a neighbouring step within 2 s are bumps, not walking. - Cadence = 60 / median time between steps. Distance = steps × step length — an estimate, because step length changes with speed and slope. ## Limits - A phone in a bag, a hand or a pocket moves differently; on even ground counts are usually within a few percent, but shuffling, stairs, cycling and car rides give wrong counts. Not a medical or fitness device.