What Is In-Wall Hidden Cavity Framing? (Stud Spacing)
In-wall hidden-cavity framing is the layout and construction of a wall space that remains within a properly framed, non-load-bearing interior wall. Stud spacing is usually 16 inches on center, but the adopted code and approved plans determine what is allowed. Before work, confirm wall function, cavity depth, services, fireblocking, and required access clearances.
Before work, a plain wall may seem to offer a simple place to add a cavity. After the finish comes off, the same wall may reveal wiring, plumbing, a rated boundary, or framing that supports the building. I plan the wall first, then decide whether a cavity can fit without changing the structure or blocking required access. That order helps keep a small project from creating a larger safety or code problem.
Planning the Wall and Confirming Stud Spacing
In-wall cavity framing means arranging studs and wall finishes so a space fits inside a wall without cutting or weakening existing structural members. For a new, non-load-bearing partition, 16 inches on center is common. It is not a universal code rule; permitted spacing depends on the adopted code, wall height, loading, materials, and approved design.
Start by identifying what the wall does. A partition may still brace the building, carry a load, or form part of a fire-resistance-rated separation. Do not assume it is safe to alter because it looks like an ordinary interior wall. Check plans, ask the local building department when needed, and have a qualified professional assess uncertain conditions.
What “on center” means
On-center spacing is the distance from the center of one stud to the center of the next. With studs at 16 inches on center, the layout marks repeat at 16-inch intervals. This is different from the open space between studs, which is smaller by the stud’s width.
A 2×4 is nominally 2 inches by 4 inches, but its typical actual size is 1½ by 3½ inches. So a standard 16-inch layout leaves about 14½ inches between stud faces. In a 2×4 wall, the nominal cavity depth is 3½ inches before finishes, wiring, pipes, or other services take up space.
| Layout or wall detail | Typical measurement | What it tells you |
|---|---|---|
| Stud spacing | 16 in. on center | Common layout, subject to code and plans |
| Wider stud spacing | 24 in. on center | Use only when permitted for the wall design |
| Actual 2×4 size | 1½ × 3½ in. | Nominal 3½-in. cavity depth |
| Typical opening between 16-in. o.c. studs | About 14½ in. | Clear width before added framing |
Do not choose 24-inch spacing just to create a wider bay. The code limits depend on the adopted edition and wall details. In IRC editions that use this reference, Table R602.3(5) addresses stud size, height, and spacing for certain conventional framing. Check the table in the locally adopted edition or follow engineered plans.
Survey before opening or framing
I begin with the wall type, plans, and the location of nearby systems. Use suitable detection tools before opening a finished wall, but do not treat a detector as proof that a cavity is clear. If the wall’s role or contents remain uncertain, stop and get qualified help.
Check for:
- Electrical cables, boxes, and equipment
- Plumbing, ducts, and vents
- Floor and ceiling framing directions
- Load-bearing or bracing functions
- Rated wall boundaries and required fire protection
- Required access to valves, junction boxes, and equipment
Mark the proposed cavity and any opening only after those checks. The key decision is not whether a space can be framed, but whether it can be framed without changing a required structural or life-safety feature.
Checking Cavity Depth, Services, and Access Clearances
A wall cavity has limited depth and width, and those dimensions shrink when finishes and services are included. A typical 2×4 wall begins with 3½ inches of depth, not an empty 3½-inch box. Measure the actual framing and account for wiring, pipes, insulation, and required clearances before setting the cavity limits.
A new partition can be planned around a clear bay, but existing walls need more caution. Do not notch, bore, or remove a stud to make room unless the work follows applicable code limits and approved design. Where the change affects structural framing, ask a qualified designer or building official before proceeding.
Electrical and equipment clearances
Electrical panel working space is not spare wall space. Where NEC 110.26 applies, common 0–150 V-to-ground conditions generally require a clear working area 30 inches wide, or the equipment width if greater; 36 inches deep; and 6½ feet high, or the equipment height if greater. The exact requirement depends on the installation and applicable code.
Do not frame a cavity or access panel into this working space. Keep electrical equipment accessible, and do not cover junction boxes or other items that must remain reachable. Check the adopted electrical code and have a licensed electrician confirm any uncertain condition.
Rated walls and penetrations
A fire-resistance-rated wall must keep its tested or listed assembly. Adding an opening, access door, or penetration can change how that assembly performs. The correct materials and details depend on the listed design; there is no general clearance or airflow rule that makes a new cavity acceptable.
If a cavity crosses a rated boundary or affects one, do not rely on ordinary wallboard or generic sealant as a substitute for approved details. Confirm the assembly requirements and obtain design or permit approval where required. Also, do not use a stud cavity as an HVAC plenum or add airflow openings unless they are part of a designed, code-compliant system.
Framing the Cavity and Preserving Fireblocking
For a new, non-load-bearing wall, cavity framing starts with a verified layout and sound attachment at the floor and ceiling. Studs, plates, blocking, and any opening framing must suit the wall design. Fireblocking and rated finishes must remain intact or be restored with approved materials and methods.
- Set the layout. Mark the wall line and the selected on-center spacing. Confirm that the spacing, stud size, and wall height are permitted by the adopted code or shown on approved plans.
- Frame without weakening existing members. Build the new wall as designed. If an opening is part of the plan, use the required header, trimmers, and blocking. Do not cut or remove existing studs or other structural members without code-compliant design.
- Keep services accessible. Route or protect building services only as allowed by the relevant code. Preserve access to boxes, valves, and equipment that require service.
- Close and inspect. Install compatible finish materials, restore fireblocking and firestopping as required, and complete any required inspection before covering the work.
Fireblocking at concealed spaces
Fireblocking is material placed to limit the spread of fire through concealed spaces. Under IRC R302.11, fireblocking is required at specified locations, including at floor and ceiling levels and at vertical intervals not exceeding 10 feet. Other locations and allowed materials depend on the adopted code and wall assembly.
Do not assume a cavity is exempt because it is small or hidden behind a finish. Before closing the wall, check all applicable fireblocking locations, penetrations, and materials. If the wall is rated, follow its listed assembly as well as the local code.
Verifying Structure, Finish, and Code Compliance
A finished wall should meet the approved layout, preserve required access, and maintain structural and fire-safety features. Before concealment, compare the framing with the plan, inspect fastening and blocking, and check that services are not trapped. Permit and inspection requirements vary by location and project scope.
Illustrative installation checks
These examples show how the same spacing question leads to different decisions. They are planning scenarios, not code approvals.
| Scenario | Spacing decision | Main check before closing |
|---|---|---|
| New, non-load-bearing partition | Start with 16 in. o.c.; verify design | Wall height, attachment, opening details, and fireblocking |
| Proposed 24-in. o.c. partition | Use only if the adopted code or plans allow it | Stud size, height limits, finish support, and loading |
| Existing wall with a proposed opening | Do not assume the bay is clear | Loads, wiring, plumbing, rated status, and required access |
| Wall near electrical equipment | Keep required working space clear | NEC 110.26 dimensions and local electrical rules |
In a typical planning review, I would first check the drawings and confirm whether a proposed partition is non-load-bearing. If the layout calls for 24-inch spacing, I would verify that the wall height, stud size, and finish support meet the adopted requirements. If the wall’s role is unclear, the next step is assessment, not cutting.
A separate common case is a proposed cavity in an existing wall near wiring or a rated boundary. The measured stud bay may look open, yet a cable, box, or assembly requirement can rule out the planned location. The practical fix is to revise the layout or obtain an approved design, not to hide or bypass the conflict.
Final check before concealment
Use this short review before installing the final finish:
- The wall’s structural role is confirmed.
- Stud size and spacing match the approved design or adopted code.
- No structural member was cut, notched, bored, or removed without approval.
- Electrical, plumbing, and other required access remains available.
- Panel working space remains clear where NEC 110.26 applies.
- Fireblocking, firestopping, and rated details are restored as required.
- Required inspections are complete before the work is covered.
Frequently Asked Questions
Is 16-inch stud spacing required by code?
Not in every case. Sixteen inches on center is common, but allowed spacing depends on the adopted code, wall height, loads, framing details, and approved plans.
Can I use 24-inch stud spacing?
Possibly, if the adopted code and wall design permit it. Verify stud size, wall height, loading, and finish support against the applicable code or engineered plans.
How deep is a standard 2×4 wall cavity?
A typical 2×4 stud is 1½ by 3½ inches, so the nominal cavity depth is 3½ inches before finishes and services reduce usable space.
Does an existing wall cavity have the full stud-bay width?
No. The clear width is less than the on-center spacing because studs occupy space. With 16-inch spacing and 1½-inch-wide studs, the gap is about 14½ inches.
Can I cut a stud to make a cavity?
Do not cut, notch, bore, or remove a stud unless the change meets code limits and an approved design. A stud may carry gravity or lateral loads even when the wall appears to be a partition.
What is fireblocking, and when is it needed?
Fireblocking limits fire spread through concealed spaces. IRC R302.11 requires it at specified locations, including floor and ceiling levels and at vertical intervals no greater than 10 feet; check the adopted code for the full rules.
Can a cavity cover an electrical panel’s work area?
No. Where NEC 110.26 applies, keep the required working space clear. Common conditions call for 30 inches wide, 36 inches deep, and 6½ feet high, subject to equipment and installation details.
Can I add a cavity to a rated wall?
Only if the change preserves the wall’s required listed or tested assembly and has any required approvals. Openings, access doors, and penetrations can affect its rating.
Is an apparently empty stud bay safe to use?
Not necessarily. It may contain hidden wiring or plumbing, or form part of a structural or rated system. Check plans and use appropriate detection, then get qualified help if uncertainty remains.
Do I need a permit to frame a cavity?
Permit rules depend on the location and scope of work. Ask the local building department before work, especially if it changes framing, rated construction, electrical systems, or required access.
The reliable approach is to treat stud spacing as one part of a wall design, not as permission to alter any empty-looking bay. Confirm the wall’s role, follow the adopted code or approved plans, preserve services and clearances, and restore required fire protection before closing the wall.
(This article was written by one of our staff writers, Garrett Vance. Visit our Meet the Team page.)






