Every door installation starts with a correctly framed rough opening. Cut the opening too small and the door won't fit; leave it too large and you waste shimming time and risk a weak header. This guide covers the formulas, framing members, and code considerations you need to frame door openings correctly the first time.
Why Rough Openings Are Larger Than the Door
A prehung door unit includes a factory-attached frame (jamb) made from 3/4-inch-thick lumber with a door stop. When you add the jamb on each side, about 1.5 inches of the rough opening width is consumed by the frame. The remaining clearance — typically 1/4 to 3/8 inch per side — allows you to shim the unit plumb and level in an opening that is never perfectly square. Without this shimming gap, a tight-fit installation in an even slightly out-of-plumb opening would either refuse to close or cause the door to swing open or closed on its own.
The height addition of 2.5 inches serves a similar purpose. The bottom 1.5 inches accounts for the door unit sitting on a temporary shimming surface or directly on the subfloor; the remaining inch gives you adjustment room to set the reveal (gap between door bottom and finished floor) correctly. For exterior doors with a threshold, verify the manufacturer's specific rough opening requirement, as threshold heights vary between flat-threshold and raised-threshold designs.
Framing Members and Their Roles
Every door rough opening uses the same set of framing members regardless of size. The king studs are full-height members on each side of the opening, running from the bottom plate to the top plate. They carry vertical load from the header to the floor. The trimmer studs (also called jack studs) are nailed to the inside face of each king stud; they run from the bottom plate to the underside of the header and directly support the header ends. The header spans the opening and transfers loads around the opening to the trimmers and kings. Cripple studs fill the space between the header and the top plate, maintaining stud spacing for sheathing and drywall nailing.
The number of trimmers required per side increases with opening width: one trimmer per side is standard for doors up to 5 feet wide; two trimmers per side are common for wider openings or when the header is particularly heavy. Your local code and engineer will specify this for structural walls.
Header Sizing for Different Wall Types
Header sizing depends on the opening span, the loads above, and whether the wall is load-bearing. The IRC provides prescriptive header size tables in Table R602.7 that specify doubled lumber dimensions (e.g., 2×8, 2×10, 2×12) for given spans and load conditions. For a 3-foot opening in a load-bearing wall with one floor above, a doubled 2×6 is typically sufficient; the same opening with two floors above may require a doubled 2×10 or LVL beam.
Interior non-bearing partition walls are much simpler: the IRC allows a single flat 2×4 header for openings up to 8 feet in non-bearing walls because there are no structural loads to transfer. In practice, many builders use a doubled 2×4 or 2×6 in all walls for consistency and to provide a better nailing surface for finish trim. LVL headers are preferred for wide openings (4 feet or more) because they are dimensionally stable, will not shrink or crown like solid lumber, and can be ordered in larger depths without the waste of stacking multiple plies.
Pocket and Bifold Door Special Considerations
Pocket doors require a rough opening approximately twice the door width because the entire door slides into the wall cavity when open. A standard 32-inch pocket door needs a 65-inch rough opening (2 × 32 + 1 for hardware clearance). The pocket frame is usually a steel split-stud kit that fills the rough opening and creates both the pocket cavity and the active door opening in one assembly. Because pocket framing has reduced stud depth compared to a normal wall, most pocket door kits are not load-bearing — never frame a pocket door in a load-bearing wall without an engineer's review.
Bifold doors fold along a top track and pivot on a bottom pin. The rough opening is equal to the total opening width plus 1 inch for track brackets. Hardware quality matters for bifold doors — cheap nylon track systems bind and sag over time. Commercial-grade hardware with an adjustable pivot pin at the bottom allows you to correct minor rough opening errors after installation, which is helpful in older homes where walls have settled.
Common Rough Opening Mistakes and How to Avoid Them
The most frequent rough opening mistake is measuring the door slab size and building the opening to match, without adding the clearances for the jamb and shimming. This results in an opening that is 2–3 inches too small in width and the door unit simply will not fit. Always start with the door unit's listed rough opening size from the manufacturer, not the nominal door size.
The second common mistake is framing the rough opening for a prehung door in an existing wall without verifying whether the wall is load-bearing. Cutting a load-bearing stud without properly shoring the structure above and installing a correctly sized header can cause immediate or gradual structural failure. If you are unsure whether a wall is load-bearing, look at what is directly above it on the floor above and check whether joists run parallel or perpendicular to the wall. When in doubt, consult a structural engineer before cutting. The cost of a one-hour engineering consultation is trivial compared to emergency repairs from a failed header.