Count the modules against the rail length you can actually use, not against the enclosure's outside width. On the 18 mm [0.71 in] module grid, a compact controller (40 mm [1.6 in] in the example below) plus four single-module expansion modules fills 112 mm [4.4 in] of rail, and ducts, end clearance and wall gaps lift the inside width you need to roughly 1.5 to 2 times that. The worked example lands at 202 mm [8.0 in] of inside width with 25 mm [1 in] ducts flanking the row. Stock stainless wall-mount boxes span 6 x 4 x 4 in to 60 x 36 x 16 in outside, and a custom box takes your own width to the millimetre. The steps here run from your parts list to the width on the order, and end with the checks that keep the row serviceable.
How many DIN rail modules fit across one row?
Usable rail length decides: divide it by the 18 mm [0.71 in] module and round down. A 180 mm [7.1 in] rail carries 10 module-widths, and the example assembly below takes 112 mm [4.4 in] of exactly such a row.
Usable rail length is the inside width at rail height, minus the two wiring ducts that flank the row and the clearance you keep at each end and to each wall. The outside width tells you none of this. Rails bolt to the removable mounting plate, and the plate sits inside the walls, so measure at the plate or read the inside width from the drawing. For an example box with 250 mm [9.8 in] of inside width: 250 - (2 x 25 mm ducts) - (2 x 10 mm gaps) = 180 mm [7.1 in] of usable rail. The size chart lists inside and outside dimensions for every catalog size, so you can check a candidate before you count modules.
What counts as one module of width?
One module is 18 mm [0.71 in] on the modular-device grid that DIN rail controllers, small breakers and terminal groups follow, so a device quoted at four modules measures 4 x 18 = 72 mm [2.83 in] across its front.
| Modules | Row width | Devices that use it |
|---|---|---|
| 1 | 18 mm [0.71 in] | single-module I/O expansion, interface relay |
| 2 | 36 mm [1.42 in] | small power supply, twin-pole terminal |
| 3 | 54 mm [2.13 in] | three-pole breaker, larger supply |
| 4 | 72 mm [2.83 in] | compact logic controller base |
Treat these as the counting currency, then read the real widths from the drawings of your parts. Expansion modules for a compact controller are not always one module wide; some run two or three, and the drawing decides. Terminal poles are quoted in millimetres instead of modules: 6 mm [0.24 in] and 10 mm [0.39 in] poles cover most control terminals, which is why a terminal group converts to module-widths so poorly.
Can expansion modules move to a second row?
Only where the controller's maker publishes an expansion cable for that family; the standard bus connector spans just the adjacent slot, so a controller sold without such a cable keeps every expansion on one continuous row.
The bus connector is a short bridge built for adjacent housings. A lead you make up can show continuity and still lose the maker's mechanical capture and electrical margins, so keep the expansion connection on the published hardware. That makes the fix dimensional rather than electrical: give the one row the width, or split the job across two controllers where the loads divide naturally. Some controller families do publish cables or remote I/O; where yours does, a second row works, and the arithmetic below applies to each rail on its own. The compact DIN rail enclosure for a controller with modules walks through the same enclosure-side sizing.
How much inside width do ducts, terminals and clearance add?
Plan on roughly 1.5 to 2 times the assembly width: the duct size moves the factor from 1.6 to 2.0 in the cases below, and 2 times is the safe shortcut when you order.
| Row build (112 mm assembly) | Added each side | Inside width | Factor |
|---|---|---|---|
| 25 mm [1 in] ducts, 5 mm [0.2 in] ends and wall gaps | 35 mm [1.4 in] | 182 mm [7.2 in] | 1.6 |
| 1 in ducts, 10 mm [0.4 in] ends and wall gaps | 45 mm [1.8 in] | 202 mm [8.0 in] | 1.8 |
| 38 mm [1.5 in] ducts, 10 mm [0.4 in] ends and wall gaps | 58 mm [2.3 in] | 228 mm [9.0 in] | 2.0 |
Keep the field terminals off the row. A terminal rail above the controller costs width nowhere and keeps every field conductor reachable — the article on terminal blocks above a PLC lays out that interface. Squeezed beside the assembly, 12 poles at 6 mm [0.24 in] would take 72 mm [2.83 in], a controller's worth of width.
Choose the duct for the bundle: UL 508A panel practice runs field wiring at a 14 AWG minimum, which a 1 in [25 mm] square duct handles inside the 50% fill cap its fill tables apply, citing NFPA 79-2012 section 13.5.2. The backplate and DIN rail layout guide covers duct sizing and rail spacing in full. Where power terminals land in the same box, NEC 312.6 sets the minimum wire-bending space at their terminals, in two tables for same-wall and opposite-wall entry; a control row on 14 AWG wire asks little of it.
What does the arithmetic look like for a controller and four expansions?
Take example inputs — a 40 mm [1.6 in] controller and four single-module expansions at 18 mm [0.71 in] each — and the assembly comes to 40 + (4 x 18) = 112 mm [4.4 in], needing 202 mm [8.0 in] of inside width with the 1 in ducts.
- Assembly: 40 + (4 x 18) = 112 mm [4.4 in]
- End clearance: 2 x 10 mm [0.4 in] = 20 mm [0.8 in]
- Ducts: 2 x 1 in = 50 mm [2.0 in]
- Wall gaps: 2 x 10 mm [0.4 in] = 20 mm [0.8 in]
- Inside width: 112 + 20 + 50 + 20 = 202 mm [8.0 in], a factor of 202 / 112 = 1.8
- With 38 mm [1.5 in] ducts instead: 112 + 20 + 76 + 20 = 228 mm [9.0 in], a factor of 2.0
- With a four-module base at 72 mm [2.83 in] instead of the 40 mm controller: 72 + 72 = 144 mm [5.7 in] of assembly, and 144 + 90 = 234 mm [9.2 in] of inside width, a factor of 234 / 144 = 1.6
Every width here is an example input — replace it with the number on your drawing before you order anything. The factor falls as the assembly grows because ducts and gaps are fixed overheads. Reserve the 10 mm end clearance for the bus plugs; the DIN rail controller clearance article works that space in detail.
How do you size and check the row step by step?
Work the five steps in order: list the widths, sum the assembly, pick the duct, measure the inside width at the plate, and compare the remainder with the assembly plus its 20 mm [0.8 in] of end clearance.
- List the width of the controller and of every expansion from its drawing, in millimetres.
- Sum the assembly and add 20 mm [0.8 in] of end clearance — 132 mm [5.2 in] in the example.
- Pick the duct for the bundle: a 1 in square duct carries a 14 AWG control bundle inside the 50% fill cap.
- Measure the inside width at rail height on the plate and subtract twice the duct width and twice the wall gap — 210 mm measured in an example box leaves 210 - 50 - 20 = 140 mm [5.5 in].
- Compare: the remainder must cover the assembly plus clearance — 140 mm against 132 mm clears it by 8 mm [0.3 in]; 132 mm against 132 mm leaves nothing for a later module.
When the row is in, close the door over the fitted duct covers, unplug one expansion and re-seat it without disturbing its neighbour, and confirm every duct lid still snaps shut with the bundle in. Width is one axis; depth is the other. A logic module near 60 mm [2.4 in] deep (example input) on 15 mm [0.6 in] standoffs, with the duct behind it and 10 mm of door gap, asks for 15 + 60 + 25 + 10 = 110 mm [4.3 in]: a 4 in [102 mm] deep box cannot close the door, a 6 in [152 mm] box clears it.
What do you put on the order?
Order the stainless wall-mount size whose inside width clears the row — the catalog spans 6 x 4 x 4 in to 60 x 36 x 16 in outside — or set your own width, depth and cutouts as a custom box, delivered in 10 business days from drawing approval.
Check the inside width on the size chart, or filter the stainless size finder by nominal inside size; the outside sizes run height x width x depth. When no stock size clears the row, the custom enclosure route takes the width you computed: pick 304 stainless for indoor washdown and most outdoor sites, 316L for salt air, brine and chlorides, and mark each cutout so gland entries land away from the rail row. The box is rated NEMA 4X / IP66 by the manufacturer; not UL listed. A hinged gasketed door, a removable mounting panel and wall-mount feet come as standard, and your DIN rail bolts straight to the plate.
Which mistakes cost the row?
Four mistakes eat rows: reading outside width as rail length, parking terminals beside the assembly, oversizing the duct pair, and splitting expansions across rows without a published cable.
- Outside width as rail length: the usable row never equals the catalog width; read the inside width from the chart and subtract the ducts and gaps.
- Terminals beside the row: 12 poles at 6 mm [0.24 in] take 72 mm [2.83 in] — the width of a four-module controller. Put the terminal rail above the row instead.
- Oversized ducts: two 2 in [50 mm] ducts take 102 mm [4 in], nearly the whole example assembly. Size the duct to the bundle and the 50% fill cap.
- Splitting the assembly: without a published expansion cable, modules on a lower row cannot reach the bus. The missing link shows up at installation, with hardware that strands.
- Depth forgotten: 15 mm of standoffs, a 60 mm module, the duct pair and 10 mm of door gap come to 110 mm [4.3 in]; a 4 in [102 mm] deep box cannot close the door.
For the code side of a fuller cabinet — NEC 312.8's cap on how much of a switch or overcurrent box may fill with conductors, splices and taps — the enclosure sizing guide carries the numbers.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 20 × 16 × 8 in | 304 stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 24 × 20 × 8 in | 304 stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Is a second controller ever a better fix than a longer row?
When the loads split into groups served from different places. Two compact controllers in two enclosures cut the field-cable concentration in one box, lower the fire load and keep a single controller fault from stopping every group. Each box still gets its own row arithmetic — assembly width times 1.5 to 2 — and each keeps its published expansion hardware. Assign every input and output to one controller before you order either box.
Does the electrical code set space in front of the finished panel?
Yes. NEC 110.26(A) calls for clear working space in front of equipment likely to be serviced while energized: at least 3 ft [900 mm] deep for 0-150 V to ground in Condition 1, at least 30 in [760 mm] wide or the equipment width, and room for the door to open a full 90 degrees. A wall-mount box beside a walkway still owes that depth.
How much rail does a terminal row above the controller need?
Count poles, not modules: 30 poles of 6 mm [0.24 in] terminals take 180 mm [7.1 in] of their own rail, more than the controller assembly below them. Give the terminal rail its own full row on the plate with a duct beneath, and count its width against the plate, not against the controller row.
Can I turn the controller sideways to save row width?
Rotation trades width for height: the assembly turns as one block, so the example row becomes 112 mm [4.4 in] of vertical stack and the expansion bus stays adjacent. Mount it only in the orientations the controller's instructions allow, because some modules restrict which way the bus and terminals face, and re-check that the ducts still land beside the turned row.





