NodeLoop

M.2 (NGFF) Connector Pinout & Keys Explained

A detailed look at the M.2 standard, its various module keys, and common pin assignments.

Erratum
Updated
  • The configuration-pin section listed a CONFIG_4 signal that does not exist; Socket 2 defines CONFIG_0 to CONFIG_3 (pins 21, 69, 75, 1). The Key B+M paragraph mentioned "B+M sockets": sockets are keyed B or M, only modules carry both notches.
  • The thickness section now gives the S1–S3 / D1–D5 component-height codes instead of only referring to the specification, and the repeated Socket 1 mapping paragraphs were merged into the pin table.

Sources: congatec AN43, M.2 pinout descriptions (CONFIG pins, Socket 1 E-key), M.2 overview (module thickness codes).

The M.2 standard, formerly known as Next Generation Form Factor (NGFF), is a versatile specification for internally mounted computer expansion cards. It was designed to replace the mSATA standard and is used for a wide variety of devices, including Wi-Fi, Bluetooth, WWAN (cellular), GPS, NFC, and most notably, Solid State Drives (SSDs).

M.2 Module Keys and Sockets

M.2 modules feature notches (keys) that correspond to different socket types on the motherboard or host device. These keys prevent incorrect insertion and ensure compatibility. A single M.2 card can have one or more notches.

The keying is defined by which pins are "missing" or "notched out" on the 75-pin edge connector. Here are the most common keys and their typical applications:

Key A (Pins 8-15 Notched)

  • Primary Interfaces: PCIe x1 (or x2 with some configurations), USB 2.0. Also supports I2C, DisplayPort x4 (optional).
  • Common Applications: Wi-Fi, Bluetooth, WiGig (Wireless Gigabit), NFC (Near Field Communication).
  • Pin map: see the Socket 1 table below.
  • Often combined with Key E (see Key A+E).

Key B (Pins 12-19 Notched)

  • Primary Interfaces: PCIe x2, SATA, USB 2.0/3.0, Audio, UIM (SIM card), I2C, SMBus.
  • Common Applications: SSDs (SATA or PCIe x2 NVMe), WWAN (3G/4G/5G cellular modems), GPS.
  • Modules can be 22mm wide and various lengths (e.g., 2230, 2242, 2260, 2280, 22110).

Key E (Pins 24-31 Notched)

  • Primary Interfaces: PCIe x1 (or x2), USB 2.0. Also supports I2C, SDIO, UART, PCM.
  • Common Applications: Wi-Fi, Bluetooth, WiGig. Similar to Key A.
  • Pin map: see the Socket 1 table below.
  • Often found in an A+E keyed slot for Wi-Fi cards.

Key M (Pins 59-66 Notched)

  • Primary Interfaces: PCIe x4 (main interface for high-performance NVMe SSDs), SATA (optional, depending on host support).
  • Common Applications: High-performance NVMe SSDs.
  • Modules can be 22mm wide and various lengths.

Combined Keys (e.g., B+M, A+E)

Some M.2 cards and slots use a combination of keys to support broader compatibility or multiple interfaces:

  • Key B+M: These modules have two notches (B and M), so they fit both B-key and M-key sockets; a host socket is keyed either B or M, there is no "B+M socket". They are usually SATA SSDs, sometimes PCIe x2. Whether the module works depends on the interface the host routes to the socket.
  • Key A+E: Commonly used for Wi-Fi and Bluetooth combo cards. These cards fit in sockets keyed A or E.

