Junction Box Sizing Calculator
Estimate the electrical junction box volume needed for your wires, grounds, devices, clamps, and fittings.
Leave clamps off for plastic boxes that already include them in the marked volume. Wire connectors and locknuts are not counted.
Your box fill result
You need 15.75 cu in and the box holds 18 cu in. 2.25 cu in is left over.
Minimum volume needed
258.1 cm³
Box fill
Within the limit
Smallest standard box
3 x 2 x 3-1/2 in. device box
Room for more wires
or 1 x 12 AWG · 0 x 10 AWG
How the volume adds up
| Item | Count | Each (cu in) | Total (cu in) |
|---|---|---|---|
| 12 AWG conductors | 4 | 2.25 | 9 |
| Ground wires (2), sized as 12 AWG | 1 | 2.25 | 2.25 |
| Receptacle (outlet) (12 AWG) | 2 | 2.25 | 4.5 |
| Total needed | 15.75 | ||
Which standard boxes pass?
| Box | cu in | Fill | Result |
|---|---|---|---|
| 3 x 2 x 1-1/2 in. device box | 7.5 | 210% | Too small |
| 3 x 2 x 2 in. device box | 10 | 158% | Too small |
| 4 x 2-1/8 x 1-1/2 in. handy box | 10.3 | 153% | Too small |
| 3 x 2 x 2-1/4 in. device box | 10.5 | 150% | Too small |
| 3 x 2 x 2-1/2 in. device box | 12.5 | 126% | Too small |
| 4 in. round/octagonal x 1-1/4 in. deep | 12.5 | 126% | Too small |
| 4 x 2-1/8 x 1-7/8 in. handy box | 13 | 121% | Too small |
| FS box, 1-3/4 in. deep, single gang | 13.5 | 117% | Too small |
| 3 x 2 x 2-3/4 in. device box | 14 | 113% | Too small |
| 3-3/4 x 2 x 2-1/2 in. masonry box | 14 | 113% | Too small |
| 4 x 2-1/8 x 2-1/8 in. handy box | 14.5 | 109% | Too small |
| 4 in. round/octagonal x 1-1/2 in. deep | 15.5 | 102% | Too small |
| 3 x 2 x 3-1/2 in. device box | 18 | 88% | Fits |
| FD box, 2-3/8 in. deep, single gang | 18 | 88% | Fits |
| FS box, 1-3/4 in. deep, multiple gang | 18 | 88% | Fits |
| 4 in. square x 1-1/4 in. deep | 18 | 88% | Fits |
| 3-3/4 x 2 x 3-1/2 in. masonry box | 21 | 75% | Fits |
| 4 in. square x 1-1/2 in. deep | 21 | 75% | Fits |
| 4 in. round/octagonal x 2-1/8 in. deep | 21.5 | 73% | Fits |
| FD box, 2-3/8 in. deep, multiple gang | 24 | 66% | Fits |
| 4-11/16 in. square x 1-1/4 in. deep | 25.5 | 62% | Fits |
| 4-11/16 in. square x 1-1/2 in. deep | 29.5 | 53% | Fits |
| 4 in. square x 2-1/8 in. deep | 30.3 | 52% | Fits |
| 4-11/16 in. square x 2-1/8 in. deep | 42 | 38% | Fits |
Where the box volume goes
Share of the total volume used by wires, grounds, devices and fittings.
Your need compared with standard boxes
Green bars are boxes that can hold 15.75 cu in. Gray bars are too small.
How many wires fit in each box?
Number of wires of one size that fit when the box holds nothing else. Devices, clamps and grounds take space away.
| Box | cu in | 14 AWG | 12 AWG | 10 AWG |
|---|---|---|---|---|
| 3 x 2 x 1-1/2 in. device box | 7.5 | 3 | 3 | 3 |
| 3 x 2 x 2 in. device box | 10 | 5 | 4 | 4 |
| 4 x 2-1/8 x 1-1/2 in. handy box | 10.3 | 5 | 4 | 4 |
| 3 x 2 x 2-1/4 in. device box | 10.5 | 5 | 4 | 4 |
| 3 x 2 x 2-1/2 in. device box | 12.5 | 6 | 5 | 5 |
| 4 in. round/octagonal x 1-1/4 in. deep | 12.5 | 6 | 5 | 5 |
| 4 x 2-1/8 x 1-7/8 in. handy box | 13 | 6 | 5 | 5 |
| FS box, 1-3/4 in. deep, single gang | 13.5 | 6 | 6 | 5 |
| 3 x 2 x 2-3/4 in. device box | 14 | 7 | 6 | 5 |
| 3-3/4 x 2 x 2-1/2 in. masonry box | 14 | 7 | 6 | 5 |
| 4 x 2-1/8 x 2-1/8 in. handy box | 14.5 | 7 | 6 | 5 |
| 4 in. round/octagonal x 1-1/2 in. deep | 15.5 | 7 | 6 | 6 |
| 3 x 2 x 3-1/2 in. device box | 18 | 9 | 8 | 7 |
| FD box, 2-3/8 in. deep, single gang | 18 | 9 | 8 | 7 |
| FS box, 1-3/4 in. deep, multiple gang | 18 | 9 | 8 | 7 |
| 4 in. square x 1-1/4 in. deep | 18 | 9 | 8 | 7 |
| 3-3/4 x 2 x 3-1/2 in. masonry box | 21 | 10 | 9 | 8 |
| 4 in. square x 1-1/2 in. deep | 21 | 10 | 9 | 8 |
| 4 in. round/octagonal x 2-1/8 in. deep | 21.5 | 10 | 9 | 8 |
| FD box, 2-3/8 in. deep, multiple gang | 24 | 12 | 10 | 9 |
| 4-11/16 in. square x 1-1/4 in. deep | 25.5 | 12 | 11 | 10 |
| 4-11/16 in. square x 1-1/2 in. deep | 29.5 | 14 | 13 | 11 |
| 4 in. square x 2-1/8 in. deep | 30.3 | 15 | 13 | 12 |
| 4-11/16 in. square x 2-1/8 in. deep | 42 | 21 | 18 | 16 |
Wire size volume table
Volume allowance for each conductor, from NEC Table 314.16(B).
| Wire size | Cubic inches | Cubic cm |
|---|---|---|
| 18 AWG | 1.50 | 24.6 |
| 16 AWG | 1.75 | 28.7 |
| 14 AWG | 2.00 | 32.8 |
| 12 AWG | 2.25 | 36.9 |
| 10 AWG | 2.50 | 41.0 |
| 8 AWG | 3.00 | 49.2 |
| 6 AWG | 5.00 | 81.9 |
Junction Box Sizing Calculator: Find the Right Electrical Box Volume
A junction box protects wire splices and connections while giving conductors enough room inside an approved enclosure. This junction box sizing calculator helps estimate the minimum box volume for a wiring layout. Enter the cables or individual conductors, wire sizes, grounds, devices, clamps, and fittings in the box. The calculator totals the required fill, compares it with standard box sizes, and shows whether a box you already have has enough volume.
The tool is designed for common outlet, device, and junction boxes using the box-fill method. It includes wire and cable presets, configurable conductor groups, grounding conductors, devices, internal clamps, fittings, metric volume conversion, standard box choices, custom box volume, and a visual fill summary. Use the result to organize a material list or perform a second check of your own count. It does not replace a current electrical code, inspection, product instructions, or the judgment of a licensed electrician.
Electrical rules depend on the code edition adopted by your local authority, the box type, conductor size, wiring method, and installation conditions. A small box can make splices difficult and can damage insulation or connections. A larger box may still be unsuitable if it is not listed for the location, wiring method, environment, or support arrangement. Always verify the box volume printed on the product and follow local requirements before installation.
What Is a Junction Box?
A junction box is an enclosure where conductors are joined, split, or routed onward. It can protect splices in a branch circuit, provide a point for connecting equipment, or keep conductors organized where several cables meet. Boxes may be metal or nonmetallic and can be designed for use inside a wall, on a surface, outdoors, in a damp area, or with a specific raceway system.
The enclosure must suit its job. A plastic device box installed in a dry wall cavity is not automatically suitable outdoors or for exposed conduit. A cast-metal box may have threaded entries and a cover gasket intended for a particular environment. The box, cover, fittings, cable connectors, and supports all need to be compatible with the wiring method and location. Check product markings and instructions instead of choosing a box by its shape alone.
A junction box must remain accessible where required. Hiding a splice behind finished drywall, flooring, or a permanent ceiling can make inspection and future repair difficult and may violate local rules. Plan the location so the cover can be reached after the project is complete, and do not rely on the box-fill calculator to check accessibility or mounting.
Box Volume and Box Fill Are Different Measurements
Box volume is the amount of usable space inside the enclosure, usually marked in cubic inches on the box or product information. Box fill is the amount of that space required by the conductors and other items that count under the applicable rule. The selected box must have enough usable volume for the calculated fill. A box's outside dimensions are not the same thing as its listed usable volume.
Some common metal box sizes have tabulated volumes. Many nonmetallic boxes and other enclosures have a volume marked by the manufacturer. Extensions and certain covers can add usable volume when they are marked and installed as part of the box assembly. Use the listed or marked volume for the actual products. Do not calculate an unmarked enclosure from its outer dimensions and assume the result is approved volume.
The calculator uses standard box volumes in its list and lets you enter a custom volume. Custom mode is useful when the box is marked with a volume that is not in the standard list. Enter the usable volume shown by the product maker, and include only additional volume that the applicable rules allow. A partition can divide a box into separate spaces, so each side may need to be considered independently.
How to Use the Junction Box Sizing Calculator
Start with a project preset that is close to your wiring layout, or create the conductor groups manually. For each cable or wire group, select the wiring type, conductor size, and quantity. A cable preset accounts for the insulated conductors and equipment grounding conductor associated with that cable. Individual conductors in a raceway can be entered separately. Review the displayed group details and edit the preset if your actual installation is different.
Add equipment grounds, devices, internal cable clamps, and other fittings that the applicable box-fill method requires you to count. A device mounted on a yoke can use volume even though it is not a separate cable. Internal clamps may count differently from external connectors. The calculator provides fields for these items so that the estimate is more complete than simply counting the insulated wires visible in a box.
Choose a standard box or enter the marked volume of a custom enclosure. The result shows total required fill, available volume, remaining space or shortfall, and the smallest listed box that meets the volume calculation. Switch between cubic inches and cubic centimeters to match a product label. Read the warnings and compare the output with your local code edition and the exact box instructions.
What Goes Into a Box Fill Calculation?
Insulated conductors entering a box and ending or splicing there generally count. Conductors that pass through without a splice can also count. The conductor size affects the volume allowance, so the number of wires alone is not enough. A box containing six 14 AWG conductors does not have the same calculated fill as a box containing six 10 AWG conductors.
Ground wires, device yokes, internal clamps, and certain support fittings can have their own allowances. The applicable code rules describe how to group or count them. Some small fittings do not need a separate volume allowance, while a terminal block or other equipment may have a specific rule. The calculator shows its line items so you can see which parts of your setup drive the result and correct the inputs if needed.
A wire loop or coil, a mixed-gauge ground group, a barrier, or multiple device gangs can change the count. Special boxes and wiring methods can have additional requirements. This calculator covers common box-fill scenarios, but not every possible installation. If your setup includes unusual equipment, large conductors, multiple compartments, or a special enclosure, consult the applicable code article and a qualified electrician.
Wire Size, Ground Wires, and Devices
Conductor size is usually shown in AWG in the United States. As the wire gets larger, it takes more room in the box-fill calculation. Select the actual wire size printed on the cable or specified on the plan; do not guess from the breaker size. Cable types such as 14/2 and 12/3 describe different conductor arrangements, and the equipment grounding conductor is handled separately from insulated current-carrying conductors in the fill calculation.
Grounding conductors provide a path for fault current and must be connected as required. The box-fill method may group equipment grounds for volume counting, but that grouping is only a calculation rule. It does not mean that grounds can be omitted, left unconnected, or combined in a way that breaks grounding continuity. Isolated grounding conductors or bonding jumpers can also require separate consideration depending on the installation and applicable rules.
Devices such as switches and receptacles take up space. Large GFCI, AFCI, dimmer, smart, or combination devices can be especially crowded even when a basic box-fill calculation passes. The device's listed installation instructions and box-depth requirements still matter. A box with adequate calculated volume may be awkward to wire if it is shallow or packed with stiff conductors, so allow working room where the design permits.
Worked Example: Choosing a Box by Volume
Imagine a common branch-circuit junction with two 12/2 cables, splices, and no device yoke. Begin by identifying the two insulated conductors in each cable, the grounding conductors, and any internal clamps. Then apply the volume allowances for the relevant conductor size and other items under the code edition used by your jurisdiction. The calculator performs this count after you enter the actual cable and box details.
Suppose the result reports a required fill of 13 cubic inches. A standard enclosure marked 12.5 cubic inches would be too small for that estimate, while one marked 15.5 cubic inches would provide more volume. This example is only meant to show how a calculated fill is compared with available volume. The actual result depends on every conductor, device, clamp, fitting, and box volume in the job.
A number barely above the minimum does not automatically make installation easy. Consider conductor length, stiffness, connector size, device depth, and how the wires will fold into the box. Do not use a smaller enclosure because the wires seem to fit, and do not add unmarked volume from an accessory. Use the marked box capacity and the code calculation as the starting point for selection.
Standard Boxes, Marked Boxes, and Extension Rings
Standard metal boxes may be listed with a volume in a code table when their trade dimensions match the table. For other boxes, check the manufacturer's volume marking, often printed or embossed inside a nonmetallic box. Some products include removable tabs, adjustable brackets, or a cover that changes the usable configuration. Follow the box instructions and use the volume for the exact configuration you intend to install.
An extension ring or plaster ring can provide additional volume when the product is permitted for that use and its volume is identified as required. Include only the volume that belongs to the assembled box. The cover must fit correctly, and the ring cannot be treated as a general fix if the box is not listed for the wiring method or location. If the device or conductors still do not fit comfortably, choose a suitable larger enclosure.
For custom boxes, enter the marked volume rather than length times width times depth unless the manufacturer specifically provides that usable-volume method. Internal barriers or dividers may reduce or divide the available space. Boxes exposed to weather, concrete, dust, corrosive conditions, or physical damage may need a particular enclosure rating and fittings in addition to adequate volume.
When Box-Fill Rules Are Not the Only Sizing Rule
The usual box-fill calculation is not the only rule that can determine enclosure size. Larger conductors may trigger separate bending-space requirements. Pull boxes and junction boxes for raceway systems can have conductor-pulling dimensions that depend on raceway size, entry direction, and pull type. A box-fill result does not check those dimensions, wire-bending space, heat, support, grounding and bonding, or enclosure suitability.
Some electrical equipment has its own listed enclosure and installation instructions. Motor terminal housings, lighting equipment, control equipment, low-voltage systems, hazardous locations, and outdoor installations may follow additional requirements. Do not apply an ordinary device-box result to a large pull box or industrial enclosure without checking the rule written for that equipment and wiring method.
If conductors are 4 AWG or larger, if the box is a pull box, or if the enclosure has multiple compartments or unusual fittings, stop and check the applicable code sections and manufacturer instructions. A licensed electrician or electrical inspector can help identify which calculation applies. The result on this page is a box-fill estimate for common wiring boxes, not a complete electrical design review.
Common Junction Box Sizing Mistakes
The first common mistake is counting cable jackets instead of the conductors and fittings that the box-fill rules require. The second is treating all wires as the same size. Confirm how many conductors are in each cable, their gauge, and whether there are devices, internal clamps, or grounding conductors to include. A preset is only correct when it matches the actual wiring plan.
Another mistake is using a box's outside dimensions as its usable volume or assuming a cover adds space without a marked rating. Check the volume marking and include only listed accessories that are allowed in the calculation. If a box is too small, use a suitable larger box or a permitted extension; do not force the conductors behind the device or leave a splice outside the enclosure.
Finally, do not confuse adequate volume with a complete code-compliant installation. The box needs a proper cover, secure mounting, suitable connectors, grounding and bonding, accessibility, and an environmental rating appropriate to the location. Keep power isolated while work is performed and have electrical work checked by a qualified person as local rules require.
Check the Code Edition Adopted in Your Area
Electrical codes are updated periodically, but a newly published edition does not take effect everywhere on the same date. States, cities, and other authorities may adopt different editions or local amendments. This calculator's underlying box-fill allowances are based on the 2023 NEC wording. NFPA has since published the 2026 edition, so do not assume this estimate represents every newer rule. Before relying on a result for permitted work, compare it with the edition and amendments your authority having jurisdiction currently enforces.
The NFPA identifies NFPA 70 as the National Electrical Code and publishes edition and jurisdiction information. Check the adopted rules with your local building or electrical department and consult the actual code text when a detail is unclear. A calculator can help with arithmetic, but it cannot decide which edition applies to a property or resolve every interpretation question.
Frequently Asked Questions
How do I calculate the right junction box size?
Count the conductors, grounds, devices, clamps, and fittings required by the applicable box-fill rules. Compare the required volume with the marked or tabulated volume of a suitable box.
How many wires can fit in a junction box?
It depends on wire size, box volume, grounds, clamps, devices, and other fittings. Enter those details in the calculator to estimate required box fill.
Where can I find a junction box's volume?
Check the volume marking on the box or its product information. Standard metal boxes may use tabulated volumes when their dimensions match the applicable table.
Do ground wires count toward box fill?
Yes. Grounding conductors have a volume allowance under applicable box-fill rules. The exact counting method depends on the adopted code edition and wiring configuration.
Do wire nuts count in junction box fill?
Small splicing connectors are generally not assigned a separate conductor-volume allowance under the box-fill method, but other box and wiring requirements still apply. Check the locally adopted code.
Can an extension ring provide more box volume?
A permitted extension ring can add volume when its rating is marked and it is installed as part of the approved assembly. Follow the product instructions and local requirements.
Does a passing box-fill result mean the installation is compliant?
No. It only checks the inputs and volume method represented by the calculator. Accessibility, box type, wiring method, grounding, support, environment, and other rules also matter.
Does this calculator size pull boxes for large wires?
No. Pull boxes and boxes with large conductors may have separate bending-space and dimension rules. Consult the applicable code section and a qualified electrician.