What this calculator does
Check whether an electrical box is big enough for the wires and devices you plan to put in it. The box has to hold everything without crushing insulation or trapping heat. That means the wire ends and splices, the grounding wires, the switch or receptacle, and any clamps or fixture studs. The US National Electrical Code (NFPA 70) handles this with a volume count in section 314.16. Each item is given a set number of cubic inches, the items are added up, and the total must not exceed the volume marked on the box.
This box fill calculator does that count. Enter how many conductors of each size enter the box, the grounding wires, the devices, and whether the box has internal clamps or fixture studs. It totals the volume required and compares it with the box volume plus any extension ring. Then it shows the working item by item. It counts the rules as they stand in recent NEC editions, with a switch for the grounding-wire rule that changed in 2020. It is a planning aid: the inspector and the code edition your area has adopted decide what passes.
Where it's used
Why this math matters outside the classroom:
- Adding a receptacle. Four 12 AWG conductors, two grounds and a receptacle need 9 + 2.25 + 4.5 = 15.75 in³, which fits an 18 in³ box.
- Rough-in inspections. Inspectors count the wires in a crowded box and compare the total cubic inches with the volume stamped inside it.
- Choosing box depth. An electrician planning a three-cable switch box picks a deeper box once the count passes the shallow box's marked volume.
- Extension rings. Adding a ring marked 4.5 in³ to an 18 in³ box raises the space to 22.5 in³ when a smart switch needs more room.
- Decimal practice. Students multiply counts by 2.25 and 2.5 and add the results, a direct use of decimal multiplication and addition.
Grade level and standards: Grade 6; Common Core State Standards for Mathematics 6.NS.B.3. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Count the insulated conductors of each size that enter the box, whether they end there, are spliced, or pass straight through.
- Enter the number of grounding wires, the size of the largest one, and which code edition applies.
- Enter the number of devices (yokes), and tick the box if it has internal cable clamps; add any fixture studs or hickeys.
- Enter the volume marked inside the box and the volume of any extension ring or raised cover, then read whether the box is large enough.
What the inputs mean
- 14 AWG conductors
- Each insulated wire that enters the box and is spliced or connected, or passes straight through, counts once.
- 12 AWG conductors
- A 12/2 cable brings two insulated conductors (a hot and a neutral) plus a bare ground: enter 2 here and count the ground separately. A short pigtail that starts and ends inside the box is not counted.
- Other conductors
- Sizes not listed above. Enter their allowance below.
- Equipment grounding wires
- Equipment grounding wires and bonding jumpers are counted together. Before the 2020 code all of them shared one allowance; from 2020 one allowance covers up to four and each additional one adds a quarter allowance.
- Code edition for grounding wires
- From 2020, one allowance covers up to four grounding wires and each extra one adds a quarter.
- Devices (switches, receptacles)
- A single switch, a duplex receptacle or a dimmer on one strap is one device and counts as two conductors. A device too wide for a single-gang box counts once for each gang it needs.
- Largest wire connected to the devices
- The device allowance uses the largest wire connected to that device, which may be smaller than the largest wire passing through the box.
- The box has internal cable clamps
- One allowance in total, however many clamps there are.
- Box volume
- Metal and plastic boxes are marked with their volume in cubic inches. Use the marked value.
- Extension rings or raised covers
- Add the marked volume of any ring or cover that adds space.
Formula and method
Conductors = Σ (number of each size × allowance for that size) Grounds = 1 allowance (up to 4) + ¼ allowance for each extra [2020 NEC and later] Devices = 2 allowances per yoke, at the largest wire connected to it Clamps = 1 allowance (all internal clamps together), at the largest wire Studs = 1 allowance each, at the largest wire Required = conductors + grounds + devices + clamps + studs ≤ box volume Allowances: 14 AWG 2.00 in³, 12 AWG 2.25, 10 AWG 2.50, 8 AWG 3.00, 6 AWG 5.00
In the formulas, an allowance is the space, in cubic inches (in³), that the code assigns to one wire of a given size. AWG is the American Wire Gauge, where a smaller number means a thicker wire. Σ means "add up for every wire size", and a yoke is the metal strap that holds a device. NEC 314.16(B) gives each conductor size a volume allowance and says how many allowances each kind of item counts as. The calculator multiplies and adds those allowances, then subtracts the total from the volume the box provides. Extension rings and raised covers marked with a volume add to the space.
Clamps, fixture studs and hickeys are counted at the largest conductor in the box. Devices use the largest wire connected to the device, which you can set; by default the calculator uses the largest wire in the box, which can only overstate the volume needed.
Worked example
A single-gang plastic box holds a duplex receptacle fed by one 12/2 cable and continuing out on another, so four 12 AWG conductors and two bare grounds. The box is marked 18 in³.
- Conductors: 4 × 2.25 = 9 in³.
- Grounds: two grounds share one allowance, 1 × 2.25 = 2.25 in³.
- Device: one receptacle counts double, 2 × 1 × 2.25 = 4.5 in³.
- Total required: 9 + 2.25 + 4.5 = 15.75 in³.
- Space left: 18 − 15.75 = 2.25 in³, so 87.5% of the box is used.
Result: The box needs 15.75 in³ and provides 18 in³, so it is large enough.
Understanding the result
If the required volume is at or below the available volume, the box meets the volume count. If not, use a deeper or larger box, add an extension ring, or move some splices to another box.
Meeting the count is the minimum. Boxes with dimmers, smart switches or GFCI receptacles are often crowded even when they pass, and a little extra space makes the work neater and safer.
Assumptions and limitations
- Conductor sizes 14 through 6 AWG use the 314.16(B) allowances; other sizes use the allowance you enter.
- Each conductor entering the box counts once. Unbroken loops of 12 in or more count twice under the code; enter them twice.
- The box volume is the marked volume. Boxes that are not marked are calculated from their dimensions under a different part of the rule.
- Conductors 4 AWG and larger are sized for pull and junction boxes by a different rule (NEC 314.28), which this does not check.
- Small fittings, domes and canopies, and the exemptions for certain conductors from fixtures, are not handled.
- Code editions and local amendments vary, and the inspector has the final say. This is general information, not electrical advice; electrical work should be done or checked by a licensed electrician.
Frequently asked questions
How many wires can go in an 18 cubic inch box?
With 14 AWG wire at 2 in³ each, an empty 18 in³ box holds the equivalent of 9 conductors. A switch takes 2 of those and the grounds take 1, which leaves room for 6 insulated 14 AWG conductors. With 12 AWG at 2.25 in³ the equivalent is 8, leaving 5.
Do pigtails count in box fill?
No. A wire that starts and ends inside the box, such as a short pigtail joining a device to a splice, is not counted. Only conductors that enter the box from outside are counted.
Do ground wires count?
Yes, but together. Under the 2017 and earlier editions every grounding wire in the box shared a single allowance. From 2020 one allowance covers up to four of them and each extra one adds a quarter allowance, at the size of the largest grounding wire.
What if my box is too small?
Use a deeper box, a two-gang box with a single-device ring, or an extension ring marked with its volume. Splitting the splices between two boxes also works.
Sources
- NFPA 70, National Electrical Code (Article 314.16) (checked 2026-10-19)
How this calculator is checked
Method: NEC (NFPA 70) 314.16(B): allowances of 2.00, 2.25, 2.50, 3.00 and 5.00 in³ for 14–6 AWG; conductors once each, devices double, clamps once, studs once each, grounds per 314.16(B)(5) (single allowance, or from 2020 one for up to four plus a quarter for each extra). Cited by section; only the 14–6 AWG allowances are used. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Box Fill Calculator on your own website or blog for free. Paste this code where you want it to appear: