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 July 10, 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

Single Switch with 2 CablesStandard light switch installation with power in and switch leg out.InputsBox Type: Metal boxBox Size: 3x2x2.5Wire Gauge: 14Conductor Count: 4Device 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.) Typical Use
14 AWG 2.00 15A lighting circuits
12 AWG 2.25 20A receptacle circuits
10 AWG 2.50 30A circuits
8 AWG 3.00 40A circuits
6 AWG 5.00 55A circuits

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 Conduit Fill Calculator for raceway sizing. For wire sizing, use Wire Size Calculator.

Technical notes. Open for formula basis, assumptions, and validation notes.

The Thermodynamics of Box Fill Limits

The foundational logic behind NEC 314.16 is not merely physical space management—it is strict thermodynamic control. When current flows through standard 14 AWG or 12 AWG copper branch circuits, I²R laws dictate that heat is generated. In open air, this heat dissipates rapidly. However, when multiple conductors are crammed into a plastic or metal electrical box surrounded by fiberglass insulation inside a wall cavity, the box becomes a thermal trap. If the box is overfilled beyond its calculated volume allowance, the cumulative heat cannot escape, baking the PVC insulation surrounding the copper wire. Over years of thermal cycling, this trapped heat causes the wire insulation to embrittle, crack, and ultimately fail, leading to dead short circuits or arcing faults precisely where the copper wires bend around the receptacle yoke. The code-mandated cubic inch limits mathematically ensure that a safe ratio of free air volume exists to convectively cool the conductors down to their operational 60°C or 75°C limits during peak loads.

Decoding the "Two Volume Allowance" Yoke Rule

One of the most frequently misunderstood calculations in American electrical rough-in work concerns NEC 314.16(B)(4) regarding devices (yokes or straps). The Code definitively states that for each yoke or strap containing one or more devices (like a standard duplex receptacle or a smart dimmer switch), a double volume allowance must be deducted based on the largest wire connected to that device. This is crucial for modern building retrofits installing deep, bulky smart switches into older, shallower 1980s metal switch boxes. A smart switch inherently occupies the physical space of several conductors. If your switch is wired with 14 AWG (2.00 cubic inches each), adding that single switch to your calculation immediately consumes 4.00 cubic inches of your box's legal limit. If you fail to calculate this "invisible" device payload, you will overstuff the box, legally forcing the electrical inspector to fail the rough-in and requiring complete wall-plate removal and box extraction.

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

When calculating final volume requirements for complex junction boxes, mastering the Equipment Grounding Conductor (EGC) rule is paramount. Prior to the 2020 NEC cycle updates, the rule stated that no matter how many bare or green grounding wires entered the box, you only counted one single volume allowance based on the largest ground wire present. However, to combat extreme over-packing in multi-circuit splice boxes, the modern NEC has tightened this rule mathematically. Now, if the box contains four or fewer equipment grounding conductors, you count them as one single allowance. But for each additional grounding conductor over four, you must add a 0.25 (one-quarter) volume allowance modifier. This precise fractional penalty ensures that engineers cannot legally cram eight 12 AWG ROMEX cables into a 4-inch square box and claim all 8 bare grounds consume the exact same thermal volume as a single wire.

Common Applications

Switch Box Sizing - Calculate minimum box for single or multi-gang switches
Receptacle Installations - Verify outlet box capacity for 15A/20A circuits
Junction Box Planning - Size boxes for wire splices and connections
More applications. Open to review 2 additional use cases.
NEC Inspection Prep - Document box fill compliance for code 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) = 22 cu.in. minimum.
What size box do I need for a standard 20A duplex receptacle?
A typical 20A receptacle with 2 cables (4 conductors) plus grounds and clamps needs: 4×2.25 (conductors) + 4.50 (device) + 2.25 (ground) + 2.25 (clamp) = 18.00 cu.in. A standard single-gang 18 cu.in. PVC box is adequate. For through-circuit wiring, use a 20+ cu.in. box.
Do all ground wires count separately for box fill?
No. Per NEC 314.16(B)(5), all equipment grounding conductors count as only one conductor volume combined, based on the largest ground wire size. For example, 4 bare 14 AWG grounds = only 2.00 cu.in. total, not 8.00 cu.in.

Related Calculators

Browse all calculators