How to Build a Door Frame: Header, Studs, and Rough Opening

A door frame is the hidden structure that carries the door, and getting it right determines whether the door swings smoothly and closes tightly. The frame needs only two-by-fours and nails, with precise measuring, square cuts, and proper nailing doing the real work. All the visible parts, the casing, trim, and the door itself, attach to this inner skeleton. The same framing logic that governs walls applies here, because frame structures in building construction carry the load from the header down through the studs to the floor.

Main Elements of a Door Frame

Think of a door frame like a four-sided picture frame: top, bottom, and two sides. The top is the header, the sides are pairs of support studs, and the bottom is the rough sill. The frame sits inside the wall and is never visible once casing and trim go on.

The Header

The header is a horizontal two-by-four that runs the full width of the opening and carries the weight of the wall above the door. On wider openings the header doubles up or steps up in size, because the span grows and the load needs more support.

Jack Studs and King Studs

Jack studs are short vertical studs that run from the bottom plate up to the underside of the header, carrying its load down to the floor. King studs run full height beside the jacks and tie the frame into the wall. Together they form the sides of the opening. Common door problems such as sticking and sagging trace back to this assembly, and routine door fixes start with checking whether the frame stayed square.

The Rough Sill

The bottom of the frame is the rough sill, a horizontal member that gives the jamb and threshold something to fasten to. On interior doors the sill may be minimal, while exterior doors need a solid, level base.

ComponentJob in the frameTypical size
HeaderCarries load above the opening2×4 or doubled 2×4
Jack studsSupport the header ends2×4
King studsTie frame to wall, full height2×4
Rough sillBase for jamb and threshold2×4 or 2×6

Measuring the Rough Opening

The rough opening must be larger than the door slab so the jamb has room for shims and adjustments. A common rule adds 2 inches to the door width and 2.5 inches to the height: a 30-inch door gets a 32-inch opening, and an 80-inch door gets an 82.5-inch opening. The Spruce project example uses an opening 82 inches tall by 34 inches wide for a 32-inch door.

Standard Rough Opening Sizes

  • 24-inch door: 26 x 82.5-inch opening
  • 28-inch door: 30 x 82.5-inch opening
  • 30-inch door: 32 x 82.5-inch opening
  • 32-inch door: 34 x 82.5-inch opening
  • 36-inch door: 38 x 82.5-inch opening

Height gets its extra half inch from flooring. If the finished floor is not yet installed, add the flooring thickness to the rough opening height so the door clears the final surface. Builders who forget this step shave the door or re-hang the jamb later.

Adding Clearance for Shims

The extra width is not wasted space. It gives you room to shim the jamb plumb, level the threshold, and account for floors that slope. Even experienced carpenters check the opening against the slab before hanging, and the notes on cutting a door to fit from Fine Homebuilding emphasize leaving consistent margins on all sides.

Checking for Square

Measure the opening diagonally in both directions before the framing is closed in. If the two diagonals differ by more than 1/8 inch, adjust the frame before installing the door, because a racked opening forces the door to bind.

Cutting and Assembling the Frame

Cut the header to the opening width, cut the jack studs to the height from the bottom plate to the header, and cut the king studs to full wall height. Nail the jacks to the kings, set the header on top of the jacks, and fasten the assembly through the kings into the wall studs. Frames also resist lateral forces during wind and seismic events, and lateral load distribution in frame buildings explains why the header-to-stud connection carries more than the door’s weight.

Cutting the Pieces

Measure twice and cut each stud individually, because floors and ceilings are rarely perfectly level. Mark the height of the header on the kings, then cut the jacks to that dimension. A framing square keeps the cuts at 90 degrees so the assembly sits flat.

Assembling and Nailing

Assemble the frame on the floor when possible, then lift it into the opening. Nail through the kings into the wall studs with 16d nails, and through the jacks into the header with the same. Keep the nails away from the opening edges so they do not split the wood.

Nailing Sequence

Drive the bottom nails first, check that the frame has not shifted, then work upward. Nailing top to bottom can rack the frame as the weight of the header settles.

Plumbing, Squaring, and Securing the Frame

A frame that looks square on the floor can twist when lifted. Set the level against the inside faces of the jacks and adjust with shims until the frame is plumb in both directions, then re-check the diagonals. On exterior walls, seal the gap between the frame and the sheathing before the weather barrier goes on; building wrap selection and installation keeps moisture out of the opening over the life of the house.

Checking Plumb and Level

Hold a 4-foot level against each jack and read it at the top, middle, and bottom. Plumb means the frame is vertical in both directions; level means the header and sill sit flat. Small adjustments come from tapping the frame with a hammer or driving shims behind it.

Shimming and Fastening

Drive shims between the frame and the rough opening at the hinge locations, the strike side, and the top corners. Fasten through the jamb and shims into the framing, then cut the shims flush. Shims at hinge points matter most, because the hinges carry the door’s weight.

Diagonal Measurement for Square

After shimming, re-measure the diagonals. Equal diagonals mean the frame is square; unequal ones mean the frame is racked and the door will bind. Correct the rack before hanging the door.

Prehung Doors vs Building a Frame in Place

Builders choose between a prehung door unit, which arrives with the jamb and hinges assembled, and a site-built frame where the jamb is cut and fitted on location. Prehung units save time and guarantee that jamb and slab match; site-built frames give flexibility for odd wall thicknesses and openings.

Prehung Units

A prehung unit includes the jamb, hinges, and door slab, and sometimes the casing. Installation means plumbing the unit, shimming the hinges, and nailing through the jamb. This is the faster route for standard sizes and the default for most new construction. Order the unit after the rough opening is framed so the width matches what you actually built.

Fire-Rated Frames

Where codes require a rated assembly, fire door requirements cover both the door and the frame, because the frame is part of the rated opening. Fire-rated frames use heavier gauge material and intumescent seals, and they are tested as a set with the door.

OptionBest forProsCons
Prehung unitStandard sizes, fast installJamb and slab guaranteed to fitLess flexible for odd openings
Site-built frameOdd widths, thick wallsFits any openingMore skill and measuring
Fire-rated frameRated corridors and stairwellsMeets code as a systemHigher cost, specific hardware

Air Sealing and Final Checks

The frame is only as good as the seal around it. Foam the gap between the jamb and the rough opening on exterior walls, and caulk the interior side so drafts and insects cannot pass. A frame that seals well shows up in whole-house diagnostics, and blower door testing for airtightness finds the drafts left around a sloppy opening.

A tight frame also keeps out pests and road noise, so the sealing step pays off in comfort as well as energy bills.

Sealing Gaps Around the Frame

Use low-expansion foam in the gap, let it cure, then trim it flush with a knife before casing goes on. On the interior, acoustical caulk at the frame-to-drywall joint reduces sound transfer between rooms.

Before you call the job done, hang a test door or check the opening once more: plumb jacks, a level header, square diagonals, and tight seals. A frame that passes those four checks carries any door cleanly for decades, and the same attention to airtightness pays off in lower heating bills and quieter rooms.