A junction box volume calculator works out the minimum cubic-inch (or cubic-centimeter) size a box must be to safely hold a given number of wires, connectors, and devices, based on the National Electrical Code (NEC) fill rules. You enter the wire gauges, counts, and fittings, and it returns the required box volume, so you can check whether a 4″ square, 4-11/16″ square, or other box will pass inspection.
Formula
The NEC (Article 314.16) defines a box volume allowance based on the largest conductor in the box. Each conductor that terminates in, passes through, or is spliced inside the box gets a volume allowance in cubic inches, depending on its AWG size:
- 18 AWG: 1.5 in³
- 16 AWG: 1.75 in³
- 14 AWG: 2.0 in³
- 12 AWG: 2.25 in³
- 10 AWG: 2.5 in³
- 8 AWG: 3.0 in³
- 6 AWG: 5.0 in³
For conductors larger than 6 AWG, the NEC requires you to use the actual box volume from the manufacturer’s marking, not the fill table. The formula for the minimum box volume is:
V = Σ (Ni × Vi) + (Cclamp × Vlargest) + (D × 2 × Vlargest)
Where:
- Ni = number of conductors of each gauge
- Vi = volume allowance for that gauge (in³)
- Cclamp = number of internal cable clamps (each counts once, using the largest conductor’s volume)
- D = number of devices (yokes) – each counts as two conductors of the largest conductor in the box
- Vlargest = volume allowance of the largest conductor in the box
All conductors that enter the box and are not simply passing through without a splice or termination count. Grounding conductors (bare or green) are special: all grounding conductors together count as one conductor, using the largest grounding conductor’s volume, but only if the box has a grounding conductor. If there are four or more grounding conductors, each additional one beyond the first adds 0.25 × the largest grounding conductor’s volume.
Worked Example
Using the default inputs: 4 conductors of 14 AWG, 3 conductors of 12 AWG, 2 conductors of 10 AWG, no 8 AWG, no internal clamps, and 1 device (a switch or receptacle).
- 14 AWG: 4 × 2.0 = 8.0 in³
- 12 AWG: 3 × 2.25 = 6.75 in³
- 10 AWG: 2 × 2.5 = 5.0 in³
- Device: 1 × 2 × 2.5 (largest is 10 AWG) = 5.0 in³
- Total: 8.0 + 6.75 + 5.0 + 5.0 = 24.75 in³
The calculator returns 24.75 in³ (which is about 405.6 cm³). A standard 4″ square box with a 2-1/8″ depth has a volume of 30.3 in³, so it would be acceptable. A 4″ square box with 1-1/2″ depth is 21.0 in³, which would be too small.
Assumptions
- All conductors are the same insulation type (THHN/THWN, NM-B, etc.) – the fill rules are based on conductor size, not insulation.
- No conductor larger than 6 AWG is present; for larger wires, use the box’s listed volume.
- No more than 4 grounding conductors (if more, add 0.25 × largest grounding conductor per extra).
- The box is not used as a pull box for long straight pulls – that has separate rules (Article 314.28).
- All conductors are counted as “current-carrying” for box fill, regardless of load.
How to Choose a Box Size
When you open a junction box, you must be able to see the box’s volume stamped on it (for boxes made after 1978). That number is the maximum fill allowed. If the box is not marked, you can measure the inside dimensions and calculate the volume (for a rectangular box: length × width × depth).
Steps to choose a box:
- Count all conductors that enter the box, including those that pass through without being cut (they still count).
- Identify the largest conductor gauge.
- Add allowances for internal clamps, devices, and grounding conductors.
- Sum the allowances to get the minimum volume.
- Pick a box with a marked volume ≥ the minimum.
Common box volumes for reference:
- 4″ round/octagon, 1-1/2″ deep: 15.5 in³
- 4″ round/octagon, 2-1/8″ deep: 21.5 in³
- 4″ square, 1-1/2″ deep: 21.0 in³
- 4″ square, 2-1/8″ deep: 30.3 in³
- 4-11/16″ square, 2-1/8″ deep: 42.0 in³
Common Mistakes and Misconceptions
One frequent error is forgetting to count conductors that pass through the box without being spliced. The NEC counts every conductor that enters the box, even if it just passes through. Another mistake is counting the grounding conductor as a full conductor – it actually counts as a single conductor (for all grounds combined), not per ground wire. Also, a device (switch or receptacle) counts as two conductors, but only if the box contains a device. Some people also use the wire gauge of the device’s pigtails – those are counted as part of the device allowance, not as separate conductors.
Another misconception is that the volume of a box is the same as its cubic inch rating when you add extension rings. Actually, an extension ring adds its own volume, but you must add it to the box volume, not count it separately. Always use the marked volumes.
Why Box Fill Matters
Box fill rules exist to prevent overheating and to leave enough space for safe wire bending and connections. Overfilled boxes can damage wire insulation, make it difficult to work, and create a fire hazard. Inspectors enforce these rules, so an undersized box will fail an electrical inspection. The NEC is updated every three years, but the box fill tables have remained essentially unchanged for decades.
Alternatives and Special Cases
For large conductors (4 AWG and larger), you must use the actual box volume from the manufacturer, not the fill table. The fill table only applies to conductors up to 6 AWG. For boxes with more than one grounding conductor, the rule is: count the first ground as one conductor, and each additional ground adds 0.25 × the largest ground’s volume. This is a common source of error.
Another special case is when a box contains a luminaire (light fixture) stud or hickey – those are not counted as conductors. Also, cable clamps that are external to the box (like NM connectors with a locknut) do not count; only internal clamps that protrude into the box count.
Frequently Asked Questions
How do I count wires that are just passing through?
They count as one conductor each, same as a spliced wire. The only exception is if a wire is not cut and does not enter the box – but if it enters, it counts.
Do I count the grounding wire?
All grounding conductors together count as one conductor, based on the largest ground wire. If you have more than one ground, each extra adds 0.25 × the largest ground’s volume.
What about a switch or receptacle?
Each device (yoke) counts as two conductors of the largest conductor in the box. If you have two devices, that’s four conductors.
Can I use a plastic box with a different volume than marked?
Plastic boxes are marked with their volume; you must not exceed it. If the marking is missing, you can measure the inside and calculate, but it’s safer to replace it.
Does the calculator work for metric boxes?
The calculator gives cubic inches and cubic centimeters. The NEC uses cubic inches, but you can convert to cubic centimeters (1 in³ = 16.387 cm³). The calculator does that for you.
What if I have a 6 AWG wire and a 14 AWG wire?
The 6 AWG counts as 5.0 in³, and the 14 AWG counts as 2.0 in³. The largest conductor for the device/clamp allowance is 6 AWG (5.0 in³).
Related
Formula used
in num | Number of 14 AWG conductors | - | 4 | 0 in num2 | Number of 12 AWG conductors | - | 3 | 0 in num3 | Number of 10 AWG conductors | - | 2 | 0 in num4 | Number of 8 AWG conductors | - | 0 | 0 in fit | Internal clamps (each counts as largest conductor) | - | 0 | 0 in dev | Device yoke (switch/receptacle) counts as 2 conductors | - | 1 | 0 out vol | Minimum box volume | in³ | (num * 2.0) + (num2 * 2.25) + (num3 * 2.5) + (num4 * 3.0) + (fit * max(num,num2,num3,num4) * (num>0?2.0:num2>0?2.25:num3>0?2.5:3.0)) + (dev * 2 * (num>0?2.0:num2>0?2.25:num3>0?2.5:3.0)) | 2 out volcm | Minimum box volume | cm³ | vol * 16.3871 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Normality to g/L Converter & Formula29.220 g/L
- Normality to meq/mL Conversion Calculator1.0000 meq/mL
- Normality Test Q-Q Plot: How to Read It
- Normality Test Results: How to Analyze Them
- Normality Slay the Spire?
- Normality Test for Paired t Test: How to Check