A box has to be big enough for the wires and devices inside it. Enter the wire gauge, the number of conductors and devices, whether a ground is present and the box volume, and this calculator returns the minimum volume the box needs and whether yours is enough.
Junction Box Size Calculator
Minimum electrical box volume required by NEC box-fill rules, from the wire gauge, conductor count, device count, and whether a ground wire is present.
Starting values: the calculator opens with 12 AWG wire, 4 conductors, 1 device, a ground wire present and a box volume of 18 cubic inches. It returns 7 fill-count conductors, an allowance of 2.25 cubic inches each and a required volume of 15.75 cubic inches. The box volume is sufficient.
The formulas
Fill count = Conductors + (Devices × 2) + (1 if a ground is present)
Required volume = Fill count × Volume allowance per conductor
The calculator compares the required volume with the box volume you enter and shows whether it is sufficient.
The per-conductor allowances it uses, from the box-fill table in the National Electrical Code, are 2.00 cubic inches for 14 AWG, 2.25 for 12 AWG, 2.5 for 10 AWG, 3.0 for 8 AWG and 5.0 for 6 AWG. My source page confirmed the 14 AWG and 12 AWG figures only, so check the others against the current code table.
How the count works
An electrical-trade article on box fill describes the counting rules this way:
- Each conductor that enters and ends in the box counts as one, and each unbroken conductor passing through counts as one.
- A single-gang device yoke, such as a switch or receptacle, counts as two conductor volumes, based on the largest conductor connected to it.
- All equipment grounding conductors together count as one volume, based on the largest one.
- Internal cable clamps count as one volume, based on the largest conductor, and a luminaire stud or hickey counts as one each.
- Conductors that begin and end inside the box, such as pigtails, are not counted.
The calculator’s fields follow the first three rules. It has no clamp or stud field.
Worked examples
Example 1: the default
The fill count is 4 + 2 + 1 = 7. The required volume is 7 × 2.25 = 15.75 cubic inches, which fits in an 18 cubic inch box.
Example 2: no ground
12 AWG with 4 conductors, 1 device and no ground has a count of 6, so the volume needed is 6 × 2.25 = 13.50 cubic inches.
Example 3: a crowded box
14 AWG with 6 conductors, 2 devices and a ground has a count of 6 + 4 + 1 = 11, so the volume is 11 × 2.00 = 22.00 cubic inches. The trade article’s own example has eleven 14 AWG conductor equivalents and needs 22 cubic inches too, although its count includes a cable clamp, which this calculator does not add.
Example 4: heavier wire
10 AWG with 6 conductors, 2 devices and a ground has a count of 11, so the volume is 11 × 2.5 = 27.50 cubic inches. An 18 cubic inch box is too small.
Example 5: allowing for a clamp by hand
Take 12 AWG, 1 device and a ground, with 4 conductors and one internal cable clamp. Enter 5 conductors, with the extra one standing for the clamp. The count is 5 + 2 + 1 = 8, the volume is 8 × 2.25 = 18.00 cubic inches, and an 18 cubic inch box is exactly enough.
Mixed gauges and other fittings
The calculator takes one wire gauge. When wires of different sizes share a box, the code counts each size at its own allowance. The trade article’s example has 14 AWG conductors totalling 10 cubic inches and 12 AWG conductors totalling 13.50, for 23.50 cubic inches in all. Work out each size by hand, as in Example 2, and add the volumes.
Where to find the box volume
The box volume is the figure marked or listed for the box. The article adds that parts such as a mud ring count only if their volume is marked. If you cannot find a volume, use a larger box.
What the calculator does not do
- It handles one wire gauge only.
- It does not count clamps, studs, hickeys, isolated grounds or fixture wires. The calculator’s note says these have additional requirements.
- It does not choose a box or check the number of cables a box can take.
- It follows the general code method and is not a substitute for the current code or a licensed electrician.
For the size of the ground conductor, see the ground wire size calculator, and for overcurrent protection, the fuse size calculator.
Checking against a standard box
The trade article I used rates a 4 in square box 2 1/8 in deep at 30.30 cubic inches in its second example. The box volumes marked on real boxes differ, so read the figure on yours.
Example 6: two receptacles in one box
12 AWG with 6 conductors, 2 devices and a ground gives a count of 6 + 4 + 1 = 11. The volume needed is 11 × 2.25 = 24.75 cubic inches. That fits within a 30.30 cubic inch box, with 5.55 cubic inches to spare, and does not fit within an 18 cubic inch box.
Example 7: switching to heavier wire
The same layout in 10 AWG needs 11 × 2.5 = 27.50 cubic inches. Heavier wire raises the allowance for every conductor, so a box that is adequate for 12 AWG may not be for 10 AWG.
A short checklist
- Count each conductor that ends in the box, and each one passing through uncut.
- Add two for every single-gang device.
- Add one for the grounds, however many there are.
- Add one for an internal clamp and one for a luminaire stud, if you have either.
- Multiply by the allowance for the gauge, and compare with the volume marked on the box.
Frequently asked questions
How do I calculate junction box size?
Count the conductors, add two for each device and one for the grounds together, then multiply by the allowance for the wire gauge. With 12 AWG and a count of 7, the box needs 15.75 cubic inches.
How much does each conductor count for?
It depends on the gauge. The calculator uses 2.00 cubic inches for 14 AWG and 2.25 for 12 AWG, with larger allowances for heavier wire.
How are grounds counted?
All equipment grounding conductors together count as one conductor, whatever their number.
What if I have mixed wire sizes or clamps?
The calculator takes a single gauge and has no clamp field. Count each size at its own allowance by hand, and add a volume for any internal clamp.
