Key takeaways
- Anyone retrofitting a single smart switch or dimmer into an existing wall opening needs a single-gang box rated for the wiring method already in that wall, while new construction or a remodel with open stud bays allows more flexibility to…
Anyone retrofitting a single smart switch or dimmer into an existing wall opening needs a single-gang box rated for the wiring method already in that wall, while new construction or a remodel with open stud bays allows more flexibility to choose a deeper box that makes room for bulky smart-switch electronics and wiring.
A single-gang smart box refers to a standard one-switch-width electrical box sized and configured to accommodate a smart switch, dimmer, or outlet, which typically contains more internal electronics and wiring bulk than a basic mechanical switch. Because smart switches often need extra depth for their circuit boards, and sometimes need a neutral wire that older installations may lack, box selection and wiring compatibility matter more here than with a standard switch replacement.
Why Box Depth Matters for Smart Switches
Standard single-gang boxes installed decades ago were sized for simple mechanical toggle switches and may not have the depth or interior volume for a smart switch’s circuit board, especially models with built-in Wi-Fi or Bluetooth radios. Electrical codes specify a minimum cubic-inch volume per device and per wire based on box size, so cramming a smart switch’s bulk into an undersized box alongside the required wire count can violate code and make safe wiring difficult.
Deeper boxes, sometimes described as “deep” or “extra-capacity” single-gang boxes, give extra room for the smart switch body and the wire splices or wire nuts needed for the neutral and traveler wires many smart switches require. Builders and electricians installing smart lighting from scratch frequently choose deep boxes specifically for this reason, rather than a standard-depth box used for a basic switch.
Material and Mounting Options
Plastic (PVC/Nonmetallic) Boxes
Nonmetallic boxes are common in residential new construction with nonmetallic sheathed cable wiring, are lightweight, and typically cost less than metal equivalents. They are designed for use with cable wiring systems rather than conduit, so they are generally not the right choice in a building that requires metallic conduit by code.
Metal (Steel) Boxes
Steel boxes are used where conduit wiring methods are required or preferred, such as in many commercial buildings, garages, or basements, and they provide a grounding path through the metal itself in addition to any dedicated ground wire. Metal boxes are also more common in older homes that were originally wired with conduit or armored cable.
Old-Work (Retrofit) Boxes
Old-work boxes are designed to be installed into an existing finished wall without access to the stud behind it, using ears or wings that tighten against the drywall rather than nailing to a stud. These are the most relevant type for anyone retrofitting a smart switch into a home that already has drywall finished, since cutting open the wall to install a new-work box is rarely practical for a single switch swap.
New-Work Boxes
New-work boxes nail or screw directly to a wall stud and are used when the wall is open during construction or a full remodel, giving more structural stability than a retrofit box. These are the better choice whenever stud access is already available, since they mount more securely than retrofit hardware.
At a Glance: Single-Gang Smart Box Types Compared
| Type | Best For | Key Stated Specs | Limits |
|---|---|---|---|
| Deep plastic old-work box | Retrofitting a smart switch into existing drywall with cable wiring | Extra cubic-inch volume, drywall-clamp ears, no stud access needed | Not for conduit-required wiring methods; plastic only grounds via a separate wire |
| Standard-depth plastic old-work box | Simple smart switches with minimal internal bulk | Standard cubic-inch volume, drywall-clamp ears | May be too shallow for bulkier smart switches with large circuit boards |
| Deep metal new-work box | New construction or open-stud remodels using conduit | Extra depth, stud-mount ears, integral grounding path | Requires open wall access; heavier to install than plastic |
| Metal retrofit box | Existing conduit-wired walls needing a smart switch upgrade | Drywall-clamp or bracket mounting, metal grounding path | More involved installation than plastic retrofit boxes |
Wiring Compatibility Notes
Many smart switches require a neutral wire at the switch location to power their internal electronics, which older homes wired before a certain era may not have run to every switch box. Before buying any smart switch, and by extension sizing the box for it, checking for a neutral wire in the existing box (or being prepared to run one) is a necessary step, since this is a wiring issue independent of box size.
Box fill calculations, which determine how many wires and devices can legally occupy a given box, are based on the box’s cubic-inch capacity as stamped on the box itself, and this capacity should be checked against the number of conductors, wire nuts, and the device itself per the governing electrical code. A licensed electrician or a careful reading of the National Electrical Code’s box-fill tables is the reliable way to confirm a specific box is adequate for a specific smart switch installation, rather than estimating by eye.
Wall thickness also affects which retrofit box style fits properly; most old-work boxes are designed for standard half-inch drywall, and unusually thick wall finishes may need a box with a longer clamp-ear travel or a different retrofit design entirely.
Pick This If…
| If your situation is… | Pick this |
|---|---|
| Retrofitting one smart switch into finished drywall | A deep plastic old-work box, provided the wiring method is cable, not conduit |
| Installing during new construction or an open-wall remodel | A deep new-work box matched to the home’s wiring method (plastic for cable, metal for conduit) |
| Working in a home with conduit wiring | A metal box, new-work or retrofit depending on wall access |
| Unsure whether a neutral wire is present | Pause and check the existing box first; box choice will not solve a missing-neutral problem |
| Installing a particularly bulky smart dimmer or switch | The deepest code-compliant box available for the wiring method in use |
A Few Alternatives Worth Considering
For anyone not ready to rewire or swap boxes at all, a plug-in smart outlet or smart bulb is a box-free alternative that adds smart control without touching the wall wiring, though it does not replace a wired smart switch’s reliability or ability to control hardwired fixtures. A smart switch model specifically designed to work without a neutral wire is another alternative for older homes, avoiding the need to run new wiring, though the available selection and features are more limited than neutral-required switches. Where a single-gang box genuinely cannot accommodate a bulky smart switch even at maximum depth, a licensed electrician can assess whether a larger box or a different wiring approach is the more appropriate fix rather than forcing an undersized installation.
Frequently Asked Questions
How do I know if my existing switch box has a neutral wire?
After turning off power at the breaker and confirming with a non-contact voltage tester, a bundled white wire capped separately inside the box (rather than connected to the switch) usually indicates a neutral is present. If unsure, a licensed electrician can confirm this safely rather than guessing based on wire color alone.
Can a standard-depth box be used for any smart switch if the wiring fits?
Not necessarily; even if wires fit, the box’s cubic-inch capacity must legally accommodate the switch body plus every conductor and device per code box-fill rules, and bulkier smart switches often exceed what a standard-depth box allows. Checking the box’s stamped volume against the switch manufacturer’s space requirements avoids this problem.
Is a plastic or metal box better for a smart switch installation?
Neither is universally better; the correct choice depends on the wiring method already used in the structure, since plastic boxes pair with cable wiring and metal boxes are typically required with conduit systems. Mixing the wrong box type with an incompatible wiring method is a common code violation.
Do smart switches generate more heat than standard switches, requiring extra box ventilation?
Smart switches do generate some heat from their internal electronics, which is part of why manufacturers often recommend deeper boxes with adequate airflow rather than tightly packed shallow boxes. Following the switch maker’s specific installation and ventilation guidance is the safest approach rather than assuming any box will do.
Can I install a smart switch retrofit box myself, or should I hire an electrician?
Many homeowners handle simple retrofit box and switch swaps themselves, but anyone unfamiliar with safely cutting power, identifying wiring, and following local code should hire a licensed electrician, especially if a neutral wire needs to be run or the existing wiring looks damaged or outdated. When in doubt about wiring safety, professional installation is the more cautious choice.
What size opening does a single-gang retrofit box need in the drywall?
The manufacturer provides a template or stated cutout dimensions for each specific box model, and using that exact template avoids an opening that is too large for the clamp ears to grip securely. Cutting freehand without the manufacturer’s template is a common cause of a loose-fitting retrofit box.
Keep reading
- Best 30 Amp Spider Box: Picks and What to Look For (2026)
- Best 10 Hp Single Phase Motor: Picks and What to Look For (2026)
- Best Outdoor Storage Box under $150: Picks and What to Look For (2026)
- Best 100 Percent Sunglasses: Picks and What to Look For (2026)
- Best Ceiling Mount Vanity Light: Picks and What to Look For (2026)
- Best Nema 7 Explosion Proof Enclosure: Picks and What to Look For (2026)