A junction box has one job: to keep a wire connection enclosed, so that a loose splice cannot be touched, soaked or set alight. The boxes sold online fall into three groups. Sealed plastic enclosures, rated IP65 to IP68, protect outdoor connections and small electronics such as a camera power supply, a network switch or an irrigation controller. Small in-line boxes join two cable ends in a garden or under a deck. And galvanized steel boxes with knockouts are the traditional housing for building wiring behind walls and ceilings. We ranked the junction boxes in our tools catalog by size inside and out, ingress protection rating, material, how cables enter, what hardware is included, and what hundreds of owners report after installing them.
We have not installed every one of these ourselves; the verdicts rest on the spec sheets and the owner review history. Prices are not printed because they change daily; every button opens the live Amazon page. Mains wiring must follow your local electrical code, and a licensed electrician is the right call if you are unsure. For tidying the cables that go into a box, see our cable ties and cable management guide, and for the cameras these enclosures often serve, our PoE security camera systems guide.
How we picked
- Enclosures that hold connections. Box extenders, cutting tools and plumbing outlet boxes were left out.
- Stated inside and outside dimensions, because the inside is what your parts must fit.
- A stated ingress protection rating for the outdoor boxes, from IP65 to IP68, or steel construction with knockouts for indoor boxes.
- Hardware in the box. Cable glands, gaskets, screws and mounting plates counted in a pick’s favor.
- Owner feedback from a couple of hundred to many hundreds of reviews, with leaks, cracked lids and misleading sizes noted.
The picks
ABS Plastic Dustproof Waterproof IP65 Junction Box Hinged Shell Universal Electrical Project Enclosure Gray, with PC Transparent Clear Cover 8.7 x 6.7 x 4.3inch(220 x170 x110mm)

This gray ABS enclosure is the all-rounder, and many hundreds of owners give it an excellent owner rating. It is rated IP65, which means dust-tight and protected against water jets, enough for rain and sprinklers on an outside wall. The body is ABS and the lid is transparent polycarbonate on a hinge, held shut by plastic latches you flip by hand, so you can open it without a screwdriver and see status lights on whatever is inside without opening it at all. The inside measures about 8.0 by 6.0 by 4.1 inches, room for a camera power supply, a small network switch, a relay board or a timer, and the whole box weighs 560 grams. The walls are blank: there are no entry holes or glands, so you drill where you need them and add your own fittings, sealing each one. The latches are the weakest part, and IP65 does not mean it can sit in a puddle. For general outdoor projects, start here.
- Many hundreds of owner reviews with an excellent owner rating
- Clear cover lets you check indicator lights without opening
- Hinged lid with hand latches, no screws to lose
- Useful mid size for power supplies and controllers
- No cable entry holes or glands supplied; you drill your own
- Plastic latches are the part to treat gently
- IP65 resists rain and jets, not submersion
QILIPSU UL94-V0 Outdoor Electrical Box Waterproof Junction Box Weatherproof PC/ABS Alloy Plastic IP66 Project Electric Enclosure Grey Hinged Door

When the job is housing equipment, not just a splice, the QILIPSU is the box to buy, and hundreds of owners give it the highest rating in this guide. It measures 13.8 by 9.9 by 5.9 inches outside, big enough for a PoE switch, a router or a satellite internet power supply with their power bricks and a loop of spare cable. The shell is a PC/ABS alloy that the maker says is stronger than ordinary ABS and rated UL94-V0, a flammability grade meaning the material stops burning quickly; that describes the plastic and is not the same as a safety listing for the whole box. A hinged door closes it and a solid mounting plate inside gives you something to screw equipment to. The plastic drills cleanly for glands. The title says IP66 while one feature line says IP67, so treat it as IP66. For a camera system or outdoor network gear, it is the right size.
- Highest owner rating on this page
- Flame-retardant PC/ABS alloy, tougher than plain ABS
- Mounting plate makes it easy to fix equipment inside
- Big enough for a switch, power bricks and spare cable
- Listing is inconsistent about IP66 versus IP67
- Internal size is in a drawing, not the text, so check before buying
- Costs several times as much as the small boxes
Helunsi IP68 Waterproof External Junction Box, 2 Way Outdoor Junction Box

