Box fill calculator

Type the wires that enter the box by size, the switches and receptacles, the clamps, fixture studs and ground wires to get the cubic inches the box needs under NEC 314.16(B). Choose a standard metal box or type the volume marked on yours to see whether it fits, and which standard boxes would.

Free, no sign-up. Runs in your browser. Updated December 1, 2026.

Your numbers

Each insulated wire that enters or passes through the box. Pigtails that stay in the box do not count.
2.25 cu in each.
2.5 cu in each.
3 cu in each.
5 cu in each.
Each switch or receptacle counts as two wires of the largest size connected to it.
Two allowances of 12 AWG each.
Two allowances of 10 AWG each.
One or more count once, at the largest wire.
Each counts once, at the largest wire.
Up to four count once at the largest ground; each one over four adds a quarter.
Needed when there are ground wires.
From NEC Table 314.16(A).
Plastic boxes and rings are marked with their volume.

Result

Volume needed
—
Box volume
—
Against the box
—
Smallest standard metal boxes that fit
—

Nothing you type is sent to Nexfield or anyone else.

How to use it

  1. Type the wires that enter or pass through the box, by size.
  2. Add the devices, clamps, fixture studs and ground wires.
  3. Choose a standard box or type the marked volume, and read whether it fits.

How it works

Each wire that enters or passes through the box counts once at its Table 314.16(B) allowance: 2.00 cu in for 14 AWG, 2.25 for 12, 2.50 for 10, 3.00 for 8 and 5.00 for 6.

Each device yoke counts twice at the largest wire connected to it. Internal clamps, one or more, count once at the largest wire, and each fixture stud or hickey once.

Ground wires: up to four count once at the largest ground, and each one over four adds a quarter of that allowance (314.16(B)(5), since the 2020 NEC). The box must hold the total.

Wires 14 to 6 AWG only, the sizes of Table 314.16(B). Mud rings and extension rings add volume only when marked with it, and a multi-gang device counts two allowances for each gang.

Sources

Report a wrong result

Worked example with made-up numbers

These numbers are invented to show the math. They are not an industry average.

Worked example: the inputs, then the results
14 AWG wires3
12 AWG wires2
Devices wired with 14 AWG1
Devices wired with 12 AWG1
Internal cable clamps?Yes
Ground wires2
Largest ground wire12 AWG
Standard metal box4 x 2-1/8 in. square (30.3 cu in)
Volume needed23.5 cu in
Box volume30.3 cu in
Against the boxFits, 6.8 cu in to spare
Smallest standard metal boxes that fit4-11/16 x 1-1/2 in. square (29.5 cu in) 4 x 2-1/8 in. square (30.3 cu in) 4-11/16 x 2-1/8 in. square (42.0 cu in)

Jobs, notes and photos on the electrician's phone. Nexfield for technicians

Questions

How many 12 AWG wires in a 4 x 1-1/2 in. square box?

With nothing else in it, 9: the box holds 21.0 cu in and each 12 AWG wire takes 2.25.

How much does a receptacle count in box fill?

Two allowances of the largest wire connected to it: 4.5 cu in on 12 AWG, 4 cu in on 14 AWG.

Do ground wires count in box fill?

Up to four count once, at the largest ground; since the 2020 NEC each one over four adds a quarter of that allowance.

Do pigtails count?

No. A wire that starts and ends inside the box, such as a pigtail, is not counted.

Does a plastic box have a table volume?

No. Nonmetallic boxes are marked with their volume; type that number in the volume field.

Which NEC edition does it use?

The 2023 NEC (NFPA 70). Your state or city may enforce another edition or local changes, and the inspector's code wins.

Is what I type sent anywhere?

No. The calculator runs in your browser, and nothing you type is sent to Nexfield. "Copy link" puts your numbers in the link itself, after the # sign.