• Free shipping over $25

  • Free help & advice

  • Open 7 days a week

Raspberry Pi Screw Size & Mounting Holes (Pi 5, Pi 4, Zero, Pico)

Quick answer: Raspberry Pi boards use M2.5 screws. Pi 5, Pi 4 B and Pi 3 B/B+ holes sit on a 58 x 49mm rectangle, 3.5mm from the edges; Pi Zero is 58 x 23mm. The Pi Pico is the exception: M2 screws in 2.1mm holes.

Lost a case screw or building a mount for a Pi? This page gives the thread, the hole pattern for each board, how to pick the length, and the M2.5 screws we have in stock.

Raspberry Pi mounting hole and screw chart

Board Board size Hole pattern (centres) Hole Screw
Raspberry Pi 5 85 x 56mm 58 x 49mm, 3.5mm from edges 2.7mm M2.5
Raspberry Pi 4 Model B 85 x 56mm 58 x 49mm, 3.5mm from edges 2.7mm M2.5
Raspberry Pi 3 Model B / B+ 85 x 56mm 58 x 49mm, 3.5mm from edges 2.7mm M2.5
Raspberry Pi Zero / Zero W / Zero 2 W 65 x 30mm 58 x 23mm, 3.5mm from edges M2.5 clearance M2.5
Raspberry Pi Pico / Pico W 51 x 21mm 47 x 11.4mm 2.1mm M2

From the Raspberry Pi mechanical drawings and the Pico datasheet. Hole = drilled diameter.

Picking the screw length

  • Board onto a threaded standoff or brass insert: 5mm or 6mm.
  • Through a case wall into a standoff or nut: board + wall + 3-4mm of thread; 8mm is common for cases.
  • HAT stack: the standoff carries the height; use short screws (5-6mm) top and bottom.
M2.5 vs M2 vs M3: an M2 screw drops through a Pi hole and an M3 screw will not pass it. Measure the thread: M2.5 is 2.5mm across the threads. More in M2 vs M2.5 vs M3. The Pi 5 Active Cooler clips on with spring-loaded push pins, not screws.

M2.5 screws in stock, by length

All are M2.5 metric flat head Phillips screws; the product name shows what the listing was written for, but the thread fits any M2.5 hole.

Length Packs
4mm Screws for Holosun EPS Carry Battery Tray 10-Pack Black
5mm Phillips Flat Head Screw for Action Camera Protective Housing - Pack of 50 Black
6mm Laptop Motherboard Replacement Screws Flat Head 10-Pack Black, Phillips Flat Head Screw for Eufy Security Camera Repair - Pack of 50 Black, Phillips Flat Head Screw for Microphone Repair - Pack of 50 Black, Phillips Flat Head Screws for Microphone Repair 50-Pack Black, Screws for JFA Snackbox Micro Fight Stick 10-Pack Black Phillips
8mm Phillips Flat Head Screw for Turntable Cartridge Headshell Mount - Pack of 50 Black, Phillips Flat Head Screws for Raspberry Pi 5 Case Black 10-Pack, Screws for Raspberry Pi 5 Case and PoE HAT 10-Pack Black, Screws for Retevis RT27 Radio Belt Clip 10-Pack Black Phillips
10mm Phillips Flat Head Screw for Turntable Cartridge Headshell Mount - Pack of 50 Black
12mm Phillips Flat Head Screw for Turntable Cartridge Headshell Mount - Pack of 50 Black
14mm Phillips Flat Head Screw for Turntable Cartridge Headshell Mount - Pack of 50 Black

Browse every M2.5 size in M2.5 screws, or Pico-size screws in M2 screws.

FAQ

What size screws does a Raspberry Pi use?

M2.5 metric machine screws. The four mounting holes on the Pi 5, Pi 4 Model B and Pi 3 Model B/B+ are 2.7mm clearance holes for M2.5, as shown on the official mechanical drawings.

What are the Raspberry Pi 5 mounting hole dimensions?

Four holes on a 58mm x 49mm rectangle, each 3.5mm in from the board edges, on an 85mm x 56mm board. This is the same pattern as the Pi 4 Model B and Pi 3 Model B+, so cases and mounting plates carry over.

Does the Raspberry Pi Zero use the same screws?

Yes, M2.5, but the hole pattern is 58mm x 23mm on the 65mm x 30mm Zero board, so B-size mounting plates do not fit.

What screws fit the Raspberry Pi Pico?

The Pico has four 2.1mm holes on an 11.4mm x 47mm pattern (Pico datasheet), which suits M2 screws, not M2.5.

How long should the screws be?

Through the board into a threaded standoff: board (about 1.5mm) plus 3-5mm of thread, so M2.5 x 5mm or 6mm is typical. Through a case and into a standoff or nut, add the case wall thickness. Stacking a HAT on standoffs, use the standoff length the HAT asks for and short screws top and bottom.