The National Electrical Code (NEC) dictates that no wiring splices are allowed outside of an approved enclosure. Any standard outlet, switch box, or light fixture box can serve as an approved enclosure, but where a wiring splice needs to occur in other locations along the circuit, the approved enclosure is usually a junction box. A junction box is simply a standard electrical box that is mounted securely to house framing or another structure, containing the connection (splice) of two or more circuit cables. The cables are secured to the box with cable clamps (or conduit connectors, if the circuit includes conduit), and the box must have a removable cover to create a complete enclosure. Junction box covers must remain accessible; they cannot be covered with drywall or other surface material.
A junction boxes is most often used where an electrical circuit branches off in two or more directions from a location where an outlet or fixture is not practical. It is also a common solution when an electrical circuit is being extended.
Make sure to buy a junction box appropriate for your installation. Outdoor locations, for example, require a weatherproof junction box with gaskets to prevent moisture intrusion. And make sure the junction box is large enough for the number of wiring connections you will be making. For example, the smallest 2 x 4 x 1 1/2-inch deep box can comfortably splice only two cables (four or five conducting wires), while the largest 4 x 4 x 2 1/8-inch-deep boxes can handle as many as four to six cables (up to 18 individual conducting wires). For easy installation, many DIYers choose the largest box that is practical for the application.
Watch Now: How to Install an Electrical Junction Box
Equipment / Tools
- Non-contact voltage tester
- Hammer (for a metal box)
- Pliers (as needed for a metal box)
- Drill-driver and screwdriver tip
- Wire strippers (as needed)
- Code-approved electrical box with cover
- Cable clamps (as needed for a metal box)
- Wood screws
- Wire connectors
Shut off the Power and Test the Wires
Turn off the power to the circuit you'll be working on by switching off the appropriate circuit breaker in your home's service panel (circuit breaker box). Test all of the wires you'll be working on with a non-contact voltage tester. The test should confirm that no voltage is present in any of the wires.
Remove a Knockout (Metal Box Only)
If you're using a metal box, remove a knockout on the box for each cable that will enter the box. Use a screwdriver and hammer to break out each knockout (metal disc), then twist off the metal knockout disk with pliers.
Clamp Each Cable
Install a cable clamp for each cable, as needed. Standard plastic electrical boxes do not have knockouts and contain internal cable clamps. Metal boxes usually have internal clamps; if yours does not, install a locknut-type clamp for each cable. Insert the threaded end of the clamp through a knockout hole and secure the clamp inside the box with the ring-shaped nut. Tighten the nut with pliers.
Mount the Box
Separate the circuit wires at the existing splice and loosen the cables as needed to make room for the new junction box. Anchor the box to the framing (or other support structure) with screws driven through the factory-made holes in the back or side of the box, as applicable.
Secure the Cables
Feed the cables through the clamps and into the box. The cable sheathing (outer jacket) should extend 1/4 to 1/2 inch into the box beyond the clamp, and the individual conducting wires should extend about 6 inches into the box. If necessary, trim the wires as needed and strip 3/4 inch of insulation from the end of each wire, using wire strippers.
Secure the cables by tightening the screws on the clamps, being careful not to overtighten and damage the cables. Plastic boxes usually have spring-tabs for clamps and do not require tightening.
- Note: The ends of the individual wires should be clean, straight, and undamaged, with no more than 3/4 of exposed wire beyond the insulation. Trim any damaged wires and/or strip insulation as needed, using wire strippers.
Join the Wires
Join the wires together with approved wire connectors, following the manufacturer's instructions:
Join the bare copper (or green insulated) ground wires together first. If the box is metal, add a pigtail—a 6-inch length of the same type of ground wire—to the ground wire connection, then connect the loose end of the pigtail to the ground screw on the box. Special green wire nut connectors are generally used to join the grounding wires together.
Join the white (neutral) wires together, then join the black (hot) wires together, using a wire nut or other approved connector for each wire pair. If there are red (hot) wires, join them together, as well. Confirm that all wires are secure by gently tugging on each wire.
Finish the Job
Carefully fold the wires into the box. Install the box cover, securing it with two screws. Code requires that the cover must be a solid "blank" without holes. Restore power to the circuit by switching on the circuit breaker.