Knowing the exact hole dimensions of the Raspberry Pi 5 is essential for designing a custom case, mounting it on a panel, or 3D printing an enclosure. The Pi 5 keeps the same 58mm x 49mm board footprint as the Pi 4, but the mounting holes are slightly different in location and size. This guide gives you precise measurements, step-by-step verification, and practical tips to ensure your mount fits perfectly.
What You’ll Need
- Raspberry Pi 5 board
- Digital caliper (for verification, optional but recommended)
- Ruler or measuring tape (if no caliper)
- M2.5 screws and standoffs (typical size for Pi 5)
- Drill or 3D printer (if making your own mount)
Step-by-Step
- Understand the board dimensions. The Raspberry Pi 5 PCB is 85mm long and 56mm wide. The mounting holes are located near the four corners, but not symmetrically – the distance from the edges varies.
- Measure the hole diameter. Each mounting hole is 2.9mm in diameter, which is designed for M2.5 screws (2.5mm thread) with a clearance of 0.4mm. If you’re using self-tapping screws, choose ones with a head diameter of at least 5mm to avoid pulling through.
- Locate the holes from the left edge. Place the board with the USB-C ports facing you (the HDMI ports on the left). The leftmost mounting hole (top-left) is 3.5mm from the left edge and 3.5mm from the top edge. The bottom-left hole is 3.5mm from the left and 3.5mm from the bottom edge.
- Locate the holes from the right edge. The top-right hole is 3.5mm from the right edge and 3.5mm from the top. The bottom-right hole is 3.5mm from the right and 3.5mm from the bottom. So all four holes are inset 3.5mm from the respective edges.
- Check the hole spacing. The horizontal distance between the left and right holes is 78mm (85mm – 3.5mm – 3.5mm). The vertical distance between top and bottom holes is 49mm (56mm – 3.5mm – 3.5mm). This gives a rectangle of 78mm x 49mm for the hole centers.
- Verify with a caliper. If you have a digital caliper, measure from the outer edge of the board to the center of each hole. The center should be at 3.5mm from the edge. Also measure the hole diameter – it should read 2.9mm.
- Design your mount. When creating a case or mounting plate, use these hole centers. Add a tolerance of 0.2mm to the hole diameter (make it 3.1mm) if you’re 3D printing, to account for filament shrinkage or printer inaccuracy.
- Choose the right screws. Use M2.5 screws with a length of at least 5mm if you’re using standoffs. For direct mounting to a flat surface, use screws that don’t protrude more than 2mm below the PCB to avoid touching components on the underside.
Common Mistakes
- Assuming the holes are symmetric from all edges. They are not – the 3.5mm inset is consistent, but the board has a cutout for the camera ribbon cable, which can mislead you if you measure from the wrong edge.
- Using M3 screws. M3 screws are too large for the 2.9mm holes and will strip the PCB. Stick to M2.5 or smaller.
- Not accounting for the USB-C port overhang. The USB-C ports on the left side extend beyond the board edge, so if your case has a side wall, ensure it doesn’t block the ports.
- Measuring from the silkscreen. The white lines on the PCB are not perfectly aligned with the holes; always measure from the physical edge of the board.
Tips
- If you’re 3D printing, print a test piece with just the holes first to check fit before printing the whole case.
- Use brass standoffs for a secure mount – they won’t strip like plastic ones.
- When drilling your own plate, mark the hole centers with a center punch before drilling to prevent the drill bit from wandering.
- For vibration resistance, add a small rubber grommet between the PCB and the standoff.
- Remember that the Pi 5 runs hotter than previous models – ensure your mount doesn’t block the airflow over the heatsink or fan.
Troubleshooting
- Holes don’t align with your printed case. Re-check your measurements. Common error is using the board’s overall dimensions (85×56) instead of the hole centers (78×49). Also verify your printer’s scaling – sometimes the slicer scales the model by 1% inadvertently.
- Screws are too tight. If the screw is hard to turn, stop immediately. You may have the wrong screw pitch. M2.5 standard pitch is 0.45mm. If you’re using a screw with a finer pitch, it might not fit the threads of the standoff.
- Screws are loose. If the screw spins freely, the hole might be stripped. Use a slightly larger screw (M3) with a washer as a temporary fix, or apply a drop of thread-locker.
- The board flexes when mounted. This usually means the standoffs are too tall or too short. Ensure all four standoffs are the same height (typically 10mm or 15mm) and that the screws are not over-tightened.
- Cannot access the microSD card slot. The microSD slot is on the underside of the board, near the right edge. If your mount covers it, you’ll need to remove the board to access the card. Design your case with a cutout for the slot.
Frequently Asked Questions
What is the exact diameter of the mounting holes on Raspberry Pi 5?
The holes are 2.9mm in diameter, designed for M2.5 screws. This is slightly larger than the Pi 4’s 2.5mm holes, so don’t assume they are the same.
Are the hole positions the same as Raspberry Pi 4?
The board dimensions are identical (85x56mm), and the holes are in the same relative positions – 3.5mm from each edge. However, the hole diameter is larger (2.9mm vs 2.5mm), so older Pi 4 mounts may not work if they rely on tighter tolerances.
Can I use M2.5 screws with Raspberry Pi 5?
Yes, M2.5 screws are the correct size. Use screws with a pan or button head to avoid interference with nearby components.
What is the distance between the mounting holes?
The centers are 78mm apart horizontally and 49mm vertically. This forms a rectangle that is slightly wider than it is tall.
Do I need to leave extra space for the ports when designing a case?
Yes, the USB-C ports extend about 2mm beyond the board edge, and the Ethernet port extends about 3mm. Also, the GPIO header adds height on top. Account for these when designing your enclosure.
Can I mount the Raspberry Pi 5 using only two screws?
Technically yes, but it’s not recommended. The board may flex, causing stress on the PCB and potentially damaging solder joints. Always use all four mounting points for a secure install.