Building & Construction

Junction Box

Updated August 11, 2026

Code-governed enclosure that houses wire splices and connections, sized by NEC Article 314 box-fill rules and required to stay accessible. Burying one behind drywall fails inspection.


A junction box is the enclosure where electrical wires meet, splice, and change direction, and it exists because a bare splice in a wall cavity is a fire waiting for a loose joint. When a connection arcs, the box contains the heat and keeps it off the framing, which is why the National Electrical Code requires every splice in a finished building to happen inside a listed box. In a man cave it shows up everywhere a new circuit feeds the room: where the branch to the bar fridge joins the dedicated circuit running from the panel, and where conduit runs make a turn.

The code numbers are the practical part. Article 314 of the NEC governs boxes, and 314.16(B) tells you how much volume each wire occupies: a 14 AWG conductor counts as 2.0 cubic inches, 12 AWG as 2.25, 10 AWG as 2.5, and larger wires more. Every conductor that enters the box and terminates or passes through counts once, the equipment grounding conductors together count as a single volume, and a device such as a switch or receptacle counts double, so the arithmetic decides whether a given box holds the wires in it. A standard 4-inch-square metal box 1.5 inches deep, the 4-square or 1900 box of the trade, fits nine 12 AWG conductors with nothing else inside, and the same math applies to the PVC boxes that dominate residential work.

A junction box is not the same thing as an outlet box, though the same hardware does both jobs. The outlet box backs a receptacle or switch and sits at the device; the junction box covers a splice with no device, and the rule that really differs is that every box must stay accessible. NEC 314.29 requires the wiring inside to be reachable without removing any part of the building, so a junction box buried behind drywall is a violation an inspector will flag, and the in-wall wiring running through the room has to obey the same rule.

How box-fill arithmetic works

The calculation lives in NEC 314.16(B) and its Table 314.16(B). Add the volume allowances: each conductor that enters the box and terminates or splices there counts once, each pass-through counts once, and a pigtail that originates and ends inside counts zero. All the equipment grounding conductors together count as one allowance, sized by the largest of them; internal cable clamps add one allowance; and a yoke carrying a device counts double the largest conductor on it. Wire nuts, locknuts, and bushings do not count at all, a point the 2026 NEC made explicit.

The result sizes the box. Sum the allowances and the box must have at least that much marked cubic-inch volume, because the number stamped inside the box is the ceiling, not a suggestion. For runs of 4 AWG and larger the rules shift to 314.28, which sizes pull boxes by raceway diameter, eight times the largest raceway for straight pulls and six times plus sums for angle pulls. For the 14, 12, and 10 AWG work in a man cave, 314.16 is the whole game, and it is why you cannot stuff twelve wires into a box stamped for nine and call it done.

Junction box vs. outlet box vs. pull box

The one-line difference: a junction box houses splices, an outlet box backs a device, and a pull box gives a hand room to pull big conductors. The first consequence is labeling, not hardware: a 4-inch square box serves as junction, outlet, or pull depending on what is in it and how it is mounted. The second consequence is sizing, because the rules differ by job: a box holding a device counts that device double, and a box holding only a splice does not, which is why two apparently identical boxes can legitimately hold different amounts of wire.

The practical distinction for a homeowner is accessibility. An outlet box is accessible by definition because a device lives on it; a junction box is only accessible if you leave it reachable, which means a blank cover on a wall or ceiling, not a box sealed behind drywall. If you do not want a blank cover, do not splice in the wall: extend the run instead, or put the splice in a box that stays open, such as in an attic or at the electrical panel. The rule is unforgiving because the failure mode is invisible.

Where the rule came from

The junction box is older than the Code itself, but the Code is what standardized it. The National Electrical Code, first published by the National Fire Protection Association in 1897, has governed enclosures through Article 314 for well over a century, and every edition since has required accessible, correctly sized boxes with covers. The volume-allowance system in 314.16(B) dates to the era when boxes were built to tight dimensions, and the table approach let an inspector verify a box by arithmetic instead of judgment.

The 2026 edition settled one long-running dispute when it stated explicitly that splicing connectors, the wire nuts and push-in connectors of everyday residential work, are not counted in box fill, alongside locknuts and bushings. The Code is adopted into law in all 50 states, though local amendments govern on the job, and the practical effect is stable: a splice in a box, a box that holds what its volume allows, and a cover that stays reachable. That is the contract that turns a wall full of wire into a build an inspector will pass.

