NodeLoop

M.2 (NGFF) Connector Pinout & Keys Explained

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

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).
  • 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.
  • 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 cards have two notches (one for Key B, one for Key M). They are typically designed for SSDs and can be inserted into sockets keyed for B, M, or B+M. They usually support SATA and/or PCIe x2 NVMe protocols. The host socket determines which protocol is used.
  • Key A+E: Commonly used for Wi-Fi and Bluetooth combo cards. These cards can fit in sockets keyed for 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. Chassis clearance and heatspreaders can limit supported module types.
  • Exact mechanical envelopes and tolerances are defined by the official specification; always verify your system’s supported thickness.

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, with pins on both the top and bottom edges. Pin numbering is from 1 to 75. Not all pins are used by all modules; the specific pins used depend on the module's keying and the interfaces it implements.

The following table provides a general overview. Refer to specific device or motherboard documentation for precise implementations. Signals are often differential pairs (e.g., PETp0/PETn0 for PCIe Transmit Pair 0).

Pin Pin Pin Pin
1CONFIG_323.3V
3GND43.3V
5GND6W_DISABLE# (Module Disable)
7GND (PCIe_REQ#)8UIM_PWR (Key A/E) / Notched (Key A)
9GND10UIM_DATA (Key A/E) / Notched (Key A)
11PERn0 (PCIe Rx-)12Notched (Key B) / UIM_CLK (Key A/E)
13PERp0 (PCIe Rx+)14Notched (Key B) / UIM_RESET (Key A/E)
15GND16Notched (Key B) / UIM_VPP (Key A/E)
17GND18Notched (Key B) / GND
19Reserved / Notched (Key B)20Notched (Key B) / USB_D-
21CONFIG_022Notched (Key B) / USB_D+
23PERn1 (PCIe Rx-)24Notched (Key E) / 3.3V
25PERp1 (PCIe Rx+)26Notched (Key E) / GND
27GND28Notched (Key E) / I2C_SCL
29GND30Notched (Key E) / I2C_SDA
31PETn0 (PCIe Tx-)32Notched (Key E) / I2C_IRQ#
33PETp0 (PCIe Tx+)34Notched (Key E) / GND
35GND36USB_D- (Key B) / UART_RXD (Key E)
37GND38USB_D+ (Key B) / UART_TXD (Key E)
39SATA_DEVSLP / PCIe_CLKREQ# (SSD)40GND
41SATA_B_P / PETn1 (PCIe Tx-)42SATA_B_N
43SATA_A_P / PETp1 (PCIe Tx+)44SATA_A_N
45GND46PCIe_WAKE# / LED1#
47REFCLKp (PCIe Clock+)48GND
49REFCLKn (PCIe Clock-)50PCIe_RESET#
51GND52PERST# (PCIe Reset) / SMB_CLK
53PERn2 (PCIe Rx-)54CLKREQ# / SMB_DATA
55PERp2 (PCIe Rx+)56PEWAKE# / SMB_ALERT#
57GND58GND (DisplayPort HPD)
59Notched (Key M) / CONFIG_160Notched (Key M) / GND
61Notched (Key M) / PETn2 (PCIe Tx-)62Notched (Key M) / GND
63Notched (Key M) / PETp2 (PCIe Tx+)64Notched (Key M) / GND
65Notched (Key M) / PETn3 (PCIe Tx-)66Notched (Key M) / GND
67GND / PETp3 (PCIe Tx+)68SUSCLK (32kHz)
69CONFIG_2703.3V
71GND723.3V
73GND743.3V
75CONFIG_4 / GND

Note: Pin functions can vary depending on the specific M.2 module type and the host system's implementation. "Notched" indicates pins removed for a specific key.

Configuration Pins (CONFIG_0-CONFIG_4)

Pins CONFIG_0, CONFIG_1, CONFIG_2, CONFIG_3, and CONFIG_4 are used by the M.2 module to indicate its presence and supported functionalities to the host system. The host reads the state of these pins (grounded by the module or left open) to determine how to interface with the card. The exact interpretation varies by module type (SSD, WWAN, Wi-Fi).

References & Further Reading

Need a Specific M.2 Pinout?

While this page provides a general overview, our M.2 Pinout Generator tool will help you find pinouts tailored to specific applications and keys!

M.2 Pinout Generator

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