Skip to content
BestCalculators LogoBestCalculators
Free online calculators and converters

Home & Construction

Rough Opening Calculator: Framing a Door or Window

Work out the rough opening for a door or window, the king and jack studs, the header size and the cripples above and below it.

in

The unit size as sold — a "3-0" door is 36 in. The rough opening is bigger, and this is the number it is worked out from.

in

Eighty inches for a standard 6-8 door. Windows come in every height and the label is always the unit rather than the opening.

The shim allowance differs: a prehung door needs room under the jamb for the floor finish, a window is shimmed all four sides.

in

An inch a side is standard. Less than half an inch and there is nothing to plumb the jamb with; more than an inch and the trim stops covering it.

in

Bottom plate to top plate. A standard 8 ft wall framed with 92⅝ in studs comes to 97⅛ in including the plates.

in

The depth of the beam over the opening — 7.25 in is a doubled 2×8. The suggested size for the span is given below.

Rough opening width

38in

Unit width plus 1 in of shim space on each side. Cut it to the unit size and the door cannot be plumbed, because no stud wall is straight enough to need no adjustment.

Rough opening height
82.5in

A door gets about 2.5 in — half an inch of shim over the head and two for the floor finish under the jamb. A window is shimmed on all four sides instead.

Header length
41in

The opening plus 1.5 in of jack stud at each end. The header sits on the jacks, which is what carries the load down to the plate.

Header depth this span suggests
5.5in

The rule of thumb: half the span in feet, rounded to a nominal depth. It suits an ordinary single-storey load and is a starting point for the inspector, not a replacement for one.

Is the header you specified deep enough
1

1 means it meets the rule of thumb for this span. A point load from a beam or a roof above changes the answer entirely, and that is an engineer’s question.

Jack stud length
82.5in

Cut to the rough opening height — the jacks hold the header at exactly the opening height, so this and the opening are the same number.

King stud length
92.625in

Full stud height: the wall less the bottom plate and the doubled top plate. The kings run past the header from plate to plate.

Cripple length above the header
2.875in

The short studs between the header and the top plate. Zero means the header fills the space, which is what happens when a deep header meets a standard ceiling.

Cripples above
3studs

Keeping the 16 in centres running across the opening, so the sheathing and drywall still land on something.

Studs for one opening
7studs

Two kings, two jacks and the cripples. The header is separate, and so is any extra jack a wide opening needs.

Header material
6.19board feet

Two plies at this depth. Most headers are two members with a half-inch spacer between them, which brings the pack out at the 3.5 in width of the wall.

Studs for every opening
7studs
Widest door this opening would take
36in

Working backwards, for an opening that already exists. If you are fitting a door to a hole rather than the other way round, this is the size to buy.

How to use this calculator

  1. Enter the exact dimensions into the Door or window width and Door or window height fields using the size as sold.
  2. Select the correct option under What is going in to determine the proper shim allowance and height calculation.
  3. Specify your desired Shim space each side, keeping in mind that an inch per side is standard for proper adjustment.
  4. Enter the Wall height, measured from the bottom plate to the top plate of your framing assembly.
  5. Input your Header depth to verify whether the structural member is adequate for the span length.
  6. Add multiple Openings like this if you are calculating material lists for several identical units at once.

Understanding the Maths Behind a Rough Opening Calculator

When you frame a wall, you cannot simply cut a hole the exact size of the product you bought. Every window and door unit requires extra space around it to ensure it can be plumbed, leveled, and squared inside the framing without binding. A reliable rough opening calculator takes the nominal dimensions of your unit and applies standard construction tolerances to determine the exact hole you need to frame. Understanding how these numbers interact prevents costly reframing mistakes on the job site.

The core calculation relies on adding specific allowances for shims and structural clearances. For a standard rough opening width, the formula takes the unit width and adds twice the shim space, which is typically one inch on each side for a total of two extra inches. Height calculations vary depending on the selection made in the What is going in dropdown menu. For doors, an extra two and a half inches is added to accommodate flooring finishes and proper operating clearance. For windows, the calculation applies the shim space to all four sides, ensuring adequate adjustment room.

Framing Components and Structural Members