Important Note: Physical keying only prevents incorrect insertion. Electrical compatibility also depends on the host system supporting the protocol used by the M.2 card (e.g., a Key M slot might physically accept a SATA M.2 SSD with B+M keying, but if the slot only provides PCIe lanes, the SATA SSD won't work).

M.2 Form Factors & Mechanics

M.2 module sizes are commonly expressed as a four- or five-digit code in the form WWLL (e.g., 2280), where WW is the width in millimeters and LL is the length in millimeters. The most common width in PCs is 22 mm; length varies by application and chassis.

Common Sizes (WWLL)

  • 2230 → 22 × 30 mm — Very compact; Wi‑Fi/BT, WWAN, embedded.
  • 2242 → 22 × 42 mm — Compact SSDs or small form‑factor systems.
  • 2260 → 22 × 60 mm — Less common; some OEM platforms.
  • 2280 → 22 × 80 mm — Most consumer SSDs in desktops/laptops.
  • 22110 → 22 × 110 mm — Workstation/server or high‑capacity SSDs.
22 mm 80 mm (example length) 2230 2242 2260 2280 22110
Illustrative only. Standoff positions vary by board; consult your vendor documentation.

Thickness & Component Sides

  • Boards may be single‑sided (components on one face) or double‑sided. The module type code gives the maximum component height on each face: S1 1.20 mm, S2 1.35 mm, S3 1.50 mm (top only); D1 1.20 / 1.35 mm, D2 1.35 / 1.35 mm, D3 1.50 / 1.35 mm, D4 1.50 / 0.70 mm, D5 1.50 / 1.50 mm (top / bottom). A full designation reads like 2280-D2-M (size, thickness, key). Thin laptops often accept only single-sided (S) modules.
  • Board-side clearance under the module (and heatspreaders on the module) can rule out double-sided types; check the host documentation.

Sockets (1/2/3) and Typical Uses

  • Socket 1 — Typically wireless (Wi‑Fi/Bluetooth), often Key A/E.
  • Socket 2 — WWAN or SSD (SATA/PCIe x2) on some designs.
  • Socket 3 — Storage (NVMe PCIe or SATA), commonly Key M or B+M.

Mounting & Hardware

  • Modules fasten via a single mounting hole at the free end. Motherboards provide standoff positions at common lengths (2230/2242/2260/2280/22110).
  • Consumer boards typically use a small M2 screw with a standoff; don’t overtighten. Use the standoff location matching the module length.

Thermal Considerations

  • High‑performance NVMe SSDs can throttle thermally. Heatsinks or pads are commonly recommended by vendors and motherboard makers.
  • Ensure airflow and avoid obstructing thermal pads/heatsinks with cables.

RF Considerations (Wi‑Fi/WWAN)

  • Wireless modules may require external antennas via miniature RF connectors (e.g., MHF4/u.FL). Confirm connector type and cable routing.

Reading Module Labels

  • Size code (e.g., 2280) → width × length in mm.
  • Keying and interface (e.g., “Key M, PCIe Gen3×4 NVMe” vs “SATA”) determine compatibility and performance; match to the host slot’s capabilities.

For exact dimensions, tolerances, and keep‑out zones, consult the official specification and your motherboard/device vendor documentation.

M.2 Connector Pinout (75 Positions)

The M.2 connector has 75 positions, but there is no single universal per-pin function table that applies equally to Key A, Key E, Key B, and Key M. The same physical pin number can carry different signals depending on whether the slot is Socket 1, Socket 2, or Socket 3.

The safest way to read M.2 pinouts is by socket family. The reference blocks below group the most important pins by the socket definitions used in practice for wireless modules, WWAN/storage modules, and NVMe SSDs.

Socket 1: Key E And Common A+E Wireless Modules

Typical Wi-Fi / Bluetooth lane-0 mapping used by connectivity cards.

Signal Group Pins Notes
Power / Ground3.3V: 2, 4, 72, 74. GND: 1, 7, 18, 33, 39, 45, 51, 57, 63, 69, 75Common Socket 1 rails.
USB 2.03 / 5Bluetooth usually rides on USB2.
PCIe Lane 0 Tx35 / 37PETp0 / PETn0.
PCIe Lane 0 Rx41 / 43PERp0 / PERn0.
PCIe REFCLK047 / 49REFCLKp0 / REFCLKn0.
PCIe Sideband52 / 53 / 55PERST0#, CLKREQ0#, PEWAKE0#.
Wireless Disable54 / 56W_DISABLE2# and W_DISABLE1#.
Key E extras8-23, 32, 34, 36, 58, 60, 62SDIO, UART, PCM/I2S, I2C/ALERT and coexistence signals.
COEX44, 46, 48COEX3, COEX_RXD, COEX_TXD (radio coexistence).
Optional second PCIe lane59 / 61, 65 / 67, 71 / 73, 66 / 68 / 70PETp1/PETn1, PERp1/PERn1, REFCLK1, and PERST1# / CLKREQ1# / PEWAKE1#. Pins 66/68/70 can instead carry UIM_SWP / UIM power functions on modules that use them.

Mechanical Key A Is Not The Same Low-Pin Map As Key E

Mechanical Key A keeps USB2 on pins 3/5 and PCIe lane 0 on 35/37/41/43, but many pins that Key E uses for SDIO/UART/PCM are repurposed for DisplayPort or WiGig-style signaling. In the Socket 1 Key A mapping, pins 17-34 carry DisplayPort and related sidebands, while the optional second PCIe lane lives on 59/61 and 65/67 with sidebands on 66/68/70/71/73.

Socket 2: Key B And The Shared B+M Storage Subset

Used by WWAN modules and by SATA / PCIe x2 storage designs.

Signal Group Pins Notes
USB 2.07 / 9Key B WWAN base interface.
PCIe / SATA Lane 0 Tx47 / 49PETn0 / PETp0, shared with SATA A- / A+.
PCIe / SATA Lane 0 Rx41 / 43PERn0 / PERp0, shared with SATA B+ / B-.
Optional Lane 129 / 31 / 35 / 37PCIe lane 1, often multiplexed with USB 3.x or SSIC depending on the host configuration.
PCIe Sideband50 / 52 / 53 / 54 / 55PERST#, CLKREQ#, REFCLKn, PEWAKE#, REFCLKp.
Storage Sideband38DEVSLP.
UIM / SIM30, 32, 34, 36, 66UIM_RESET, UIM_CLK, UIM_DATA, UIM_PWR, SIM_DETECT.
Configuration Detect1, 21, 69, 75Used by the host to identify the intended Key B module interface.
B+M note12-19 and 59-66 removedB+M SSDs usually expose the shared storage subset of Socket 2, not a separate canonical socket definition.

Socket 3: Key M NVMe / SATA Storage

Main storage socket for NVMe SSDs, with optional SATA support depending on the host.

Signal Group Pins Notes
PCIe / SATA Lane 041 / 43 / 47 / 49PERn0, PERp0, PETn0, PETp0. Shared with SATA B+/B- and A-/A+.
PCIe Lane 129 / 31 / 35 / 37PERn1, PERp1, PETn1, PETp1.
PCIe Lane 217 / 19 / 23 / 25PERn2, PERp2, PETn2, PETp2.
PCIe Lane 35 / 7 / 11 / 13PERn3, PERp3, PETn3, PETp3.
PCIe Sideband50 / 52 / 53 / 54 / 55PERST#, CLKREQ#, REFCLKn, PEWAKE#, REFCLKp.
SMBus / Alert40 / 42 / 44SMB_CLK, SMB_DATA, ALERT#.
Other Sideband38 / 68 / 69DEVSLP, SUSCLK, and PEDET.

These reference blocks were aligned against Socket 1 / Key E, Socket 2 / Key B, Socket 3 / Key M, and the common dual A+E module references. Always verify the exact host wiring and module datasheet before routing a board or buying an adapter.

Configuration Pins (CONFIG_0–CONFIG_3, Socket 2)

Socket 2 (Key B) defines four configuration pins: CONFIG_0 on pin 21, CONFIG_1 on 69, CONFIG_2 on 75 and CONFIG_3 on 1. The module ties each one to ground or leaves it open, and the combination tells the host which interface the module uses (for example SATA versus PCIe SSD, or a WWAN interface variant). There is no CONFIG_4. Socket 3 (Key M) uses pin 69 as PEDET instead (grounded by a SATA module, open for PCIe), and Socket 1 has no configuration pins.

References & Further Reading

Need a Specific M.2 Pinout?

Check whether a module fits mechanically and uses the interfaces actually routed by the host, then inspect the exact pins for its key.

This page provides a general overview. Always consult the official datasheets for your specific M.2 card and host device for precise pinout information and compatibility. Pin functionalities can vary significantly based on the device and its intended application.

FAQ - M.2 (NGFF) Pinout

What is the M.2 (NGFF) pinout used for?
The M.2 pinout maps PCIe, SATA and USB2.0 signals to the edge connector. The exact lanes and sidebands depend on the key (B, M, E) and the host wiring.
B-key vs M-key: what are the electrical differences?
B-key typically offers PCIe x2 and/or SATA plus USB2.0; M-key supports PCIe x4 for NVMe SSDs. Notch position prevents cross-insertion and the lane count differs.
Where are the USB 2.0 pins on M.2?
USB D+ and D- are present on specific pins for B/E keys so wireless or WWAN modules can enumerate even without PCIe. Many M-key NVMe slots omit USB wiring.
Does a SATA M.2 drive work in an NVMe-only M-key slot?
No. NVMe requires PCIe lanes. A motherboard must route SATA to the socket for a SATA M.2 SSD to work. Check the board manual for SATA vs PCIe support.
What does E-key expose for Wi-Fi/BT modules?
E-key usually exposes PCIe x1 and USB2.0, sometimes SDIO/UART depending on the host. RF control lines and CLKREQ#/PERST# sidebands follow the M.2 spec.
Which sideband signals are mandatory (CLKREQ#, PERST#, PEDET)?
PERST# and CLKREQ# are commonly required for PCIe power-management. Presence detect (PEDET) and REFCLK routing depend on platform design choices.
How to identify the key from the board only?
Check notch position and silkscreen. If the manual states 'PCIe x4/NVMe', it is M-key; 'PCIe x2/SATA/USB' typically indicates B-key; WLAN sockets are often E-key.

See Also