A new window brings in daylight and can change how a whole room feels, but paying a contractor to cut and frame the opening adds up fast. If you can run a circular saw and read a level, the framing itself is well within reach for a confident DIYer.
This guide covers how to frame a window from start to finish: the parts of a window frame, how to size the rough opening, how to build and set the header, and the egress and flashing details that keep the job safe and dry.
Key Takeaways
Lock in these core ideas before you cut into a wall:
- Learn the five framing parts: a window opening is built from king studs, jack studs (trimmers), a header, a sill plate, and cripple studs.
- The rough opening is bigger than the window: frame it about 1/2 inch wider and taller than the unit size so you can shim it level and square.
- Load-bearing walls need temporary support: if the wall carries the roof or floor above, build a temporary support wall before you cut any studs.
- Bedroom windows must meet egress code: a sleeping-room window needs at least a 5.7 square foot clear opening and a sill no higher than 44 inches off the floor.
Window Framing Components
Before you swing a hammer, get familiar with the anatomy of a window frame. This table breaks down each part and the job it does.
| Component | Description |
| Header | A horizontal structural beam (usually doubled 2x4s, 2x6s, or larger) that spans the top of the opening to carry the weight of the roof or floor above. |
| King Stud | Full-length vertical studs that run from the bottom plate to the top plate on the outside edges of the window opening. |
| Jack Stud (Trimmer) | Vertical studs that sit inside the King Studs. They support the header and determine the vertical height of the window opening. |
| Sill Plate | The horizontal board that forms the bottom of the window opening. It rests on top of the lower cripple studs. |
| Cripple Studs | Short vertical studs installed above the header or below the sill plate to transfer weight and maintain the 16-inch on-center stud spacing. |
| Top/Bottom Plate | The horizontal 2x4s that make up the very top and very bottom of the wall structure itself. |
What Is a Rough Opening (RO)?
The rough opening is the part beginners most often get wrong. This is the structural hole you build to accept the window unit.
Do not frame the hole to the exact size of the window. You generally need an extra 1/2 inch to 1 inch of width and height. This gap lets you insert the window and use shims to level and square it perfectly. Always consult the window manufacturer’s spec sheet for the specific RO requirements.
Egress Requirements for Bedroom Windows
If the window goes in a bedroom, sizing the opening correctly is required by code. The International Residential Code (Section R310) treats every sleeping-room window as a possible escape route in a fire, so the finished opening has to be big enough to climb through.
To qualify as an emergency escape and rescue opening, the clear opening must be at least 5.7 square feet (5.0 square feet if the window sits at grade level), at least 24 inches high and 20 inches wide, with the sill no more than 44 inches above the finished floor (1). All four limits apply at once, so a window can hit the area target and still fail on width.
Size the rough opening around those numbers before you cut. A basement bedroom also needs a window well of at least 9 square feet, and any well deeper than 44 inches needs a permanently attached ladder or steps.
Tools and Materials
Gather these tools to keep the job moving:
- Lumber (2×4 or 2×6, depending on wall depth).
- Plywood (for header spacers).
- Wood shims.
- 16d framing nails (or gun nails).
- Circular saw.
- Reciprocating saw (Sawzall).
- Framing square.
- Drill and driver bits.
- Flat pry bar.
- Combination square.
- Measuring tape.
- 4-foot Level.
- Hammer.
- Stud finder.
How to Frame a Window in an Existing Wall
This process involves cutting a hole in a standing wall. If you are building a new wall on the ground, the steps are similar, but you skip the demolition.
1. Evaluate the Wall Structure
Determine if the wall is load-bearing. A load-bearing wall supports the weight of the roof or floor above it. These walls usually run perpendicular to your floor joists.
If the wall is load-bearing, you cannot just remove studs. You must build a temporary support wall nearby to hold the weight while you work.
Safety First
If you are unsure whether a wall is load-bearing, hire a structural engineer. Removing a load-bearing stud without support can cause your roof to sag or collapse.
2. Mark the Layout
Map out the window location on the interior drywall. Use a stud finder to locate existing framing. Mark the center of your new window and measure outwards to define the rough opening width and height.
Remember to add extra width for the King Studs and Jack Studs on both sides. Use a level to draw your cut lines on the drywall.
3. Remove the Drywall
Cut along your lines with a drywall saw or utility knife. Remove the drywall to expose the studs. Ideally, cut the drywall back to the center of the nearest stud outside your framing area to make patching easier later.
Remove insulation and verify there are no electrical wires or plumbing pipes running through the area. If there are, you must reroute them before cutting any wood.
4. Cut the Studs
Mark the existing studs where they need to be cut to accommodate the new header and sill.
- Top Cut: Measure down from the top plate to allow room for the header.
- Bottom Cut: Measure up from the floor to establish your sill height.
Use a circular saw or reciprocating saw to cut the studs. Be careful not to cut through the exterior sheathing yet.
5. Install King and Jack Studs
Measure and cut your new King Studs to run from the bottom plate to the top plate. Secure them to the existing studs on the left and right of your opening.
Next, cut your Jack Studs. These will sit inside the King Studs and support the header. Nail them securely to the King Studs.
6. Build and Install the Header
The header carries the structural load. A common way to make one is to sandwich a piece of 1/2-inch plywood between two 2x4s, 2x6s, or 2x8s (depending on the span). This creates a beam that matches the 3.5-inch depth of a standard wall stud.
The right size depends on both the opening’s span and how much house sits above it. IRC Table R602.7 lists the minimum for each case, and wide or heavily loaded openings often call for doubled 2x10s, 2x12s, or an engineered beam. Set the header on top of the Jack Studs so each end bears on a jack stud by at least 1.5 inches, then nail through the King Studs into the ends of the header.
7. Install the Sill and Cripples
Cut a piece of lumber for the sill plate and fit it between the Jack Studs at the bottom. Check it with a level.
Install “cripple studs” underneath the sill plate. These short studs transfer the weight from the sill down to the floor plate. Space them 16 inches on-center to match your existing wall framing.
8. Cut the Exterior Sheathing
Now that the frame is solid, you can cut the opening to the outside. Drill a hole in each corner of the rough opening through the exterior wall.
Go outside and connect the holes with a straight edge. Use a circular saw to cut the siding and sheathing. Remove the cutout piece.
9. Weatherproofing and Installation
Before putting the window in, you must waterproof the opening. Apply flashing tape to the sill, running it up the sides slightly to create a pan.
Insert the window into the opening. Use shims to center, level, and square the unit. Once it is square, drive screws through the window mounting fins or frame into your new studs. Finish by applying flashing tape over the top and side fins to seal out water.
Calculating Space Around a Window
Getting the measurements wrong leads to drafts and stuck windows. Here is how to measure correctly for replacement and new construction.
For Replacement Windows
If you are keeping the existing frame and only swapping the glass unit (pocket replacement):
- Measure the width at the top, middle, and bottom. Use the smallest number.
- Measure the height at the left, center, and right. Use the smallest number.
- Deduct 1/8 to 1/4 inch from these measurements to ensure the new sash fits.
For New Construction Windows
If you are framing a new hole, you deal with “Rough Opening” (RO) sizes. The general rule is:
- RO Width: Window Unit Width + 1/2 inch.
- RO Height: Window Unit Height + 1/2 inch.
This leaves a 1/4-inch gap on all four sides for adjustments. Always verify this with the specific window brand, as some require larger gaps.
Framing a Window in a Brick Wall
Cutting a window into brick requires masonry skills and heavy-duty tools. The framing principles inside the wall remain the same, but the exterior demolition is different.
You will need a steel lintel (a specialized L-shaped metal beam) to support the bricks above the window. Without a lintel, the bricks above the new opening will eventually crack and collapse. You must also use a diamond-blade saw to cut the masonry cleanly.
Keep In Mind
Masonry work affects the structural integrity of the facade. We strongly recommend consulting a structural engineer and hiring a mason for the cutting and lintel installation portion of this project.
FAQs
Final Words
Framing a window comes down to a square opening, a properly sized header, and clean flashing. Measure twice before every cut, keep the rough opening about 1/2 inch larger than the unit, and confirm egress sizing on any bedroom window. When a wall is load-bearing or built from brick, bring in an engineer or mason for the structural call rather than guessing.