The Helunsi is a different kind of junction box: a slim in-line capsule for joining one cable to another outdoors. It carries an IP68 rating, the top of the scale, and the maker describes it as weatherproof, dust-proof and UV resistant, for use in sun, rain and snow and for installation on a wall or underground. Each box has one cable gland at either end, a polycarbonate shell and a silicone gasket under a lid that closes with screws. The inside is small, 2.83 by 1.89 by 1.26 inches, enough for a connector block and a single splice, and the pack contains two. Hundreds of owners give it a very strong owner rating, with garden lighting, pond pumps and gate motors the common uses. Its seal is only as good as the fit of the glands, so use round cable in the stated diameter range and tighten firmly. For a garden cable join, it is the right tool.
- IP68 is the highest water rating in this guide
- Glands grip and seal the cable at each end
- Mounts on a wall or goes in the ground, per the maker
- Hundreds of owner reviews with a very strong owner rating
- Small interior fits one splice and little else
- Seal depends on tightening glands onto round cable of the right diameter
- Two-way only; no branch connections
Junction Box, 2 Pcs Reserved Holes Electrical Boxes Waterproof IP65 ABS Plastic Electrical Power Cord Enclosure Project Box White 3.9 x 3.9 x 2.8 inch(100x100x70mm)

This pair of white 100 millimeter boxes is the tidy answer for a connection under an eave or beside a door. Each is a square ABS enclosure, 3.9 by 3.9 by 2.8 inches outside with 2.5 millimeter walls, rated IP65 against rain, dust and splashing. The sides have reserved positions for cable entries that stay sealed until you open them, so you drill only the holes you need and the rest of the box remains closed. The pack includes four M24 cable glands, two for each box, and eight stainless steel lid screws, which will not rust and stain a white wall. Hundreds of owners give it a very strong owner rating, and the white color is a frequent reason for choosing it, since most enclosures are gray. The lid is held by four screws, so it is not a box to open daily, and the interior suits connector blocks and small modules only.
- Reserved-hole design: open only the entries you need
- Four M24 glands and stainless screws included
- White finish blends with soffits and trim
- Hundreds of owner reviews with a very strong owner rating
- Screw-down lid, slower to open than a hinged box
- Opening the reserved holes takes a drill or step bit
- Too small for power supplies
Copkim 8 Pcs 4 x 4 Inch Metal Electrical Junction Box

The Copkim pack is the only traditional building-wiring box in this guide: eight galvanized steel boxes in the standard 4 inch square size, about 2-1/8 inches deep, with a stated capacity of 30.3 cubic inches each. Capacity matters because electrical codes limit how many conductors and devices a box of a given volume may hold. The sides carry eight half-inch knockouts and four combination knockouts, and the bottom three half-inch and two combination, so conduit or cable connectors can enter from almost any direction. A couple of hundred owners give it an excellent owner rating, mostly from garage, basement and workshop projects. These are open boxes: covers, device rings, clamps and connectors are bought separately, and bare steel belongs in dry indoor locations. The listing does not state a safety listing mark, so check the boxes themselves and your local code before using them on mains circuits. For a run of surface conduit in a workshop, the eight-pack is good value.
- Standard 4 inch square size takes common covers and rings
- 30.3 cubic inch capacity for several conductors
- Plenty of knockouts on sides and bottom
- Eight boxes cover a whole room or a workshop run
- Bare steel box is for dry indoor locations, not weatherproof
- Covers, clamps and connectors are not included
- Listing does not show a safety listing mark; confirm on the product
Junction Box IP65 Waterproof ABS Plastic Electrical Project Case Power Junction Boxes, Project Box with 4 PCS M12 Cable Glands 2.5 x 2.3 x 1.3 Inch

