Menu

We independently review everything we recommend. When you buy through our links, we may earn a commission. As an Amazon Associate we earn from qualifying purchases.

How To

How to Fit a Smart Switch Into a Shallow Wall Box

Owen Bradley Owen Bradley Aug 8, 2026 9 min read 1 views

You buy the switch, kill the breaker, wire everything correctly — and then the device will not go into the wall. A shallow electrical box switch fit is one of the most common and most infuriating obstacles in home automation, because smart switches are physically much deeper than the mechanical toggles they replace. Older metal boxes, boxes set in plaster, and gang boxes shared with two or three other devices simply run out of room. This guide covers measuring what you actually have, freeing up usable space, adding an extender or a deeper box, and choosing slim hardware that fits without a fight.

Shallow electrical wall box with conductors before fitting a smart switch

Why Smart Switches Need So Much Room

A mechanical toggle is essentially a spring and two contacts on a metal strap, roughly an inch deep. A smart switch packs a relay, a power supply, a radio module, an LED indicator array and often a dimming circuit into the same footprint, which pushes the body to around 1.5 to 2 inches deep and much wider from side to side. It also cannot be squeezed: forcing the body against conductors risks abrading insulation and traps heat that shortens the electronics’ life.

Electrical code also limits how much you may put inside a box, expressed as box fill. Every conductor, every device and every ground counts toward a cubic-inch allowance. A shallow box that legally held a toggle and three conductors can be over-filled the moment you add a bulkier device, regardless of whether it physically closes.

Common Shallow Box Types

Old metal handy boxes are frequently only 1.5 inches deep. Plaster-era boxes set flush to the lath are often shallower still. Retrofit “old work” plastic boxes vary widely, and gang boxes shared between a switch and a dimmer lose usable volume to the neighbouring device’s body. Knowing which you have tells you whether the fix is trimming wires or replacing the box.

Tools and Materials

  • Tape measure or a depth gauge to record actual usable depth.
  • Non-contact voltage tester and insulated screwdrivers.
  • Wire strippers, lineman’s pliers and a wire nut assortment, including compact push-in connectors.
  • A box extender ring matched to your box style and gang count.
  • A drywall saw and an old-work box if a full replacement is needed.
  • Electrical tape and a headlamp so both hands stay free.

Compact lever-style connectors are worth buying specifically for this job. They occupy noticeably less volume than twisted wire nuts and let you re-open a connection without cutting conductors shorter each time.

Step-by-Step: Making the Switch Fit

  1. Cut power and verify. Switch the breaker off, prove your tester on a known-live outlet, then confirm the box is dead. Do this before any measuring, because you will be reaching into the box repeatedly.
  2. Measure the real depth. Remove the existing switch and measure from the back of the box to the front edge of the drywall, not to the box lip. In many walls the box sits recessed, giving you a little extra depth you did not know about. Record the width too, since some smart bodies are wide as well as deep.
  3. Compare against the switch specification. Every manufacturer publishes a body depth. Add roughly half an inch for folded conductors behind the device. If your measured depth is less than that total, you have a genuine fit problem rather than a tidiness problem.
  4. Reorganise the conductors first. Before buying anything, try tidying. Replace bulky wire nuts with compact connectors, push spliced bundles into the back corners of the box rather than the centre, and fold each conductor accordion-style so it collapses flat instead of coiling. This alone solves a surprising number of cases.
  5. Trim over-long conductors carefully. Code requires at least six inches of free conductor from the point it enters the box and at least three inches outside the box face. Trim only excess beyond that, and never cut so short that a future repair becomes impossible.
  6. Fit a box extender if you are still short. An extender ring bolts to the existing box and pushes the mounting plane forward to the wall surface, adding usable volume for the device body. Choose one that matches your gang count and secure it with the supplied longer screws. This is the standard, code-recognised fix for a device that protrudes.
  7. Replace the box if the deficit is severe. Where you are more than an inch short, an extender will leave the device proud of the wall. Cut the drywall carefully, remove the old box, and fit a deep old-work box that clamps to the drywall. Support the cable properly and keep the opening tight so the flanges grip.
  8. Mount and test. Fold conductors flat, seat the device square, and drive the mounting screws evenly so the strap does not twist. Restore power, test manual operation, then complete app pairing. Confirm the plate sits flush without pressure before calling it done.

