Skip to content

Junction Box Volume Calculator - NEC Code Compliant

Calculates the minimum junction box volume under NEC Table 314.16(B), based on wire gauge, conductor count, ground wires, cable clamps, and device yokes.

Junction Box Volume Calculator

Calculate the required size of an electrical junction box based on the number and types of wires entering the box.

Results

Required Volume
2cubic inches

Suggested Dimensions:

  • Width: 2 inches
  • Height: 2 inches
  • Depth: 1 inches

Note

This calculator provides an estimate based on the National Electrical Code (NEC) requirements. Always consult local building codes and a licensed electrician for final determinations.
Loading calculator...
📚

Documentation

What is a junction box volume calculator?

A junction box volume calculator finds the smallest box volume, in cubic inches, that safely holds a given set of wires and parts. It applies the box-fill rules in the National Electrical Code (NEC), Table 314.16(B). Electricians and homeowners use it to pick a box that meets code before installing it, instead of finding out it is too small after the wires are already inside.

What is a junction box?

A junction box, also called an outlet box or device box, is an enclosure that holds electrical splices and connections. It keeps the wires away from physical damage and keeps sparks or heat away from anything nearby that could catch fire. Boxes are made of metal or plastic and come in several shapes, including single-gang, square, and octagonal.

Why box volume matters

Electrical connections carry current, and current produces heat. A box with too little free space packs the wires tightly together, which makes it harder for that heat to spread out. Tight packing can also nick or crush wire insulation while the wires are pushed in, which raises the risk of a short circuit over time. The NEC sets a minimum volume for each box so there is enough room for the conductors, the splices, and any devices without crowding them.

How to calculate junction box volume

NEC Table 314.16(B) assigns a volume allowance, in cubic inches, to each wire gauge (American Wire Gauge, or AWG). The table covers 18 AWG through 6 AWG. Larger conductors are not sized this way; a separate part of the code, NEC 314.28, covers pull and junction boxes for bigger wire.

Wire size (AWG)Volume allowance (cubic inches)
181.5
161.75
142.0
122.25
102.5
83.0
65.0

The total required volume adds up several kinds of allowances:

  • Conductors. Every current-carrying wire that enters the box and is spliced or connected gets one allowance, based on its own gauge.
  • Grounding conductors. All the bare or green ground wires in the box share a single allowance, based on the largest ground wire present. If there are more than four ground wires, each one past the fourth adds one quarter of that allowance.
  • Cable clamps. All the internal cable clamps in the box share one allowance together, sized to the largest conductor in the box. This is true no matter how many clamps are present.
  • Device yokes. Each device yoke, the metal strap that mounts a switch or outlet, adds a double allowance, sized to the largest conductor in the box.

Written as a formula:

Required volume = (conductor allowances) + (one ground allowance) + (one clamp allowance, if any clamps) + (yoke allowances)

Example

A box for a three-way switch contains:

  • three 14 AWG conductors
  • two 12 AWG conductors
  • one 14 AWG ground wire
  • one cable clamp
  • one device yoke

Conductor allowances: (3 × 2.0) + (2 × 2.25) = 6.0 + 4.5 = 10.5 cubic inches.

The largest conductor in the box is 12 AWG, with an allowance of 2.25 cubic inches. That value is used below for the clamp and the yoke.

Ground allowance: one 14 AWG ground wire, so add 2.0 cubic inches. Running total: 12.5.

Clamp allowance: one allowance at the largest-conductor size, 2.25 cubic inches. Running total: 14.75.

Device yoke allowance: 2.25 × 2 × 1 = 4.5 cubic inches. Final total: 19.25 cubic inches.

This box needs a volume of at least 19.25 cubic inches. Many single-gang device boxes hold less than that, so this wiring would usually call for a larger box, such as a two-gang box or a deep single-gang box rated for 19.25 cubic inches or more. A box's volume is normally stamped inside it or listed in the manufacturer's specifications.

What this calculator covers

The calculator supports wire sizes from 18 AWG through 6 AWG, matching NEC Table 314.16(B). It does not cover:

  • Conductors larger than 6 AWG, which fall under NEC 314.28 instead.
  • Multi-gang boxes with internal barriers.
  • Boxes that mix power wiring with low-voltage wiring, such as coaxial or network cable.

For box fill outside these cases, or for a final compliance decision, consult NEC Table 314.16(A) and (B) directly or ask a licensed electrician.

Frequently asked questions

What counts as a conductor for box fill? Any insulated wire that enters the box and is spliced or connected to a device counts as one conductor. A short pigtail under about 6 inches that does not leave the box is generally not counted.

Does every ground wire add its own allowance? No. All the grounding conductors in a box share one allowance, sized to the largest ground wire. Only after the fifth ground wire does each additional one add a small amount, one quarter of that allowance.

If a box has three cable clamps, do they count three times? No. All clamps in a box together use a single allowance, sized to the largest conductor in the box, regardless of how many clamps are present.

How does a device yoke affect the total? Each device yoke, such as the strap on a switch or receptacle, adds twice the allowance of the largest conductor in the box. Two yokes add that double allowance twice.

What if my wire is larger than 6 AWG? NEC Table 314.16(B) does not assign volume allowances above 6 AWG, and this calculator does not either. Boxes for larger conductors are sized under NEC 314.28.

Do metal and plastic boxes need different volumes? No. The volume rules are the same for both materials. Metal boxes sometimes have built-in clamps, which still count toward the allowance described above.