Skip to content
Construction

Junction Box Sizing Calculator

Enter the conductors, devices, clamps, and grounding wires in your junction box to find the total volume required under NEC Article 314.16. The calculator applies the exact volume allowances from NEC Table 314.16(B), sums all fill components, and recommends the smallest standard metal box that complies. Switch between cubic inches and cubic centimetres, and use the step panel to see the math behind the result.

Your details

NEC tables use cubic inches; cm³ is provided for reference.
The largest conductor entering the box. All conductors not counted individually are based on this size for clamps, fittings, and grounding.
Count every current-carrying conductor and neutral entering the box. Do not count equipment grounding conductors here (use the grounding field below).
Each switch, receptacle, GFCI, or AFCI yoke counts as two conductor allowances (NEC 314.16(B)(4)). Faceplates and cover plates do not count.
If the box has internal cable clamps, add one conductor allowance (based on largest conductor) regardless of how many clamps there are (NEC 314.16(B)(2)).
Each fixture stud or hickey inside the box counts as one conductor allowance based on the largest conductor (NEC 314.16(B)(3)).
All equipment grounding conductors together count as one allowance for the first four, plus 0.25 allowances for each conductor above four (NEC 314.16(B)(5)).
Total fill requiredNeeds deeper 4-inch square box
22.5in³

Minimum box volume needed per NEC 314.16

Conductor fill13.5in³
Device fill4.5in³
Clamp fill2.25in³
Fitting fill0in³
Grounding fill2.25in³
Recommended standard box4 x 2.125 in square (30.3 in³)
Conductors13.5
Devices4.5
Clamps2.25
Fittings0
Grounding2.25

22.50 in3 of fill required - 4 x 2.125 in square (30.3 in³)

  • Total box fill is 22.50 in3 (368.7 cm3). The box you select must equal or exceed this volume.
  • Device yokes account for 20% of the fill because each yoke counts as two conductor allowances (4.50 in3 each).
  • The 6 line/neutral conductors contribute 13.50 in3. Running fewer splices or using a larger box can resolve a tight fit.

Next stepChoose a listed metal box rated at or above the calculated volume. Check the manufacturer label or NEC Table 314.16(A) to confirm the box volume before installation.

Formula

Vtotal=(Ncond×Vwire)+(Ndev×2×Vwire)+Vclamps+Vfittings+VgroundV_{total} = (N_{cond} \times V_{wire}) + (N_{dev} \times 2 \times V_{wire}) + V_{clamps} + V_{fittings} + V_{ground}

Worked example

Six #12 AWG conductors, one receptacle yoke, internal clamps, and two grounding wires: (6 x 2.25) + (1 x 2 x 2.25) + 2.25 + (1 x 2.25) = 13.5 + 4.5 + 2.25 + 2.25 = 22.5 in3. The smallest standard box that fits is the 4 x 1.5 in square box (21.0 in3) - just too small, so move up to the 4 x 2.125 in square box (30.3 in3).

What is junction box sizing (box fill) under NEC 314.16?

NEC Article 314.16 requires that every outlet, device, and junction box be large enough to contain all the conductors and devices installed inside it without damaging insulation. The calculation, commonly called a "box fill calculation," assigns a volume allowance to each item in the box: every conductor, device yoke, internal cable clamp, fixture stud or hickey, and equipment grounding conductor. The sum of all allowances is the minimum box volume required. Using a box that is too small is a code violation and a genuine safety hazard, because crowded wiring creates heat and can damage insulation.

How to count conductors, devices, and grounding wires

Counting each box fill component correctly is the most common source of mistakes. For conductors, count every current-carrying wire and neutral that enters the box, including any pigtails longer than 6 inches from where they leave a wire nut. Each wire size gets the allowance from NEC Table 314.16(B) based on that wire's AWG. For device yokes (switches, receptacles, GFCIs, AFCIs), each yoke counts as two conductor allowances using the largest conductor attached to the device. Internal cable clamps all together count as one conductor allowance based on the largest wire entering the box. Each fixture stud or hickey counts separately as one allowance. For equipment grounding conductors, the first group of one to four grounds counts as a single allowance; for every ground above four, add one-quarter of an allowance. The grounding allowances use the volume for the largest grounding conductor in the box.