Finished wall switch plate sitting flush after box extender installation

Choosing Hardware That Fits

The easiest fix is buying a device designed for tight boxes in the first place. Body depth varies dramatically between families, and some manufacturers publish a dedicated slim or low-profile line for retrofits. Look for a stated depth under about 1.4 inches and a body that narrows toward the rear, which lets conductors pass alongside rather than behind.

Relay-only designs are typically shallower than dimmers because they omit the heat sink and the phase-control circuitry. If you do not need dimming at a particular location, an on-off device from the best smart light switches selection will almost always fit where a dimmer will not. Comparing physical dimensions across the best smart switches before purchase saves the return trip entirely.

The Bulb and Remote Alternative

When a box is genuinely hopeless — no ground, no room, and no easy access to replace it — leave the wiring alone. Fit a conventional device from the best light switches range, keep it permanently on, and put smart bulbs in the fixture with a battery-powered paddle mounted over the plate. You get the same daily experience with no box fill problem at all, and it is fully reversible in a rental.

Safety and Code Considerations

Box fill is not bureaucratic fussiness. Overfilled boxes trap heat, stress connections, and damage insulation when the device is pushed home. Count your conductors honestly: each current-carrying conductor counts once, all grounds together count as one, and a device counts as two conductors of the largest size present. If the arithmetic fails, the answer is a bigger box, not a harder push.

Never remove a box’s clamps or knockouts to gain room, and never cut the device’s strap or heat sink fins to make it fit. Both destroy the listing that makes the installation legal and safe. If the box has no ground conductor, most smart switches cannot be installed at all, since many rely on ground as part of their power or noise path.

Troubleshooting

The plate will not sit flush. The device is proud of the wall. Either conductors are bunched behind the body or the box is too shallow. Refold the wires first; fit an extender if that does not resolve it.

The switch behaves erratically after installation. Compressed conductors may be pressing on the body or a connection has loosened during mounting. Power down, pull the device, and retighten every terminal.

The device runs warm. Some warmth is normal for a dimmer near its rated load, but a hot body in a cramped box signals poor heat dissipation. Reduce the load, switch to a relay-only device, or increase box volume.

Screws will not reach. Extenders shift the mounting plane forward, so use the longer screws supplied with the ring rather than the originals. Do not substitute drywall screws.

Mistakes to Avoid

The biggest mistake is forcing the device home and calling it a success because the plate closed. Damaged insulation inside a hot box is a fire risk that shows up years later. Second is trimming conductors far too short in a bid to save space, which leaves nothing to work with next time. Third is ignoring the neighbouring device in a multi-gang box — two bulky bodies compete for the same volume, so plan the whole gang at once. If several rooms need retrofitting, check dimensions across the best wifi switches and pick one family that fits your smallest box.

Frequently Asked Questions

How deep does a box need to be for a smart switch?

Most need at least two inches of usable depth, and dimmers often more. Always check the published body depth for the specific model and add room for folded conductors behind it.

Is a box extender code-compliant?

Yes, listed extension rings are a recognised solution for devices that would otherwise protrude, and they add counted volume. Use one rated for your box material and secure it with the supplied hardware.

Can I replace a shallow box without opening the wall?

Usually yes. An old-work box clamps to the drywall through the same opening, though you may need to enlarge the hole slightly and ensure the cable has enough slack to reach the new deeper body.

What if there is no ground wire?

Most smart switches require one. Options are running a new cable, having an electrician add a ground, or moving to smart bulbs with a remote. Full procedure details are covered in how to install a smart light switch.

Final Thoughts

A shallow box is a solvable problem, and the order of operations matters: measure the real depth, tidy and refold the conductors, then add an extender, and only replace the box if the deficit is genuinely large. Buy hardware to suit your smallest box rather than hoping the biggest device squeezes in, and treat box fill limits as a hard constraint rather than a suggestion. Get that sequence right and every switch in the house will sit flush, run cool, and still be serviceable when you open it again in 2026 or later.

9