Quick answer
A junction box is a metal or plastic enclosure that holds wire splices and connections, keeping them covered, supported and away from building materials that could catch fire.
Every splice in a building wiring system belongs in a listed box with a cover. The box must stay reachable without tearing out drywall or other finished surfaces.
Quick facts
The key facts about Junction Box, with sources:
Key takeaways
- A junction box contains splices so heat or sparks stay inside a closed enclosure.
- Every box needs a cover, and unused holes must be closed 4.
- A box can only hold so many wires; the NEC sets a cubic-inch allowance per wire, 2.00 in³ for 14 AWG and 2.25 in³ for 12 AWG 1.
- Boxes must stay accessible; burying one behind drywall is a code violation.
- Loose splices in boxes are a classic source of heat, especially with old aluminum wire 7.
What a junction box does
Wires in a home are joined at splices. A splice is where heat builds up if anything is loose. A junction box puts that weak point inside a closed container, so a hot connection does not touch wood, insulation or paper.
The term covers boxes that only hold splices. Boxes that also hold an outlet or switch are usually called device or outlet boxes, but the same fill and access rules apply. The metal-box standard, UL 514A, covers outlet boxes, device boxes, floor boxes, extension rings, covers and conduit bodies 3.
Splices inside use listed wire connectors. OSHA requires splicing devices "identified for the use" and insulation equal to the wire's own 5.
How a junction box protects the circuit
Cable or conduit enters through a knockout and is clamped so it cannot pull loose. Inside, wires are joined with connectors. The cover then closes the box.
With metal boxes, the box is bonded to the equipment ground, so a loose hot wire touching the box trips the breaker instead of leaving the box live. If metal covers are used, they must be grounded too 4.
The box's volume matters. Each wire, device, clamp and group of grounds uses some of it. Too many wires crowd the splices, trap heat and get nicked when the cover goes on.
- Cables or conduitclamped at knockouts
- Spliceslisted wire connectors
- Ground wiresbonded to box if metal
- Coverrequired on every box
- Mountingsecured to framing
- Accessreachable without demolition
Source: [4]
Types of electrical boxes
| Type | Material | Common use |
|---|---|---|
| 4-inch square box | Steel | Splices, conduit runs, with a mud ring for a device |
| Octagon / round box | Steel or plastic | Ceiling lights and splices |
| Single-gang device box | Plastic or steel | One outlet or switch |
| Fan-rated ceiling box | Steel or plastic, marked for fans | Ceiling fans |
| Weatherproof box | Cast metal or PVC | Outdoor outlets and lights |
| Pull box / conduit body | Metal or PVC | Pull points on long conduit runs 3 |
| Old-work (remodel) box | Plastic with clamps | Added into existing walls |
Worked example: is this box big enough?
A box-fill example using the NEC 314.16(B) counting rules as explained by EC&M: each wire counts once, internal clamps count once, a device yoke counts twice, and grounds count once 1. A single-gang box holds two 12/2 cables, a switch and an internal cable clamp.
| Item | Count | Allowance | Volume |
|---|---|---|---|
| 12 AWG current-carrying wires | 4 | 2.25 in³ each | 9.00 in³ |
| Internal clamp | 1 | 2.25 in³ | 2.25 in³ |
| Switch on a yoke | 2 (counts double) | 2.25 in³ | 4.50 in³ |
| Ground wires (all count as one) | 1 | 2.25 in³ | 2.25 in³ |
| Total needed | 18.00 in³ |
Example only. An 18.0 in³ box passes; a 12.5 in³ box is too small. Newer NEC editions count more than four grounds differently, so check the edition in force. Plastic boxes are stamped with their volume, so the check is the label versus the total.
Where junction boxes are found
- Attics and basements, where circuits branch or old wiring meets new.
- Behind ceiling lights and fans.
- At the end of every cable run to an outlet or switch.
- Along conduit runs as pull points.
- Beside furnaces, water heaters and appliances that are hard-wired.
- Where a rewiring job ties new circuits into old ones.
What junction boxes do well, and their limits
What it does well
- Contain heat and sparks from a failed splice.
- Hold cables firmly so connections are not pulled loose.
- Give a grounded metal shell for fault current.
- Leave splices reachable for testing and repair.
Where it falls short
- Only as good as the splices inside.
- Overfilled boxes run hotter and damage insulation.
- Hidden boxes are hard to find when something fails.
What a box cannot fix
A box does not make a bad splice good. Loose or wrong connectors still overheat inside. CPSC lists junction boxes among the places where failing aluminum wire connections cause fire hazards 7.
A box also cannot be hidden. Once drywall or paneling seals it in, a fault becomes a search through walls. That is why access is a code rule, not a nice-to-have.
What drives the cost of junction box work
Adding or moving a box is usually a small part of a larger job. The drivers are access (open attic versus finished wall), number of circuits involved, whether the box must be fan- or weather-rated, and any drywall patching.
Boxes rarely wear out. Splices and connectors inside are what age, especially in heat.
We publish no dollar figures without dated quotes. See cost drivers and electrical repair.
How an electrician adds a junction box
For context only; this is licensed work and usually needs a permit.
- Turns off and verifies the circuit is dead with a tester.
- Picks a box rated for the spot and large enough for the fill.
- Mounts it to framing so it stays reachable.
- Clamps cables, makes splices with listed connectors, bonds grounds.
- Installs the cover and tests the circuit.
- Has it inspected where a permit applies.
Safety and risk
Do not open junction boxes. Boxes can hold wires from more than one circuit, so switching off one breaker may leave others live. Open splices, missing covers or a box that is warm or smells hot need a licensed electrician.
What an owner can check without opening anything
- Every box in the attic, basement and garage has a cover on it.
- No wire splices taped together and left loose outside a box.
- No box buried by insulation in a way that hides where it is.
- Cover plates are not warm, cracked or discolored.
Warning signs and when to call a pro
- Open splices hanging in an attic or crawlspace, often from past DIY work.
- Lights or outlets that work on and off, which can mean a loose splice in a box.
- Scorch marks, melted plastic or a hot smell near a box.
- An arc fault breaker that keeps tripping on one circuit.
- Any smoke or burning smell: call an emergency electrician or 911.
Rules and standards
| Authority | Rule | What it says |
|---|---|---|
| NFPA | NEC 2023, 314.16 8 1 | Box volume must meet the fill calculation |
| NFPA | NEC 314.29 2 | Boxes must be accessible without removing building finish |
| OSHA (workplaces) | 1910.305(b)(2)(i) 4 | Covers on all pull boxes, junction boxes and fittings |
| OSHA (workplaces) | 1910.305(b)(1)(ii) 4 | Unused openings effectively closed |
| UL Standards & Engagement | UL 514A, Ed. 12 3 | Metallic outlet boxes, covers, conduit bodies |
NEC adoption varies by state and town; local amendments may add rules.
Junction box vs related enclosures
| Enclosure | Holds | Typical spot |
|---|---|---|
| Junction box | Splices only | Attic, basement, ceiling |
| Device box | Outlet or switch plus splices | Walls |
| Conduit body | Pull point and bends on conduit | Exposed runs |
| Electrical panel | Breakers and bus bars | Garage, basement, utility room |
| Subpanel | Branch breakers fed from main panel | Garage, addition, outbuilding |
Common misconceptions
- Myth Taped splices in the attic are fine if nobody touches them.
- Reality Every splice needs a covered, listed box; OSHA and the NEC both require covers 4.
- Myth You can drywall over a box once it works.
- Reality Boxes must stay accessible; a box buried behind permanent finish breaks NEC 314.29 2.
- Myth Any box holds any number of wires.
- Reality Fill is limited by volume; each wire uses a set allowance 1.
- Myth Plastic boxes are less safe than metal.
- Reality Listed plastic boxes are common and safe; they need a ground wire to devices instead of bonding the box.
How your state affects box rules
Box fill and access rules come from the NEC, but which edition applies depends on where you live, and some towns add amendments. NFPA tracks edition adoption 9. Licensing also decides who may open and change boxes.
When junction boxes matter to you
Junction boxes become your concern when you buy an older home, finish a basement or find loose splices in the attic. A home inspector often flags missing covers and open splices. Ask an electrician to fix them before walls close.
Run the free electrical safety check to see what else to look for, and read about home electrical safety.
Decision guide
Finishing a basement or attic? Before drywall, have every box confirmed as reachable and covered. Moving a box later costs far more than placing it right now.
Questions about Junction Box
What is the purpose of a junction box?
A junction box encloses wire splices so heat or sparks from a bad connection stay inside a closed box instead of reaching wood or insulation. It also holds cables firmly, gives a grounded shell in metal versions, and keeps splices reachable for testing and repair. Codes require one for every splice in building wiring.
Can a junction box be covered with drywall?
No. The NEC requires boxes to stay accessible without removing part of the building finish, such as drywall or paneling. A blank cover plate flush with the wall is fine.
Hiding a box makes faults hard to find and is a common inspection failure in finished basements. If you are finishing a space, mark every box location on a photo of the framing before the drywall goes up.
How many wires can go in a junction box?
The wire count is set by the box volume and the wire size. Each 14 AWG wire uses 2.00 cubic inches, 12 AWG uses 2.25 and 10 AWG uses 2.50.
Devices count double, and clamps and grounds add allowances. The total must not exceed the volume stamped on the box or listed in the NEC table.
Do junction boxes need a cover?
Yes. OSHA requires covers on all pull boxes, junction boxes and fittings, and the NEC has the same rule. If the cover is metal, it must be grounded. Unused openings must be closed too.
A missing cover leaves splices exposed to touch, dust and pests. Workplace rules add that unused openings in boxes must be effectively closed 4, and the same idea applies at home.
Can you put a junction box in an attic?
Yes, and attics are a common spot. The box must be secured to framing, covered and reachable. Electricians avoid burying boxes deep under insulation where no one could find them.
Attic heat makes good connections more important, since heat speeds up wear on splices. Before adding attic insulation, ask the installer to flag each box with a marker or board so it can still be found later.
What is the difference between a junction box and an outlet box?
A junction box holds only splices. An outlet or device box also holds a receptacle, switch or light. Both follow the same fill, mounting and access rules.
Many boxes can serve either role; what goes in them decides the name. On a quote, "j-box" usually means a splice-only box, while "device box" means one that will hold an outlet or switch.
Are plastic junction boxes safe?
Listed plastic boxes are safe for many indoor uses and are common in homes. They do not conduct, so the ground wire connects to devices rather than to the box.
Metal boxes are used with metal conduit, in some fire-rated walls and where more strength is needed. Plastic boxes are stamped inside with their cubic-inch volume, which makes the fill check easy for an inspector.
Why does a junction box get warm?
A warm box usually means a splice inside is loose, overloaded or corroded, which adds resistance and heat. That is a fire warning sign. Turn off the circuit at the breaker if you can do so safely and call an electrician.
Do not open the box yourself. A warm box is also a reason not to reset a tripped breaker on that circuit again until it has been checked, because the heat source is still there.
Do I need a permit to add a junction box?
Often yes, since it is new wiring work. Rules vary by town; some allow minor repairs without a permit, others require one for any change. A licensed electrician knows the local rule and pulls the permit.
Inspectors check fill, access and grounding. If a seller or past owner added boxes without a permit, a buyer's inspection may flag them, so keep the paperwork with the house records.
Sources
- EC&M, "Stumped by the Code? NEC Requirements for Sizing Boxes for Conductor Fill" (2014 NEC basis), retrieved .
- VIOX Electric, NEC Junction Box Requirements: 314.16, 314.23, 314.29 Accessibility and Box Fill, retrieved .
- UL Standards & Engagement, UL 514A Metallic Outlet Boxes, retrieved .
- OSHA, 29 CFR 1910.305 Wiring methods, components, and equipment, retrieved .
- OSHA, 29 CFR 1910.303 General requirements (splices), retrieved .
- Open Exam Prep, Outlet and junction box volume fill calculations (NEC 314.16), retrieved .
- U.S. CPSC, Repairing Aluminum Wiring (Publication 516, June 2011), retrieved .
- NFPA, NFPA 70 National Electrical Code, retrieved .
- NFPA, NEC enforcement maps, retrieved .
Expert review
Written by the HyreElectrical Research team. Not yet reviewed by an outside expert. We say so rather than imply a review that has not happened; see our editorial policy.
How the numbers were checked: OSHA text and UL 514A scope read at source; box-fill counting rules from EC&M; per-gauge allowance chart from a published NEC 314.16 study guide; 314.29 accessibility from VIOX; CPSC Publication 516 read in full.
Suggest a correction. We fix errors and say what changed.