Explainer
Gyroscope vs Accelerometer
Gyroscope vs accelerometer explained: what each phone sensor measures, their units, strengths and weaknesses, and how sensor fusion combines them for orientation.
Published · 2 min read
Both are tiny motion sensors in every modern phone, but they measure different things. The gyroscope measures how fast the phone is turning. The accelerometer measures acceleration, including the constant pull of gravity.
At a glance
| Gyroscope | Accelerometer | |
|---|---|---|
| Measures | Angular velocity (rotation speed) | Linear acceleration, including gravity |
| Unit | °/s (degrees per second) or rad/s | m/s² (or g, where 1 g ≈ 9.81 m/s²) |
| At rest reads | About 0 on every axis | About 9.81 m/s² pointing up, away from the ground |
| Good at | Fast, smooth rotation tracking | Knowing which way is down, detecting shakes and steps |
| Weakness | Small errors add up to drift over time | Noisy, and can’t tell tilting from accelerating |
| Used for | Games, AR, 360° video, camera stabilisation | Auto-rotate, step counting, shake gestures, fall detection |
| Web API field | DeviceMotionEvent.rotationRate |
DeviceMotionEvent.accelerationIncludingGravity |
What the gyroscope measures
A MEMS gyroscope contains a microscopic vibrating structure. When the phone rotates, the Coriolis effect pushes the vibrating mass sideways, and the chip turns that tiny movement into a rotation rate for each of the three axes. Hold the phone still at any angle and the gyroscope reads close to zero. It only responds to change in angle.
What the accelerometer measures
The accelerometer measures acceleration along X, Y and Z. Because gravity is always present, a phone lying on a table reads about 9.81 m/s² on its Z axis. That makes the accelerometer good at finding “down”, which is how auto-rotate knows when you turn the phone sideways. It can’t measure rotation around the gravity axis, such as spinning the phone flat on a table.
Sensor fusion: why phones use both
Neither sensor is enough on its own. The gyroscope is fast and smooth but drifts. The accelerometer has no drift for tilt but is noisy and confused by movement. The operating system combines them, often with the magnetometer (compass) too, into a stable orientation estimate. In a browser, that fused result is what DeviceOrientationEvent reports as alpha, beta and gamma.
Orientation vs angular velocity
This is the most common confusion in gyroscope tests:
- Orientation (pitch, roll, yaw) is an angle: how the phone is held right now, in degrees.
- Angular velocity is a speed: how fast that angle is changing, in degrees per second.
Tilt your phone 45° and hold it there. Orientation shows 45°, but angular velocity drops back to 0 °/s once you stop moving. The tester shows both side by side for exactly this reason.
Does every phone have both?
Almost every smartphone has an accelerometer. Gyroscopes are standard in iPhones and in mid-range and flagship Android phones, but some budget models leave them out and estimate orientation from the accelerometer and magnetometer instead. On those phones, orientation may work in this tester while angular velocity stays unavailable.
Keep reading
Explainer4 min read
What Is a Gyroscope?
Gyroscope definition in plain words: how mechanical and digital MEMS gyroscopes work, what a phone gyroscope sensor measures, and what gyroscope sensitivity means.
Explainer3 min read
Gyroscope Drift Explained
Why phone gyroscopes drift, the difference between bias and noise, how much drift is normal, and practical ways to reduce drift in games, AR and 360° video.
Troubleshooting4 min read
Gyroscope Troubleshooting
Fix phone gyroscope problems on Android and iPhone: no sensor data, blocked motion access, drift, jitter, a dead axis or slow updates. Step-by-step checks.