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 Door or window width as sold, such as 36 inches for a standard 3-0 door.
  2. Enter the Door or window height, noting that standard interior doors are typically 80 inches tall.
  3. Select the What is going in option from the dropdown menu to match your installation type.
  4. Input the desired Shim space each side, with one inch per side being a common standard.
  5. Provide the Wall height from bottom plate to top plate, such as 97.13 inches for a standard 8-foot wall.
  6. Enter the Header depth or rely on the suggested size provided for your specific span.

Understanding the Rough Opening

When framing a door opening or a window opening, the dimensions you measure on site are never the actual dimensions printed on the product label. A manufacturer sells a unit based on its net size, but framing crews require a rough opening that gives the unit room to fit plumb, level, and square. If you cut your studs to the exact nominal size of the door or window, the unit will bind against the framing and you will have no room to insert shims.

The calculator determines the exact rough opening width by taking the unit width and adding the shim space on both sides. For standard installations, this usually adds two inches to the total width. The rough opening height accounts for the unit height plus an additional allowance for clearance and flooring. For prehung interior doors, this height includes clearance for finished flooring, while windows require shim space on all four sides.

The Hidden Maths Behind Framing Calculations

Behind the user interface, the tool is performing several structural calculations simultaneously to ensure the load is transferred properly. When framing a door opening, the structure relies on king studs running continuously from the bottom plate to the top plate, paired with shorter jack studs that directly support the header. The header length is automatically sized to span the rough opening plus an extra 1.5 inches of bearing on each side for the supporting jack studs.

The most critical hidden calculation involves the header depth rule of thumb. The system estimates the required structural depth by taking half the span in feet and converting it directly into inches. For instance, a span under four feet suggests a minimum 5.5-inch header depth, which equates to a doubled 2x6, while larger spans step up to 7.25-inch, 9.25-inch, or 11.25-inch timber depths to prevent deflection under heavy loads. If your specified header depth falls below this threshold, the structural integrity of the wall is compromised.

Stud Breakdown and Material Estimation

Material waste is a major budget drain on any framing project. By calculating the exact number of jack stud and king stud elements needed for each opening, you avoid buying excess lumber while ensuring you do not run short mid-frame. A standard single opening requires four main vertical studs—two kings and two jacks—plus additional cripple studs above the header and sometimes below a window opening.

The header size for span calculations also generates a total board-foot estimate for the header material, accounting for doubled framing members and standard lumber dimensions. Cripple studs above the header are spaced automatically based on a standard 16-on-center layout rule, filling the vertical gap between the top of the header and the top plates.

Span WidthSuggested Header DepthTypical Lumber Size
Up to 4 feet5.5 inchesDoubled 2x6
4 to 6 feet7.25 inchesDoubled 2x8
6 to 8 feet9.25 inchesDoubled 2x10
8 to 10 feet11.25 inchesDoubled 2x12

Common Framing Mistakes and Safety

The single most common mistake when framing a door opening is failing to account for the thickness of the finished wall materials, such as drywall or exterior sheathing, which can shift alignment. Another frequent error is cutting jack studs too short, which forces installers to pack wooden shims under the header—a practice that transfers point loads unevenly and can cause structural sagging over time.

Standard residential framing rules apply to typical non-load-bearing and light load-bearing partition walls. However, if you are cutting a wide window opening size or door span in a heavy load-bearing exterior wall supporting a roof or second story, standard rules of thumb may not be sufficient. In those instances, or when dealing with engineered lumber products like LVLs, you should consult a structural engineer or local building code official before cutting structural members.

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

What is the difference between unit size and rough opening size?

The unit size is the actual physical dimension of the door or window as sold by the manufacturer. The rough opening size is intentionally framed larger to accommodate the unit, allowing space for insulation, shims, and adjustments so the product can be installed plumb and level.

Why does a prehung interior door need a different height calculation than a window?

A prehung interior door requires extra clearance at the bottom to sit properly above the finished flooring material. Windows, on the other hand, require equal shim space on all four sides because they do not rest directly on a finished floor surface.

How do I know if my header depth is strong enough for my span?

The calculator evaluates your chosen header depth against standard building rules of thumb based on the span width. If your depth is too shallow for the width of the opening, the system flags it to prevent structural sagging and failure under load.

What are king studs and jack studs, and why do I need both?

King studs run continuously from the bottom plate to the top plate to maintain wall height and structural continuity. Jack studs, also known as trimmer studs, are fitted directly beneath the header to bear its weight and transfer the load down to the bottom plate.

Can I use these standard framing calculations for load-bearing exterior walls?

These calculations provide standard rules of thumb suitable for typical residential construction and non-complex spans. However, for wide spans, multi-story buildings, or heavy load-bearing exterior walls, you should always verify requirements with a structural engineer.

Sources

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