Rough Opening Calculator

Quick answer

A rough opening calculator finds the framed opening size you need for a door or window. Pick the opening type and enter the unit size, and the tool adds the correct clearance for jambs and shims. A standard 36-inch prehung door needs a rough opening of 38 inches wide by 82-1/4 inches tall.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Lumber, Framing and Carpentry
The type of unit being installed. Each type has different clearance rules.
in
The nominal width of the door or window unit in inches.
in
The nominal height of the door or window unit in inches.
Your results

Rough opening size

—
RO width—
RO height—
Width clearance—
Height clearance—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ
How this calculator works1Your inputs2Verified formulameasurementfactor3Result
How it works: your measurements run through a verified formula to give the result.

How to Use the Rough Opening Calculator

  1. Pick the opening type (prehung door, bifold, pocket door or window).
  2. Enter the unit width and unit height in inches.
  3. Read the rough opening width, height and clearance breakdown.

Here is what each result line means:

ResultWhat it means
RO widthThe framed opening width, including clearance for jambs and shims.
RO heightThe framed opening height, including clearance for the threshold, head jamb and hardware.
Width clearanceHow much extra width is added and why.
Height clearanceHow much extra height is added and why.

For the header size that goes above this opening, see the header size calculator. For a full wall material list, see the framing calculator.

What Is a Rough Opening?

A rough opening is the framed hole in a wall where a door or window unit will be installed. It is always slightly larger than the unit itself to leave room for the jamb, shims, insulation and adjustment.

Getting the rough opening right is critical: too small and the unit will not fit, too large and you waste shimming material and compromise the seal.

How the Rough Opening Calculator Works

Rough opening formula
RO = Unit + Clearance

Each opening type has a standard clearance:

  • Prehung door: +2 in width (1 in each side), +2-1/4 in height.
  • Bifold door: width equals the door width (track mounts inside), +3/4 in height.
  • Pocket door: width = 2 x door width + 1 in (pocket cavity), +4-1/2 in height.
  • Window: +1/2 in width (1/4 in each side), +1/2 in height.
  1. Read the unit width and height in inches.
  2. Add the clearance for the selected type.
  3. Report the rough opening dimensions.

Rough Opening Example

You are framing for a 36-inch prehung interior door, 80 inches tall.

Worked example: 36-in prehung interior door
RO width = 36 + 2 = 38 in, RO height = 80 + 2.25 = 82.25 in

Calculation: RO width = 36 + 2 = 38 inches. RO height = 80 + 2.25 = 82-1/4 inches. Frame the opening 38 inches wide by 82-1/4 inches tall.

Factors That Change Rough Opening Size

Opening Type

Pocket doors need the widest rough opening (twice the door width plus 1 inch) because the door slides into the wall cavity.

Manufacturer Specs

Some window and door brands specify clearances different from the standard rules. Always check the installation guide for your unit.

Floor Finish

If the finished floor is not yet installed, add its thickness to the height clearance so the door clears the floor.

Exterior vs Interior

Exterior doors may need extra height clearance (up to 3-3/4 in for outswing units with a threshold) compared to interior doors.

Sill Pan and Flashing

Windows with a sill pan or flashing membrane may need an extra 1/4 to 1/2 inch in height.

Rough Opening Comparison by Door Type

The table below compares rough openings for a 36-inch-wide, 80-inch-tall unit across door types.

TypeRO widthRO heightNotes
Prehung38 in82-1/4 inStandard clearance.
Bifold36 in80-3/4 inTrack mounts inside opening.
Pocket73 in84-1/2 in2x width + 1 in for cavity.

When to Use a Rough Opening Calculator

New Construction Framing

Frame every opening to the correct size before drywall.

Door or Window Replacement

Verify the existing rough opening fits the new unit, or plan how to resize it.

Adding an Opening to an Existing Wall

Cut the wall to the right rough opening the first time.

Pocket Door Conversions

Pocket doors need a much wider rough opening than swing doors. Check before committing.

Common Mistakes with Rough Openings

1. Making the Opening Too Tight

Without clearance, the unit will not fit or will bind when shimmed. A too-tight opening means recutting studs.

2. Forgetting the Floor Finish

If the subfloor is down but the tile or hardwood is not, add the finish thickness to the height allowance.

3. Using Prehung Clearances for Pocket Doors

A pocket door needs twice the width. Using prehung rules leaves the cavity too short for the door to slide in.

4. Ignoring Manufacturer Specs

Some windows need more clearance for a nailing flange or integral J-channel. Check the spec sheet.

5. Measuring the Door Slab Instead of the Unit

A 30-inch slab comes in a 32-inch jamb assembly. Measure the assembled unit, not the slab alone.

Accuracy and Limitations

The calculator uses standard industry clearances verified against Home Depot, Lowe’s and Johnson Hardware installation guides. Some manufacturers may specify different values.

What it calculates

  • RO width and height
  • Clearance breakdown
  • Prehung, bifold, pocket and window types

What it does not do

  • Sliding glass door manufacturer specs
  • Commercial door frames
  • Arched or specialty window shapes
  • Structural header sizing

How We Calculate Rough Openings

Method
Unit size plus standard clearance by type: prehung +2/+2.25, bifold +0/+0.75, pocket 2x+1/+4.5, window +0.5/+0.5.
Inputs used
Opening type, unit width, unit height.
Constants
Prehung: 1 in each side, 2.25 in top. Bifold: 0 width, 0.75 in top. Pocket: 2x width + 1 in, 4.5 in top. Window: 0.25 in each side and top/bottom.
Rounding
Results shown to the nearest 1/4 inch.
Edge cases
Zero or negative dimensions rejected. Clearance values are industry defaults; manufacturer specs may differ.
Sources
See the Sources list below.
Last reviewed
2026-10-24.

Frequently Asked Questions About Rough Openings

What is the rough opening for a 36-inch door?

For a standard prehung door: 38 inches wide by 82-1/4 inches tall (unit width + 2 in, unit height + 2-1/4 in).

What is the rough opening for a 30-inch door?

32 inches wide by 82-1/4 inches tall for a prehung door.

How much bigger is a rough opening than the door?

For prehung doors, 2 inches wider (1 inch each side) and 2-1/4 inches taller.

What is the rough opening for a pocket door?

Twice the door width plus 1 inch for the width, and the door height plus 4-1/2 inches for the height.

What is the rough opening for a bifold door?

The width is the same as the bifold opening (the track mounts inside). The height is the door height plus 3/4 inch.

What clearance does a window need?

Typically 1/2 inch wider and 1/2 inch taller than the window unit (1/4 inch on each side). Check the manufacturer guide.

Do I measure the door slab or the frame?

Measure the assembled prehung unit if possible. If you only have the slab width, add 2 inches for the jamb assembly, then add the rough opening clearance.

What if my rough opening is too big?

Shim the extra space. Up to about 1/2 inch extra on each side is normal. More than that may need filler strips.

Does the floor finish change the rough opening?

Yes. If the finished floor is not installed yet, add its thickness to the height clearance so the door swings over the floor.

Is my data saved?

No. The calculation runs entirely in your browser and nothing you enter is stored or sent anywhere.

Sources
Reviewed and sourcedClear, comparable resultsReviewed and sourced
Every figure is checked against cited sources and reviewed by a qualified expert.

Related Calculators

These rough opening sizes follow standard industry clearances. Always check the manufacturer installation guide for your specific door or window unit, as some products need different clearances. Spotted an error? Let us know.