Standard metal box sizes and NEC Table 314.16(A)

NEC Table 314.16(A) lists the minimum volumes for standard metal outlet boxes. The most common sizes are: 3 x 2 x 2.75 in single-gang device box (14.0 in3), 4 x 1.5 in square box (21.0 in3), 4 x 2.125 in square box (30.3 in3), and 4.6875 x 2.125 in square box (42.0 in3). Plastic boxes may have higher ratings molded on the inside - always check the manufacturer marking because plastic boxes are not all listed in NEC Table 314.16(A). If the fill exceeds 42.0 in3, the installation requires a pull box with a volume determined by calculation rather than a table entry.

NEC 314.28 pull boxes for large conductors (4 AWG and larger)

When conductors are 4 AWG or larger, NEC Article 314.28 applies instead of 314.16. For a straight pull, the box must be at least 8 times the trade size of the largest raceway. For an angle pull or splice, the distance from the raceway entry to the opposite wall must be at least 6 times the largest raceway trade size, plus the sum of the trade sizes of all other raceways on the same wall. This calculator handles 314.16 fill calculations for smaller conductors; for large-conductor pull boxes, consult NEC 314.28 directly or use a dedicated pull-box calculator.

NEC Table 314.16(B): Volume Allowance Per Conductor

AWG SizeVolume (in3)Volume (cm3)Typical Use
#6 AWG5.0081.9Range, dryer circuits
#8 AWG3.0049.2A/C, large appliance circuits
#10 AWG2.5041.030 A branch circuits
#12 AWG2.2536.920 A branch circuits (most common)
#14 AWG2.0032.815 A branch circuits
#16 AWG1.7528.7Low-voltage / control wiring
#18 AWG1.5024.6Low-voltage / control wiring

From NFPA 70 National Electrical Code Article 314. Each conductor entering the box requires the volume shown for its AWG size.

Frequently asked questions

Does a wire nut count as a conductor in the box fill calculation?

No. Wire nuts, connectors, and other splicing devices do not count separately toward box fill. You count each conductor entering or present in the box (including pigtails over 6 inches), but not the device joining them.

How do I count a two-wire cable (black and white) entering the box?

Each individual conductor counts separately. A standard 12/2 NM cable contains one black, one white, and one bare ground: count 2 conductors (black and white) in the conductor field and 1 ground in the grounding conductor field.

Do I count the conductor that stays entirely inside the box, like a jumper?

If the conductor is 6 inches or shorter from where it leaves the wire nut or termination, it is not counted. If it is longer than 6 inches measured from where it leaves the junction, it counts as a full conductor allowance per NEC 300.14.

What is the difference between NEC 314.16 and 314.28?

NEC 314.16 governs boxes containing conductors 8 AWG or smaller, using the volume table method. NEC 314.28 governs pull boxes and junction boxes that contain conductors 4 AWG or larger in raceways, using a dimensional method based on raceway trade sizes. If a box contains both large and small conductors, 314.28 typically controls. This calculator covers 314.16 for standard residential and light commercial wiring.

Can I use a plastic box instead of a metal box?

Yes, provided the plastic box is listed and its volume is marked by the manufacturer. Plastic boxes are not covered by NEC Table 314.16(A), but the same fill calculation applies: the total fill must not exceed the marked volume of the box. Check the inside of the box for the cubic inch marking.

Why do device yokes count as two conductor allowances?

NEC 314.16(B)(4) treats each device yoke as equivalent to two conductors because the internal wiring space taken by a switch or receptacle is comparable to the space two wires would occupy. This applies regardless of how many terminals the device uses.

What if my box has both internal clamps and external cable connectors?

Only internal cable clamps add to the box fill. External connectors (like squeeze connectors or knock-out fittings on the outside of the box) do not count. All internal clamps together add just one conductor allowance regardless of how many clamps are present.

Sources

Written by Aisha Rahman, PEng Structural Engineer · Toronto, Canada

Structural Engineer and PEng with 16 years designing and verifying load-bearing systems across Canada's most demanding construction environments.

Search 3,500+ calculators

Loading search…