
M.2 (pronounced "M-dot-2"), formerly known as the Next Generation Form Factor (NGFF), is a specification for internally mounted computer
expansion card
In computing, an expansion card (also called an expansion board, adapter card, peripheral card or accessory card) is a printed circuit board that can be inserted into an electrical connector, or expansion slot (also referred to as a bus sl ...
s and connectors. It was developed to replace the older Mini SATA (
mSATA
SATA (Serial AT Attachment) is a computer bus interface that connects host adapter, host bus adapters to mass storage devices such as hard disk drives, optical drives, and solid-state drives. Serial ATA succeeded the earlier Parallel ATA (PAT ...
) and Mini PCIe (
mPCIe) standards.
M.2 supports a variety of module sizes and interface types, offering greater flexibility for modern devices. It is widely used in compact systems such as
ultrabook
Ultrabook is a class of premium consumer-grade notebook computers. The term was originated by and is trademarked by Intel, replacing the earlier Centrino mobile platform. Introduced in 2011, they were originally marketed as featuring ultra thi ...
s and
tablet computer
A tablet computer, commonly shortened to tablet, is a mobile device, typically with a mobile operating system and touchscreen display processing circuitry, and a rechargeable battery in a single, thin and flat package. Tablets, being computers ...
s, particularly for
solid-state drive
A solid-state drive (SSD) is a type of solid-state storage device that uses integrated circuits to store data persistently. It is sometimes called semiconductor storage device, solid-state device, or solid-state disk.
SSDs rely on non- ...
s (SSDs), due to its smaller size and higher performance compared to mSATA.
The M.2 connector can provide multiple interface options, including up to four lanes of
PCI Express
PCI Express (Peripheral Component Interconnect Express), officially abbreviated as PCIe, is a high-speed standard used to connect hardware components inside computers. It is designed to replace older expansion bus standards such as Peripher ...
, as well as
Serial ATA 3.0 and
USB 3.0. The supported interfaces vary depending on the device and host implementation. M.2 modules and slots use different "keying" notches to indicate supported interfaces and to prevent incompatible installations.
For storage devices, M.2 supports both the older
Advanced Host Controller Interface (AHCI) and the newer
NVM Express
NVM Express (NVMe) or Non-Volatile Memory Host Controller Interface Specification (NVMHCIS) is an open, logical-device interface functional specification, specification for accessing a computer's non-volatile storage media usually attached via th ...
(NVMe) protocols. AHCI provides compatibility with legacy SATA-based systems and operating systems, while NVMe is designed for high-speed SSDs and allows for much faster performance by supporting multiple simultaneous
I/O operations.
Features

M.2 modules can integrate multiple functions, including the following device classes:
Wi-Fi
Wi-Fi () is a family of wireless network protocols based on the IEEE 802.11 family of standards, which are commonly used for Wireless LAN, local area networking of devices and Internet access, allowing nearby digital devices to exchange data by ...
,
Bluetooth
Bluetooth is a short-range wireless technology standard that is used for exchanging data between fixed and mobile devices over short distances and building personal area networks (PANs). In the most widely used mode, transmission power is li ...
,
satellite navigation
A satellite navigation or satnav system is a system that uses satellites to provide autonomous geopositioning. A satellite navigation system with global coverage is termed global navigation satellite system (GNSS). , four global systems are ope ...
,
near field communication
Near-field communication (NFC) is a set of communication protocols that enables communication between two electronic devices over a distance of or less. NFC offers a low-speed connection through a simple setup that can be used for the boots ...
(NFC),
digital radio
Digital radio is the use of digital technology to transmit or receive across the radio spectrum. Digital transmission by radio waves includes digital broadcasting, and especially digital audio radio services. This should not be confused with In ...
,
WiGig,
wireless WAN
Wireless wide area network (WWAN), is a form of wireless network.
The larger size of a wide area network compared to a local area network requires differences in technology.
Wireless networks of different sizes deliver data in the form of telephon ...
(WWAN), and
solid-state drive
A solid-state drive (SSD) is a type of solid-state storage device that uses integrated circuits to store data persistently. It is sometimes called semiconductor storage device, solid-state device, or solid-state disk.
SSDs rely on non- ...
s (SSDs). The
SATA revision 3.2 specification, in its gold revision , standardizes M.2 as a new format for storage devices and specifies its hardware layout.
Buses
A bus (contracted from omnibus, with variants multibus, motorbus, autobus, etc.) is a motor vehicle that carries significantly more passengers than an average car or van, but fewer than the average rail transport. It is most commonly used ...
exposed through the M.2 connector include
PCI Express
PCI Express (Peripheral Component Interconnect Express), officially abbreviated as PCIe, is a high-speed standard used to connect hardware components inside computers. It is designed to replace older expansion bus standards such as Peripher ...
(PCIe) 3.0 and newer,
Serial ATA
SATA (Serial AT Attachment) is a computer bus interface that connects host adapter, host bus adapters to mass storage devices such as hard disk drives, optical drives, and solid-state drives. Serial ATA succeeded the earlier Parallel ATA (PAT ...
(SATA) 3.0 and
USB
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
3.0; all these standards are
backward compatible
In telecommunications and computing, backward compatibility (or backwards compatibility) is a property of an operating system, software, real-world product, or technology that allows for interoperability with an older legacy system, or with inpu ...
.
The M.2 specification provides up to four
PCI Express lanes and one logical
SATA 3.0 (6 Gbit/s) port, and exposes them through the same connector so both PCI Express and SATA storage devices may exist in the form of M.2 modules. Exposed PCI Express lanes provide a pure PCI Express connection between the host and storage device, with no additional layers of
bus
A bus (contracted from omnibus, with variants multibus, motorbus, autobus, etc.) is a motor vehicle that carries significantly more passengers than an average car or van, but fewer than the average rail transport. It is most commonly used ...
abstraction.
PCI-SIG
PCI-SIG, or Peripheral Component Interconnect Special Interest Group, is an electronics industry consortium responsible for specifying the Peripheral Component Interconnect (PCI), PCI-X, and PCI Express (PCIe) computer buses. It is based in Be ...
M.2 specification, in its revision 1.0 , provides detailed M.2 specifications.
Storage interfaces
Three options are available for the logical device interfaces and command sets used for interfacing with M.2 storage devices, which may be used depending on the type of M.2 storage device and available
operating system
An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ...
support:
; Legacy SATA: Used for SATA SSDs, and interfaced through the AHCI driver and
legacy
Legacy or Legacies may refer to:
Arts and entertainment
Comics
* " Batman: Legacy", a 1996 Batman storyline
* '' DC Universe: Legacies'', a comic book series from DC Comics
* ''Legacy'', a 1999 quarterly series from Antarctic Press
* ''Legacy ...
SATA 3.0 (6 Gbit/s) port exposed through the M.2 connector.
; PCI Express using AHCI: Used for PCI Express SSDs and interfaced through the
AHCI
The Advanced Host Controller Interface (AHCI) is a technical standard defined by Intel that specifies the Hardware register, register-level interface of Serial ATA (SATA) host controllers in a non-implementation-specific manner in its Intel chip ...
driver and provided PCI Express lanes, providing
backward compatibility
In telecommunications and computing, backward compatibility (or backwards compatibility) is a property of an operating system, software, real-world product, or technology that allows for interoperability with an older legacy system, or with Input ...
with widespread SATA support in operating systems at the cost of lower performance. AHCI was developed when the purpose of a
host bus adapter (HBA) in a system was to connect the CPU/memory subsystem with a much slower storage subsystem based on rotating
magnetic media; as a result, AHCI has some inherent
inefficiencies when applied to SSD devices, which behave much more like
RAM
Ram, ram, or RAM most commonly refers to:
* A male sheep
* Random-access memory, computer memory
* Ram Trucks, US, since 2009
** List of vehicles named Dodge Ram, trucks and vans
** Ram Pickup, produced by Ram Trucks
Ram, ram, or RAM may also ref ...
than like spinning media.
; PCI Express using NVMe: Used for PCI Express SSDs and interfaced through the
NVMe
NVM Express (NVMe) or Non-Volatile Memory Host Controller Interface Specification (NVMHCIS) is an open, logical-device interface specification for accessing a computer's non-volatile storage media usually attached via the PCI Express bus. The in ...
driver and provided PCI Express lanes, as a high-performance and scalable host controller interface designed and optimized especially for interfacing with PCI Express SSDs. NVMe has been designed from the ground up, capitalizing on the low
latency and enhanced
parallelism of PCI Express SSDs, and complementing the
parallelism of contemporary
CPUs
A central processing unit (CPU), also called a central processor, main processor, or just processor, is the primary Processor (computing), processor in a given computer. Its electronic circuitry executes Instruction (computing), instructions ...
, platforms and applications. At a high level, primary
advantages of NVMe over AHCI relate to NVMe's ability to exploit parallelism in host hardware and software, based on its design advantages that include data transfers with fewer stages, greater depth of
command queues, and more efficient
interrupt
In digital computers, an interrupt (sometimes referred to as a trap) is a request for the processor to ''interrupt'' currently executing code (when permitted), so that the event can be processed in a timely manner. If the request is accepted ...
processing.
Form factors and keying

The M.2 standard is based on the
mSATA
SATA (Serial AT Attachment) is a computer bus interface that connects host adapter, host bus adapters to mass storage devices such as hard disk drives, optical drives, and solid-state drives. Serial ATA succeeded the earlier Parallel ATA (PAT ...
standard, which uses the existing
PCI Express Mini Card (Mini PCIe)
form factor and connector. M.2 adds the possibility of larger
printed circuit board
A printed circuit board (PCB), also called printed wiring board (PWB), is a Lamination, laminated sandwich structure of electrical conduction, conductive and Insulator (electricity), insulating layers, each with a pattern of traces, planes ...
s (PCBs), allowing longer modules and double-sided component population. Consequently, M.2
SSD
A solid-state drive (SSD) is a type of solid-state storage device that uses Integrated circuit, integrated circuits to store data persistence (computer science), persistently. It is sometimes called semiconductor storage device, solid-stat ...
modules can provide double the storage capacity within the footprint of an mSATA device.
M.2 modules are rectangular, with an
edge connector
An edge connector is the portion of a printed circuit board (PCB) consisting of signal trace, traces leading to the edge of the board that are intended to plug into a matching jack (connector), socket. The edge connector is a money-saving devic ...
on one side and a semicircular mounting hole at the center of the opposite edge. The edge connector has 75 positions with up to 67 pins, employing a 0.5 mm
pitch and offsetting the pins on opposing sides of the PCB from each other. Each pin on the connector is rated for up to 50
V and 0.5
A, while the connector itself is specified to endure 60 mating cycles.
However, many M.2 slots (Socket 1, 2 and 3) found on motherboards only provide up to 3.3
V power.
The M.2 standard allows module widths of 12, 16, 22 and 30 mm, and lengths of 16, 26, 30, 38, 42, 60, 80 and 110 mm. Initial line-up of the commercially available M.2 expansion cards is 22 mm wide, with varying lengths of 30, 42, 60, 80 and 110 mm.
The codes for the M.2 module sizes contain both the width and length of a particular module; for example, "2242" as a module code means that the module is 22 mm wide and 42 mm long, while "2280" denotes a module 22 mm wide and 80 mm long.
An M.2 module is installed into a mating connector provided by the host's circuit board, and a single mounting screw secures the module into place. Components may be mounted on either side of the module, with the actual module type limiting how thick the components can be; the maximum allowable thickness of components is 1.5 mm per side, and the thickness of the PCB is .
Different host-side connectors are used for single- and double-sided M.2 modules, providing different amounts of space between the M.2 expansion card and the host's PCB.
Circuit boards on the hosts are usually designed to accept multiple lengths of M.2 modules, which means that the sockets capable of accepting longer M.2 modules usually also accept shorter ones by providing different positions for the mounting screw.

The PCB of an M.2 module provides a 75-position edge connector; depending on the type of module, certain pin positions are removed to present one or more keying notches. Host-side M.2 connectors (sockets) may populate one or more mating key positions, determining the type of modules accepted by the host; , host-side connectors are available with only one mating key position populated (either B or M).
Furthermore, M.2 sockets keyed for SATA or two PCI Express lanes (PCIe ×2) are referred to as "socket 2 configuration" or "socket 2", while the sockets keyed for four PCI Express lanes (PCIe ×4) are referred to as "socket 3 configuration" or "socket 3".
For example, M.2 modules with two notches in B and M positions use up to two PCI Express lanes and provide broader compatibility at the same time, while the M.2 modules with only one notch in the M position use up to four PCI Express lanes; both examples may also provide SATA storage devices. Similar keying applies to M.2 modules that utilize provided USB 3.0 connectivity.
Various types of M.2 modules are denoted using the "WWLL-HH-K-K" or "WWLL-HH-K" naming schemes, in which "WW" and "LL" specify the module width and length in millimeters, respectively. The "HH" part specifies, in an encoded form, whether a module is single- or double-sided, and the maximum allowed thickness of mounted components; possible values are listed in the right table above. Module keying is specified by the "K-K" part, in an encoded form using the key IDs from the left table above; it can also be specified as "K" only, if a module has only one keying notch.
Beside socketed modules, the M.2 standard also includes the option for having permanently
soldered single-sided modules.
Alternative standards
NGSFF
In 2017, Samsung introduced a new form factor called ''Next Generation Small Form Factor'' (NGSFF), also known as NF1 or M.3, which may replace
U.2
U.2 (pronounced "U-dot-2"), formerly known as SFF-8639, is a computer interface standard used to connect solid-state drives (SSDs) to a computer. It defines the physical connector, electrical characteristics, and supported communication protocol ...
in server applications. The NGSFF connector is electrically and dimensionally compatible with M.2 (revision 1.1)'s connector; new functionality is achieved through previously unused (N/C) pins.
The main changes compared to M.2 are:
* The width (or "height") of the SSD is increased from 22 mm to 30.5 mm; the thickness is increased from 3.88 mm to 4.38 mm. These changes allow more NAND chips to be fitted onto an SSD while still fitting inside a
rack unit.
* New pins for 12 V power. Devices are supposed to mainly use 12 V power instead of the old 3.3 V, which has been made optional.
* Ability to run two PCIe ports (each with two lanes) on one NGSFF port.
* Features for rackmount servers: hotswap support, indicator LEDs, SSD tray (with new screw holes).
In 2018, the PCI-SIG issued a warning that NGSFF's new pin usage clashes with the pin usage in the upcoming 1.2 revision of the M.2 standard. The new revision uses some of the previously non-connected (N/C) pins to deliver 1.8 V power and USB 2.0 data on the "M" socket. Samsung has sought to standardize its NGSFF/NF1 through
JEDEC
The Joint Electron Device Engineering Council (JEDEC) Solid State Technology Association is a consortium of the semiconductor industry headquartered in Arlington County, Virginia, Arlington, United States. It has over 300 members and is focused ...
, but the process appears to have stalled.
XFM
JEDEC JESD233 is another specification called ''Crossover Flash Memory'' (XFM) for XFM Embedded and Removable Memory Devices (XFMD). It targets to replace the M.2 form factor with a significantly smaller one (also called XT2), so that it can also be designed as an alternative to soldered memory. XFM Express utilizes a
NVMe
NVM Express (NVMe) or Non-Volatile Memory Host Controller Interface Specification (NVMHCIS) is an open, logical-device interface specification for accessing a computer's non-volatile storage media usually attached via the PCI Express bus. The in ...
logical interface over a
PCI Express
PCI Express (Peripheral Component Interconnect Express), officially abbreviated as PCIe, is a high-speed standard used to connect hardware components inside computers. It is designed to replace older expansion bus standards such as Peripher ...
physical interface.
Gallery
M.2 2242 SSD connected into USB 3.0 adapter.jpg, An M.2 2242 SSD connected into a USB
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
3.0 adapter and connected to a computer
Delock USB m.2 NVMe docking station-oblique FS PNr°0912.jpg, A docking station for M.2 modules
Delock USB m.2 NVMe docking station-slot FS PNr°0914.jpg, The connection slot of the docking station
Samsung 980 PRO PCIe 4.0 NVMe SSD 1TB-top PNr°0915.jpg, M.2 2280 Samsung 980 PRO PCIe 4.0 NVMe SSD with 1 TB of storage capacity
M.2 1630 and M.2 2230 WiFi cards side by side.jpg, M.2 2230 (left) and M.2 1630 WiFi
Wi-Fi () is a family of wireless network protocols based on the IEEE 802.11 family of standards, which are commonly used for Wireless LAN, local area networking of devices and Internet access, allowing nearby digital devices to exchange data by ...
cards
See also
*
Enterprise and Data Center Standard Form Factor (EDSFF)
*
List of interface bit rates
*
NVM Express
NVM Express (NVMe) or Non-Volatile Memory Host Controller Interface Specification (NVMHCIS) is an open, logical-device interface functional specification, specification for accessing a computer's non-volatile storage media usually attached via th ...
(NVMe)
*
*
U.2
U.2 (pronounced "U-dot-2"), formerly known as SFF-8639, is a computer interface standard used to connect solid-state drives (SSDs) to a computer. It defines the physical connector, electrical characteristics, and supported communication protocol ...
Notes
References
External links
* (SATA-IO) official website
* (PCI-SIG) official website
Understanding M.2, the interface that will speed up your next SSD ''
Ars Technica
''Ars Technica'' is a website covering news and opinions in technology, science, politics, and society, created by Ken Fisher and Jon Stokes in 1998. It publishes news, reviews, and guides on issues such as computer hardware and software, sci ...
'', February 9, 2015, by Andrew Cunningham
LFCS: Preparing Linux for nonvolatile memory devices LWN.net, April 19, 2013, by Jonathan Corbet
PCIe SSD 101: An Overview of Standards, Markets and Performance SNIA, August 2013, archived from the original on February 2, 2014
M.2 Pinout Descriptions and Reference Designs January 28, 2020, an application note from
Congatec
* US patent 20130294023, November 7, 2013, assigned to Raphael Gay
{{Solid-state drive
Computer-related introductions in 2013
Computer connectors
Motherboard expansion slot
Peripheral Component Interconnect
SATA Express
Serial ATA
USB