Home›Box Fill Calculator
Box Fill Calculator
What size electrical box do I need? Every wire, device, clamp and ground inside a box takes up space, and NEC 314.16 counts each one in cubic inches. This calculator adds it all up — conductors at their full allowance, each device at twice the largest conductor, the clamps and the grounds at one allowance each — and tells you the smallest standard box that fits. It is an estimate for planning — always have a licensed electrician check the final sizing.
Calculate your box fill
Count every conductor that enters the box, including the ones that just pass through — a wire that loops in and out counts twice. A pigtail that stays in the box does not count. The allowances are from NEC Table 314.16(B).
Your results
How the box fill formula works
Box fill is an allowance in cubic inches for everything inside the box.
Allowances: 14 AWG 2.0 in³, 12 AWG 2.25 in³, 10 AWG 2.5 in³, 8 AWG 3.0 in³, 6 AWG 5.0 in³ — NEC Table 314.16(B)
Conductors: each conductor × its allowance — a wire that passes through counts twice
Devices: each yoke × 2 × allowance of the largest conductor on it — NEC 314.16(B)(4)
Clamps: all internal clamps together × 1 allowance of the largest conductor — NEC 314.16(B)(2)
Grounds: all grounds together × 1 allowance for up to 4, plus 1/4 allowance for each extra ground — NEC 314.16(B)(5)
Fittings: all internal fittings together × 1 allowance — NEC 314.16(B)(3)
This uses the standard method, verified against published examples: 4 × 14 AWG conductors + 1 device + clamps + 2 grounds is 8 + 4 + 2 + 2 = 16 in³, which fits an 18 in³ single-gang box with 2 in³ spare. The judgement call is the conductor count: every conductor that enters the box counts, including the ones that just pass through — a wire that loops in and out counts twice — but a pigtail that stays inside the box does not count.
Worked example
A box with 4 × 14 AWG conductors, 1 device (receptacle), internal clamps, 2 grounds, single-gang 18 in³ box:
Conductors: 4 × 2.0 = 8 in³
Device: 1 × 2 × 2.0 = 4 in³
Clamps: 1 × 2.0 = 2 in³
Grounds: 1 × 2.0 = 2 in³
Total: 8 + 4 + 2 + 2 = 16 in³ — fits an 18 in³ box, PASS, 2 in³ spare, room for 1 more 14 AWG conductor
Cost: $2 box + $6 device + $2 cover = $10 materials
For the LaborSam example — 6 × 12 AWG + 3 × 10 AWG conductors, 2 devices, clamps, 3 grounds (largest 10 AWG): conductors 6 × 2.25 + 3 × 2.5 = 21 in³, devices 2 × 2 × 2.25 = 9 in³, clamps 2.5 in³, grounds 2.5 in³ — total 35.0 in³, so the smallest box is the 4-11/16 in square × 2-1/8 in (42 in³), $23 materials. And 8 × 12 AWG, no devices, clamps, 4 grounds in a 21 in³ box: 18 + 2.25 + 2.25 = 22.5 in³ — FAIL, smallest box is the 4-11/16 in square × 1-1/2 in (25.5 in³).
How much does a box cost? (US, 2026)
Prices are 2026 US ranges from US retail listings (boxes, devices and covers each). A remodel (old-work) box costs a little more than a new-work box. Check local prices before ordering.
| Box / device | Typical price |
|---|---|
| Single-gang plastic box, 18 in³ | $1–$3 |
| 4 in square metal box, 21 in³ | $3–$6 |
| 4 in square metal box, 30.3 in³ | $4–$7 |
| 4-11/16 in square box, 42 in³ | $7–$11 |
| 4 in octagonal box, 21.5 in³ | $3–$5 |
| Duplex receptacle | $2–$6 each |
| Single-pole switch | $2–$5 each |
| GFCI receptacle | $15–$25 each |
| Blank cover plate | $1–$3 each |
Waste allowance
There is no waste percentage on a box fill calculation — the volume is fixed by the wires and devices you put in the box. The number that matters for the budget is the box size: going one size up usually costs $2–$4 more and saves an hour of fighting a crowded box. If the calculator says FAIL, buy the next size up — a box that is too small will fail inspection.
Frequently asked questions
What size electrical box do I need?
Add up the volume: each conductor takes its allowance (14 AWG 2.0 in³, 12 AWG 2.25 in³, 10 AWG 2.5 in³), each device takes twice the largest conductor, and the clamps and grounds take one allowance each. A single receptacle with 4 × 14 AWG wires needs 16 in³ — an 18 in³ single-gang box.
How many wires can go in a single gang box?
An 18 in³ single-gang box holds 9 × 14 AWG conductors with no device, or 4 × 14 AWG conductors plus one device, clamps and grounds. For 12 AWG it is 8 conductors with no device, or 3 conductors plus a device. The device is what eats the space.
Do ground wires count for box fill?
Yes — all the grounds together count as one conductor allowance (for up to 4 grounds), plus a quarter allowance for each ground beyond 4. Two grounds in a box count the same as one.
What is the volume of a 4 inch square box?
A 4 in square × 1-1/2 in box is 21 in³, and a 4 in square × 2-1/8 in box is 30.3 in³ (NEC Table 314.16(A)). The deeper 4-11/16 in square × 2-1/8 in box is 42 in³ — the biggest common box.
Can I use a bigger box than required?
Yes — the code sets a minimum, not a maximum. A bigger box is easier to work in, runs cooler and passes inspection more easily. The only cost is a few dollars and a deeper wall cavity.