Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

Enclosure for stacked circuit boards: check the fit

Size the enclosure around the fully assembled board stack, including standoffs, connectors, cables, and service access. Specify usable internal clearance and mounting coordinates before choosing outside dimensions, then verify the arrangement against the enclosure approval drawing.

NEMA4 Enclosure engineering team · Published November 1, 2026 · 7 min read

Choose an enclosure around the complete board stack, not the base board’s footprint or a case described as extra tall. Install the expansion board, standoffs, fasteners, and actual cable plugs before measuring. Then specify usable internal clearance from the mounting surface to the nearest obstruction. A taller lid alone will not solve blocked connectors, unsupported boards, or cables that cannot turn inside the enclosure.

What you need before measuring

Collect the parts that will remain installed, including anything needed to connect, secure, and service the assembly:

  • Base board and every expansion board in the intended stack.
  • Correct stacking connectors, spacers, standoffs, screws, and washers.
  • Actual power, network, signal, and antenna cables, where applicable.
  • Heatsinks, storage cards, terminal plugs, and internal adapters.
  • Board drawings showing mounting holes and component keep-out areas.
  • Calipers, a depth gauge or ruler, and a flat reference surface.
  • A proposed mounting plate and enclosure drawing showing internal obstructions.

Isolate power before assembling or checking the stack. Handle boards using suitable electrostatic discharge precautions, and do not force misaligned headers together.

If the board layout is still changing, establish the enclosure constraints first. The article on choosing the case before PCB layout covers that earlier decision. This procedure starts with the assembled stack and turns its measured envelope into an enclosure specification.

Measure and size the complete stack

  1. Assemble the exact operating configuration.

    Seat every stacking connector fully according to its instructions, then install the specified mechanical supports. Include the tallest permitted configuration if expansion boards will vary between assemblies. Check that spacers match the connector’s intended mated height without bending either board. A header that appears seated may still leave one corner raised. Resolve that condition before measuring; enclosure clearance cannot correct a distorted stack.

    Include screw heads, protruding threads, underside components, and any daughterboard extending beyond the base board. Photograph the assembled configuration for identification, but use dimensions rather than photographs to control the enclosure drawing.

  2. Choose a mounting surface and drawing references.

    Establish the surface that will support the enclosure-side standoffs, usually the top of a mounting plate. Measure installed height from that surface, not from the enclosure’s outside wall. Choose two perpendicular reference edges for mounting-hole and connector locations. Show those same references on the board-stack sketch and mounting-plate drawing.

    This prevents a common error: locating mounting holes from one edge while locating access openings from another. If the enclosure drawing uses different references, show the offsets explicitly rather than leaving the conversion to assembly.

  3. Measure the occupied width and length.

    Record the outermost feature in each direction, including overhanging connectors and expansion-board edges. The base board’s published dimensions are only one part of this envelope. Add the space needed for installing and removing the stack without scraping components against the wall.

    Separate permanent clearance from service clearance. A removable terminal plug may fit while connected but require additional travel for removal. Decide whether that travel must remain available inside the enclosure or whether service requires removing the complete assembly. Record that decision before selecting the enclosure dimensions.

  4. Measure height from the mounting surface.

    Measure to the highest installed feature, including heatsinks, screw heads, and cables routed above the upper board. Also check underside components against the mounting plate. Standoffs must provide the necessary mechanical and electrical separation without relying on solder mask as insulation.

    For example, suppose the assembled stack reaches 1.625 in [41.3 mm] above its mounting surface. Adding a chosen mechanical allowance of 0.250 in [6.4 mm] requires 1.875 in [47.6 mm] of unobstructed internal height. That allowance is an example, not a universal electrical clearance or cooling requirement. Increase it where component instructions, tolerances, or cable movement require more space.

  5. Add the connected-cable envelope.

    Fit the actual mating plugs, including strain reliefs and locking hardware. Measure straight plugs and right-angle plugs separately; their occupied spaces are rarely interchangeable. Follow each cable’s minimum bend radius and allow access to connector release tabs.

    A connector facing an enclosure wall needs room for its plug body before the cable can turn. A plug facing upward may determine the enclosure depth even when the upper board is relatively low. Support cables so their weight and service movement do not load the stacked headers or pull the boards sideways.

  6. Map mounting points and access openings.

    Record mounting-hole diameters, center coordinates, hardware sizes, and clearance around every screw. Do not enlarge board holes or add mounting holes without approval from the board manufacturer. Use supports that avoid components, traces, and prohibited contact areas.

    Locate each access opening from the assembled connector position, not just the board outline. The procedure for aligning stacked PCB enclosure cutouts addresses openings on different board levels. Include tool access and connector insertion travel. An opening that exposes the socket but blocks its latch is not a usable opening.

  7. Check tolerances and enclosure obstructions.

    Compare the required envelope with usable internal dimensions on the proposed enclosure drawing. Account for the mounting plate, lid returns, gasket retainers, hinges, latches, and internal hardware. Nominal outside depth does not establish clearance above the board stack.

    Include variation in standoff length, board thickness, connector seating, mounting-hole position, and enclosure fabrication. Use the largest credible occupied envelope against the smallest available enclosure space. The article on checking a PCB enclosure tolerance stack explains how to keep those variations from consuming the entire clearance allowance.

  8. Review heat and the installation environment.

    Mechanical fit does not establish an acceptable operating temperature. Record the boards’ heat dissipation, maximum ambient temperature, component temperature limits, and manufacturer-required airflow or heatsink clearances. Closely spaced boards can restrict natural convection and hide hot components beneath the expansion board.

    Decide whether connectors remain inside the protected space or must pass through an enclosure wall. Ordinary board sockets exposed through open slots do not provide a sealed installation. Where protection against water or dust is required, specify suitable sealed interfaces and confirm the complete arrangement before approving the enclosure.

