I just removed two bathroom vanity lights to replace them and discovered that there was no junction box behind either. One light was mounted over a stud and the other was right next the a stud.

At first I thought I could use old work pancake boxes, but the problem is that in both cases, the in-wall wiring runs directly over the stud. So there's not really room to even fit a pancake box in there. I could move the entire fixture to the left or right, but then my fixture is off center and I'll have a hole to patch where it used to be mounted which might not even be possible since the romex runs over the stud where drywall would need to go.

Any ideas on how to proceed?

(Also curious why the romex would even be run like this instead of through the studs? It is an exterior 2x6 wall, FWIW).

enter image description here enter image description here

  • You could carefully notch the stud and sink a pancake box into the stud. It won't be fun but it's doable.
    – vini_i
    Jul 23, 2017 at 1:36

2 Answers 2


Someone cheated pretty bad here. They probably busted the hole in the wall, fished the line, and then it looks like they used the ring for mounting the fixture to the box to just drywall screw it into the wall.

Not code. Not safe. Not smart.

You have a stud behind it so you could use a pancake box (could only find 30 packs online but your local big box should have individuals for sale)

Note that this one has clamps built in, but you can buy them with 1/2" knockouts as well (just use a NM clamp with those). You can then mount the ring to it and then put the fixture back up. Thankfully it's a cheap fix (I bet the box costs no more than $2)

  • Remember that a pancake box as shown usually is the thickness of the sheetrock so mounting to stud will bring it flush to wall covering. Jul 23, 2017 at 20:31

Surface mounted boxes are your friend here

What I'd do in this (admittedly awkward) scenario is use a surface mounted pancake box screwed to the stud through the drywall and feed the cable into that through a cableclamp and back-of-box KO, then mount the fixture to the pancake box. It'll stick out slightly, but it beats sparky splices lighting your studs up!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.