Box Fill Calculator

Last Updated: May 2026

Error: You must add at least one wire.
1. Conductors (Hot, Neutral, Travelers)
Do not include ground wires here. Count each wire terminating in or passing through the box.
2. Devices (Switches & Outlets) (Optional)
Each device yoke counts as 2 volume allowances based on the largest wire connected to it.
3. Equipment Grounding Conductors (Optional)
NEC 2020/2023 Rule: First 4 grounds = 1 allowance. Each extra ground = 1/4 allowance.
Must be ≥ 0.
4. Internal Clamps & Fittings (Optional)
Counted as 1 allowance based on the largest wire in the box.
NEC Box Fill Requirements
Minimum Box Volume Required
Cubic Inches (cu in)
Recommended Box Size

Allowance Breakdown
Conductors Hot, Neutral, Travelers
Devices Switches & Receptacles
Grounds (EGC) NEC 2020/2023 fractional rule applied

Box Fill Calculator — NEC 314.16 Compliant (2020/2023)

Use the calculator above to find your minimum box volume in seconds. Enter your conductors, devices, grounds, and clamps, and the calculator applies the exact NEC allowances automatically.

Stuffing too many wires into an electrical box is one of the most cited code violations in residential rough-in inspections. It looks harmless from the outside. The box is closed, the screws are tight, and the device sits flush.

But inside, wire insulation is under constant mechanical stress, heat has nowhere to go, and one loose connection can arc against a crowded neighbor. Box fill calculation exists specifically to prevent that, and NEC Section 314.16 makes it mandatory, not optional.

This calculator handles the math using the official volume allowances from NEC Table 314.16(B). It covers all five fill categories: conductors, device yokes, equipment grounding conductors, internal cable clamps, and support fittings.

The result is the minimum box volume in cubic inches your installation requires, plus a box size recommendation that meets or exceeds that volume.

What Box Fill Actually Means (and Why the Code Cares)

Every object inside an electrical box displaces air and takes up physical space. Wires need room to bend without cracking. A device mounted to a yoke needs clearance so it does not pinch conductors against the back of the box. Inspectors call the total occupied volume the box fill, and the NEC sets a hard ceiling on how much fill any given box can hold based on its listed cubic inch volume.

The cubic inch rating of a box is stamped or embossed directly on the inside surface; on metal boxes it is almost always on a side wall, and on plastic boxes it is often on the back. That number is the legal maximum. Your calculated fill must come in at or below it.

What confuses most people is that box fill is not about counting wires in a bundle. It is a volumetric accounting system where every wire, device, ground, clamp, and fitting earns a specific allowance based on the largest conductor connected to it. The volume allowance for each item comes directly from NEC Table 314.16(B)(1), not from eyeballing the box.

NEC 314.16 Explained

NEC Article 314 governs outlet boxes, pull boxes, junction boxes, and conduit bodies. Specifically, Section 314.16 is titled “Number of Conductors in Outlet, Device, and Junction Boxes and Conduit Bodies.” The rule is simple in principle: the total calculated volume of all fill components must not exceed the total listed volume of the box.

The code divides fill into categories, and each category has its own counting rule. This is where people get tripped up; grounds do not count the same way as hot wires, and devices do not count the same way as conductors.

314.16(B)(1) Conductor fill: Each unbroken conductor that passes through, terminates in, or is spliced inside the box counts as one allowance. Conductors that originate inside the box, like pigtails, do not count. A wire that enters the box and loops back out without a splice or termination counts as one, not two.

314.16(B)(2) Clamp fill: All internal cable clamps inside the box combined count as a single allowance. That allowance equals the volume of the largest conductor in the box. If the box has no internal clamps (meaning the clamps are external, or the cable connectors are outside), the clamp allowance is zero.

314.16(B)(3) Support fitting fill: Each luminaire stud or hickey counts as one allowance. Same rule: the volume equals the largest conductor in the box.

