Theoretically the accelerometers in the iPhone can be used to track distance using interpolation over time.

What is the estimated error for tracking distances between 1 and 10 meters?
Is there any iPhone app that work as a measuring tape?


From what I've heard, the iPhone accelerometer output is very noisy - most applications that utilize it for any sort of moderate precision work do a lot of filtering and output modification to smooth out the noise. The iPhone can be placed flat on a table, and the accelerometer will still output a fair bit of data. I imagine you could certainly use it to measure longer distances (>10m), but I probably wouldn't trust it for high resolution measurements.


The accelerometer chips used in the iphone have too much noise to be used for accurate distance integration over even short distances with simple movements. Even if it were a quiet sensor and provided good data, Apple pre-filters the accelerometer in a way that prevents applications from performing a proper integration. The filtering is useful to lower the terrible noise floor, and to make app developer's lives easier whether they want 1 update per second or 100, but it's irreversible and Apple doesn't provide a way to get the raw data, so any acceleration integration only produces delayed distance with significant overshoot. This is, of course, on top of the normal problems of using an accelerometer to find distance (removing gravity - which the gyroscope makes much easier - for instance).

Most of the pedometer apps use the accelerometer to count steps and use the GPS to measure distance over longer distances and to calibrate the user's individual step distance. They do not sense distance using the accelerometer.


There are plenty of pedometer apps, so you might check their reviews. Also, in terms of accuracy, here's one stackoverflow answer:


and another about implementing a pedometer with around 20m accuracy:



The accumulated error of time integration is too much to measure distance from accelerometers. Even for industrial seismograph, most of them can not practically measure distance, even if filtering is adopted.


I wrote a blog post about it. Getting distance with accelerometer and other iPhone sensors without using GPS is definitely possible. Resulys aren't 100% accurate but usable.


  • Posting links only isn't really very helpful. Links disappear over time, so at least some précis of what the link says would be more useful to future readers.
    – Tetsujin
    Nov 27 '14 at 18:22

Did you want something like this? MagicPlan by Sensopia https://appsto.re/gb/WQFEz.i Depending on what you want to use that information for, couldn't hurt to reach out to the app developers.


The problem isn't the precision of the accelerometer but its precision relative to the time of the measurement. If you can move the phone from point a to point b in a fraction of a second, you should be able to get a very accurate measurement. However, if you take a minute or an hour for the same measurement, the accuracy will be near zero because of the noise.

You must log in to answer this question.