Guide · MacBook hardware

Which MacBooks have an accelerometer?

Newer MacBooks hide a motion sensor inside the case. Here is every MacBook Air and MacBook Pro model, whether it has the sensor, how to check yours in one Terminal command, and which apps use it.

Updated

Short answer: the 14- and 16-inch MacBook Pro from the 2021 M1 Pro and M1 Max models on, and every MacBook Air and 13-inch MacBook Pro with M2 or later, have an undocumented accelerometer that apps can read. The M1 MacBook Air, the 13-inch M1 MacBook Pro, Intel MacBooks and desktop Macs don't. We verified it on a 14-inch MacBook Pro with M5 Pro on November 2, 2026; the other rows rely on the public sources linked under the tables.

The sensor sits inside the case and is run by the chip's Sensor Processing Unit (SPU). Apple doesn't advertise it or offer an API for it, which is why people call it the MacBook's hidden accelerometer or hidden motion sensor.

MacBook Pro

ModelIdentifierChipMotion sensorBasis
MacBook Pro (14-inch, M5 Pro or M5 Max, 2026)Mac17,7, Mac17,9M5 Pro, M5 MaxYes, testedTested by us on Mac17,9 (M5 Pro), Nov 2, 2026
MacBook Pro (16-inch, M5 Pro or M5 Max, 2026)Mac17,6, Mac17,8M5 Pro, M5 MaxYes (reported)spank: M2 or later
MacBook Pro (14-inch, M5, 2025)Mac17,2M5Yes (reported)Knock and spank
MacBook Pro (14-inch, M4, 2024)Mac16,1M4Yes (reported)Knock and spank
MacBook Pro (14-inch, M4 Pro or M4 Max, 2024)Mac16,6, Mac16,8M4 Pro, M4 MaxYes (reported)Knock and spank
MacBook Pro (16-inch, 2024)Mac16,5, Mac16,7M4 Pro, M4 MaxYes (reported)Knock and spank
MacBook Pro (14-inch, M3, Nov 2023)Mac15,3M3Yes (reported)Knock and spank
MacBook Pro (14-inch, M3 Pro or M3 Max, Nov 2023)Mac15,6, Mac15,8, Mac15,10M3 Pro, M3 MaxYes (reported)Knock and spank; olvvier tested an M3 Pro
MacBook Pro (16-inch, Nov 2023)Mac15,7, Mac15,9, Mac15,11M3 Pro, M3 MaxYes (reported)Knock and spank
MacBook Pro (14-inch, 2023)Mac14,5, Mac14,9M2 Pro, M2 MaxYes (reported)Knock and spank
MacBook Pro (16-inch, 2023)Mac14,6, Mac14,10M2 Pro, M2 MaxYes (reported)Knock and spank
MacBook Pro (13-inch, M2, 2022)Mac14,7M2Yes (reported)Knock and spank
MacBook Pro (14-inch, 2021)MacBookPro18,3, MacBookPro18,4M1 Pro, M1 MaxYes (reported)spank lists the M1 Pro; Knock's list starts at M2
MacBook Pro (16-inch, 2021)MacBookPro18,1, MacBookPro18,2M1 Pro, M1 MaxYes (reported)spank lists the M1 Pro; Knock's list starts at M2
MacBook Pro (13-inch, M1, 2020)MacBookPro17,1M1No (reported)olvvier lists it as incompatible; spank excludes the plain M1

MacBook Air

