Junction Box Sizing Calculator
Find the smallest junction box that fits straight and angle conduit pulls.
Three rows per wall, twelve trade sizes, and length results in inches, centimeters, millimeters or feet.
Updated November 17, 2026
Introduction
Two distances decide the size of a pull box or junction box: how long it has to be inside, and how tall. Both are set by the raceways you pull conductors through, and both are set by code rather than by preference. Enter the trade sizes here and the page returns the smallest inside length and height that satisfy those two rules for your layout.
The number matters before anything is bought or built. An electrician laying out a pull wants to know whether the box already in the van is long enough. An estimator needs a size to price. A designer needs to catch a drawing that shows an enclosure too small for the raceways landing on it. Those are all the same question, and all of them are answered from the raceway sizes, the walls they enter, and the way the conductors turn once they are inside.
What comes back is a floor, not a target: the box may be larger than the answer, and it must not be smaller. Each dimension appears only when your plan actually involves it, so a layout with no vertical pull is told nothing about height by these rules — it still has to be tall enough for the conductors to bend and for the cover to close.
12 trade sizes
1/2-inch to 6-inch, entered as the designation on the fitting
3 rows, 6 raceways
Per wall; the boxes and rows appear as you fill them
3 in to 66 in
The range of dimensions these menus can produce
Quick start
Most boxes need two kinds of input: the raceways that pass straight through, and the rows on each wall where conductors turn. Fill in what your pull actually has and leave the rest alone.
Enter the horizontal straight pulls
Pick the largest raceway whose conductors enter one wall and leave the opposite wall without turning — left to right, or right to left. It sets the length, eight times over. If no raceway passes straight across the box, leave this menu at Select.
Enter the vertical straight pulls
The same question, answered for the top and bottom walls: the largest raceway whose conductors pass straight down through the box, if there is one. This is the only input that produces a height from a straight pull.
Fill in the walls where conductors turn
Open the wall a raceway enters, then give each raceway entering that wall its trade size in the row where it sits. You do not have to decide which one is largest, and the order within a row does not matter. A second row of raceways gets its own row of menus, and clearing a menu takes that raceway back out.
Read the two results against a real box
Each dimension you see is the largest requirement along that direction: one number for the length, one for the height. Both belong to the same enclosure, so the box you choose has to clear both of them — a box that clears the length and misses the height is no good either.
Check the working on a real layout
A box takes a 4-inch and a 1 1/2-inch raceway on its left wall in the same row, and a 1 1/2-inch raceway passes straight down through it.
The box must measure at least 25.5 inches inside length and 12 inches inside height — the same as 64.77 cm by 30.48 cm. The length comes from the angle-pull row, and the height from the straight pull; neither one adds to the other.
How the two dimensions are built
Both rules measure the same thing — the clear distance from a raceway entry to the wall opposite it — and differ only in how many times the raceway is counted. A straight pull counts one raceway. An angle pull counts the whole row it belongs to.
A straight pull counts one raceway, eight times
Only the largest straight-pull raceway enters this number. The raceways beside it are not added: a straight pull is not a row, and each one is measured against the wall it faces. A 2 1/2-inch raceway passing straight across a box needs 20 inches of length; a 4-inch raceway needs 32 inches.
An angle pull counts its entire row: six times the largest, plus the rest
A row is a band of raceways on one wall. The rule adds the rest of the row because those raceways compete for the same clear space between their entries and the opposite wall, so a crowded row asks for a longer box than the same raceways spread over two rows.
Row totals are not added together. Three rows on one wall give three requirements, and the largest one governs. A wall holding a 4-inch raceway in one row and two 2-inch raceways in another is sized by the 4-inch row alone, at 24 inches.
The largest requirement wins each dimension
Rows on the left and right walls are crossed from side to side, so they set the length. Rows on the top and bottom walls are crossed from top to bottom, so they set the height. A straight pull feeds the dimension it runs along. Each of the four R terms is the largest row requirement on that wall, so a wall with three rows contributes one number, not three.
No rounding, and no hidden margin
Every size on the menus is a fixed trade designation, so the arithmetic lands on quarter-inch steps: is exactly 25.5 inches, not roughly 26. A result of 25.5 in reads as 64.77 cm, 647.7 mm or 2.125 ft; the conversions are exact at 1 in = 25.4 mm and 1 ft = 12 in. If you want margin, take the next size up — do not round the answer down.
A row is a set of raceways, not a ranking
There is no largest-raceway field to pick and no way to enter a raceway bigger than the largest: the page finds the largest in the row itself and counts it six times, then adds the rest. Entering 1 1/2, then 4, then 1 1/2 inches gives the same 27 inches as entering 4 first, and clearing the 4-inch menu drops the row back to its two smaller raceways.
Worked examples
The 24-inch box that does not make it
Situation: A box comes off the shelf at 24 by 12 inches. The pull needs a 4-inch and a 1 1/2-inch raceway on the left wall in one row, and a 1 1/2-inch raceway passing straight down through the same box.
Inputs
Result
The box is short by 1.5 inches. The height is fine: the straight pull needs only 12 inches, which 12 inches meets exactly.
In practice: Take the next inside length at or above 25.5 inches, or re-plan the row: moving the 1 1/2-inch raceway into its own row drops the requirement to 24 inches, which the box on hand does meet.
Splitting a row changes the number
Situation: Three 2-inch raceways enter the bottom wall. First they are arranged as one row, then as two rows of one and two raceways.
Inputs
Result
Splitting the row saves 2 inches of height, because only one other raceway sits beside the largest instead of two.
In practice: Same raceways, same wall, two inches less height. Whether the split is worth it depends on the wall space, the pulling clearance behind the box and how the conductors bend, so treat it as a layout decision the number informs rather than makes.
Straight through, or turning the corner
Situation: The same 4-inch raceway can be pulled straight across the box, or entered and turned. A third box has to do both jobs.
Inputs
Result
Turned on its own, the raceway needs 24 inches. Straight through, it needs 32. The page shows the larger of the two whenever both are present.
In practice: Classify every raceway before you enter it. A raceway that carries conductors straight through is an eight-times raceway even when the same box also has angle pulls, so the straight pull wins and the length is set at 32 inches.
Getting the size right
Trade size, not a measured diameter
A 1/2-inch EMT is not half an inch across, and a 2-inch rigid raceway is not 2 inches outside. Enter the designation printed on the fitting or written on the drawing. Metric designations such as 20 or 25 mm use a different numbering; they are not among these trade sizes, and treating one as a trade size will size the box wrongly.
Inside dimensions, not outside
Every result here is measured inside the box, from the inner face of one wall to the inner face of the opposite one. When you check a catalogue or fabricated box, subtract the wall thickness, and allow for anything fitted inside that eats into the clear space.
Both dimensions, one box
A box that clears the length can still fail the height, and the numbers belong to the same enclosure. Compare both results against the sizes you are considering instead of checking only the one that came out larger.
Round up to a size you can buy
The answer is a minimum, and stock boxes step up in fixed increments. Choose the next inside size at or above both numbers rather than the nearest one, and do that before the box is ordered or the enclosure is fabricated.
Straight pulls and angle pulls are different questions
It is easy to enter a raceway in the wrong place. If conductors go straight through without turning, it belongs in the straight-pull menu and counts eight times; if they turn inside the box, it belongs in a row on the wall it enters and counts six times plus its neighbours. Entering it both ways overstates the box, and entering it neither way understates it.
Questions
Why does the page want every raceway in a row instead of just the largest?
Because the rule adds them. The distance a row needs is six times its largest trade size plus the sum of the other raceways in that row, so a 4-inch raceway alone needs 24 inches while the same 4-inch raceway beside a 1 1/2-inch one needs 25.5. Entering each raceway, in any order, is how the page gets that sum without asking you to rank them.
The answer is 25.5 inches. Is a 24-inch box still acceptable?
No — not for that layout. The number is a minimum inside length, and 24 inches inside falls short of it; rounding the answer down does not make the box fit. Two details catch people out: a size quoted for a box is often its outside dimension, and an enclosure cannot be made smaller once it is built. If the box you have is 24 inches inside, the layout has to change (a raceway moved into its own row, for example) or a longer box is needed.
Why does only one of the two results appear?
Each dimension is shown only when your plan involves it. A box with no vertical straight pull and no rows on the top or bottom wall has no height requirement from these rules, so the page says nothing about height rather than printing a zero. The box still has to be tall enough to work in — that part is a judgement the two distances do not make.
What about the depth of the box, the cover and conductor fill?
These two rules set the two distances across the box, not through it. Depth and cover choice come from how much conductor volume the box has to hold, from the bending space the conductors need, and from how the box is built. A box can satisfy both numbers on this page and still be too shallow, and a box with smaller conductors is usually governed by conductor fill instead of these distances at all.
What these dimensions leave out
- •Scope: 4 AWG and larger. These two distances come from Article 314.28(A) of the 2020 National Electrical Code, which covers raceways and cables containing conductors of 4 AWG and larger. Boxes holding smaller conductors are sized by conductor fill instead — our box fill calculator works that rule out.
- •Two distances, not a box design. Depth, cover and gasket, bending space, splices, supports, grounding, conductor volume, ampacity and the practical business of fabricating or hanging the enclosure are all outside these two numbers.
- •The page holds up to three rows of six. Each wall accepts three rows and six raceways per row. A busier wall has to be reduced by hand — test its worst row and its largest straight pull — and checked against the code text rather than assumed to follow from this page.
- •Other arrangements are not modelled. Conductors that leave through the wall they entered, conduit bodies, and enclosures the article treats under different wording are outside this page; check how the code measures that arrangement before you rely on a number from here.
- •Local rules and the inspector have the last word. Adopted editions and local amendments vary, and the authority having jurisdiction decides what the installation needs. Treat these results as planning numbers and confirm them with a licensed electrician and the code before anything is ordered or installed.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.