Hide TV Boxes Inside Drywall (Recessed Media Enclosure)
A recessed media enclosure can hide a cable box, router, or streaming device while keeping it reachable for service. The safe approach is to plan around the wall framing, use an enclosure suited to the equipment, and provide approved in-wall power and cable routes. Check local code, enclosure instructions, and device ventilation needs before cutting drywall.
A slim television can still leave a tangle of boxes and wires in view. Recessing the equipment can make a media wall feel calmer, but the wall cavity is not automatically a safe cabinet. It may contain wiring, plumbing, fireblocking, or framing that should not be cut.
I start by treating the enclosure as a small piece of built-in architecture. Its depth, access door, cable paths, and airflow must work together. A clean finish matters, but the equipment still needs to be reachable and used within its maker’s limits.
Plan the enclosure around the wall and equipment
A recessed media enclosure is a cabinet or listed box set into a wall cavity to hold TV-related devices. Its position and size depend on the wall, the equipment, and the cables, not just the visible faceplate. Planning these parts first helps prevent a neat-looking installation from creating structural or service problems.
Measure the equipment, including plugs and cable bends, rather than using the device body alone. Record the enclosure’s inside dimensions and the space needed to open its door, remove a device, and reach connections. Check every device’s manual for its required clearances and ventilation.
Before cutting, identify the wall type and locate studs, pipes, cables, fireblocking, and any rated or braced wall assembly. A stud finder can help, but do not treat it as proof that a cavity is clear. Use suitable locating tools and confirm uncertain conditions before opening the wall.
- Between studs: A box sized to fit between studs can often avoid changes to framing. Confirm its required mounting points and depth.
- Wall depth: Check the actual cavity depth, including drywall thickness and any rear obstructions. Do not assume a deep box will fit.
- Equipment layout: Leave room for plugs, cable turns, and removal. Tight bends or pinched cables can impair connections.
- Finish: Choose an access door that can open fully and will not be covered by trim, a mount, or the TV.
If a desired location intersects a stud, pause. Cutting or removing framing is not a routine drywall adjustment. Bearing walls, shear walls, and rated assemblies may need an approved design and review by the local authority having jurisdiction (AHJ).
Confirm access, cable space, and ventilation clearances
A recessed cabinet must keep serviceable parts reachable and let equipment cool as its maker requires. There is no single clearance or airflow number that suits every media box. Use the device manuals and the enclosure instructions, then check that the finished installation preserves both access and airflow.
Electrical boxes and conduit bodies must remain accessible under NEC 314.29. Do not bury a junction box behind drywall or behind a permanently fixed enclosure that must be removed to reach it. An access door may help only when it provides access as required; verify the installation with the AHJ.
For conductors, NEC 300.14 generally requires at least 6 inches (150 mm) of free conductor measured from where it emerges from a cable sheath or raceway. Where the opening is less than 8 inches (200 mm) in any dimension, the conductors must extend at least 3 inches (75 mm) beyond the opening. Confirm how the rule applies to the specific wiring method and box.
Ventilation deserves the same attention as fit. Follow the equipment maker’s clearances, keep vents open, and account for the reduced free area of any grille. If a fan is needed, select and place it to meet the equipment and enclosure requirements; there is no universal code value for fan airflow or enclosure clearance.
| Installation choice | Useful when | Check before choosing |
|---|---|---|
| Open, vented recessed enclosure | Equipment needs easy access and passive airflow | Device clearances, grille free area, and dust exposure |
| Enclosure with a door | A cleaner visual finish is the priority | Door opening, heat buildup, and access to every device |
| Fan-assisted enclosure | The maker’s requirements or measured conditions call for added airflow | Fan capacity, noise, power source, and safe air path |
| Surface-mounted cabinet | The wall cavity is too shallow or obstructed | Projection from wall and secure attachment |
A closed door is not proof of safe cooling. Check the exact equipment instructions, and do not seal vents to make the installation look more seamless.
Install framing, enclosure, and compliant wiring
Installation means fitting the enclosure to the wall without weakening framing or hiding unsafe connections. Use a listed enclosure or an assembly approved for the intended use, follow its mounting instructions, and plan separate routes for power and low-voltage cables where required.
- Mark and inspect. Mark the opening only after locating framing and services. Inspect the cavity before cutting farther, and stop if you find unexpected wiring, plumbing, fireblocking, or a wall assembly whose requirements are unclear.
- Protect the structure. In exterior or bearing walls, IRC R602.6 limits bored holes in studs to 40% of stud depth in the general case. Up to 60% is allowed only under stated conditions, including doubled studs, with no more than two successive doubled studs bored. Hole edges must remain at least 5/8 inch (16 mm) from the stud edge, or receive the prescribed protection. These boring limits do not permit cutting a stud out to fit an enclosure.
- Fit the enclosure. Secure it to framing as its instructions require. Keep the opening square, preserve required clearances, and do not rely on drywall alone to support a box that needs framing attachment.
- Route power and signal. Do not conceal an extension cord, power strip, or ordinary flexible cord in a wall. NEC 400.12 prohibits using flexible cords as a substitute for fixed wiring or concealing them behind building finishes. Use an approved in-wall wiring method or a listed power-relocation kit installed according to its instructions.
- Preserve fire and service details. Maintain required separation and firestopping. Keep electrical boxes and serviceable connections accessible, and do not cover required access panels or vents.
Low-voltage HDMI, Ethernet, and coaxial paths also need suitable cable and routing practices. Keep them from being pinched by the enclosure or its door, and follow product instructions and local rules for separation from power wiring.
If an opening would span a stud, do not assume a generic header solves the problem. The stud may support loads or help resist lateral forces, and the wall may be fire-rated. Get an approved design and AHJ guidance before changing that assembly.
Finish and verify serviceability, firestopping, and heat
The finished wall should conceal equipment without concealing the means to reach it. Before closing the cavity, confirm that the enclosure is secure, wires are protected, and required firestopping is in place. After installation, test access, cable routing, and equipment operation under normal sustained use.
I use a final check that focuses on what may be missed once the TV is mounted:
- Can the access door open fully, and can each device be removed without dismantling the wall?
- Are all junction boxes accessible, with no connection buried behind fixed finishes?
- Are power cords approved for in-wall use where required, rather than ordinary flexible cords?
- Do the device manuals’ clearances remain open, including around vents and the rear of equipment?
- Are cables free of sharp bends, pinches, and pressure from the door?
- Are framing changes, fireblocking, and rated-wall details handled as required?
A common project pattern is a cable box and router in a between-stud enclosure. The layout works only if both devices fit with their plugs attached, their vents remain clear, and the door allows removal. If the cavity is too shallow, a surface cabinet or a different location may be safer than forcing a tight recess.
Another frequent situation is a planned opening that lands on a stud. The right response is to revise the location or seek an approved framing design, not to cut the stud and patch around it. A neat opening cannot make an unapproved structural change safe.
Frequently asked questions
These answers cover common decisions when planning a recessed media box. Local code, the enclosure listing and instructions, and each device manual control the final installation. When those requirements differ from a general guide, follow the applicable requirements and confirm uncertain details with the AHJ.
Can I put a cable box inside a recessed wall enclosure?
Yes, if the enclosure fits the device, allows access, and meets its ventilation requirements. Check the cable box manual before closing the door.
Can I hide a router in the wall?
It may be possible, but the router needs the airflow and clearance its maker specifies. A closed metal enclosure or blocked vents may affect operation.
Can I put a power strip inside the wall?
No. Do not conceal a power strip or ordinary extension cord in a wall cavity. Use approved in-wall wiring or a listed power-relocation kit installed as directed.
Can I cut a stud to fit the box?
Do not cut or remove a stud as a simple fit adjustment. Structural or braced walls may need an approved design and AHJ review.
Does a recessed enclosure need a fan?
Not always. Follow the equipment’s ventilation instructions and the enclosure requirements. There is no universal fan or airflow value for all devices.
Can a junction box sit behind the enclosure?
Electrical boxes must remain accessible under NEC 314.29. Do not bury one behind drywall or a permanently fixed enclosure.
How much cable should extend from a wiring opening?
NEC 300.14 generally calls for 6 inches (150 mm) of free conductor from where it leaves the sheath or raceway. For an opening under 8 inches (200 mm) in any dimension, the conductor must extend at least 3 inches (75 mm) beyond it.
What if the wall cavity is too shallow?
Choose a shallower enclosure, another location, or a surface-mounted cabinet. Do not force equipment into a space that blocks cables or ventilation.
Can I close the access door over the equipment?
Only if the equipment’s instructions permit the resulting clearances and airflow. The door must also allow service access and must not cover required vents.
(This article was written by one of our staff writers, Michael Donovan. Visit our Meet the Team page.)






