Box fill is the calculation electricians are most sure they understand and most likely to get wrong. It looks trivial — count the wires, pick a big enough box. But the counting rules in NEC 314.16 are full of small traps, and almost every overfilled, knuckle-busting junction box on a job is the product of one of them. The box did not shrink. Someone miscounted, usually in the same predictable way.
So let us count a box correctly, slowly, and find the places people slip.
Why the calculation exists at all
A box has a finite internal volume, measured in cubic inches. Stuff too much into it and three bad things happen: the conductors get nicked and crushed when you fold them in, heat cannot dissipate, and the next person who opens that box loses twenty minutes wrestling it. Section 314.16 sets a method to make sure the volume of what goes in never exceeds the volume of the box. The method is just bookkeeping — but it is bookkeeping with rules about what counts and what it counts as.
The fill is the sum of volume allowances, and each allowance is based on the conductor size. Table 314.16(B) sets the volume for a single conductor of each gauge — for example, 2.00 cubic inches for 14 AWG, 2.25 for 12 AWG, 2.50 for 10 AWG. You add up allowances; you compare the total to the box's volume; the box wins or it does not. Simple. The mistakes are all in the adding.
Mistake one: not counting the device as two
This is the big one. A device — a receptacle or a switch, anything mounted on a yoke or strap — does not count as one. It counts as two conductor volumes, based on the largest conductor connected to that device. A single duplex receptacle in a box wired with 12 AWG eats 2 × 2.25 = 4.50 cubic inches all by itself, before you count a single wire. Stack two devices in a two-gang box and you have consumed nine cubic inches on the devices alone. People count the device as one, or forget it entirely, and that single oversight is responsible for more overfilled boxes than any other.
Mistake two: forgetting the grounds, or counting them all
Equipment grounding conductors are the opposite trap — people either ignore them or overcount them. The rule splits the difference: all of the equipment grounding conductors together count as a single conductor volume, based on the largest grounding conductor in the box. Four bare grounds twisted under one wire-nut do not count as four. They count as one. But they do count — that single allowance is real and gets left off constantly. If a second, separate grounding system is present (an isolated ground, for instance), it gets its own single allowance.
Mistake three: the conductors that pass through
A conductor that enters the box and terminates inside counts as one. A conductor that passes through the box without splicing — in one side and out the other, unbroken — also counts as one. So far, intuitive. The trap is a conductor that loops through and is left long for a future connection: if it runs in and back out unbroken, it is one; but the moment it is spliced or pigtailed inside, the rules change with how it terminates. And conductors that originate and terminate entirely within the box — like a short pigtail from a wire-nut to a device — are not counted at all. The counting hinges on whether a conductor crosses the box wall, and people lose track of which ones do.
Mistake four: the clamps
Internal cable clamps — the kind inside a plastic or metal box that grip the cable — count, collectively, as one conductor volume, based on the largest conductor entering the box. Note the word collectively: one clamp or six, it is a single allowance, not one per cable. And the allowance is only triggered when clamps are actually present inside the box. Cables secured outside the box by an external connector do not add a clamp allowance. People either forget the clamp entirely or, having heard "clamps count," add one per cable and over-penalize the box.
Mistake five: mixing conductor sizes and using the wrong one
When a box has both 14 AWG and 12 AWG in it, the allowances are not all charged at the same rate. Each conductor is counted at the volume for its own size. But the items that are charged "based on the largest conductor" — the device (×2), the clamp allowance, the grounding allowance — all use the largest conductor present, not the average and not the smallest. Get a single 10 AWG into an otherwise 14 AWG box and your device allowance jumps, because that device now counts as two 10 AWG volumes. People tend to charge everything at the smallest gauge and quietly under-count.
Counting one box, the right way
Put it together for a real device box: 12 AWG throughout, two cables in (each with a hot, a neutral, and a ground), internal clamps, one duplex receptacle.
- Hots and neutrals entering and terminating: four 12 AWG conductors at 2.25 each = 9.00
- All grounds together: one allowance at 2.25 = 2.25
- Internal clamps, collectively: one allowance at 2.25 = 2.25
- The receptacle (yoke counts as two): two allowances at 2.25 = 4.50
Total: 18.00 cubic inches. Now compare that to the box's marked volume. A common single-gang device box might be 18 or 22.5 cubic inches — so this fill is right at the edge of an 18-cubic-inch box and comfortable in a 22.5. The difference between "fits" and "fight" was the device counting as two and remembering the clamp and ground allowances — exactly the three things people drop.
The honest caveat
These are the principles of 314.16 as commonly applied, but box fill has wrinkles — support fittings, luminaire studs, hickeys, and the treatment of certain conductors that the bare summary above does not capture, and the exact volume markings come from the box itself or the table. Always work from the edition of the code your jurisdiction has adopted and confirm a borderline box with a licensed electrician rather than rounding in your head. An overfilled box is a code violation and a safety problem, not just an inconvenience.
Letting the box count itself
The reason box fill goes wrong is not ignorance of the rules — it is doing five different counting conventions in your head while standing on a ladder. That is precisely the arithmetic Voltly's box-fill tool takes over: tell it the conductors, the devices, the grounds, and the clamps, and it sums the 314.16(B) allowances and tells you the minimum box volume, with the section cited so you can see where every cubic inch came from. It remembers your usual conductor size between calculations, and it runs fully offline in the bay where you are working. If you would rather know the box fits before you stuff it, Voltly does the counting.