Article — Junction Box Sizing Calculator
Junction box sizing calculator: NEC 314.16 box fill made simple
A junction box sizing calculator applies NEC 314.16 to compute the minimum cubic-inch volume needed for a box containing conductors, internal clamps, devices on yokes, and grounding conductors. The volume allowance per #14 conductor is 2.00 cubic inches; per #12 it is 2.25; per #10 it is 2.50. A single-gang switch box with two #14 cables (4 conductors), one cable clamp, two ground wires counted as one, and one switch needs 16.0 cubic inches — just under the 18 in³ standard deep box.
Box fill calculations are one of the first things electrical inspectors check at rough-in. Failures are common because the rules look simple but have several subtleties: ground wires get a fractional count, clamps get one total allowance instead of per-clamp, devices count as two conductor volumes. The calculator removes the mental gymnastics, but understanding what each allowance covers helps when the box has unusual contents.
NEC 314.16 box fill rules
Section 314.16 of the National Electrical Code is the box-fill rule for boxes containing #6 AWG or smaller conductors. The principle is a cubic-inch budget: the box has a known internal volume (stamped or molded inside), and everything inside the box gets a volume allowance. Total allowances must not exceed the box volume.
V_total = V_cond + V_clamp + V_device + V_ground sum allowancesV_cond = N × V_AWG per conductorV_device = 2 × V_AWG × D per yokeV_total ≤ V_box complianceThe per-conductor allowance V_AWG comes from a table in 314.16(B): 1.5 in³ for #18, 1.75 for #16, 2.00 for #14, 2.25 for #12, 2.50 for #10, 3.00 for #8, 5.00 for #6. Each insulated conductor entering and remaining in the box, or passing through, counts as one. Conductors that originate and terminate entirely inside the box (pigtails) do not count.
Counting conductors for box fill
A 14/2 with ground cable has three conductors: hot, neutral, ground. A 14/3 cable has four. The ground wires from multiple cables are bundled together inside the box but count under their own allowance (see grounding section below), not as additional conductors at the per-conductor rate.
When the box contains conductors of different sizes, each conductor uses its own size’s allowance. Two #12 conductors plus four #14 = 2 × 2.25 + 4 × 2.00 = 12.5 in³ just for the conductors. The largest conductor in the box sets the allowance for clamps, devices, and grounds.
Clamp and device allowances
Cable clamps inside the box (one or more) add a single allowance of the largest conductor’s volume — not per clamp. A box with five internal clamps still adds just one V_AWG. External clamps (set screw connectors on metal conduit) do not count at all. Plastic NM-cable clamps integrated into plastic boxes typically count, but the clamps may already be deducted from the stamped box volume; check the manufacturer’s listing.
The 2 V_AWG device allowance comes from the realisation that a typical switch or receptacle physically displaces about twice the volume of a single conductor. The rule was added to the NEC in 1962 after surveys showed inspectors were rejecting more boxes than were unsafe; the per-device allowance standardised the count. The figure has not changed in 60 years even though device geometry has changed dramatically — the margin built into the rule is generous.
Devices (switches, receptacles, dimmers, GFCI/AFCI breakers, light fixture canopies) each count as two conductor volumes per yoke or strap. A two-gang box with two switches: 4 V_AWG for the devices. A combination switch-receptacle on a single yoke: still 2 V_AWG, because the yoke determines the count, not the device count.
Grounding conductor allowances
Equipment grounding conductors get a special rule. The first ground conductor counts as one full V_AWG. Each additional four grounds add another V_AWG. So one to four grounds: one allowance. Five to eight grounds: two allowances. Nine to twelve: three allowances.
The rule reflects the practice of pigtailing all grounds together to a single connector or wire nut. Multiple grounds occupy less space than independent conductors because they bundle. Isolated grounding conductors (green-insulated, separate from the equipment ground) count under their own per-conductor rule, not the bundled allowance.
Standard junction box sizes
Common box volumes are stamped inside the box. A 4-inch round 1.5-inch deep ceiling box holds 14 in³. A 4-inch square 1.5-inch deep wall box holds 18 to 21 in³ depending on brand. A 4 11/16-inch square 2.125-inch deep box holds 42 in³ — the workhorse for crowded boxes with multiple cables and devices.
- 4″ round, 1.5″ deep = 14 in³, suits single light fixture
- 4″ square, 1.5″ deep = 21 in³ (typical), single gang with 2 cables
- 4″ square, 2.125″ deep = 30.3 in³, two-gang with 3 cables
- 4 11/16″ square, 1.5″ deep = 30.3 in³, large-format single gang
- 4 11/16″ square, 2.125″ deep = 42 in³, crowded boxes
- 1900 single-gang = 22.5 in³, plaster ring on 4″ box
Pull boxes for large conductors (NEC 314.28)
Boxes containing conductors of #4 AWG or larger follow Section 314.28, not 314.16. Instead of cubic-inch fill, 314.28 sets minimum linear dimensions based on raceway trade size. For straight pulls, the box length is at least 8 × the largest raceway trade size. For angle or U-pulls, the distance from each raceway entry to the opposite wall is at least 6 × the largest raceway + the sum of all other raceway diameters on the same wall.
A 2-inch conduit entering and exiting on opposite sides for a straight pull needs an 8 × 2 = 16-inch box minimum. The same conduit with another 1.5-inch entering at 90 degrees needs 6 × 2 + 1.5 = 13.5 inches from the 2-inch entry to the opposite wall. These boxes get large fast for industrial work.
Box fill derating recommendations
NEC 314.16 sets a hard maximum at 100% fill, but professional practice derates to 75%. The remaining 25% gives serviceability margin: room to make splices without forcing conductors into corners, room to add a future device, easier troubleshooting access when the box needs investigation in 10 years.
If your calculated fill is within 90% of the next box size up, jump to that size. The $0.50 cost difference between a 4-inch square shallow box and a deep box is trivial compared to having to swap the box during inspection or future remodel. Inspectors often look favorably on visible derate when other items are borderline.
Common junction box sizing mistakes
Forgetting the device allowance is the most common miss. A single-gang box with two cables (4 conductors), one clamp, and one switch: 4 × 2.0 + 2.0 + 2.0 = 12.0 in³ for conductors, clamp, and one ground. Adding the device: 12.0 + 4.0 = 16.0 in³. The 18 in³ standard deep box is the minimum. Forgetting the 4.0 in³ device allowance would have suggested a 14 in³ shallow box, which fails inspection.
Miscounting passing-through conductors is the second mistake. A conductor that enters a box, gets spliced, and leaves still counts as one — not two. A conductor that enters and leaves without splice (a feed-through) also counts as one. Only entering counts; loops don’t double-count.
Many plastic NM-cable boxes have molded-in cable clamps that the NFPA has already deducted from the stamped volume. Adding a separate clamp allowance double-counts. Read the manufacturer’s catalog — if the box is listed as “clamp included in volume,” skip the V_AWG clamp allowance. Otherwise, add it as normal.
Mixed-AWG calculations are the third common miss. The calculator simplifies by assuming the largest AWG throughout. For real-world boxes with mixed wire sizes, count each conductor at its own size’s allowance, then use the largest size for clamps, devices, and grounds. The total is slightly less than the calculator’s conservative number — useful when you are right at the box limit.