A box fill calculation adds up a cubic-inch volume allowance for every conductor, device, clamp, and grounding group inside an electrical box, then compares that total to the box’s rated capacity. If your total is less than or equal to the rating, the box is code-compliant under NEC 314.16(B). If it’s greater, you need a larger box or an extension ring. The math is simple; the trick is knowing what counts, what doesn’t, and which wire gauge sets the size of each allowance.
What Counts, and What Doesn’t
Every item that occupies space inside the box gets a standardized allowance. You don’t measure anything physically. Instead, you count allowances and multiply by the per-conductor volume for the relevant wire gauge.
Conductors Entering the Box
Each conductor that enters the box from outside and either terminates or is spliced inside counts as one allowance. A conductor that passes straight through without a splice also counts as one. If that pass-through loop of wire is long enough inside the box, generally around 12 inches or more, it counts as two allowances instead of one.1UpCodes. IRC 2024 – Chapter 39 Power and Lighting Distribution – Section: E3905.12.2 Box Fill Calculations
Pigtails and short jumpers that begin and end entirely inside the box are not counted. They never leave the enclosure, so they don’t consume an allowance. The same rule applies to grounding pigtails used to jump multiple grounds to a single device screw.
Internal Cable Clamps
All internal cable clamps in a box share a single allowance, no matter how many clamps are installed. That allowance is sized to the largest conductor in the box, not the largest wire held by a clamp.1UpCodes. IRC 2024 – Chapter 39 Power and Lighting Distribution – Section: E3905.12.2 Box Fill Calculations Clamps that sit outside the box don’t count at all.
Fixture Studs and Hickeys
Each type of support fitting inside the box gets one allowance based on the largest conductor in the box. A stud and a hickey each generate their own separate allowance.1UpCodes. IRC 2024 – Chapter 39 Power and Lighting Distribution – Section: E3905.12.2 Box Fill Calculations
Equipment Grounding Conductors
Four or fewer equipment grounding conductors and bonding jumpers entering the box share a single allowance, sized to the largest ground in the group.1UpCodes. IRC 2024 – Chapter 39 Power and Lighting Distribution – Section: E3905.12.2 Box Fill Calculations More than four grounds triggers additional volume under NEC 314.16(B)(5). Isolated grounding conductors are counted separately from standard grounds.
Devices on a Yoke or Strap
A receptacle, switch, or other device mounted on a yoke counts as a double allowance sized to the largest conductor connected to that device.1UpCodes. IRC 2024 – Chapter 39 Power and Lighting Distribution – Section: E3905.12.2 Box Fill Calculations A single yoke holding two devices, such as a combination switch and receptacle, still generates only one double allowance.
Cubic Inches Per Wire Gauge
NEC Table 314.16(B) sets a fixed cubic-inch value for each wire gauge. Every allowance you counted above uses the value that matches the conductor size it’s based on.1UpCodes. IRC 2024 – Chapter 39 Power and Lighting Distribution – Section: E3905.12.2 Box Fill Calculations
- 14 AWG: 2.00 cubic inches per allowance
- 12 AWG: 2.25 cubic inches per allowance
- 10 AWG: 2.50 cubic inches per allowance
- 8 AWG: 3.00 cubic inches per allowance
- 6 AWG: 5.00 cubic inches per allowance
These values don’t change with box material or type. Conductors larger than 6 AWG fall outside this table and require a different sizing approach under NEC 314.16(B).
Working the Calculation
The arithmetic is straightforward multiplication and addition. What causes errors is losing track of which allowance belongs to which gauge. Group everything by wire size before you start multiplying.
Step 1: List Every Allowance by Gauge
Write out each item and note the gauge that determines its volume. A 14 AWG conductor entering and terminating is one allowance at 14 AWG. A duplex receptacle wired with 14 AWG is two allowances at 14 AWG. The shared clamp allowance takes the largest conductor in the box. The shared grounding allowance takes the largest ground.
Step 2: Multiply and Add
Multiply the allowances in each gauge group by that gauge’s cubic-inch value, then sum. A typical residential switch box might look like this:
- Four 14 AWG conductors (two cables entering and terminating): 4 × 2.00 = 8.00 cubic inches
- One single-pole switch on a yoke, wired with 14 AWG: 2 × 2.00 = 4.00 cubic inches
- Equipment grounding conductors, two 14 AWG grounds: 1 × 2.00 = 2.00 cubic inches
- Internal cable clamps, largest conductor 14 AWG: 1 × 2.00 = 2.00 cubic inches
Total minimum required volume: 16.00 cubic inches.
Mixed wire sizes mean running the math separately for each gauge and adding the subtotals. If that same box had one 12 AWG equipment grounding conductor as the largest ground, the single grounding allowance would use 2.25 cubic inches instead of 2.00. Keeping the gauge groups apart on paper is what prevents errors that are nearly impossible to trace afterward.
Comparing Against the Box’s Rated Volume
Compare your total to the box’s rating. Most non-metallic boxes have the cubic-inch capacity stamped on the inside. Metal boxes sometimes don’t, and in that case you look up the dimensions in the code’s box volume table.2UpCodes. Texas Windstorm Insurance Association Residential Code 2024 – E3905.12.1 Box Volume Calculations
If your calculated minimum is at or below the rated volume, the configuration is compliant. If it exceeds the rating, use a larger box or add an extension ring. Extension rings, plaster rings, and domed covers add to available volume, but only when the added volume is marked on the accessory or the accessory matches a listed dimension in the code table. An unmarked ring of unknown volume cannot be counted.
Sizing right at the calculated minimum is legal but rarely worth doing. A box with a little extra room is easier to fold wires into, easier to seat devices in, and easier to work in years later when something has to be replaced.
Smart Switches and Bulky Devices
The code gives every yoke-mounted device the same double allowance regardless of physical bulk. A slim toggle switch and a chunky smart dimmer with onboard electronics get the same count. Many modern smart switches, fan controllers, and electronic dimmers physically take up far more room than the calculation reflects. A box can be compliant on paper and still be nearly impossible to close.
When installing a large electronic device, check the manufacturer’s installation instructions. Many specify a box depth or cubic-inch minimum that exceeds the standard NEC number. Treat that manufacturer figure as your real minimum.
Mistakes That Fail Inspections
Most box fill errors come down to forgetting an allowance or applying the wrong gauge to it.
- Skipping the clamp allowance. Factory-installed internal clamps feel like part of the box, but they still consume one allowance.
- Using the wrong gauge for the grounding allowance. It’s based on the largest ground in the box. Three 14 AWG grounds and one 12 AWG ground means the grounding allowance uses 2.25 cubic inches.
- Counting pigtails. Jumpers that never leave the box aren’t counted, and adding them can push you into an unnecessarily large box.
- Missing the device allowance. A receptacle or switch demands a double allowance on top of its connected conductors. This is probably the single most common reason a box comes up short.
Run the calculation before you buy boxes. Swapping a box out after the wires are pulled is one of the more frustrating do-overs in electrical work, and inspectors have no flexibility on the number. It either works or it doesn’t.