Home › Device & Internet Tests › Accelerometer Test

Accelerometer Test

Check that your phone or tablet's motion sensors work. Tap Start, allow motion access if asked, then tilt and shake the device to see live accelerometer, gyroscope and orientation readings, moving graphs and a ball that rolls as you tilt.

Tap Start sensor test, then tilt and shake your device.
Tilt ballTilt the device to roll the ball
Acceleration including gravitym/s²
X–
Y–
Z–
Linear acceleration (without gravity)m/s²
X–
Y–
Z–
Gyroscope rotation rate°/s
α (Z)–
β (X)–
γ (Y)–
Orientationdegrees
Alpha (heading)–
Beta (front/back)–
Gamma (left/right)–
Total–
Peak–
Sample rate–
Events0
Acceleration (incl. gravity)X Y Z
Rotation rateα β γ
Advertisement
Advertisement

How to use the Accelerometer Test

  1. Open this page on your phone or tablet. Laptops and desktops usually have no motion sensor.
  2. Tap Start sensor test. On iPhone and iPad tap Allow when Safari asks for motion and orientation access.
  3. Tilt and shake the device and watch the X, Y and Z values, the graphs and the tilt ball respond.
  4. Check each axis: lying flat, Z should read about 9.8 m/s² (1 g) and X and Y close to 0.
  5. Press Record to capture readings, then Stop and download the CSV file.

Expected readings for a working sensor

Gravity gives every accelerometer a built-in reference of 1 g = 9.81 m/s². Hold the device still in each position below; the reading including gravity should be close to these values (within about ±0.3 m/s²).

Device positionXYZTotal
Flat on a table, screen up00+9.811.00 g
Flat, screen down00−9.811.00 g
Upright in portrait0+9.8101.00 g
On its left edge (landscape)+9.81001.00 g
Free fall (dropped)0000.00 g

Some browsers, notably older versions of Safari on iPhone, report the opposite sign, so a flat phone may show −9.81 on Z. That is normal. When the phone is still, linear acceleration (without gravity) and the gyroscope rotation rate should both stay close to 0.

Accelerometer vs gyroscope vs orientation

  • Accelerometer: measures acceleration along X, Y and Z in m/s², including gravity. Used for screen rotation, step counting and shake gestures.
  • Linear acceleration: the same reading with gravity removed by the phone, so it only shows movement.
  • Gyroscope: measures rotation speed around each axis in degrees per second. Used for stabilisation, 360° photos, VR and motion controlled games.
  • Orientation: angles the phone calculates by combining sensors. Beta is front-back tilt (−180° to 180°), gamma is left-right tilt (−90° to 90°) and alpha is the heading around the vertical axis (0° to 360°).

The total g-force is calculated as √(x² + y² + z²) ÷ 9.81 using acceleration including gravity.

Troubleshooting a sensor that does not respond

  • On iPhone and iPad, motion data only flows after you tap Start and choose Allow. If you denied it, fully close the tab and reopen the page.
  • Values that stay exactly at 0 or never change usually mean the sensor or its driver has failed; restart the phone and test again.
  • If auto-rotate or step counting misbehaves but this test looks normal, check the app's own settings or recalibrate in your phone's settings.
  • A gyroscope that drifts (rotation rate not near 0 while the phone lies still) can be recalibrated on many Android phones from a diagnostics menu or by restarting the device.

Frequently asked questions

How do I know if my accelerometer is working?

Lay the phone flat on a table. The acceleration including gravity should show about 9.8 m/s² on the Z axis and close to 0 on X and Y, and the total should read about 1.00 g. Stand the phone upright and the 9.8 should move to the Y axis; turn it on its side and it moves to X. If the numbers do not change or stay at 0, the sensor is not responding.

What is the difference between the accelerometer and the gyroscope?

The accelerometer measures linear acceleration, including the constant pull of gravity, in metres per second squared. The gyroscope measures how fast the device is rotating around each axis, in degrees per second. Orientation angles are calculated by the phone by combining these sensors, and often the magnetometer for the compass heading.

Why does nothing happen on my laptop or desktop?

Most laptops and desktop computers do not have a motion sensor, or the browser does not expose it. The test then shows that no sensor was found. Open the page on a phone or tablet; you can copy the link with the button on the page.

Why do I need to allow motion access on iPhone?

Since iOS 13, Safari only gives web pages motion and orientation data after you tap a button and choose Allow. If you tapped Don't Allow, close the tab completely and open the page again to be asked once more. The page must also be loaded over https.

What do the X, Y and Z axes mean?

