Window Rough Opening Calculator

DOORS & WINDOWS

Size a window rough opening for new framing. Enter the window dimensions and your shim gap to get the rough opening and the header length to cut.

RO widthRO heightKingJackHeaderSill
Rough Opening Width
— in. wide
Width of the framed opening (window width + gaps).

Usage Tip

Aim for an even gap all around so the unit sits square — too tight and you cannot shim it plumb. Confirm the manufacturer rough-opening dimensions before you cut.

THE MATH
RO width = Window width + 2 × gap
RO height = Window height + 2 × gap
Header length = RO width + 3″
Gap is the shim space on each side (typically ½″ to ¾″) that lets you level and plumb the unit.
Header length adds 1.5″ for each jack stud the header bears on.
These are typical shim allowances, not a fixed standard — flanged new-construction windows have manufacturer-specified rough openings, so confirm the spec sheet for your unit before framing.
Frame a rough sill between the jack studs at the base of the opening, with cripple studs below it down to the bottom plate.
Check the opening for square by measuring equal diagonals, and do not frame tight to the window.
Practical Notes

The rough opening is the hole in the wall framing that a window fits into, and it must be larger than the window itself to leave room to set the window plumb and level. A common rule is to add about half an inch to the width and height of the window unit, but the manufacturer’s specification for your window is the right number to use.

Check that the rough opening is square and that the header above it is the right size for the span. Use shims to adjust the window in the opening, and flash and seal the edges to keep water out. Measure the existing opening in several places, since walls are often slightly out of square, and use the smallest measurement.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.