Framing a door opening or window cutout involves more than just a simple hole in the wall; it requires a coordinated assembly of vertical and horizontal structural members. The king studs run continuously from the bottom plate to the top plate, bearing the vertical load of the wall. Nested directly inside them are the jack studs, often called trimmers, which bear the direct weight of the header above. Getting the precise jack stud and king stud lengths right ensures that your header sits at the exact elevation required for your finished unit height.

The header itself spans the top of the opening, carrying the load from the roof or upper floors down to the jack studs. Selecting the correct header size for span requirements is critical for structural integrity. The required Header depth scales with the width of the opening: spans up to four feet generally require a five-and-a-half-inch deep member, such as a doubled 2x6, while wider spans demand deeper lumber like 2x8, 2x10, or 2x12 assemblies. Cripple studs then fill the gap between the header and the top plate, maintaining the standard sixteen-inch layout spacing across the entire wall section.

Manufacturers label their products by nominal unit sizes rather than their actual physical dimensions. For example, a standard interior door sold as a three-foot zero-inch unit actually measures thirty-six inches across the slab or prehung frame. Similarly, a standard residential door rough opening must account for the thickness of the jambs and the necessary operating clearance. When configuring your project, paying close attention to the Door or window height ensures your headers are not framed too low, which is a frequent error when transitioning from interior prehung units to exterior systems with heavy sills.

The choice of Shim space each side dictates how much wiggle room you have to correct out-of-square framing. While an inch per side is standard, experienced carpenters adjust this based on the plumbness of the surrounding walls and the rigidity of the window unit. If your shim space shrinks below half an inch, you lose the ability to properly plumb the jambs. Conversely, exceeding an inch leaves a gap that standard interior trim or exterior casing may fail to cover completely, creating extra finish work and potential air leaks.

What a Rough Opening Calculator Cannot See

While a digital rough opening calculator delivers precise mathematical outputs, it cannot evaluate real-world site conditions or structural load paths hidden behind existing drywall. The calculations assume a standard platform-framed wall with uniform stud lengths and flat plates. If your foundation wall is uneven, or if the wall you are cutting into is a load-bearing partition requiring temporary shoring before you install your header, the software cannot warn you. Always verify local building codes and consult a structural engineer before cutting into load-bearing walls, especially for wide spans that require engineered lumber or laminated veneer lumber beams.

Nominal WidthShim AllowanceRough Opening WidthSuggested Header Depth
30 inches2 inches total32 inches5.5 inches (2x6)
36 inches2 inches total38 inches5.5 inches (2x6)
48 inches2 inches total50 inches7.25 inches (2x8)
72 inches2 inches total74 inches9.25 inches (2x10)

The formula

rough opening width = unit width + shim space on both sides, usually 2 in totalrough opening height = unit height + about 2.5 in for a doorheader length = rough opening + 1.5 in of jack stud at each endheader depth rule of thumb: half the span in feet, in inches

Frequently asked questions

Why is the rough opening always larger than the door or window unit?

The rough opening must be larger to give carpenters room to square, plumb, and level the unit within the wall. Without this extra clearance, the door or window would bind, twist, or refuse to operate correctly once the surrounding framing settles.

How do I choose the right header size for my span?

Header depth is determined by the total width of the rough opening and the load it must carry from above. Standard rules of thumb suggest increasing the depth of the lumber as the span widens, moving from doubled two-by-sixes for small openings up to deeper members for wide spans.

What is the difference between a king stud and a jack stud?

King studs run continuously from the bottom plate to the top plate to provide full vertical wall framing. Jack studs, or trimmers, are shorter studs that sit directly inside the king studs and carry the direct weight of the header.

How much shim space should I leave around a window?

Standard practice dictates leaving about one inch of total shim space across the width and height of the opening. This allows enough room to insert wooden shims for leveling while keeping the gap small enough for standard trim casings to cover.

Does the rough opening calculation change for exterior doors with sills?

Yes, exterior doors with built-in sills require different height calculations than interior prehung doors. An exterior unit sits directly on the subfloor or threshold, requiring precise height adjustments to match finished flooring materials.

Sources

Last reviewed . Results are for general guidance and are not professional advice.