ModelIdentifierChipMotion sensorBasis
MacBook Air (15-inch, M5)Mac17,4M5Yes (reported)spank: M2 or later (not on Knock's list yet)
MacBook Air (13-inch, M5)Mac17,3M5Yes (reported)spank: M2 or later (not on Knock's list yet)
MacBook Air (15-inch, M4, 2025)Mac16,13M4Yes (reported)Knock and spank
MacBook Air (13-inch, M4, 2025)Mac16,12M4Yes (reported)Knock and spank
MacBook Air (15-inch, M3, 2024)Mac15,13M3Yes (reported)Knock and spank
MacBook Air (13-inch, M3, 2024)Mac15,12M3Yes (reported)Knock and spank
MacBook Air (15-inch, M2, 2023)Mac14,15M2Yes (reported)Knock and spank
MacBook Air (M2, 2022)Mac14,2M2Yes (reported)Found in iFixit's teardown; Knock and spank
MacBook Air (M1, 2020)MacBookAir10,1M1No (reported)spank excludes the plain M1; Knock's list starts at M2

MacBook Neo, Intel MacBooks and desktop Macs

ModelIdentifierChipMotion sensorBasis
MacBook Neo (2026)—A18 ProNot verifiedNot tested by us; spank's README lists A-series chips as unsupported
Intel MacBook, MacBook Air and MacBook Pro—IntelNo SPU sensorNo Sensor Processing Unit (olvvier). Apple's older Sudden Motion Sensor is a different part
iMac, Mac mini, Mac Studio, Mac Pro—Apple silicon or IntelNoolvvier lists the Mac Studio (M4 Max) as incompatible

Model names and identifiers from Apple: Identify your MacBook Pro model and Apple: Identify your MacBook Air model. Sensor evidence from Macworld on iFixit's M2 MacBook Air teardown (July 2022), spank README, Knock and apple-silicon-accelerometer README. All checked November 2, 2026. “Reported” means at least one public source lists the model; we tested only the 14-inch M5 Pro.

How to check your MacBook

  1. Find your model. Choose Apple menu › About This Mac to see the name and chip. System Information › Hardware shows the Model Identifier, such as Mac17,9.
  2. Or ask macOS directly. Open Terminal and paste the command below. It only reads the system's device list, so it doesn't need sudo.
  3. Read the answer. 1 means the accelerometer is there. 0 means macOS doesn't list it.
ioreg -r -c AppleSPUHIDDevice -d 1 | grep -c '"DeviceUsagePage"=65280,"DeviceUsage"=3}'

We tested this command on a 14-inch MacBook Pro with M5 Pro (Mac17,9) running macOS 26.6.2, where it prints 1. It looks for the same device Keyslam looks for at launch: an AppleSPUHIDDevice on vendor usage page 0xFF00 (65280) with usage 3. Usage 9 on the same page is the gyroscope. If you'd rather browse, the apple-silicon-accelerometer README suggests ioreg -l -w0 | grep -A5 AppleSPUHIDDevice.

What the sensor is

  • An accelerometer and a gyroscope in one small motion chip (IMU), believed from teardowns to be a Bosch BMI286, according to the apple-silicon-accelerometer README.
  • Found in 2022. iFixit spotted it in the M2 MacBook Air teardown and couldn't say what Apple uses it for (Macworld).
  • About 800 readings a second at its native rate. Keyslam reads it at about that rate to time and size each keystroke.
  • Undocumented. Knock's site says it “relies on hardware features that are not officially documented by Apple (such as accelerometer access)”, so support can vary by model and macOS version.
  • Not the Sudden Motion Sensor. Intel notebooks had a motion sensor to park hard-drive heads when dropped. Apple says SSD Macs don't use it (Apple).

Apps that use the MacBook's hidden accelerometer

A handful of apps read the same sensor for very different jobs. Descriptions come from each project's own page, checked November 2, 2026.

AppWhat it does with the sensorPrice and licenseSource
KeyslamPlays real keyboard and typewriter strikes that follow how hard you type$3.99 once, 7-day free trialHow it works
HaptykKeyboard sounds that follow your typing force$8 one-time, 3-day trialhaptyk.com
TapNoiseKeyboard sounds; says it “feels how hard you press through the MacBook’s motion sensor”$14.99 once (launch price $5.99)tapnoise.com
KnockTurns taps on the MacBook's case into actions and shortcuts; Trackpad Tap Mode on any MacSee its sitetryknock.app
spank“Slap your MacBook, it yells back.” Runs from Terminal with sudoFree, open source (MIT)GitHub
apple-silicon-accelerometerPython library and demos that read the accelerometer and gyroscopeFree, open source; needs sudoGitHub

Most of them do different jobs. If you want taps on the case to run shortcuts, Knock is built for that. Haptyk and TapNoise are keyboard sound apps like Keyslam, which only uses the sensor to judge how hard each key was pressed. How Keyslam differs from each is on the Haptyk alternative page and the TapNoise alternative page. For keyboard sound apps side by side, with prices and sources, see our comparison of Mac keyboard sound apps.

Can two sensor apps run at the same time?

We haven't tested Keyslam alongside Knock, Haptyk, TapNoise or spank yet, so we can't promise it. Here is what we know from our own code: Keyslam opens the sensor in shared mode, not exclusively. It also switches the sensor's reporting off when it goes idle after 3 minutes, when you switch sounds or force sensing off, and when it quits, which could pause another app's readings until that app turns the sensor back on. We'll update this page once we've tested it.

Is the sensor data private?

In Keyslam, yes. Readings are filtered and kept in memory, about the last 5 seconds, only to match each jolt to a keystroke. They're never written to disk or sent anywhere, and the app makes no network connections at all.

No sensor? You still get the sounds

Force sensing is the only feature that needs the sensor. On the M1 MacBook Air, the 13-inch M1 MacBook Pro, Intel Macs and desktops, every pack plays and you choose Soft, Medium, Hard or Slam. Read keyboard sounds for Macs without the motion sensor, or see what the MacBook typing sound app does on each model.

Accelerometer questions

Does the M1 MacBook Air have an accelerometer?

Not one that apps can use, according to public sources: spank's README excludes the plain M1 chip, and the apple-silicon-accelerometer README lists the 13-inch M1 MacBook Pro as incompatible. We haven't tested an M1 MacBook Air ourselves. Keyslam still plays every sound on it at a strength you pick; see keyboard sounds on the M1 MacBook Air and Intel Macs.

Does the MacBook Neo have an accelerometer?

Not verified. Apple announced the MacBook Neo on March 4, 2026 with the A18 Pro chip, an iPhone-class chip rather than an M-series one, and its announcement doesn't mention a motion sensor. spank's README lists A-series chips as unsupported. If you have one, run the Terminal check on this page and tell us what it prints.

Do Intel MacBooks have a motion sensor?

Yes, but a different one. Apple says all Intel-based Mac notebooks have its Sudden Motion Sensor, which was built to protect spinning hard drives, and that Macs with SSD or flash storage don't use it. It isn't the Apple silicon sensor, and Keyslam doesn't read it, so on Intel MacBooks you choose the strength.

Can an app read the MacBook accelerometer without special permission?

Keyslam does it as an ordinary app: no root, admin password, driver or kernel extension. It asks for one permission, Input Monitoring, which it needs for key presses anyway. Some open-source tools, such as spank and the apple-silicon-accelerometer library, run with sudo. Apple doesn't document the sensor for third-party apps, so this could change in a future macOS update.

Put your MacBook's sensor to work.

Keyslam uses it to match each keyboard sound to how hard you type. $3.99 once, 7-day free trial.

Keep exploring