These are the smallest enclosures here, and for a sensor, a doorbell transformer connection or a microcontroller board they are all you need. Each black ABS box is 2.5 by 2.3 by 1.3 inches outside, rated IP65, and closes with four stainless steel screws over a sealing gasket. The pack holds two boxes and eight M12 cable glands, four per box, sized for thin low-voltage cable such as sensor leads and landscape lighting wire. The maker says the ABS can be drilled and shaped without cracking, which matters when you are adding a gland hole a few millimeters from a corner. A couple of hundred owners give it an excellent owner rating, the smallest base in this guide, with hobby electronics and outdoor sensor projects the usual jobs. Measure your board first, because the internal space is tight, and M12 glands will not accept ordinary mains flex. For weatherproofing a small low-voltage project, the pair is hard to beat on cost.
- Lowest-cost boxes in this guide
- Eight M12 glands included, four per box
- Sealing gaskets and stainless screws supplied
- A couple of hundred owner reviews with an excellent owner rating
- Tiny interior: one small board or a splice
- M12 glands suit thin cable only
- Smallest review base on this page
Compare the picks
| Product | Rating | Size | Material | Included | Our score | Our score | |
|---|---|---|---|---|---|---|---|
ABS hinged box, clear coverLMioEtool | IP65 | 8.7 x 6.7 x 4.3 in outside | ABS, polycarbonate lid | Hinged lid with latches | 9.4/10 | 9.4 | See price |
QILIPSU large enclosureQILIPSU | IP66 | 13.8 x 9.9 x 5.9 in outside | PC/ABS alloy, UL94-V0 | Hinged door, mounting plate | 9.5/10 | 9.5 | See price |
Helunsi IP68 2-way, 2 packHelunsi | IP68 | 5.31 x 2.72 x 1.38 in outside | PC, silicone gasket | Cable gland at each end | 8.8/10 | 8.8 | See price |
White IP65 boxes, 2 packLuSumtly | IP65 | 3.9 x 3.9 x 2.8 in outside | ABS, 2.5 mm walls | 4 M24 glands, 8 screws | 8.8/10 | 8.8 | See price |
Copkim steel boxes, 8 packCopkim | Indoor, not sealed | 4 x 4 x 2-1/8 in, 30.3 cu in | Galvanized steel | Knockouts on sides and bottom | 9.1/10 | 9.1 | See price |
Mini IP65 boxes, 2 packOtdorpatio | IP65 | 2.5 x 2.3 x 1.3 in outside | ABS | 8 M12 glands, gaskets, screws | 9.1/10 | 9.1 | See price |
What the IP ratings mean
An IP code has two digits. The first is protection against solids, where 6 means dust-tight. The second is protection against water: 5 means low-pressure water jets from any direction, 6 means powerful jets, 7 means temporary immersion, and 8 means continuous immersion under conditions the maker specifies. So an IP65 box handles rain and a garden hose, IP66 handles driving storms and pressure spray, and IP68 can sit in wet ground. The rating applies to the box as shipped. Every hole you drill is a potential leak, so use a proper cable gland of the right size in each one, enter from the bottom where you can, and leave a drip loop in the cable.
Plastic enclosure or metal box?
Plastic enclosures in ABS or polycarbonate do not rust, do not conduct, are easy to drill, and are the natural choice outdoors and for electronics. Polycarbonate and PC/ABS blends are tougher and more resistant to sunlight than plain ABS, which can become brittle after years in direct sun. Galvanized steel boxes are the standard for building wiring indoors: they are strong, they take threaded connectors and conduit through knockouts, and they must be grounded. Do not use a bare steel box outdoors or a hobby project box as a substitute where your code calls for a listed box. Size generously in either material, because a crowded box runs warm and is hard to work in.
Wiring safely and to code
Turn off the circuit at the breaker and confirm it is dead with a tester before opening or wiring anything. Follow the manufacturer’s instructions for the box and for every connector you put in it. Mains wiring is governed by your local electrical code, which sets the type of box, its volume, how cables are clamped and how the box is grounded and covered, and many areas require listed components and a permit or a licensed electrician. Several enclosures here are sold for projects and low-voltage equipment and do not state a safety listing, so check before using them on household circuits. Keep every splice inside a closed box, leave it accessible, and never bury a connection in a wall without one.
What is a junction box used for?
It encloses electrical connections so that splices and terminals are protected from contact, moisture, dust and physical damage, and so that any heat or spark from a bad connection is contained. Larger enclosures also house equipment such as power supplies, switches and controllers.
What IP rating do I need for an outdoor junction box?
IP65 is the practical minimum for a box exposed to rain. Choose IP66 where it faces driving rain or washing down, and IP68 for connections at ground level or buried, such as the Helunsi in-line boxes. Seal every cable entry with a correctly sized gland.
Can I use a plastic project box for household wiring?
Only if it meets your local electrical code, which often requires a listed box of a stated volume. Several ABS enclosures here are sold for projects and low-voltage gear and do not state a safety listing. For mains circuits, check the product markings and ask a licensed electrician.
How do I keep water out of a junction box?
Use cable glands sized to the cable, enter from the bottom or sides, form a drip loop below the entry, seat the lid gasket cleanly, and tighten screws or latches evenly. Mount the box off the ground and out of standing water unless it is rated IP68.
What size junction box do I need?
For equipment, measure everything that goes inside, add space for cable bends and airflow, and compare with the inner dimensions, not the outer. For building wiring, box volume in cubic inches must meet the code allowance for the number and size of conductors and devices.
Prices and stock change daily. The buttons above open Amazon so you always see the current price. Do Best Deal may earn a commission if you buy through them, at no extra cost to you.
Do Best Deal is a participant in the Amazon Services LLC Associates Program. As an Amazon Associate we earn from qualifying purchases. If you buy through links on this site we may earn a commission, at no extra cost to you. Learn more.