With the phone held upright in portrait, X points to the right edge of the screen, Y points to the top of the screen and Z points out of the screen towards you. Rotation alpha is around Z, beta around X (tilting forward and back) and gamma around Y (tilting left and right).

What sample rate should my sensor have?

Browsers usually deliver motion events at about 60 times per second, the same as the screen refresh rate, even if the hardware sensor is faster. Some browsers deliver fewer events in power saving mode. A rate far below 20 Hz can make motion controlled web games feel jerky.

Is my sensor data sent anywhere?

No. All readings are processed in your browser and nothing is uploaded. Recordings are only saved when you download the CSV file yourself.

Related tools

Bubble LevelTurn your phone into a spirit level with surface and bar modes.Online CompassUse your phone as a compass with heading in degrees and cardinal points.Vibration TestTest your phone's vibration motor with short, long, SOS, heartbeat and custom patterns.Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.Internet Speed TestMeasure download, upload, ping and jitter.What Is My IPSee your public IP address and location.Typing Speed TestMeasure your typing speed in WPM.Reaction Time TestTest your reflexes over 5 rounds and see your average and percentile.Click Speed TestTest your clicks per second (CPS) in 1 to 60 second modes.Jitter Click TestMeasure jitter clicking CPS, peak speed and click consistency.Kohi & Butterfly Click TestKohi, butterfly and drag click CPS tests with left/right click stats.Refresh Rate TestCheck your monitor's refresh rate in Hz and spot dropped frames.Aim TrainerPractice clicking targets and measure accuracy and reaction time.Spacebar CounterHow fast can you press space? Timed spacebar clicker test.Microphone TestTest your microphone with a live level meter.Webcam TestCheck your webcam, resolution and frame rate.Keyboard TesterTest every key and check for ghosting.Mouse TesterTest clicks, double clicks and the scroll wheel.Dead Pixel TestFind dead or stuck pixels on your screen.Gamepad TesterTest controller buttons, triggers, stick drift and vibration in your browser.What Is My Screen ResolutionSee your screen resolution, viewport, pixel ratio, colour depth and display features.Battery Status CheckerCheck your battery level, charging state and time to full or empty.What Are My GPS CoordinatesSee your latitude and longitude in decimal and DMS, with accuracy and maps.Screen FlashlightTurn your screen into a bright white or coloured light that stays awake.Ring LightTurn your screen into a ring light or fill light with adjustable color temperature.Online RulerAn actual-size on-screen ruler in cm, mm and inches, calibrated with a credit card.Online ProtractorMeasure any angle on screen or in a photo with a draggable 360° protractor.Device Pixel Ratio CheckerSee your device pixel ratio, CSS viewport, physical resolution and screen PPI live.Browser Feature CheckerTest which Web APIs, CSS features and JavaScript syntax your browser supports.Local Storage InspectorView, edit and clear the cookies, localStorage and other data this site stores in your browser.FPS TestMeasure your browser's live frame rate, 1% lows and frame times, and compare 15-240 FPS.GPU TestSee your graphics card, WebGL and WebGPU support and limits, and run a quick GPU benchmark.Mouse DPI TestFind your mouse's real DPI by moving it a measured distance, with multi-run averaging.Color Blindness TestQuick 14-plate dot test that screens for red-green and blue-yellow color vision deficiency.Number Memory TestRemember a number that grows one digit each level. Track your digit span and best score.CPU BenchmarkTest your processor's single-thread and multi-thread speed in the browser and compare scores.Ping TestCheck your latency, jitter and packet loss to Cloudflare, Google and other servers live.MIDI Keyboard TesterTest a MIDI keyboard or controller: see notes, velocity, CC knobs and pedals live.Headphone TestTest headphones: left/right channels, 20 Hz–20 kHz sweep, bass, treble, phase and 3D sound.Monitor TestFull-screen monitor test patterns: uniformity, banding, gamma, sharpness, black level, ghosting.Browser Fingerprint TestSee how unique your browser is: canvas, WebGL, audio, font and screen fingerprints, run locally.WebRTC Leak TestCheck if WebRTC exposes your real public or local IP address, even behind a VPN.IPv6 TestTest whether your connection supports IPv6, see your IPv4 and IPv6 addresses and check any site.Sequence Memory TestWatch squares flash in a 3x3 grid and repeat the growing sequence. Track your best level.Visual Memory TestRemember which squares light up as the grid grows. Three lives, levels and score history.Pen Pressure TestTest drawing tablet and stylus pressure, tilt and twist live, with a pressure graph.