Junction boxes are enclosures that house wire splices, protecting the connections from damage and keeping them accessible for future service instead of buried behind a wall or ceiling. Electricians install them anywhere wires are spliced, tapped, or terminated, whether that's mid-run in an attic, at a fixture location, or wherever a circuit branches to feed multiple outlets. Local electrical code generally requires that any splice be enclosed in a box with a cover rather than left exposed, and that the box remain accessible rather than permanently concealed behind finished surfaces. HVAC and plumbing trades also use junction boxes for equipment connections, such as wiring a condensing unit, exhaust fan, or water heater element, where the box protects the splice from moisture and physical damage. Box size needs to account for the number and gauge of conductors entering it, since code sets minimum interior volume requirements based on wire count and size.
Subcategories
Buying Guide
Box size should be worked out from the number and gauge of conductors that will actually enter it, since electrical code sets a minimum interior volume per conductor and an undersized box is a common rough-in mistake that fails inspection. Material choice generally follows the wiring method already in use on the job: metal boxes pair naturally with metal conduit and provide a grounding path through the box itself, while nonmetallic boxes are common with NM cable in residential work. Location drives a few other decisions: a box in a damp or outdoor location needs a weatherproof rating with gasketed covers and sealed conduit fittings, while a ceiling fixture or fan location calls for a round, fan-rated box that can support the added weight. Junction boxes for HVAC and water heater connections are frequently exposed to vibration or moisture near the equipment, so a sealed or weatherproof box is worth the small extra cost even in a location that's technically indoors. Cover selection depends on what's inside the box: a blank cover suits a splice-only box, while a device cover is needed if a switch or receptacle mounts to the same box. Confirming the box remains accessible after finishes go on, rather than getting sealed behind drywall, is a code requirement that's easy to overlook during a fast rough-in.
Frequently Asked Questions
Can a wire splice be left without a junction box if it's inside a wall?
No. Code generally requires every splice to be enclosed in an approved box with a cover, and that box needs to stay accessible rather than being permanently covered by drywall or another finished surface.
How is junction box size determined?
Electrical code sets a minimum interior volume based on the number and gauge of conductors entering the box, along with any devices or clamps inside it. Undersized boxes are a common rough-in error that shows up during inspection.
When does a junction box need a weatherproof rating?
Any box installed outdoors, in a damp location, or exposed to spray or moisture, such as near an HVAC condensing unit, needs a weatherproof box with gasketed covers and sealed conduit entries. A standard indoor box loses its protection if installed in one of these locations.
Can a standard box support a ceiling fan?
Not unless it's specifically rated for fan support. A standard lighting box isn't built to handle the weight and vibration of a ceiling fan, so a fan-rated box is needed at that location.
What's the difference between metal and nonmetallic junction boxes?
Metal boxes provide a grounding path through the box itself and pair naturally with metal conduit, while nonmetallic boxes are common with NM cable in residential wiring. The choice usually follows whichever wiring method is already used on the rest of the job.