Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Mar 23 '11 at 21:04

This question came from our site for computer enthusiasts and power users.

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.

share|improve this answer

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.

share|improve this answer

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:

share|improve this answer

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.

share|improve this answer

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.

share|improve this answer
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 Depending on what you want to use that information for, couldn't hurt to reach out to the app developers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.