Junction Box Size Calculator | NEC Box Fill Calculator
Find the minimum junction box volume required by NEC Article 314 from wire count and AWG wire gauge, then match it to a standard box size in cubic inches.
Junction Box Sizing Calculator
Input Parameters
Calculation Results
Box Visualization
Calculation Information
Wire Volume Requirements
| Wire Gauge (AWG) | Volume Per Wire |
|---|---|
| 6 AWG | 5 cubic inches |
| 8 AWG | 3 cubic inches |
| 10 AWG | 2.5 cubic inches |
| 12 AWG | 2.25 cubic inches |
| 14 AWG | 2 cubic inches |
| 16 AWG | 1.75 cubic inches |
| 18 AWG | 1.5 cubic inches |
Documentation
What Is a Junction Box Sizing Calculator
A junction box sizing calculator finds the smallest electrical box that can legally hold a given set of wires, based on the volume rules in the National Electrical Code (NEC). A junction box is a metal or plastic enclosure that protects wire splices from damage and fire. The NEC, also called NFPA 70, sets minimum box volumes so wires have room to bend, connect, and shed heat safely.
How to Calculate Junction Box Size (NEC Box Fill Formula)
NEC Article 314, specifically Table 314.16(B), assigns a volume allowance to each wire based on its gauge. Add up the allowances for every conductor, then add allowances for any grounding conductors and any mounted device. The total is the minimum box volume, in cubic inches.
This calculator uses the formula:
V = (N × Vw) + Vg + Vd
- N is the number of current-carrying wires entered.
- Vw is the volume allowance per wire, based on its gauge in American Wire Gauge, or AWG (see the table below).
- Vg is one extra allowance if grounding conductors are included, using the same Vw. Every grounding conductor in a box counts as a single allowance together, no matter how many there are.
- Vd is two extra allowances, added whenever at least one wire is entered. NEC 314.16(B)(4) requires two allowances for each device, such as a switch or outlet, mounted in the box. This calculator always assumes one device is mounted. If the box holds only wire splices with no device, the true code minimum is smaller than the number the calculator shows.
The NEC does not build a safety margin into this formula, and neither does this calculator. The result is the exact legal minimum, not a recommended size with extra room. Many electricians choose a box one size larger than the minimum so there is space to work, but that choice is not part of the calculation.
Conduit or cable entries add no volume under NEC 314.16(B). Locknuts, bushings, and connectors that hold a raceway or cable in place are not counted toward box fill. This calculator asks for the number of conduit entries to draw the box diagram, but that number does not change the required volume.
This calculator does not add volume for internal cable clamps, either. Some boxes have built-in clamps; check the volume stamped inside such a box, since the manufacturer may have already accounted for the clamp.
NEC Wire Volume Allowances by Gauge
The volume allowance per wire depends on the wire's gauge. Thicker wire, meaning a lower AWG number, needs more room to bend without damage.
| Wire Gauge (AWG) | Volume per Wire (in³) |
|---|---|
| 18 | 1.5 |
| 16 | 1.75 |
| 14 | 2.0 |
| 12 | 2.25 |
| 10 | 2.5 |
| 8 | 3.0 |
| 6 | 5.0 |
This calculator covers 18 AWG through 6 AWG. Conductors 4 AWG and larger are not sized by cubic-inch box fill at all. NEC 314.28 sizes boxes for those larger wires by raceway diameter instead: a straight pull needs a box at least eight times the trade size of the largest raceway, and an angle or U-pull needs at least six times. That calculation is outside the scope of this tool.
Standard Junction Box Sizes
After computing the required volume, the calculator picks the smallest box on its list whose stamped volume meets or exceeds that number. It only checks the boxes below; it does not interpolate or guess.
| Box | Volume (in³) |
|---|---|
| 4 × 1-1/4 round/octagonal | 12.5 |
| 4 × 1-1/2 round/octagonal | 15.5 |
| 4 × 2-1/8 round/octagonal | 21.5 |
| 4 × 1-1/4 square | 18.0 |
| 4 × 1-1/2 square | 21.0 |
| 4 × 2-1/8 square | 30.3 |
| 4-11/16 × 1-1/4 square | 25.5 |
| 4-11/16 × 1-1/2 square | 29.5 |
| 4-11/16 × 2-1/8 square | 42.0 |
A round or octagonal box holds less than a square box of the same face size and depth, because its curved or angled walls take up more of the interior. If the required volume is above 42.0 cubic inches, the calculator reports that a custom size is needed, since no box on the list is large enough.
Example Calculation
A box holds four 12 AWG wires, one ground wire, and one conduit entry (the calculator's default values).
- The volume per wire for 12 AWG is 2.25 in³.
- Four wires: 4 × 2.25 = 9.00 in³.
- Add one allowance for the ground wire: 9.00 + 2.25 = 11.25 in³.
- Add two allowances for the mounted device: 11.25 + (2 × 2.25) = 15.75 in³.
- The conduit entry adds nothing.
The required volume is 15.75 cubic inches. The smallest listed box that holds at least that much is the 4 × 1-1/4 square box, at 18.0 cubic inches.
What This Calculator Does Not Cover
- Wires 4 AWG and larger, which the NEC sizes by raceway diameter, not cubic inches.
- Boxes with more than one mounted device. Each extra device needs two more volume allowances than this calculator adds.
- Mixed wire gauges in a single box. Enter the largest gauge present and count every wire, or calculate each gauge separately and add the volumes together.
- Internal cable clamps and barriers that some boxes require.
- Wiring codes outside the United States. Canada, the United Kingdom, Australia, and other countries use different standards.
Frequently Asked Questions
What is a junction box?
A junction box is an enclosure that holds wire splices and connections. It protects the connections from damage, moisture, and accidental contact, and keeps them reachable for future work.
Why doesn't the calculator add a safety factor?
NEC box fill is defined as an exact minimum, not a target with built-in margin. The calculator reports that minimum. Many electricians install a box one size larger so there is room to work, but that choice is left to the installer.
Do conduit entries change the required box size?
No. NEC 314.16(B) assigns no volume to raceway or cable fittings, so the number of conduit entries never changes the required volume in this calculator.
What if my box has more than one switch or outlet?
Each additional device adds two more volume allowances at the largest wire gauge present. This calculator assumes exactly one device, so a box with two devices needs more volume than the calculator reports.
What if I have wires of two different gauges in one box?
Calculate the volume for each gauge separately and add the results, or run the calculator once using the largest gauge for every wire. The second method is conservative: it never gives a box that is too small, though it may recommend one slightly larger than necessary.
Can I use a bigger box than the calculator recommends?
Yes. The NEC sets a minimum, not a maximum. A larger box is always allowed and often makes wiring easier to install and inspect.