Calculate electrical box fill requirements per NEC 314.16(A). Determine proper box size for wire configurations and devices to ensure safe, code-compliant installations.
Last updated: March 2026
Total Volume Needed
15.75 in³
Recommended Box
4" × 2-1/8" Round/Octagonal
Junction box sizing is a critical electrical safety requirement governed by the National Electrical Code (NEC) Article 314. Boxes must be large enough to safely contain all conductors, splices, and devices inside them while preventing damage to wire insulation and maintaining safe heat dissipation. Oversized boxes are safer; undersized boxes can cause dangerous heat buildup and insulation damage.
Box fill calculations follow precise rules under NEC 314.16(A). Each conductor, ground wire, device, and cable clamp takes up a specific volume based on the wire size. The total volume required must not exceed the box's interior volume. Different box types (round, octagonal, square) and sizes have different volume ratings, typically ranging from 12.5 cubic inches to 42+ cubic inches.
Understanding box fill is essential for electricians and DIY installers to ensure installations are safe, code-compliant, and pass inspection. Improper box fill can lead to failed inspections, safety hazards, fire risks, and voided warranties. This calculator applies the standard NEC table 314.16(A) to determine the correct box size for any wiring configuration.
This calculator assumes all conductors are the same gauge. Real NEC calculations require separate volume allocations for different wire sizes in the same box. Internal clamps are counted as one regardless of quantity; in practice, multiple clamps may require separate counting. This tool provides a simplified estimation for single wire-gauge scenarios. For mixed-gauge installations or complex configurations, consult the complete NEC 314.16(A) table or a licensed electrician. Always verify results against current NEC requirements and local electrical codes before installation.
Follow these steps to determine proper box sizing:
Each wire size requires specific volume per box fill unit:
Sizing a box for a typical light switch installation with 12 AWG wire:
Pigtails are wires that originate and terminate entirely within the box (not crossing the box boundary). They do NOT count toward box fill, which helps save space in small boxes.
All ground wires count as a SINGLE volume allowance. Use the volume for the largest ground wire present. This is one of the few instances where multiple items count as one.
No. Small fixture wires (18-16 AWG) are typically not counted in box fill calculations if they're only used for connecting fixtures. Check local code for specifics.
Always defer to your local electrical code and jurisdiction requirements. Some areas have stricter rules than NEC. Consult a licensed electrician if unsure.
While oversized boxes are safer, you still cannot overstuff them. Wires must be able to fit without damage and maintain proper insulation integrity. Use good judgment and neatness.
Undersized boxes can cause: failed inspections, heat buildup and insulation damage, fire risks, short circuits, and warranty voidance. Always size boxes correctly—they're inexpensive compared to the risks.
NEC Article 314.16(A) is the minimum baseline for branch circuits. Local jurisdictions may enforce stricter requirements. This calculator is educational only. Licensed electricians are required for permit-required installations. Improper box fill creates fire hazards, fails inspections, and voids warranties. Consult with your local building authority and a licensed electrician.
Related Tools
Calculate electrical values.
Calculate conduit wire capacity.
Calculate electrical box capacity.
Calculate motor full load current.
Calculate light bulb spacing.
Calculate energy use intensity.