Skip to main content
STORAGE · M.2 EXPANSION

What is M.2 keying and why does it matter?

M.2 keying is the pattern of notches on an M.2 card and socket that shows which interfaces the slot carries. The four keys in common use are A and E for Wi-Fi and Bluetooth, B for modems and SATA SSDs, and M for NVMe SSDs. A card with the wrong key will not fit the socket.

01

What M.2 keying is

M.2 keying is the system of notches cut into an M.2 card’s edge connector and molded into the socket. Each notch position, called a key, stands for a set of interfaces the socket carries. A card can only go into a socket whose key lines up with one of the card’s cut-outs, so most mismatches are caught before power is ever applied.

The M.2 standard, published by PCI-SIG, defines a 75-position edge connector with up to 67 pins on the card. It names twelve key positions, A to M without I, but only four appear on everyday hardware: A, B, E and M. Each key blanks off eight contact positions, which is why one card can carry two notches and fit two socket types.

For anyone specifying hardware, keying front-loads the integration risk. Match the key and the interface at the order stage and the card installs cleanly. Get it wrong and the card either will not fit or, worse, fits and does nothing.

02

The four M.2 keys in common use

Notch positions are fixed by the standard, so a socket’s key tells you which group of signals is wired to it. The board manual still says which of those signals the host actually connects.

Key Notch pins Interfaces available Typical cards
A key 8–15 PCIe ×2, USB 2.0, I2C, DisplayPort Wi-Fi and Bluetooth (mostly older)
B key 12–19 PCIe ×2, SATA, USB 2.0 and 3.x, SIM, audio 4G and 5G modems, SATA SSDs
E key 24–31 PCIe ×2, USB 2.0, SDIO, UART, I2C, PCM Wi-Fi 6 and 7, Bluetooth, small AI accelerators
M key 59–66 PCIe ×4, SATA NVMe SSDs, accelerators, capture cards

The standard also groups sockets by role. Socket 1 is for connectivity cards and uses A or E keys. Socket 2 uses the B key for modems and SSDs. Socket 3 uses the M key for high-speed storage.

03

Dual-keyed cards: B+M and A+E

A card with two notches fits either socket type, which is useful for compatibility but can hide a protocol mismatch.

  • //
    B+M cards. Most M.2 SATA SSDs and some PCIe ×2 NVMe drives are cut for B+M, so they fit both B-key and M-key sockets. They run only the protocol the card’s controller speaks and the host has wired, so a SATA SSD in a PCIe-only M-key slot will not appear.
  • //
    A+E cards. Many Wi-Fi and Bluetooth cards are cut for A+E, so they fit either connectivity socket. They use PCIe for Wi-Fi and USB for Bluetooth, which both keys carry.
  • //
    Single-key cards. An M-key-only card, such as a four-lane NVMe SSD, cannot go into a B-key socket. That is deliberate, because the B key does not carry four lanes.
FAQ · 01
Will any SSD work in an M-key slot?
No. An M-key slot may be wired for PCIe only, SATA only or both. An NVMe SSD needs the PCIe lanes and a SATA SSD needs the SATA lines, so check the board manual for the slot’s protocol before ordering.
Read the full FAQ —
04

Why keying matters on industrial boards

Industrial motherboards and box PCs often carry two or three M.2 sockets with different keys, each with a specific job.

  • //
    Storage on M key. The M-key socket takes the boot SSD, usually NVMe. Our explainer on NVMe vs SATA on M.2 covers which protocol to choose.
  • //
    Cellular on B key. The B-key socket is the usual home for a 4G or 5G modem, because it carries the USB 3.x and SIM lines the modem needs. Our guide to integrating 4G, LTE and 5G connectivity covers antennas and SIM options.
  • //
    Wireless and AI on E key. The E-key socket carries Wi-Fi and Bluetooth, and on many NVIDIA Jetson computers it is the slot for the wireless card.
05

How to match a module to a socket

Three checks avoid nearly every keying problem. First, read the socket’s key and supported interfaces in the board or system manual. Second, check the card’s key, its interface and its size code, such as 2242 or 2280, against the space and standoff positions on the board; our M.2 form factor sizes FAQ lists the lengths. Third, confirm the host’s firmware and operating system support the card, for example NVMe boot in UEFI or a modem driver in Linux.

Compared with the older mSATA and mPCIe cards, which shared one unkeyed socket, M.2 keying is a real step forward. It still cannot tell you whether the host has wired every interface the key allows, which is why the manual comes first. Our guide to M.2 expansion slots and keys goes further into storage, connectivity and accelerator cards.

06

Quick answers on M.2 keying

M.2 keys: common questions

What is the difference between B key and M key?

Lanes and position. The B key sits near one end of the connector and carries up to two PCIe lanes, SATA and USB. The M key sits at the other end and carries up to four PCIe lanes and SATA, so it is the key for fast NVMe SSDs.

What is a B+M key SSD?

A dual-notched SSD. It fits B-key and M-key sockets. It is usually a SATA drive, sometimes a PCIe ×2 NVMe drive, and works only where the host supports that protocol.

What is an M.2 E key slot used for?

Wireless cards, mainly. E-key slots take Wi-Fi and Bluetooth cards and some small AI accelerators. They do not take SSDs.

Can an M key SSD fit a B key slot?

No. An M-key-only card has no cut-out in the B position, so it will not seat. That protects a four-lane drive from a socket with fewer lanes.

How do I find out which M.2 key my board has?

Check the manual or the product specification. Both list each socket’s key, size and interfaces. On the board itself, the socket is often silk-screened with its key letter.

We fit M.2 storage, modems and wireless cards to the right sockets as standard in every system we build, and check each card works before it ships. Tell us what you need to add and we will match the key, size and interface.