Electrical Box Fill Calculator (NEC 314.16)
Enter the number and size of conductors, devices, internal clamps, support fittings, and grounding conductors. The calculator sums every volume allowance defined in NEC Table 314.16(B) and tells you the minimum box volume required for a code-compliant installation. Switch between cubic inches and cubic centimeters at any time.
What is an electrical box fill calculation?
Box fill is the total minimum internal volume an electrical box must provide to safely house all the conductors, devices, and fittings installed inside it. The National Electrical Code (NEC) Section 314.16 defines how to calculate this volume so that there is enough space for heat dissipation and to work with the wires without damaging insulation. An under-sized box is a code violation and a fire and shock hazard. Every conductor entering the box, every device yoke, every set of internal clamps, and every grounding conductor contributes to the total fill, and the box must provide at least that much internal volume.
How to count conductors and components (NEC 314.16(B))
NEC 314.16(B) breaks the fill calculation into five categories. First, count each conductor that enters or passes through the box as one allowance at its own volume from Table 314.16(B). Pigtails (short jumpers that originate and terminate inside the box) are not counted. A conductor that forms a loop and has at least twice the minimum free length counts as two conductors. Second, each device yoke (switch, receptacle, GFCI, etc.) counts as two allowances based on the largest conductor terminating on it. Multi-gang yokes count two allowances per gang. Third, one or more internal cable clamps count as a single combined allowance based on the largest conductor entering the box. Fourth, each luminaire stud or hickey inside the box counts as one allowance at the same volume. Fifth, all equipment grounding conductors together count as a single allowance equal to the largest grounding conductor entering the box.
Choosing the right box size
Once you have the total required volume in cubic inches, compare it against the standard metal box sizes listed in NEC Table 314.16(A). Common choices include: a 4" x 1-1/4" round or octagonal box at 12.9 in3, a 4" x 1-1/2" square at 21.0 in3, a 4" x 2-1/8" square at 30.3 in3, and a 4-11/16" x 2-1/8" square at 42.0 in3. Device boxes range from 7.5 in3 (3" x 2" x 1-1/2") to 18.0 in3 (3" x 2" x 3-1/2"). Non-metallic and non-standard boxes must have their volume stamped or marked inside the box by the manufacturer. If no single standard box is large enough, you can use a deeper box, a raised cover that adds volume (if listed for the purpose), or split the circuit into two separate boxes.
Common mistakes and NEC compliance tips
The most common box fill mistakes are: forgetting to count conductors that only pass through the box without terminating (they still count), counting multiple internal clamps as multiple allowances when the code only requires one combined allowance, and forgetting that all grounding conductors share a single allowance. When in doubt, round up to the next box size. Conduit bodies (LBs, LLs, LRs, T-fittings) are governed by NEC 314.16(C) and have different rules. Junction boxes serving only as splices with no devices are also governed by 314.16 but often need larger square boxes. Always verify with your local Authority Having Jurisdiction, as some jurisdictions adopt the NEC with local amendments.
NEC Table 314.16(B): Volume allowance per conductor
| Wire Size (AWG) | Cubic Inches (in3) | Cubic Centimeters (cm3) |
|---|---|---|
| 18 AWG | 1.50 | 24.6 |
| 16 AWG | 1.75 | 28.7 |
| 14 AWG | 2.00 | 32.8 |
| 12 AWG | 2.25 | 36.9 |
| 10 AWG | 2.50 | 41.0 |
| 8 AWG | 3.00 | 49.2 |
| 6 AWG | 5.00 | 82.0 |
Free space required for each conductor in a box, per the 2023 National Electrical Code. Devices, clamps, and fittings are also counted at the volume of the largest conductor in the box.
Frequently asked questions
What is the NEC code section for box fill?
Box fill calculations are governed by NEC Section 314.16, titled "Number of Conductors in Outlet, Device, and Junction Boxes." Subsection 314.16(A) covers the allowable volume of standard and non-standard boxes, and 314.16(B) defines the volume allowance for each type of conductor, device, clamp, fitting, and grounding conductor that must be counted. The volume allowances per wire gauge are listed in Table 314.16(B).
Do pigtails count toward box fill?
No. A pigtail is a short jumper that starts and ends inside the box without passing through the box walls. Because both ends are within the box, the NEC exempts it from the fill count. However, if a conductor enters from outside the box and then loops with a free length of at least twice the minimum free conductor length required, it counts as two conductors.
How many allowances do multiple cable clamps take?
Only one combined allowance regardless of how many internal cable clamps the box has. That single allowance is sized to the largest conductor entering the box. This applies to clamps that are built into the box body. External connectors (like Romex connectors tightened from outside) do not count toward box fill at all.
How are equipment grounding conductors counted?
All equipment grounding conductors entering the box together count as a single allowance equal to the volume of the largest grounding conductor. So whether you have one bare copper ground or four, you still only add one allowance. The size of that allowance is determined by the gauge of the largest grounding wire in the box.
Can I use a raised device cover to add box volume?
A raised cover can increase the available volume only if it is listed by a Nationally Recognized Testing Laboratory and marked with its volume. If the cover is listed and marked, you may add its volume to the box volume when sizing the assembly. Blank covers and extension rings must also be listed and marked with their added volume to count.
What is the difference between a junction box and a device box for fill purposes?
The same NEC 314.16 rules apply to both. The difference is practical: a device box typically holds receptacles or switches (which add large device allowances), while a junction box has only conductors being spliced (no device allowances). Junction boxes often need larger square boxes because many conductors pass through them. Both must have total allowances that fit within the rated box volume.