ArticleslgStudy

computer science

M.2

M.2 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand M.2 rather than just read about it. In short: M.2 (pronounced "em-dot-two"), formerly known as the Next Generation Form Factor (NGFF), is a specification for internally mounted computer expansion cards and connectors. It was developed to replace the older Mini SATA (mSATA) and Mini PCIe (mPCIe) standards.

M.2 — main illustration
M.2 — illustration

Key takeaways

  • M.2 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect M.2 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of M.2 from memory before moving on to harder problems.

Reference excerpt

M.2 (pronounced "em-dot-two"), formerly known as the Next Generation Form Factor (NGFF), is a specification for internally mounted computer expansion cards and connectors. It was developed to replace the older Mini SATA (mSATA) 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 ultrabooks and tablet computers, particularly for solid-state drives (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, 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 (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, Bluetooth, satellite navigation, near-field communication (NFC), digital radio, WiGig, wireless WAN (WWAN), and solid-state drives (SSDs). The SATA revision 3.2 specification, in its gold revision as of August 2013, standardizes M.2 as a new format for storage devices and specifies its hardware layout. Buses exposed through the M.2 connector include PCI Express (PCIe) 3.0 and newer, Serial ATA (SATA) 3.0 and USB 3.0; all these standards are backward compatible. 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 abstraction. PCI-SIG M.2 specification, in its revision 1.0 as of December 2013, 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 support:

Legacy SATA Used for SATA SSDs, and interfaced through the AHCI driver and 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 driver and provided PCI Express lanes, providing backward compatibility 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 than like spinning media. PCI Express using NVMe Used for PCI Express SSDs and interfaced through the NVMe 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, 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 processing.

Form factors and keying

The M.2 standard is based on the mSATA standard, which uses the existing PCI Express Mini Card (Mini PCIe) form factor and connector. M.2 adds the possibility of larger printed circuit boards (PCBs), allowing longer modules and double-sided component population. Consequently, M.2 SSD modules can provide double the storage capacity within the footprint of an mSATA device. M.2 modules are rectangular, with an edge connector 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. M.2 slots provide 3.3 V and 1.8 V power pins, but NSGFF (M.3) slots extend this with 12 V power. M.2 SATA and NVMe SSDs use different connector keying. M.2 SATA SSDs typically use a B-key connector, while M.2 NVMe SSDs typically use an M-key connector. Some SSDs support both SATA and PCIe/NVMe interfaces and use a B+M-key connector. 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 0.8 mm ± 10%. 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.

… excerpt ends here. Continue reading the full article.

Illustrations

M.2 illustration
M.2: A 2230 NVMe SSD (SanDisk 256GB PC SN7100s)
A 2230 NVMe SSD (SanDisk 256GB PC SN7100s)
M.2: High-level software architecture for SATA Express (also used by M.2),[2]: 14  supporting SATA and PCIe devices via AHCI or NVMe.[6]: 4
High-level software architecture for SATA Express (also used by M.2),[2]: 14  supporting SATA and PCIe devices via AHCI or NVMe.[6]: 4
M.2: A 30x50 mSATA SSD (Mushkin Atlas 240GB)
A 30x50 mSATA SSD (Mushkin Atlas 240GB)
M.2: M.2 keying notches in B and M positions, with visible pin offset on each side of the module.[11]
M.2 keying notches in B and M positions, with visible pin offset on each side of the module.[11]

Worked examples

Example 1 — a first encounter with M.2

Start with the simplest possible case. Write down what M.2 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to M.2 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about M.2 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of M.2

In research
M.2 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses M.2 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
M.2 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer-related introductions in 2013, Computer connectors, M.2, so understanding it makes those chapters shorter.
In everyday life
Look for M.2 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “M.2” →

How to study M.2 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what M.2 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain M.2 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is M.2 in simple terms?

M.2 (pronounced "em-dot-two"), formerly known as the Next Generation Form Factor (NGFF), is a specification for internally mounted computer expansion cards and connectors. It was developed to replace the older Mini SATA (mSATA) and Mini PCIe (mPCIe) standards.

Why does M.2 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study M.2?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on M.2.

Tags

  • Computer-related introductions in 2013
  • Computer connectors
  • M.2
  • Motherboard expansion slot
  • Peripheral Component Interconnect
  • SATA Express
  • Serial ATA
  • USB

Keep exploring