Door Jamb Calculator
Enter the rough opening, shim gap and jamb thickness to size the door jamb.
What this calculator sizes
This tool converts a framed rough opening into the outside dimensions of the door jamb that fits inside it, plus the finished opening area. At the defaults — a 32 × 82 in rough opening with a ¼ in shim gap — it returns a jamb 31.5 in wide by 81.75 in tall, enclosing an opening of 17.88 sq ft. Those jamb dimensions are what a prehung unit or a site-built jamb assembly must measure before it goes into the wall.
How the formula works
The jamb slides into the rough opening with a small gap on each side, filled with wooden shims, so the unit can be plumbed, leveled and squared even if the framing is not perfect. Width loses two gaps, one per side; height loses only one, because the head gap sits above the jamb while the floor or threshold carries the bottom. The opening area is the jamb width times height divided by 144, useful when estimating paint, casing or the wall area you are removing from the room.
The shim gap is deliberately small. A ¼ in gap per side is the working standard; larger gaps make shimming fussy and casing alignment harder, while no gap at all leaves nothing to adjust — a jamb cut exactly to a rough opening cannot be plumbed if the stud bows.
Worked example at the defaults
A 32 in rough opening with ¼ in gaps: jamb width = 32 − 2 × 0.25 = 31.5 in. Jamb height = 82 − 0.25 = 81.75 in. The finished opening is 31.5 × 81.75 ÷ 144 = 17.88 sq ft. The arithmetic also confirms why a 32 in rough opening is specified for a 30 in door: two 0.75 in jambs (1.5 in) plus the slab (30 in) equal 31.5 in of jamb width, and the half-inch of total shim gap completes the 32 in frame.
Common rough openings
| Opening type | Typical rough opening | Jamb width at ¼ in gap |
|---|---|---|
| Interior 30 in door | 32 × 82 in | 31.5 in |
| Exterior 36 in entry | 38 × 82.5 in | 37.5 in |
| Interior double door | 62 × 82 in | 61.5 in |
| Wide 32 in accessibility door | 34 × 82 in | 33.5 in |
Exterior openings run slightly taller to accommodate a sill or threshold below the jamb, and manufacturers publish exact rough-in dimensions per unit — measure the actual opening before ordering either the jamb or the door.
Jamb depth: the dimension people forget
Width and height size the opening; depth decides whether the trim looks right. Standard interior walls are 4½ in deep (a 3½ in stud plus ½ in drywall each side), so the matching jamb is a 4⅝ in or extended 4½–4¾ in profile. Exterior walls with 2x6 studs, or walls with furring and plaster, need wider jamb stock or a jamb extender strip. The 0.75 in thickness in this calculator is the standard jamb face thickness; the depth is a separate selection made from wall construction.
- Measure the rough opening at three heights and two widths, then use the smallest values
- Check the wall depth at the opening, not elsewhere in the wall, where drywall layers vary
- Verify plumb with a level before ordering — a bowed stud shifts the effective width by more than the shim gap
- Order jamb stock 1/4–1/2 in longer than the computed height so it can be trimmed to a perfectly level floor
What moves the jamb dimensions
- Shim gap: doubling it to ½ in per side narrows the jamb to 31 in on the default opening
- Framing accuracy: an out-of-square opening is fitted to its smallest measured width, not its average
- Jamb material: standard pine or finger-joint stock is 0.75 in thick; prehung frames and metal jambs differ slightly
- Flooring: adding a thick tile or hardwood after hanging shifts the jamb height relative to the finished floor
Fitting an out-of-square opening
Framing moves. If the opening measures 32 in at the bottom and 31⅝ in at the top, the jamb must fit the smaller number or it will not go in — then the wider gap is shimmed tight. The calculator gives you the nominal size; the smallest of several real measurements is what you cut to.
Site-built versus prehung jambs
A prehung door arrives with jamb, hinges and slab already fitted to standard dimensions, so the rough opening governs everything and this calculator confirms the fit. A site-built jamb — three boards of 0.75 in stock ripped to depth, with a stopped dado for hinge mortises — gives full control on odd openings such as the 60–62 in double-door case. Material cost for a site-built interior jamb is modest, about $15–$30 in 2026 for pine stock, versus $40–$80 for a prehung frame sold without the slab.
Mistakes that ruin the fit
- Measuring the old door instead of the framed opening — the slab is smaller than the jamb on every side
- Subtracting the shim gap twice on height, which leaves the head gap short and binds the door
- Ignoring wall depth, so the casing ends up floating off the drywall or split by the jamb edge
- Cutting jambs to the average of uneven measurements instead of the smallest
When in doubt, cut the jamb a hair long rather than short. An eighth of an inch of extra height is trimmed against the level floor line during installation; the same eighth missing is a shim-and-caulk repair visible forever.
Frequently asked questions
What size jamb fits a 32 inch rough opening?
With a standard ¼ in shim gap per side, the jamb outside width is 31.5 in and, on an 82 in opening, the height is 81.75 in.
How much gap should there be around a door jamb?
About ¼ in on each side and at the head. The gap is filled with shims so the jamb can be plumbed, leveled and squared within a slightly imperfect frame.
What is a rough opening?
The framed hole in the wall measured stud face to stud face and subfloor to header, before any jamb, trim or casing is installed. Door sizing always starts from the rough opening, not the slab.
Why is a door rough opening wider than the door?
The opening must hold the slab plus two jamb thicknesses plus shim gaps. For a 30 in door: 30 in slab + 1.5 in of jambs + 0.5 in of gaps = a 32 in rough opening.
How do I size a jamb for an out-of-square opening?
Measure width at three heights and height on both sides, then fit the jamb to the smallest measurements. The extra shim space on the wide sides is taken up during installation.
What does jamb depth mean?
It is the front-to-back dimension of the jamb, which should match the wall thickness so casing sits flush on both faces. Interior 2x4 walls use about 4½–4⅝ in; exterior 2x6 walls need extended jamb stock.
How much opening area does a standard door take?
The default 31.5 × 81.75 in jamb encloses 17.88 sq ft of finished opening, which is useful for estimating paint or comparing ventilation between rooms.
Should I build a jamb or buy a prehung door?
For standard sizes, a prehung unit is faster and self-aligned. Site-built jambs make sense for nonstandard openings, thick walls and matched trim work, at about $15–$30 in stock per interior door.
What happens if the jamb gap is too tight or too loose?
No gap means nothing to adjust — a bowed stud leaves the jamb unlevel and the door binding. More than about ½ in per side makes shims springy and casing alignment difficult, so keep the gap near ¼ in.
Method and sources
- Standard door jamb sizing practice: jamb width = rough opening minus shim gaps.