Check the fit before approving the drawing

Use a dimensional mock-up or sample assembly to verify the proposed arrangement. A mock-up can reveal interference, but it does not demonstrate electrical safety, thermal performance, or an environmental rating.

Complete these checks with power isolated:

  • The stack seats on every support without rocking or bending.
  • Fasteners engage correctly without bottoming out or contacting board components.
  • Every plug inserts fully, locks, releases, and withdraws as intended.
  • Storage cards and removable terminal blocks have a defined service path.
  • Cables remain clear of sharp edges, lid fasteners, and gasket contact surfaces.
  • The lid closes without contacting boards, heatsinks, plugs, or wiring.
  • Opening the enclosure does not pull internal cables or disturb the stack.

Use the board and hardware instructions to establish assembly torque. The article on setting a safe PCB mounting torque explains why tightening until the board stops moving is not a reliable method.

After mechanical checks, validate temperatures under the intended operating conditions using an appropriately safe test arrangement. Do not assume a successful unpowered fit check proves cooling performance.

Mistakes that cost clearance or environmental protection

Selecting by outside depth. Wall construction, mounting hardware, and closure features consume space. Request a section drawing through the tallest part of the stack.

Treating the header as the only mechanical support. Follow the board manufacturer’s mounting requirements and support attached cables independently. Do not use enclosure pressure to hold boards together.

Measuring without plugs installed. The mating connector and cable bend often occupy more space than the board socket itself. Measure both the operating position and the removal path.

Using a large open slot for several connectors. An oversized opening may simplify access while removing the intended barrier against water and dust. The cutouts, cable glands, and HMI windows guide explains how to specify interfaces around the actual opening and sealing method.

Changing the stack after drawing approval. A different expansion board, taller heatsink, or replacement cable can invalidate the measured envelope. Tie the enclosure drawing to the approved assembly configuration and review substitutions before installation.

What to put on the enclosure drawing

Send a dimensioned assembly sketch with the enclosure request. Include the board stack’s installed envelope, rather than only separate board drawings. Use a specification table to keep clearance requirements distinct from proposed outside dimensions.

Drawing item What to specify
Assembly configuration Board revisions, expansion boards, heatsinks, connectors, and installed cables
Installed envelope Maximum width, length, and height from the defined mounting surface
Required free space Mechanical allowance, cable bends, tool access, and service travel
Mounting arrangement Plate position, hole coordinates, hole sizes, standoff heights, and hardware
Access openings Wall identification, common references, dimensions, tolerances, and sealing method
Internal obstructions Areas that must remain clear of hinges, latches, returns, and fasteners
Thermal conditions Heat dissipation, ambient range, temperature limits, and cooling requirements
Installation conditions Water, dust, chemicals, indoor or outdoor exposure, and required enclosure rating

For custom enclosures, we build to the specified material, width, height, depth, and cutout layout, from one piece. Custom enclosure ratings are manufacturer ratings for the specified design; our enclosures are not UL listed.

Use the enclosure builder to communicate the proposed dimensions, mounting arrangement, and cutouts. Confirm the usable internal envelope on the approval drawing before accepting the design. That drawing should make the board stack’s required space unmistakable, even if the enclosure’s outside dimensions change.

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
12 × 10 × 6 in304 stainless12 x 10 x 6 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
24 × 20 × 8 in304 stainless24 x 20 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

How much enclosure height does a stacked board assembly need?

Measure the complete installed assembly from its mounting surface to its highest feature. Include standoffs, heatsinks, fasteners, plugs, and cables. Add allowances for tolerances and required clearances, then compare that requirement with unobstructed internal height on the enclosure drawing, not its outside depth.

Can the enclosure footprint match the base board dimensions?

Not necessarily. The expansion board may overhang the base board, and connected plugs can extend beyond both. Measure the complete assembly in every direction. Include cable bends, connector release access, and the travel needed to remove terminal plugs or storage cards.

Do expansion boards need separate mechanical supports?

Use the support arrangement specified for the boards and stacking connectors. Standoffs must match the intended mated height without bending the boards or partially separating the headers. Support external cable loads independently, and do not use the enclosure lid to hold the stack together.

Can open connector cutouts preserve the enclosure rating?

An open access cutout does not preserve protection against water or dust. Use an interface and sealing arrangement suitable for the required environment. Include the connector, mounting opening, seals, and installation method in the enclosure review rather than assuming the original enclosure rating still applies.

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 12 × 10 × 6 inRequest a custom quote

NEMA 4X enclosures: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides