Can you have a junction box behind drywall?
Similarly one may ask, can a junction box be in a wall?
A junction box, also known as a splice or switch box, is an electrical enclosure inside your home that contains wiring. Electrical wires run behind the walls and through the ceiling of your home, meeting at junction boxes. It is a safety hazard to completely bury a junction box in a wall.
Secondly, can a junction box be inside a cabinet? Yes, it would be against code to have a cabinet cover the junction box. Anywhere you connect wires to wires, or wires to fixtures, the connection needs to be accessible. Since your cabinet would be permanently affixed to the wall and covering the junction box, it wouldn't be allowed.
Subsequently, one may also ask, are junction boxes illegal?
2 Answers. You cannot cover any junction box that still has live wires in it. Your best bet is to either remove the box all together or just put a cover plate on it. If there are live wires in the box, sooner or later you will need to get to the box again, which you can't do if you've covered it over!
Can you use a junction box to extend wiring?
If you do need to extend the wires, yes, a junction box would be needed. It must remain accessible. You've pretty well identified your two choices; if you don't want to re-run longer cables, you'll need to splice in some additional cable.