NEC Code Compliance calculator

Box Fill Calculator

NEC 314.16 box fill calculator for U.S. electrical rough-in planning. Calculate required volume for conductors, devices, clamps, and grounding conductors in outlet boxes, switch boxes, and junction boxes before closing the installation.

Updated November 20, 2026

Calculator Inputs

Field notes

Calculation Results

Enter values above to see calculation results

Opens in a new tabOpens in a new tabOpens in a new tab
Calculation history

Example Calculations

Six 14 AWG conductors with one deviceCheck a 20.00 cu.in. requirement against a selected 20.0 cu.in. PVC box.InputsCalculation Mode: Fill percentage checkBox Type: PVC Schedule 40Box Size: 1gang 20ciWire Gauge: 14Conductor Count: 6Device Count: 1Grounding Conductors: 2Internal Clamps: Present

How to Use

NEC 314.16 Box Fill Formula

Required Volume = Conductors + Devices + Clamps + Grounds + Fittings

NEC 314.16(B) Volume Allowances per Conductor

Wire Size (AWG) Volume (cu.in.)
14 AWG 2.00
12 AWG 2.25
10 AWG 2.50
8 AWG 3.00
6 AWG 5.00

Box Fill Counting Rules (NEC 314.16(B))

Item Count Example
Conductors 1× each 6 wires = 6× volume
Devices (yoke) 2× largest Switch = 2× volume
Equipment Grounds 1× total All grounds = 1× volume
Internal Clamps 1× total All clamps = 1× volume
Support Fittings 1× each Hickey = 1× volume

Calculation Example: Switch box with 2 cables (6× 14 AWG) + 1 device + grounds + clamps:
Conductors: 6×2.00 = 12.00 + Device: 2×2.00 = 4.00 + Ground: 2.00 + Clamp: 2.00 = 20.00 cu.in. minimum

Use the Conduit Fill Calculator for raceway sizing, the Wire Size Calculator for conductor selection, and the Pull Box Sizing Calculator when the installation needs a larger pull-box or raceway-space review.

Technical notes

Why Box Fill Limits Matter

NEC 314.16 box-fill rules keep conductor volume, device yokes, clamps, fittings, and equipment grounding conductors tied to the cubic-inch capacity of the box. Treat the result as a rough-in planning check: if the required volume exceeds the listed box volume, choose a larger box or reduce the contents before closing the installation.

Decoding the "Two Volume Allowance" Yoke Rule

NEC 314.16(B)(4) counts each yoke or strap containing one or more devices as a double volume allowance based on the largest conductor connected to that device. This matters in retrofits because deep receptacles, switches, and controls can consume more box volume than the visible conductor count suggests. If a 14 AWG device yoke is added, include the required device volume in the calculation before deciding whether the existing box is large enough.

The Ground Wire Exception: NEC 314.16(B)(5)

This calculator uses one selected wire gauge for conductor, device, grounding, clamp, and fitting volume allowances. It cannot enter a different equipment-grounding-conductor gauge. When the grounding conductor size differs from the selected gauge, verify the required allowance against the NEC edition adopted for the project and account for the difference separately.

Common Applications

Switch Box Sizing - Calculate minimum box for single or multi-gang switches
Receptacle Installations - Check box volume for the selected conductors and device yokes
Junction Box Planning - Size boxes for wire splices and connections
NEC Inspection Prep - Review a box-volume calculation before inspection
Remodel Work - Verify existing boxes meet code for new devices

Frequently Asked Questions

How do I calculate box fill for a switch with multiple cables?
Count each conductor entering the box (hot, neutral, travelers), add 2× for each device yoke, 1× for all grounds combined, and 1× for internal clamps. Multiply by the volume per conductor from NEC 314.16(B). Example: 3-way switch with 3 cables (9 conductors): 9×2.00 + 2.00 (device) + 2.00 (ground) + 2.00 (clamp) = 24.00 cu.in. minimum.
What size box do I need for a standard 20A duplex receptacle?
For a 20A receptacle example using 12 AWG conductors, 2 cables (4 conductors), one device yoke, equipment grounds, and internal clamps require: 4×2.25 (conductors) + 4.50 (device) + 2.25 (ground) + 2.25 (clamp) = 18.00 cu.in. This meets the selected 18 cu.in. box volume in this calculation; verify the actual box marking and installation details before use.
Do all ground wires count separately for box fill?
This calculator counts grounding conductors as one shared volume when at least one is entered, using the single wire gauge selected for the calculation. It does not accept a separate grounding-conductor gauge. If the grounding conductor size differs from the selected gauge, verify the allowance against the NEC edition adopted for the project and account for that difference separately.

Related Calculators

Browse all calculators