Writing · Article

Box Fill Calculator on iPhone: How NEC 314.16 Counting Works, a Worked Example, and the Mistakes That Fail Inspection

How to calculate box fill under NEC 314.16(B): which conductors count, the allowances for clamps, fittings, devices and grounds, a full worked example for a two-gang switch box, and how an offline iPhone calculator does the counting for you.

Box fill is the calculation that trips up more apprentices on exams, and more finished jobs on inspection, than any other everyday one. Not because the arithmetic is hard, but because the counting rules are specific and easy to half-remember: a conductor that passes through counts once, a device yoke counts twice, all the grounds together count once, and the size that matters for a fitting is the largest conductor in the box, not the one next to it. This post walks through the rules in NEC 314.16(B), does a complete worked example, lists the mistakes that get boxes failed, and shows how the box fill tool in Electrician Calculator Toolkit for iPhone does the counting so you only have to do the looking.

What box fill is and why inspectors care

Every outlet, switch and junction box has a volume in cubic inches, and the NEC limits how much you may put in it. The reason is heat and damage: conductors crammed into a box run hotter, insulation gets nicked when the device is pushed in, and splices get stressed. Article 314.16 turns that into a number. You add up the volume allowances for everything in the box, compare the total with the box's volume, and the box passes if the volume is at least the total. Too small and you need a bigger box, an extension ring or a mud ring that adds volume.

The box volume comes from Table 314.16(A) for standard metal boxes, or from the volume stamped or marked on the box (required on nonmetallic boxes and anything not in the table). A plaster ring or extension adds its marked volume. The allowance side is where the rules live.

The counting rules in 314.16(B), in plain language

  • Conductors, 314.16(B)(1). Each insulated conductor that originates outside the box and ends inside it (spliced or landed on a device) counts as one allowance at its own size. A conductor that passes through unbroken counts as one. A conductor that loops through with an unbroken length of at least twice the minimum free-conductor length in 300.14 counts as two. Pigtails that never leave the box do not count. Equipment grounding conductors are handled separately, below.
  • Clamps, 314.16(B)(2). If the box has one or more internal cable clamps, add one allowance total, based on the largest conductor present. External clamps and connectors that sit outside the box add nothing.
  • Support fittings, 314.16(B)(3). Each luminaire stud or hickey inside the box adds one allowance, at the size of the largest conductor present.
  • Devices, 314.16(B)(4). Each yoke or strap carrying a device (switch, receptacle, dimmer) adds two allowances, at the size of the largest conductor connected to that device. A yoke wider than a single gang adds two allowances per gang of width.
  • Equipment grounding conductors, 314.16(B)(5). All the equipment grounds in the box together add one allowance, based on the largest equipment grounding conductor present. If there is also an isolated (insulated) equipment ground for a separate circuit, that group adds one more.

The volume per allowance comes from Table 314.16(B)(1): 2.00 cubic inches for #14 AWG, 2.25 for #12, 2.50 for #10, 3.00 for #8 and 5.00 for #6. Those five numbers, and the five rules above, are the whole calculation.

A worked example: a two-gang switch box

A 4-inch square metal box with a two-gang ring and internal clamps, two switches (one single-pole, one three-way), fed by 14/2 NM cable, with a 14/2 out to a light and a 14/3 out to the other three-way. Count it.

  • Conductors: the 14/2 feed brings 2 insulated conductors; the 14/2 to the light brings 2; the 14/3 brings 3. That is 7 conductors at #14, 7 × 2.00 = 14.00 in³. The bare grounds in each cable are not in this line.
  • Clamps: internal, so one allowance at the largest conductor (#14): 2.00 in³.
  • Support fittings: none in a switch box: 0.
  • Devices: two single-gang yokes, two allowances each at #14: 4 × 2.00 = 8.00 in³.
  • Equipment grounds: three bare #14 grounds, one allowance together: 2.00 in³.

Total: 14.00 + 2.00 + 8.00 + 2.00 = 26.00 cubic inches. A 4-inch square box 2⅛ inches deep is listed in Table 314.16(A) at 30.3 in³, so with a flat two-gang ring it passes with a little margin. The same 4-inch square box at 1½ inches deep is 21.0 in³ and fails, and that is exactly the box that gets installed when nobody counted (a raised ring with a marked volume might rescue it; see below). Swap the feed for 12/2 and the picture changes: the #12 conductors count at 2.25 each, and because the largest conductor in the box is now #12, the clamp, device and ground allowances all move up to 2.25 as well. That knock-on effect is the one people forget.

The mistakes that fail inspection

  • Counting devices once. A yoke is two allowances. Two receptacles in a two-gang box are four, not two.
  • Counting each ground. All equipment grounds together are one allowance (plus one more for an isolated ground), no matter how many cables enter.
  • Using the wrong size for the allowance. Clamps, fittings and grounds are sized by the largest conductor in the box; devices by the largest conductor connected to them. Mixed #12 and #14 boxes are where this bites.
  • Forgetting internal clamps. One allowance if the box has them, zero if the cable is held by an external connector in a knockout.
  • Counting pigtails and short jumpers. Conductors that start and end inside the box are free.
  • Trusting the box's nominal size. A 'four-inch square' box can be 1¼, 1½ or 2⅛ inches deep, with volumes from 18.0 to 30.3 in³. The depth is the number that matters, and it is the one not printed on the invoice.
  • Ignoring the mud ring. A raised plaster ring adds its marked volume and is often what turns a fail into a pass. Count it, and make sure it is actually marked.

Doing it on the phone

The box fill tool in Electrician Calculator Toolkit follows 314.16(B) line by line. You enter the conductors, clamps, support fittings, device yokes and equipment grounds in the box; it applies the volume allowance for each, based on the largest conductor where the code says so, totals the cubic inches and gives a pass or fail against the box you have. Every result names the table it came from, which is useful when the inspector asks and you want to point at 314.16(B)(4) rather than at an app.

It is one of eight tools in the app (voltage drop, wire size with derating, conduit fill, load and breaker, Ohm's law, resistor colour codes and the code tables are the others), all based on the 2023 NEC tables, all fully offline with no account, no ads and no subscription. It is a $3.99 one-time purchase on the App Store, iPhone only, 2.3 MB, available in 19 languages. The earlier post in this series walks through the wire size, voltage drop and conduit fill flow for sizing a whole circuit; box fill is the last check before the cover goes on.

When the calculator is not enough

Box fill is a minimum, not a target. A box that passes at 26.0 of 30.3 cubic inches with a dimmer and a smart switch in it will still be miserable to close, because those devices are deeper than the two allowances assume. Experienced electricians size up a depth when there is a bulky device, regardless of the maths. The calculation also assumes you are using listed boxes and rings with marked volumes; a box with no marking and no table entry has no legal volume at all. And local amendments exist: some jurisdictions still enforce an earlier code edition, so check which year applies before quoting 2023 tables to an inspector who is working from 2020. The app does the counting; the judgement is still yours.