Electrical box fill is the total of a volume allowance for every wire, clamp, fitting, device and ground in the box, each valued at the wire's size from NEC Table 314.16(B). Four 12 AWG wires, two grounds, one switch and internal clamps need 18 cubic inches, which a 3 × 2 × 3½ in device box holds exactly. This box fill calculator covers NEC 314.16 and gives the box size in cubic inches and the smallest standard box that fits.
How box fill is calculated
The 2023 NEC 314.16(B) and its identical residential text (IRC E3905.12.2) count each item once, twice or not at all:
- Each insulated conductor that starts outside the box and ends or is spliced inside counts one allowance. A wire that runs through unbroken counts one; a loop 12 in or longer counts two; a pigtail that starts and ends inside counts none.
- Internal cable clamps: one allowance in total, at the largest wire in the box, however many clamps.
- Luminaire studs and hickeys: one allowance for each type present, at the largest wire.
- Device yokes: two allowances for each yoke (a switch or duplex receptacle is one yoke, a two-gang strap is two), at the largest wire connected to it.
- Equipment grounding conductors: one allowance for all of them, up to four, at the largest ground. Each ground beyond four adds one quarter of an allowance.
- Small fittings such as locknuts and bushings count nothing.
Fill (cu in) = sum of allowances × volume per wire size
Volume allowance per conductor, Table 314.16(B)
| Wire size | Volume allowance |
|---|---|
| 18 AWG | 1.50 cu in |
| 16 AWG | 1.75 cu in |
| 14 AWG | 2.00 cu in |
| 12 AWG | 2.25 cu in |
| 10 AWG | 2.50 cu in |
| 8 AWG | 3.00 cu in |
| 6 AWG | 5.00 cu in |
Worked example: a switch box with 12 AWG cable
Two 12-2 cables enter the box (one in, one out), which gives four insulated conductors and two grounds, with one switch and clamps:
- Conductors: 4 × 2.25 = 9.00 cu in
- Grounds: 1 allowance × 2.25 = 2.25 cu in
- Clamps: 1 × 2.25 = 2.25 cu in
- Switch: 2 × 2.25 = 4.50 cu in
- Total: 18.00 cu in
The calculator suggests the 3 × 2 × 3½ in device box, marked 18.0 cu in, so it is exactly full: fine by code, tight to work in. Swap in 14 AWG and the same box needs 16 cu in, and it holds nine 14 AWG conductors. Mixed sizes count at their own volumes, but clamps and devices always count at the largest wire: two 14 AWG and two 12 AWG wires, one 14 AWG ground, a luminaire stud and one switch total 17.25 cu in.
Electrical box size chart
These standard metal box volumes come from Table 314.16(A). Boxes not in the table, including all plastic ones, carry their volume stamped inside, and that marking is what counts.
| Box | Volume |
|---|---|
| Handy box, 4 × 2⅛ × 1⅞ in | 13.0 cu in |
| 4 in round or octagon, 1½ in deep | 15.5 cu in |
| Device box, 3 × 2 × 3½ in | 18.0 cu in |
| 4 in square, 1½ in deep | 21.0 cu in |
| 4 in square, 2⅛ in deep | 30.3 cu in |
| 4-11/16 in square, 2⅛ in deep | 42.0 cu in |
A junction box with six 12 AWG wires and three grounds and no devices needs 6 × 2.25 + 2.25 = 15.75 cu in, so the 4 in round box at 15.5 cu in is just too small and the calculator moves up to the 18.0 cu in box.
When the box is too small
Go up a size, add a box extension, or split the splices into two boxes. A deeper box costs a few dollars and saves hot, jammed wires. Pick your own box in the "Box you plan to use" list to see a pass or fail.
What to do next
- Check wires that run into the box with the conduit fill calculator.
- Choose the wire for the run with the wire size calculator.
- Match it to the breaker size calculator.
- Wiring can lights? Plan them with the recessed lighting calculator.
- Add up the circuit with the electrical load calculator.
- Browse the electrical calculators.