Electrical Box Fill Calculator
Calculate how many additional wires fit in an electrical junction box after accounting for installed devices. Critical for NEC compliance when adding wires or devices to an existing box.
About this calculator
The NEC Article 314 box fill calculation ensures junction boxes are not overcrowded, which can damage insulation and create fire hazards. Each device (switch or receptacle) mounted in a box reserves a fixed volume allowance—4 cubic inches per device in this calculator—reducing the space available for conductors. The remaining volume is then divided by the per-conductor volume allowance, which scales with wire gauge using the approximation 2.25 × 1.26^(gauge − 12) cubic inches per conductor. The complete formula is: max additional wires = floor(max(0, boxVolume − (devices × 4)) / (2.25 × 1.26^(wireGauge − 12))). Using floor() ensures you never exceed the box capacity by rounding down. If the result is zero or negative, the box is already at or over capacity and must be replaced with a larger one.
How to use
Example: a 22 cubic inch box, 14 AWG wire, and 1 device installed. Step 1 — Subtract device allowance: 22 − (1 × 4) = 18 in³ remaining. Step 2 — Per-conductor volume: 2.25 × 1.26^(14 − 12) = 2.25 × 1.5876 ≈ 3.572 in³. Step 3 — Max additional wires: floor(18 / 3.572) = floor(5.04) = 5 wires. Enter box volume = 22, wire gauge = 14, and devices = 1 to confirm. If you add a second device, only floor(14 / 3.572) = 3 wires would remain.
Frequently asked questions
How do I find the volume of my electrical junction box?
Most modern electrical boxes have their cubic inch volume stamped or printed inside the box, often near the mounting ears or on the back wall. If you cannot find a marking, measure the interior length, width, and depth in inches and multiply them together (length × width × depth = volume in in³). Gangable boxes may list volume per section. If you are working with a very old box that has no markings and cannot be measured accurately, the safest option is to replace it with a clearly rated new box.
What counts as a 'device' in the NEC box fill calculation?
Under NEC Article 314, a device is any switch, receptacle, or similar component mounted in the box. Each device counts as a volume equivalent to two of the largest conductors entering the box—simplified in this calculator to 4 cubic inches. Ground fault circuit interrupter (GFCI) receptacles and combination devices still count as one device. Wirenuts, cable clamps mounted inside the box, and equipment grounding conductors also consume volume and are accounted for separately in a full NEC calculation; this calculator focuses on device and conductor fill.
When is an electrical box considered overfilled and what should I do about it?
A box is overfilled when the total volume of conductors, devices, clamps, and other fill items exceeds the box's rated cubic inch capacity per NEC 314.16. Signs of an overfilled box include insulation cracked from being jammed in, difficulty closing the cover, or wires visibly pinched. If your calculation shows zero remaining capacity, you must either remove conductors/devices or replace the box with a larger-rated enclosure. Shallow retrofit boxes and extension rings are common solutions when wall depth allows. Never simply force a cover onto an overfilled box—it is a code violation and a fire risk.