No. In a typical bathroom, the cable feeding a vanity or wall light does not run the full length of the fixture opening in the open behind the drywall. A single cable enters the wall near the fixture location, usually through a junction box, and the fixture's own wiring takes over from there.
The "whole length" appearance comes from fixtures with long backplates and integrated raceways or housings, not from a continuous electrical run buried behind the wall.
Understanding what's actually behind the wall matters most when you're replacing a fixture, because older installations sometimes lack a proper junction box entirely. That single detail determines whether the swap is a fifteen-minute job or a drywall repair.
What a Normal Bathroom Light Installation Looks Like
A code-compliant bathroom light is fed by one branch-circuit cable—usually 12- or 14-gauge nonmetallic sheathed cable (Romex) or armored cable—that terminates inside an electrical box mounted to a framing member or secured with a remodeling clamp. That box is typically a standard 4-inch round or octagonal box, or a fan-rated box if the location supports a fan, set flush with the finished wall surface.
From the box, the fixture's own factory wiring—often a short pigtail of black, white, and ground leads—connects to the house wiring with wire nuts. The fixture body then mounts over the box, and its canopy or backplate covers the opening. The connections live inside the box; the fixture adds nothing beyond its own internal leads, which are usually a few inches long.
The key principle is that electrical splices must be enclosed. The National Electrical Code requires connections to be contained in an approved box or in the fixture's listed enclosure. You cannot have wire nuts floating in the wall cavity, and you cannot have a cable emerge from drywall and run exposed into a fixture with no enclosure around the splice. That's why the single-entry-point model exists: one box, one splice, one fixture.
So when the question is whether the wiring runs "the whole length" behind a vanity bar, the answer is no—the cable stops at the box, and the rest of the space behind that long fixture is empty wall cavity.
Why Long Vanity Fixtures Make It Look Like Continuous Wiring
Wide vanity bars and multi-light fixtures—often 24 to 48 inches across—have large backplates that suggest a long wiring run sits behind them. In reality, these fixtures are usually designed with a single center knockout where the cable enters from the box behind the middle of the fixture, and the fixture's internal wiring distributes power to each socket from that one connection point.
Some fixtures are built differently. A linear fixture might have a metal housing or channel that runs the fixture's full length and houses the socket wiring, factory-installed. That internal channel is part of the fixture's listed assembly, not house wiring, and it doesn't require a junction box along its length. From the wall's perspective, you still have one cable entering near the center.
This distinction matters when you're mounting something new. If you're hanging a 36-inch bar over a vanity and the existing box is centered, you're in good shape. If the box is offset—say, near one end because a previous fixture was smaller—the new fixture's backplate may not cover the box, or the fixture's knockout may not line up.
In that case, you either choose a fixture whose mounting footprint covers the box, or you relocate the box, which means opening the wall.
The Older-Home Exception: When There's No Box at All
In homes built before the 1980s—and in some slapdash renovations since—it's fairly common to find bathroom vanity lights wired with no junction box behind them. Instead, a sheathed cable emerges from a hole roughly the size of a quarter in the drywall, and the fixture itself was designed with a fully enclosed metal housing that served as the splice enclosure. The fixture's housing functioned as the box.
The cable entered, the connections were made inside the fixture's metal body, and the whole assembly was mounted to the drywall with anchors rather than to framing.
This arrangement was common enough that electricians routinely encounter it. It's also why removing such a fixture reveals an unwelcome surprise: the splice was inside the old fixture, so once you take it down, you're left with a bare cable end and no box. The connections can no longer be enclosed, and the installation is no longer compliant.
If you find this situation, you have a few paths:
- Install a remodeling (old-work) box through the existing hole. A shallow round old-work box with a clamp can often be fished in through a slightly enlarged opening, anchored to the drywall, and the cable secured into it. You may need to enlarge the hole modestly, but the new fixture's backplate typically covers the repair.
- Choose a fixture with a built-in enclosure that allows the cable to be pulled directly into the fixture's housing, matching the original design intent. This is only acceptable if the fixture is listed for that use and the cable sheath reaches fully inside.
- Open the wall and install a proper box on framing if the cable is too short to reach any box face or if the existing hole is too far off-center.
The determining factor is how much cable slack exists behind the drywall. If there's enough sheath to pull into a box or a fixture housing with the outer jacket intact, the fix is straightforward. If the cable is stapled tight just inside the wall, cutting and adding a box becomes a drywall project—and occasionally, a call to an electrician if the cable is damaged or the circuit can't be safely extended.
How the Circuit Actually Routes in a Bathroom
A bathroom's lighting circuit doesn't snake along behind the vanity wall waiting to be tapped at multiple points. It follows the framing. Cable runs through stud bays, up into the attic or ceiling cavity, or down from a source, and it terminates at each device—switch, receptacle, or light—via a box.
Vanity lights are often fed from a circuit that also serves the bathroom's other lights and the exhaust fan. A common layout: power comes from the panel to a switch box near the door, then a switched leg runs up into the wall cavity and across to the vanity light box.
If there are two vanity lights, one on each side of a mirror, they may be fed by a cable that hops from one box to the next through the wall cavity—but even then, the cable runs from box to box, not continuously behind the fixture's full width.
Bathroom receptacles are required to be on a 20-amp circuit, and that circuit may or may not include the lighting depending on code cycle and local amendments. This is why you sometimes see a vanity light that stays on when the GFCI trips—it's on a different circuit.
If you're replacing a fixture and the breaker doesn't kill the light, don't assume the circuit is dead; test at the fixture with a non-contact tester and a multimeter before touching any wires.
What You'll See When You Remove an Existing Fixture
Take down a vanity light and one of three things is behind it:
- A proper box—round or octagonal, mounted to a stud or secured with a clamp, with the cable entering through a connector and the splice visible inside. This is the modern, compliant setup. Replacement is a direct swap: turn off the breaker, disconnect the fixture leads, remove the mounting strap, and reverse the process with the new fixture.
- A cable through drywall with no box—the older arrangement described above. The old fixture's housing was the enclosure. You'll need to add a box or select a fixture that encloses the splice.
- A box that's too small, recessed too deep, or damaged—sometimes a shallow box was used, or the box has pulled loose from its mounting. A recessed box can sometimes be brought forward with a box extension ring; a damaged or undersized box may need replacement, which is a bigger job.
In all three cases, confirm the cable's condition. Rodent damage, heat damage from an old incandescent fixture, or nicked insulation from a previous install all argue for having an electrician evaluate the circuit before you reconnect anything.
Fixture Types and What Each Expects Behind the Wall
Different bathroom fixtures place different demands on the wall behind them, and knowing the fixture type tells you what to expect.
Vanity bar lights with a wide backplate usually have a single center knockout and a mounting strap that screws to the box or to the wall. They expect a box roughly centered behind the fixture. Most are designed for a standard 4-inch box, and the strap's slots accommodate minor offset.
Sconces mounted beside a mirror are typically smaller and may use a box offset from the fixture's visual center. They still require a box, and the box must be accessible through the fixture's backplate.
Integrated LED fixtures often come with a driver and a mounting plate that expects a box. Some have a shallow profile that makes a standard 4-inch box tight; check the fixture's instructions for minimum box depth and volume. Box fill rules matter here—too many conductors in too small a box is a real code violation, not a technicality.
Light-and-fan combinations and exhaust fan/light units require a fan-rated box, which is larger and secured more robustly because the fixture's weight and vibration demand it. A standard light box is not adequate for a fan.
Mirror-integrated lights and backlit mirrors usually have a built-in driver and a mounting bracket that expects a box; the wiring is still a single entry point, but the clearance behind the mirror can be very shallow, so box depth and cable routing need to be planned before purchase.
When the Wiring Genuinely Does Run Along the Wall
There are legitimate cases where cable runs horizontally through the wall behind a vanity, and they're worth recognizing so you don't misread what you find.
If the bathroom has multiple switched fixtures on one circuit—say, a vanity light on the left, a vanity light on the right, and a ceiling light—the cable may run from box to box horizontally through the stud bays. Each box is a termination point, but the cable does travel the length of the wall between them.
This is normal and doesn't mean the wiring is exposed; it's inside the wall cavity, stapled to studs, and it only becomes accessible at each box.
Similarly, if a receptacle is added near the vanity, the cable may run from the light box down to the receptacle box, again through the wall cavity. The cable is continuous between boxes, but it's not continuous behind the light fixture itself.
The distinction is between cable run through the wall cavity (normal, hidden, code-compliant) and cable or splices exposed behind a fixture with no enclosure (not compliant, and the thing to watch for during a replacement). The first is expected; the second is the surprise.
Practical Checks Before You Buy a Replacement
Before purchasing a new bathroom fixture, a few checks save an extra trip and a drywall patch.
Measure the existing box location relative to where the new fixture will sit. If the new fixture's backplate won't cover the box, you'll need to relocate the box or pick a different fixture.
Confirm the box type and size. A standard 4-inch round box accepts most vanity lights. A fan-rated box is needed for any fixture with a fan. Note the box depth—some integrated LED fixtures need more room than a shallow box provides.
Check the cable slack. With the old fixture removed, see whether the cable sheath reaches out past the drywall face. If it does, a remodeling box is feasible. If not, plan for a fixture that can enclose the splice or for opening the wall.
Verify the circuit. Turn off the breaker, confirm with a tester, and note whether the bathroom light shares a circuit with the receptacles or the fan. If the existing wiring lacks a ground, a modern fixture with a grounded metal housing will need a ground path—either a grounding conductor in the cable or, in some cases, a GFCI-protected circuit and a fixture listed for ungrounded installation, though this varies by code cycle and jurisdiction.
Check box fill. Count the conductors, grounds, and clamps entering the box and compare against the box's marked volume. A larger fixture doesn't change box fill, but adding a dimmer or a smart switch upstream can.
What "Wired the Whole Length" Usually Means in Practice
When people ask whether bathroom light fixtures are wired the whole length behind the wall, they're usually reconciling two observations: a wide fixture with a long backplate, and a cable that seems to emerge somewhere along it. The resolution is that the cable enters at one point—typically the center—and the fixture's internal design handles the rest. The wall cavity behind the fixture's remaining width is empty.
The exception worth remembering is the older no-box installation, where the fixture housing itself served as the splice enclosure and the cable entered through a bare drywall hole. That's the setup that turns a simple fixture swap into a box installation.
Recognizing it before you start—by removing the old fixture carefully and looking at what's behind it—lets you buy the right parts in one trip and avoid reconnecting anything that isn't properly enclosed. If the cable is short, damaged, or the box situation is unclear, having a licensed electrician look at it is cheaper than guessing.