314.16(B)(4) Device or equipment fill: Each device yoke, whether it holds a single switch, a duplex receptacle, a GFCI, or an AFCI, counts as two allowances based on the largest conductor connected to that yoke. A two-gang plate with two devices means two yokes, which means four allowances total.

314.16(B)(5) Equipment grounding conductor fill: This is the most misunderstood rule. All equipment grounding conductors (EGCs) in the box together count as either one allowance or a fractional total, depending on how many there are. The NEC 2020 update refined this: if there are up to four grounds, they collectively count as one allowance. If there are more than four, each additional ground beyond the first four adds one-quarter of an allowance. The allowance volume used is the largest EGC present.

How to Use This Box Fill Calculator

The calculator above follows the exact NEC 314.16(B) sequence. Here is how to fill it out correctly.

Step 1: Conductors (Hot, Neutral, Travelers). Count every current-carrying conductor that enters, terminates, or is spliced in the box. Do not count grounds here, and there is a separate section for those. Do not count the bare or green EGC with the hots and neutrals. Select the wire gauge from the dropdown, enter the quantity, and add additional rows if you have mixed gauges in the same box. A box with two 12 AWG hots, two 12 AWG neutrals, and two 14 AWG travelers would require two rows.

Step 2: Devices (Switches and Outlets). Each device yoke is entered here. Select the gauge of the largest conductor connected to that device. A standard single-pole switch with 12 AWG wire counts as one device at 12 AWG. Two duplex receptacles on a two-gang box count as two devices.

Step 3: Equipment Grounding Conductors. Enter the total count of all ground wires in the box, and select the gauge of the largest one. The calculator applies the NEC 2020/2023 fractional rule automatically: the first four grounds get one allowance, and each extra gets one quarter.

Step 4: Internal Clamps and Fittings. Check the box if the cable clamps are built into the box body (common in plastic boxes). Check the second box if there is a luminaire stud or Hickey present. Each of these adds one allowance at the volume of the largest wire.

Step 5: Calculate. The result shows your minimum required volume in cubic inches and recommends the smallest standard box that meets it.

The Five Fill Allowances You Must Count

You must consider the following:

Conductors

Conductors are almost always the largest contributor to total fill. Each individual wire counts separately. In a standard switch loop with 12/2 NM cable, you have one hot and one neutral, and that is two conductor allowances. Add a 12/3 cable for a three-way switch, and you add three more: hot, neutral, and traveler. The ground wires in those same cables go into the EGC section, not here.

One thing electricians often overlook: if a wire passes through a box without any splice, termination, or device connection, it still counts as one allowance if it is longer than twice the minimum length specified by 300.14. If it is a looped conductor shorter than that, it counts as zero.

Device Yokes

The device yoke allowance catches people off guard because it is calculated differently than the conductor. You do not count the wires going to the device because those are already in the conductor section. The yoke itself gets two additional allowances equal to the volume of the largest conductor connected to that device.

This means a GFCI outlet wired with 12 AWG counts as two allowances at 2.25 cubic inches each, adding 4.50 cubic inches just for that one device on top of whatever its line and load conductors already added as conductor fill.

Equipment Grounding Conductors

Modern residential wiring easily produces five, six, or more grounds in a single junction box. Two cables are coming in with their own grounds, plus a pigtail going to the device; that is three already. Add a multi-wire branch circuit and you are at four quickly.

The fractional rule in NEC 2020 helps reduce the EGC volume compared to older code editions. Before 2020, all grounds collectively counted as one allowance regardless of quantity. The 2020 rule adds a small fractional penalty for each ground beyond four, which reflects the actual volume more honestly.

If all grounds are the same gauge, it is straightforward. If you have mixed-gauge grounds, use the largest gauge for the volume allowance and count all grounds together.

Internal Cable Clamps

Not all boxes have internal clamps. Old-work plastic boxes with side-entry push fittings do not have internal clamps; the cable is held by the fitting body outside the box. Metal boxes almost always have internal clamps, usually a strap or a pair of screws that grip the cable sheath inside the knockout.

