Email us

How to mount a PCB inside an outdoor enclosure

Mount the board to a metal backplate with screws and standoffs, not adhesive standoffs. Screws hold for years, keep the board from falling onto live terminals, and let you remove it. In a sealed outdoor box, use glands and sealed screws so the mounting does not cost you the water rating.

NEMA4 Enclosure engineering team · Published October 29, 2026 · 4 min read

A mains-powered PCB belongs on screws and standoffs attached to a metal backplate, never on adhesive standoffs alone. Adhesive lets go with heat and humidity, and a live board that drops onto the bottom of the box can short out or make the enclosure live. Here is how to mount the board so it stays put, stays removable and keeps the box sealed.

What you need

  • The PCB, ideally with real mounting holes at the corners.
  • A metal backplate; most wall-mount boxes already include a removable one, so you may not need to fabricate anything.
  • Four or more standoffs, typically 6-32 thread, sized so the board clears the backplate by at least 0.25 in (6 mm).
  • Matching machine screws, with thread-locker for a box that sees vibration.
  • Cable glands sized to your cables, and grommets or strain relief at the board edge.
  • A drill and deburring tool if you must add holes to the backplate.

If the box has no backplate, make one from 16 gauge (about 1.5 mm) steel or aluminum, or order the enclosure configured with a mounting panel. A 10 x 8 x 6 in (H x W x D) 304 stainless wall-mount unit gives you a flat surface to work on; the 12 x 10 x 6 in size adds room for terminal blocks beside the board. See the wall-mount stainless enclosures for the full size range.

Steps

  1. Plan the layout first. Hold the board in the box with the door closed in your mind: check clearance to the door, the gasket, hinges and latch. Leave space for the wire bundles on all four sides if connections leave every edge. Our backplate and DIN rail layout guide walks through spacing and bend radius at terminals.

  2. Mark and drill the backplate. Transfer the board's mounting-hole pattern to the backplate. Deburr every hole; a burr under a standoff can crack a board corner or pierce insulation over time.

  3. Fix the backplate to the enclosure. Use the factory mounting points or bosses in the box walls. Do not simply drive self-tapping screws through a gasketed wall; that is one of the mounting methods that cost a box its rating, and screws through an outdoor wall need to be sealed properly. If your box has no usable points, mount the backplate to bosses you had added, or pick an enclosure designed for a panel.

  4. Thread the standoffs onto the backplate. Hand-tight plus a quarter turn is enough. If the backplate is grounded metal, check whether your board's mounting holes connect to a net; if they do not, nylon standoffs avoid any doubt.

  5. Set the board and route the cables. Lower the board onto the standoffs and route each cable with a service loop and a drip loop before the entry gland. Cables entering from below, glands facing down where possible, and connectors sealed per the usual outdoor practice all keep water moving away from the board.

  6. Screw the board down. Four 6-32 screws with a drop of thread-locker. Tighten snug, not brutal; over-torquing cracks board corners, especially with through-hole components near the holes.

  7. Bond the ground path. If the enclosure is metal, bond the backplate and the enclosure to the equipment grounding conductor per your local code. The grounding and bonding guide covers the details, and the board's protective earth must land on a terminal, not rely on a standoff thread.

  8. Close up and test before energizing. With the cover off, wiggle the board and each cable. Measure clearance from the board to the walls. Then energize once with the door open and an insulation check done if this is mains gear you are not the designer of.

Checks when done

  • The board cannot be shifted by hand in any direction.
  • Every cable has strain relief at the gland and a drip loop outside.
  • Nothing touches the door, gasket or walls when the door closes.
  • The ground path from board to box to conductor is continuous.
  • Standoff screws show thread-locker and no cracked solder joints.

Mistakes that cost you

Adhesive standoffs on a mains board. Heat cycles and humidity break the bond. When it lets go, the board lands on whatever is below. This is the failure mode to design out on day one.

Mounting the board to the door or lid. Doors flex, gaskets compress, and cables to a moving panel fatigue. Keep the board on the backplate.

Drilling the box wall casually. Every added hole is a leak path. Plan entries through glands, seal any fastener that pierces the wall, and remember that a box rated NEMA 4X / IP66 by the manufacturer is not UL listed; the rating survives your modifications only if the sealing design still holds. The NEMA enclosure types guide explains what each type stands for.

Forgetting heat. A sealed box with a warm board bakes everything inside. Board heat has nowhere to go through the walls of a sealed stainless box quickly, so check the thermal picture before you bolt it down. The enclosure sizing guide covers the space and heat arithmetic.

Keeping it serviceable

Screws are the whole point of this method: five minutes with a screwdriver lifts the board out. Label the standoffs, keep spare screws in a bag taped inside the shop drawer, and photograph the wiring before you close the door. If the project may grow, size the box for the next revision now; reusing an undersized box to save one order costs a second teardown later. Leave 20% spare area on the backplate for the rev B connector that always appears.

When to re-specify the enclosure

If the box needs so many new holes that its sealing is in doubt, or the board plus terminals genuinely do not fit with clearance, stop modifying and size a proper box. A custom stainless enclosure with the cutouts, standoffs and mounting panel you specify, delivered in 10 business days, is often cheaper than the hours spent making the wrong box work.

Enclosures for this job

Catalog sizes that suit the job this article answers, picked from its subject; open one for its full specifications.

EnclosureMaterialOutside H x W x D / displayRating
10 × 8 × 6 in304 stainless10 x 8 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
16 × 12 × 8 in304 stainless16 x 12 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 8 in304 stainless20 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Are adhesive standoffs acceptable for a mains-powered PCB?

They are a poor choice for any board carrying 120 VAC. The adhesive is the only fastener, and heat, cold cycles and humidity break it down over time. If the board drops onto live terminals it can short the circuit or make the box live. Use screwed standoffs into a backplate; save adhesives for light, low-voltage boards where a fall is harmless.

Do I need metal or nylon standoffs?

Either works mechanically. Nylon (plastic) standoffs are fine when the board has its own creepage and clearance design and the mounting holes are isolated. Metal standoffs give a firmer, more heat-tolerant mount but can bridge a grounded backplate to board copper, so check whether your mounting holes are connected to a net first.

Will screwing through the enclosure wall ruin the rating?

It can. A hole through a gasketed wall defeats the seal unless it is sealed itself. Mount the backplate to factory mounting points or bosses, or follow sealed-screw practice outdoors. Whatever you cut or drill, the finished panel keeps its rating only if the manufacturer-rated design still holds; the rating statement travels with the box as built, not as originally sold.

How much clearance should the board have from the box wall?

Keep at least 0.25 in (6 mm) between the board and any metal surface so components and solder joints never touch, more if terminal blocks sit near the wall. In a stainless box with the backplate bonded, treat the walls as grounded metal and respect the creepage and clearance distances your board design already requires.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 10 × 8 × 6 inRequest a custom quote

Outdoor enclosures: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides