Electrical box fill calculator

Pick the box, enter the wires by size and the devices in it. See the cubic inches the NEC requires against what the box holds, every allowance listed, and the smallest standard box that would do the job.

2.25 cu inPer 12 AWG wire
24 boxesFrom Table 314.16(A)
FreeNo email, no sign-up
cu in
Only if it is marked with its volume. Flat covers add nothing.
wires
Hots and neutrals that enter the box. Not grounds, not pigtails.
wires
wires
wires
wires
yokes
Each counts double the largest wire on it.
Most metal boxes with NM clamps. Single-gang plastic boxes usually have none.
types
Box fill
18 of 18 cu in
Fits, exactly full
3 × 2 × 3-1/2 deviceSmallest device box that fits
4 × 1-1/4 squareSmallest square box that fits
8Most 12 AWG in this box alone
Conductors 4 AWG and larger also have to meet 314.28 for pull and junction box size. The NEC as adopted where you work, the box's listing and the inspector govern. Turn the circuit off and test it dead before you open a box.

How we got this

  1. Conductors4 × 2.25 cu in (12 AWG) = 9 cu inNEC 314.16(B)(1) and Table 314.16(B). Each wire that enters and ends, splices or passes through counts once. Pigtails that never leave the box count zero.
  2. Clamps1 × 2.25 (12 AWG)314.16(B)(2): one allowance for all internal clamps, at the largest wire.
  3. Devices1 × 2 × 2.25 = 4.5 cu in314.16(B)(4): double allowance per yoke, at the largest wire connected to it. We use the largest wire in the box, which is the same or more.
  4. Grounds1 × 2.25 cu in314.16(B)(5): one allowance for all grounds together, at the largest ground. We use the largest wire in the box, which is the same or more.
  5. Required18 cu in
  6. Box3 × 2 × 3-1/2 device 18 = 18 cu inNEC Table 314.16(A), standard metal boxes.
ItemAllowancescu in eachcu in
4 × 12 AWG conductors42.259
Internal clamps (all together)12.252.25
Devices, 2 each22.254.5
Equipment grounds (all together)12.252.25
Required18

Sources: Thomas & Betts Steel City catalog, NEC 314.16 and Tables 314.16(A) and (B) reprinted; EC&M, Brushing Up on Your Box Fill Calculations Skills (L. Keith Lofland, IAEI); NFPA 70, National Electrical Code (Chapter 9, Table 8; 240.4(D)). Checked 2026-10-08.

Add this calculator to your websiteFree. Paste the code into any page builder that takes HTML. It fits its own height and works on phones.
<iframe src="https://www.koira.ai/embed/tools/box-fill-calculator" title="Box fill calculator" width="100%" height="900" style="width:100%;max-width:100%;height:900px;border:0;display:block" loading="lazy" allow="clipboard-write" data-koira-tool="box-fill-calculator"></iframe> <p style="margin:6px 0 0;font-size:13px"><a href="https://www.koira.ai/tools/box-fill-calculator" rel="noopener">Free calculator by Koira</a></p> <script>(function(){if(window.__koiraTools)return;window.__koiraTools=1;var ok=["https://www.koira.ai","https://koira.ai"];addEventListener("message",function(e){var d=e.data;if(!d||d.type!=="koira:tool-height"||ok.indexOf(e.origin)<0)return;var f=document.querySelectorAll("iframe[data-koira-tool]");for(var i=0;i<f.length;i++)if(f[i].contentWindow===e.source)f[i].style.height=Math.max(200,Math.min(8000,Math.ceil(+d.height||0)))+"px";});})();</script>
Key takeaways
  • Each wire that comes into the box counts once, at 2.0 cu in for 14 AWG, 2.25 for 12 AWG and 2.5 for 10 AWG. Pigtails that never leave the box count zero.
  • Each device counts double the largest wire on it. All the grounds together count once. All the internal clamps together count once.
  • Compare the total with the box's volume from Table 314.16(A), or the volume marked inside a plastic box, plus any marked ring or raised cover.

How box fill is worked out

A box has to be big enough for the wires, splices and devices in it, with free space for heat and so the insulation is not crushed when the device is pushed back. NEC 314.16 sets the rule: add up an allowance for everything in the box, and the box's volume has to be at least that total.

Each allowance is a number of cubic inches from Table 314.16(B), based on the wire size:

Wire sizeFree space per wire
18 AWG1.50 cu in
16 AWG1.75 cu in
14 AWG2.00 cu in
12 AWG2.25 cu in
10 AWG2.50 cu in
8 AWG3.00 cu in
6 AWG5.00 cu in

Boxes holding 4 AWG or larger wire also have to meet the pull and junction box sizing rules in 314.28, which go by the conduit size rather than cubic inches.

What counts and how much

The five allowances in 314.16(B), added together:

  1. Conductors. Each wire that comes into the box and ends or is spliced there counts once. A wire that passes straight through without a splice also counts once. A loop of unbroken wire at least twice the free length 300.14 requires counts twice. A wire that never leaves the box, such as a pigtail, counts zero.
  2. Clamps. One or more internal cable clamps together count once, at the largest wire in the box. A connector clamped outside the box counts nothing.
  3. Support fittings. Luminaire studs or hickeys count once for each type, at the largest wire.
  4. Devices. Each yoke or strap holding a switch, receptacle or other device counts twice, at the largest wire connected to it. A device wider than a single 2 in. gang counts twice for each gang it needs.
  5. Grounds. All the equipment grounding conductors together count once, at the largest ground. An extra isolated ground set adds one more.

Locknuts, bushings and wire connectors take no allowance. Grounds and pigtails are where most hand counts go wrong: count the grounds once, not one for each wire, and do not count pigtails at all.

Standard metal box volumes

Metal boxes in Table 314.16(A) use the table's volume unless they are marked larger. Plastic boxes and other sizes are marked with their volume inside by the maker, and you use that number.

BoxVolumeMax 14 AWGMax 12 AWG
4 × 1-1/4 round or octagon12.5 cu in65
4 × 1-1/2 round or octagon15.5 cu in76
4 × 2-1/8 round or octagon21.5 cu in109
4 × 1-1/4 square18.0 cu in98
4 × 1-1/2 square21.0 cu in109
4 × 2-1/8 square30.3 cu in1513
4-11/16 × 1-1/2 square29.5 cu in1413
4-11/16 × 2-1/8 square42.0 cu in2118
3 × 2 × 2 device10.0 cu in54
3 × 2 × 2-1/2 device12.5 cu in65
3 × 2 × 2-3/4 device14.0 cu in76
3 × 2 × 3-1/2 device18.0 cu in98
4 × 2-1/8 × 1-7/8 device13.0 cu in65
3-3/4 × 2 × 3-1/2 masonry21.0 cu in109

The maximum counts in the table only apply when all the wires are the same size and there are no devices, clamps, fittings or grounds. As soon as any of those are in the box, work it out the long way, which is what the calculator does.

A plaster ring, extension ring, raised cover or domed cover adds its marked volume. A metal extension ring the same size as a box in the table adds that box's volume.

Worked examples

A receptacle fed through. Two 12/2 NM cables into a 3 × 2 × 3-1/2 metal device box with cable clamps, one receptacle.

  • 4 insulated wires × 2.25 = 9.00 cu in
  • Clamps: 1 × 2.25 = 2.25
  • Receptacle: 2 × 2.25 = 4.50
  • Grounds, all together: 1 × 2.25 = 2.25
  • Total 18.00 cu in against a box of 18.0. It fits, exactly.

Add a third cable and it is 22.50, so the box is too small. A 4 × 2-1/8 square box (30.3 cu in) with a single-device raised cover would do it.

Two switches, mixed wire. A 4 × 1-1/2 square box with clamps, two 14 AWG and two 12 AWG insulated wires, two switches on their own yokes and grounds. The largest wire is 12 AWG, so every allowance after the wires uses 2.25:

  • Wires: 2 × 2.00 + 2 × 2.25 = 8.50 cu in
  • Clamps 2.25, switches 2 × 2 × 2.25 = 9.00, grounds 2.25
  • Total 22.00 cu in against 21.0. Overfilled by 1 cu in; a 4-11/16 × 1-1/4 square box (25.5) fits.

A plastic box. A single-gang plastic box marked 20.3 cu in, with a raised cover marked 4 cu in, three 14/2 cables, one switch, no clamps: 6 × 2.00 + 2 × 2.00 + 2.00 = 18.00 cu in against 24.3. It fits with room to spare.

Box fill for common setups

Worked the long way for a metal box with internal clamps and grounds in every cable. Take off the clamp allowance for a box without clamps, such as most single-gang plastic boxes.

SetupCountRequiredSmallest standard box
Switch, one 14/2 cable2 wires + clamps + 2 device + ground12.0 cu in3 × 2 × 2-1/2 (12.5)
Receptacle, end of run, 14/22 + 1 + 2 + 1, at 2.0012.0 cu in3 × 2 × 2-1/2 (12.5)
Receptacle, middle of run, 14/24 + 1 + 2 + 1, at 2.0016.0 cu in3 × 2 × 3-1/2 (18.0)
Receptacle, middle of run, 12/24 + 1 + 2 + 1, at 2.2518.0 cu in3 × 2 × 3-1/2 (18.0)
3-way switch, 14/3 in, 14/3 out6 + 1 + 2 + 1, at 2.0020.0 cu inNone: use a 4 in. square box
Ceiling light, 14/2 in, 14/3 out, stud5 + 1 clamp + 1 stud + 1 ground, at 2.0016.0 cu in4 × 2-1/8 octagon (21.5)

The middle-of-run receptacle is the one to watch: in 12 AWG it fills an 18 cu in box exactly, so one more cable or a bulky GFCI means a bigger box. Shallow 2 in. and 2-1/4 in. device boxes only suit a single cable and a device.

When the box is too full

  • Go deeper. A 3-1/2 in. deep device box holds 18 cu in against 10 in a 2 in. deep one.
  • Go square. A 4 in. square box with a raised device cover gives far more room than a device box, and the cover's marked volume adds to it.
  • Add an extension ring on an old work box you can't replace.
  • Move a splice. If cables only pass through to feed something else, splice them in a junction box elsewhere.
  • Watch the device. A GFCI, dimmer or smart switch is much bulkier than a plain device. The NEC counts them the same, but they need the room in practice, so size up when you use them.
The NEC and the inspector governThis calculator follows NEC 314.16. The NEC as adopted where you work, the box's listing and markings, and the local inspector decide what is allowed. Turn the circuit off at the panel and test it dead before you open a box, and leave panel and service work to a licensed electrician.

When you know the boxes for the job, build the estimate in Koira with boxes, covers, devices and labor as their own lines. For the raceway between boxes, use the conduit fill calculator.

Last checked October 8, 2026. More for your trade: how electricians run on Koira.

FAQ

How do you calculate box fill?

Count each wire that comes into the box once, add one for all the clamps, two for each device and one for all the grounds, each at the cubic inches for the largest wire from Table 314.16(B). The total must be no more than the box's volume.

How many 12 gauge wires can go in a box?

At 2.25 cu in each, an 18 cu in device box holds 8 with nothing else in it. A 4 × 1-1/2 square box (21 cu in) holds 9 and a 4 × 2-1/8 square box (30.3 cu in) holds 13. Devices, clamps and grounds take space too.

Do ground wires count in box fill?

Yes, but all the grounds together count as one wire, at the size of the largest ground. An extra isolated ground set counts as one more.

Do pigtails count in box fill?

No. A wire that starts and ends inside the box, like a pigtail to a device, is not counted. Wire connectors take no allowance either.

How much does a switch or receptacle count for?

Twice the allowance of the largest wire connected to it. On 14 AWG that is 4 cu in, on 12 AWG 4.5 cu in.

How many cubic inches is a single gang box?

Metal device boxes run from 7.5 cu in (3 × 2 × 1-1/2) to 18 cu in (3 × 2 × 3-1/2). Plastic boxes are marked with their volume inside; use that number.

We know what works. Leave it to Koira.

☼⚙
Standard⚡ Turbo
● Koira did it● You by hand
Today $9,300$8,100 / $1,200
This week $25,050$18,570 / $6,480
This month $69,300$46,150 / $23,150
Money, just now
Reminded Sean Love, $1,850. Polite reminder with the pay link.
Bids, 9:44 am
Nudged Dana on the kitchen bid. Day 3 follow up. She opened it at 9:12.
Convos, 9:41 am
Texted back a missed call. Walk through booked Thu 10:00.
Box Fill Calculator: Electrical Box Size by NEC 314.16 | Koira