Junction Box Sizing Calculator

Calculate the minimum cubic-inch volume needed for an electrical junction box per NEC 314.16.

Home NEC 314.16 compliant AWG 6 to 18
Rate this calculator · 5.0 (1)

Junction box fill

NEC 314.16 box fill calculation · conductors + clamps + devices

Instructions — Junction Box Sizing Calculator

1

Pick the largest conductor AWG

NEC 314.16 sets the volume allowance per conductor by gauge. 14 AWG = 2.0 in³ each, 12 AWG = 2.25 in³, 10 AWG = 2.5 in³. If your box mixes wire sizes, count each conductor at its own AWG allowance — the calculator shows totals based on the largest selected here.

2

Count what enters the box

Each insulated conductor running through or terminating in the box counts as 1. Cable clamps inside count as 1 total (not per clamp). Each ground conductor entering counts once; additional grounds add only 25% each. Devices (switches, receptacles) count as 2 conductor volumes each.

3

Pick or check a box

Enter your box volume from the manufacturer (stamped on the inside). The calculator compares total fill to box volume — PASS means ≤100% fill (NEC compliant), FAIL means you need a bigger box. The recommended size shows the smallest standard box that fits.

Two devices in one box? A two-gang switch box with two 15A receptacles using #14 wire needs at least 18 in³: 4 conductors (8) + 1 clamp (2) + 1 ground (2) + 2 devices (8) = 20 in³. Buy a 21 in³ 4-square box, not a standard 18.
Box volume is stamped inside. Every UL-listed metal and plastic box has its volume in cubic inches printed on the wall or bottom. If you cannot find the stamp, look up the brand — manufacturer catalogs list it.

Formulas

Box fill adds up four kinds of items: conductors, clamps, devices, and grounds. Each gets a volume allowance based on the largest conductor AWG in the box.

Conductor allowance
$$ V_{cond} = N \times V_{AWG} $$
N is the number of insulated conductors entering or passing through the box. Each gets 1 volume unit at its AWG. 14 AWG: 2.0 in³. 12 AWG: 2.25 in³. 10 AWG: 2.5 in³. Conductors that pass through without splicing count as 1 each.
Clamp allowance
$$ V_{clamp} = 1 \times V_{AWG} $$
If one or more internal cable clamps are present, add 1 volume of the largest conductor in the box — total, not per clamp. External clamps (set screw connectors on conduit) do not count. Plastic NM cable clamps in plastic boxes usually do not count.
Device allowance
$$ V_{device} = 2 \times V_{AWG} \times D $$
Each yoke or strap with a device (switch, receptacle, dimmer, light fixture) adds 2 conductor volumes. D is the device count. A two-gang box with two switches adds 4 × V_AWG = 8 in³ for #14 AWG.
Ground allowance
$$ V_{ground} = \lceil G / 4 \rceil \times V_{AWG} $$
Equipment grounding conductors. The first ground gets 1 full volume; each additional 4 grounds add 1 more volume. G = 1: V_AWG. G = 2–4: V_AWG. G = 5–8: 2 × V_AWG. Isolated grounds count separately.
Total fill
$$ V_{total} = V_{cond} + V_{clamp} + V_{device} + V_{ground} $$
Sum all four. The box must have at least V_total cubic inches of usable interior volume per NEC 314.16(B). No safety factor is required by code, but 75% fill is a common derate target for serviceability.
Pull-box minimum (NEC 314.28)
$$ L_{min} = 8 \times D_{raceway} $$
For pull and junction boxes containing 4 AWG or larger conductors, the dimensions follow 314.28 instead of 314.16. Straight pulls: 8 × largest raceway trade size. Angle/U-pulls: 6 × largest + sum of other raceway diameters.

Reference

NEC 314.16 conductor volume allowance by AWG
AWGAllowance per conductorCommon use
181.50 in³Low-voltage fixtures
161.75 in³Doorbells, thermostats
142.00 in³15A lighting circuit
122.25 in³20A receptacle circuit
102.50 in³30A dryer, water heater
83.00 in³40A range
65.00 in³50A range, sub-panel feed

Common box sizes

Box descriptionVolumeMax #14 capacity (incl. 1 device + clamp + ground)
4″ round, 1½″ deep14 in³3 conductors
4″ sq, 1½″ deep21 in³6 conductors
4″ sq, 2⅛″ deep30.3 in³10 conductors
4 11/16″ sq, 1½″ deep30.3 in³10 conductors
4 11/16″ sq, 2⅛″ deep42 in³15 conductors

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.

NEC 314.16 box fill math
V_total = V_cond + V_clamp + V_device + V_ground sum allowances
V_cond = N × V_AWG per conductor
V_device = 2 × V_AWG × D per yoke
V_total ≤ V_box compliance

The 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.

Did you know

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.

Tip

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.

Plastic boxes may have integrated clamps

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.

FAQ

It is a cubic-inch budget for everything that goes inside a junction box. Each conductor, clamp, device, and ground gets a volume allowance based on the largest conductor AWG. Total fill must not exceed the box volume. The largest conductor sets the per-unit allowance — mixing #12 and #14 means each #12 counts as 2.25 in³ and each #14 still counts as 2.0 in³.
14.5 in³ minimum — pick an 18 in³ box. Two cables = 4 conductors (4 × 2.0 = 8 in³) + 1 clamp (2.0) + 2 grounds count as 1 (2.0) + 1 device (4.0) = 16 in³. A 4-inch square deep box (21 in³) gives margin and accepts a single-gang mud ring.
Insulated conductors that enter and stay or pass through count as 1 each. A 14/2 with ground cable entering = 2 hot/neutral conductors + 1 ground. Equipment ground gets a special rule (first counts 1, then 25% per additional ground). Wires that loop through without splice still count as 1 each. Pigtails (short jumpers entirely inside the box) do not count.
The first ground conductor counts as 1 full volume. Each additional 4 grounds add 1 more volume. G = 1 or 2–4: one allowance. G = 5–8: two allowances. The rule allows pigtailing many grounds to a single connector without blowing up the count. Isolated equipment grounds (separate green-insulated conductor) count under their own rule.
Each conductor uses its own AWG volume. If you have two #12 conductors and four #14 in the same box: 2 × 2.25 + 4 × 2.0 = 12.5 in³ for conductors. Clamps, devices, and grounds use the largest conductor (here #12 = 2.25 in³ each). Mixed-AWG boxes need careful counting; the calculator simplifies by assuming the largest gauge throughout.
Yes — NEC 314.28 covers boxes with 4 AWG or larger conductors. Instead of cubic-inch fill, 314.28 sets minimum linear dimensions. Straight pulls: 8 × the largest raceway trade size. Angle and U-pulls: 6 × largest + sum of other raceways. Boxes with mixed feeders may need to meet both 314.16 and 314.28.
Stamped or molded inside the box. UL-listed boxes display the volume in cubic inches on an interior wall, on the bottom, or on the cable knockout area. Steel boxes typically read “21.0 CU IN”; plastic boxes show it embossed in the molding. If absent, look up the manufacturer’s catalog — box volume is a required listing in the UL standard.
Overfilled boxes overheat and damage insulation. Too many conductors crowded into a small box compresses insulation against sharp edges, creates difficulty making good splices, and traps heat from connections and loads. Box-fill failures are one of the top three reasons for inspection rejection on residential rough-in.