All internal clamps in the box, no matter how many, count as a single allowance. That allowance uses the volume of the largest conductor. It is a one-time addition, not per clamp.

Support Fittings (Luminaire Studs and Hickeys)

This category applies mostly to ceiling boxes used for fan or light fixture mounting. A hickey is the threaded adapter that extends the mounting stud to accommodate different fixture bases. A luminaire stud is the threaded rod anchored to the box. Both add one allowance each, again based on the largest conductor volume. Most switch and outlet boxes do not have these. If yours does not, leave the checkbox empty.

NEC Volume Allowances by Wire Gauge

These are the official allowances from NEC Table 314.16(B)(1). Every conductor, device, ground, and hardware item in this calculator uses these exact values.

Wire Gauge (AWG)Volume Allowance Per Conductor
14 AWG2.00 cubic inches
12 AWG2.25 cubic inches
10 AWG2.50 cubic inches
8 AWG3.00 cubic inches
6 AWG5.00 cubic inches

The volume allowance increases with wire gauge because thicker wire is physically larger, less flexible, and harder to organize in a confined space. A 6 AWG conductor needs more than double the volume of a 14 AWG conductor; that 5.00 cubic inch figure reflects both the wire diameter and the bending radius the code is trying to protect.

Standard Electrical Box Sizes and Their Volume Ratings

Box manufacturers list cubic inch volume in the box specs and stamp it on the enclosure. These are the most common standard boxes and their NEC-listed volumes.

Box TypeCommon DepthListed Volume
Shallow 1-Gang1.5 in14.0 cu in
Standard 1-Gang2.5 in18.0 cu in
Deep 1-Gang3.0 in22.5 cu in
4-inch Square1.5 in30.3 cu in
Standard 2-Gang3.0 in32.0 cu in
4-inch Square2.125 in42.0 cu in
Standard 3-Gang3.0 in44.0 cu in
Multi-gang or JunctionVaries44.0+ cu in

A few things worth noting about this table. The 4-inch square box (also called a 4S box) is often the smarter choice over a 2-gang box when fill gets tight. The deeper 4S at 42 cubic inches gives you more room than a standard 2-gang at 32. It does require a plaster ring or mud ring adapter to finish the opening, but in new construction that is a trivial step.

For lighting circuits where the box also serves as a junction for branch circuit wires, the 4S box is the go-to solution among experienced electricians because it accommodates more fill and the square shape gives wires more room to bend without kinking.

Mistakes That Cause Box Fill Violations at Inspection

Counting grounds with conductors. Ground wires go in their own category with their own counting rule. Mixing them into the conductor count double-counts them and throws the whole calculation off.

Forgetting the device allowance. Many people calculate wires only and forget that the device yoke itself adds two allowances on top of the wires connected to it. A box that looks fine on conductor count alone can fail once the device allowance pushes it over the limit.

Using the wrong gauge for the device allowance. The device fill uses the largest conductor connected to that device, not the average. If you have a 10 AWG hot and a 12 AWG neutral at the device, the device allowance uses 10 AWG (2.50 cubic inches per allowance, so 5.00 cubic inches total for the yoke).

Ignoring internal clamps on metal boxes. Plastic boxes with external push connectors do not have internal clamps. But a steel box with cable-grip knockouts almost always does. That one-allowance addition may seem small, but on a full box it can be the difference between pass and fail.

Assuming a bigger plate fixes the problem. A deeper device cover plate does not change the listed volume of the box. The box volume is fixed by its stamped rating. If the fill exceeds that rating, you need a physically larger or deeper box, not a deeper cover.

Not accounting for pig-tail splices. A pig-tail wire that runs from a wire nut to a device terminal does not count as a fill conductor if the splice it comes from is inside the same box. The wires in the splice count, but the pigtail itself is excluded. This is actually one of the few places the code gives you a small break.

Frequently Asked Questions (FAQs)

Does conduit wiring count differently than NM cable?

No. The fill rules in 314.16(B) apply to any conductor inside the box, whether it arrived through NM cable, MC cable, EMT conduit, or any other wiring method. The gauge of the conductor drives the allowance, not how it got into the box.

Do I count conductors that just pass through without splicing?

Yes, as long as the pass-through conductor is longer than twice the minimum free length required by NEC 300.14 (which is 6 inches from the box opening). A conductor shorter than that looped through counts as zero. A longer pass-through counts as one conductor allowance.

Can I use two separate boxes back-to-back to get more volume?

Not in the sense of combining their volumes. Each box must independently satisfy the fill requirements for the conductors in that box. You can, however, use a two-gang box where a single-gang was planned, which gives you more volume for the same rough-in opening.

My box says 18 cubic inches, but my calculation is 18.25. Do I need a bigger box?

Yes. The calculated fill must not exceed the listed volume. 18.25 cubic inches in an 18-cubic-inch box is a code violation. Move to the next size up, a 22.5 cubic inch deep 1-gang box covers it easily.

Does a GFCI or AFCI outlet count as one device or two?

One. A GFCI outlet is one device regardless of whether it has line and load connections. It occupies one yoke, so it counts as one device with two allowances. Same rule for a combination AFCI/GFCI device.

What about wire nuts? Do they add to fill?

Wire nuts are not listed as a fill component under NEC 314.16(B). They do not add volume allowance. Only conductors, device yokes, grounds, internal clamps, and support fittings contribute to box fill.

Do I need to calculate box fill for junction boxes in attics or crawl spaces?

Yes. NEC 314.16 applies to all outlet, device, and junction boxes regardless of location. A junction box behind a wall, in a ceiling, or in an attic must meet the same fill requirements as a switch box in a finished room. An accessible location does not exempt it.

A Note on NEC 2020 vs NEC 2023

The volume allowances in NEC Table 314.16(B)(1) have not changed between the 2020 and 2023 editions. The wire gauge volumes, 2.00 for 14 AWG through 5.00 for 6 AWG, are unchanged. The NEC 2020 edition refined the equipment grounding conductor fill rule (Section 314.16(B)(5)) by introducing the fractional counting method for more than four grounds. The 2023 edition retained that rule without modification. This calculator applies the 2020/2023 EGC rule as published.

If you are working under an older adopted code (some jurisdictions still enforce NEC 2017), the only difference is in the EGC fill. Under 2017, all grounds together count as a single allowance using the largest ground gauge, regardless of how many grounds are present. The 2020/2023 rule adds the fractional penalty for each ground beyond four.

When in doubt, check which edition your Authority Having Jurisdiction (AHJ) has adopted. The AHJ is your local building department or electrical inspector’s office.


All calculations in this tool follow NEC Table 314.16(B)(1) volume allowances and Section 314.16(B) fill counting rules as published in the 2020 and 2023 National Electrical Codes. Always verify final installations with your local AHJ and a licensed electrician where required.


Sources & References


Technical Basis

This calculator is developed using verified formulas, industry standards, and authoritative reference materials. Data is cross‑checked with ASTM specifications, ASHRAE Fundamentals, CIBSE Guide C, NEC tables, ACI guidelines, Crane TP‑410, and widely accepted engineering textbooks. All calculations follow standard equations used in construction, engineering, and building‑code practices.


Disclaimer

This tool provides estimates based on standard formulas and reference data. Actual requirements may vary depending on local codes, material variations, and project conditions. For final design decisions, consult a licensed professional.


Other Similar Calculators


About the Author

Qazi Raza – Technical Creator & Researcher

Qazi Raza develops construction, engineering, and home‑improvement calculators by researching verified formulas, industry standards, and authoritative reference materials. His tools are built using data from ASTM specifications, ASHRAE guidelines, NEC tables, building codes, and widely accepted engineering textbooks. Each calculator is designed to help homeowners, DIYers, and contractors make accurate, confidence‑based decisions.