• Free shipping over $25

  • Free help & advice

  • Open 7 days a week

Raspberry Pi HATs & cases screw size

M2 · 4 to 6 mm long

The screws used on Raspberry Pi HATs & cases are M2 in lengths from 4 to 6 mm.

The record covers some third-party HATs and lightweight covers use M2 (the four board holes are M2.5).

This entry is marked reported and comes from forum.flirc.tv.

M2 means a 2 mm nominal diameter with a 0.4 mm thread pitch. Imperial look-alike: #2-56 UNC (2.18 mm) is close but not interchangeable.

Raspberry Pi HATs & cases screw specifications

One row per fitment record. Head, drive are shown only where the source states them; pitch is the ISO coarse pitch for the thread.

ThreadLengthPitchHeadDriveWhere it goesStatus
M24–6 mm0.4 mmnot statednot statedsome third-party HATs and lightweight covers use M2 (the four board holes are M2.5)Reported

Fitment records and sources

M24-6mmreported

some third-party HATs and lightweight covers use M2 (the four board holes are M2.5)

pitch 0.4 mm · tap 1.6 mm · clearance 2.4 mm · PH0 / Torx T6

How to check the screw before you buy

  1. Take one original screw out first and measure it before ordering; the record above tells you the thread, the original screw tells you the exact length and head.
  2. Diameter: across the threads an M2 screw measures about 2 mm with calipers (usually a hair under). If yours measures noticeably more or less, it is a different thread.
  3. Pitch: 0.4 mm from one thread crest to the next (25 crests per centimetre). A thread pitch gauge or the pitch-gauge tool settles it in seconds.
  4. Length: measure from under the head to the tip for pan, button, wafer and cap heads; countersunk (flat) heads are measured overall.
  5. The records span 4–6 mm, which means different positions take different lengths — match each hole to its own screw.
  6. Driver: the source does not name the drive. Standard M2 heads take PH0 for Phillips and T6 for Torx, and a 1.5 mm hex key for socket heads; a bit that fits loosely will cam out and strip the head.
  7. Tightening: no device-specific torque is published in these records. The site's general figure for M2 is about 25-40 N·cm into metal threads and 12-20 N·cm into plastic bosses; snug it up and stop.

Common mix-ups with M2

  • M2 (2.00mm, 0.4mm pitch) is NOT the same as #2-56 UNC (2.18mm) — close enough to cross-thread and strip if forced.

Pitch gauge · Screw size finder · Torque guide

Buy these screws at TechSpare Warehouse

In stock and shipped from South Carolina. Our black screws are Phillips wafer head (low profile); match the head style and length to the original before you order.

More in Other Equipment

Browse all 125 in Other Equipment →

The same screw also fits

Devices whose records share a thread with Raspberry Pi HATs & cases, closest length match first.

Questions about Raspberry Pi HATs & cases screws

What size screw does Raspberry Pi HATs & cases use?
M2 × 4–6 mm for some third-party HATs and lightweight covers use M2 (the four board holes are M2.5).
How long are the screws in Raspberry Pi HATs & cases?
The records range from 4 to 6 mm depending on the position, so match each screw to its own hole.
What is the thread pitch of an M2 screw?
0.4 mm (coarse), which is the standard pitch for M2 machine screws; a 0.25 mm fine pitch exists but is uncommon. The tap drill is 1.6 mm and the normal clearance hole is 2.4 mm.
What screwdriver do I need for Raspberry Pi HATs & cases?
The sources do not name the drive. For M2, Phillips heads normally take PH0 and Torx heads T6; socket heads take a 1.5 mm hex key.
Can I use an imperial screw instead of M2?
No. Imperial look-alike: #2-56 UNC (2.18 mm) is close but not interchangeable. Use a true M2 screw so it does not cross-thread or strip the hole.
Where can I buy replacement screws for Raspberry Pi HATs & cases?
TechSpareWarehouse (our own store) lists M2 x 4mm, M2 x 5mm and M2 x 6mm, which match lengths in the records above.