Common mistakes

Burying a junction box in the wall. The classic error and the one that fails inspection: a splice made behind drywall with no way to reach it, which 314.29 prohibits. Fix it by putting the box where a blank cover is acceptable, or by not splicing in the wall at all.

Overfilling the box. Twelve wires in a box stamped for nine is a heat problem and a code violation, and the fix is the arithmetic above, done before the drywall goes up. When in doubt, step up to a deeper box or add a second box, because the marked volume is a ceiling, not a suggestion.

Splicing with no box at all, or hiding a box where a cover cannot go. Wire twisted together in a cavity, or a box sealed behind a cabinet, both fail the same way, invisibly and unrecoverably. The fourth is attaching a cover with drywall or sheet-metal screws, which 314.25 rejects because machine screws are required, so the cover holds under tension instead of stripping out. Fix each with the one right part, and the framing stays fire-safe for the life of the room.

Frequently asked questions

What is a junction box?

A junction box is an enclosure where electrical wires meet, splice, and change direction, required by the National Electrical Code for every connection in a finished building. It contains a splice so that heat and arcing from a loose joint stay off the framing. Sizing follows NEC Article 314, which assigns each conductor a cubic-inch volume and requires the box to hold what its marked volume allows. Every box must stay accessible without removing part of the building.

Can you bury a junction box in a wall?

No. NEC 314.29 requires the wiring in a box to be accessible without removing any part of the building, so a junction box sealed behind drywall fails inspection. An outlet box is fine because the device makes it accessible, but a splice box needs a reachable blank cover on a wall or ceiling. If you do not want a blank cover, extend the run instead of splicing, or place the box in a space that stays open, such as an attic.

How many wires fit in a junction box?

It depends on wire size and what else is inside. NEC 314.16(B) assigns 2.0 cubic inches to each 14 AWG conductor, 2.25 to 12 AWG, and 2.5 to 10 AWG, and a box must have at least as much marked volume as the sum of its allowances. A 4-inch-square metal box 1.5 inches deep holds nine 12 AWG conductors with no device. Pigtails do not count, but each device counts double its largest conductor.

Can you splice wires without a junction box?

No. The National Electrical Code requires every splice in a building to happen inside a listed box, and a bare splice in a wall cavity is a fire risk because a loose joint can arc against framing. The box contains the heat and keeps the connection reachable. Even a quick repair in a wall needs a box and a cover, and the box must be sized for the wire inside it. There is no code-compliant way to splice in a wall without an enclosure.

What is the difference between a junction box and an outlet box?

Function, not hardware. An outlet box backs a switch or receptacle and sits at the device, so it is accessible by definition. A junction box covers a splice with no device, and it must stay reachable through a blank cover or in an open space. A 4-inch square box can serve either role depending on what is in it. The sizing rules differ too: a box holding a device counts that device double toward box fill, while a splice-only box does not.

Related terms

Building & Construction

Conduit

Metal or plastic tubing protecting wiring as a mechanical raceway. Exposed conduit on brick or concrete delivers an industrial loft look, but its core job is fire safety and code compliance.

Building & Construction

In-Wall Wiring

Low-voltage cable inside walls and ceilings for speakers, data and control, governed by NEC Article 725. Must be CL2/CL3 rated, separated from line-voltage, and firestopped at penetrations.

Building & Construction

Dedicated Circuit

A branch circuit wired to power only one outlet or appliance, with a breaker sized to that single load and nothing else sharing the line.

Building & Construction

GFCI Outlet (Ground Fault Circuit Interrupter)

A wall receptacle that trips in 25 milliseconds when it senses a 4 to 6 milliamp leak to ground, required by code in bathrooms, kitchens, basements, garages, and any room within six feet of a sink.

Building & Construction

Electrical Panel Upgrade

Replacing a home's main breaker panel with a higher-capacity, safer unit, typically 100A to 200A or more, so it can carry a home theater, kegerator, mini-split, or EV charger without tripping.

Audio/Visual & Tech

Cable Management

Organising, routing, bundling, labelling, and concealing AV cables to ensure fire-code compliance, signal integrity, and a clean result, using raceways, trays, sleeves, velcro, and in-wall pathways.

Building & Construction

Framing

Studs, plates, and headers that form a wall's wood skeleton, spaced and sized to carry the loads above it before drywall goes up.

Read more about Junction Box