How to Square a Door Frame Before Hanging a Door
Part of: Floors, walls and doors

- Difficulty
- Moderate
- Time
- 1 to 2 hours per opening
- Tools
- 4 foot level, tape measure, pencil, wooden shims, hammer, nails or screws, utility knife, square, drill
- Call a pro if
- The rough opening is more than an inch out of square, the header sags, or the framing around the opening is soft or cracked.
In this guide
- Ladder safety
- Wear protection
Most door problems blamed on the door are actually frame problems. The order of work in how to square a door frame before hanging a door starts with the diagonals, not the level. A door that rubs, swings open on its own, or will not latch usually sits in a frame that is out of plumb, out of level, or twisted. Hanging a new door in a bad frame just moves the problem to a new door.
Squaring the frame first takes an hour and saves a day of frustration.
1. Check the rough opening size
Measure the width at the top, middle, and bottom, and the height at both sides.
A prehung door needs a rough opening slightly larger than the unit, usually by about an inch in width and half an inch in height, depending on the manufacturer. Check the instructions for your door, since the figure varies.
If the opening is too small, fix the framing before you go further. Forcing a door into a tight opening guarantees a rub.
2. Check the floor and the header
- The floor under the opening should be flat. A hump or a dip tilts the frame.
- The header should be straight and level. A sagging header means the opening will never be square.
If the floor is out, you can shim the sill, but a large dip usually means the subfloor needs repair.
3. Measure the diagonals
This is the simplest test of square. Measure from the top left corner of the rough opening to the bottom right, then from the top right to the bottom left.
- Equal or within about 1/8 inch: the opening is square.
- Different by more than that: the opening is racked, and the frame has to be adjusted.
Mark the numbers on the framing so you can see whether your shimming improves them.
4. Set the hinge jamb first
The hinge side carries the door, so it sets the whole frame.
1. Set the prehung unit into the opening.
2. Put a level against the hinge jamb.
3. Tap shims behind the jamb at each hinge location, plus the top and bottom.
4. Adjust until the jamb is plumb in both directions, front to back and side to side.
5. Check the diagonal measurement again.
Shim at the hinge points, not just the ends. A jamb that is plumb at the ends but bowed in the middle will make the door bind.
5. Level the head jamb
With the hinge jamb plumb, check the head.
- The head should be level, or very slightly higher on the latch side so the door does not swing open on its own.
- If the head is out, adjust the shims under the hinge jamb or plane the head.
Do not force the head level if the opening itself is out, since that twists the frame.
6. Set the latch jamb and check the reveal
The reveal is the gap between the door and the frame. It should be even, about 1/8 inch, all the way around.
1. Set the door in the frame, or fit the latch jamb with the door in place.
2. Shim the latch jamb until the reveal is even at the top, middle, and bottom.
3. Check that the door latches without lifting or pushing hard.
An uneven reveal is the clearest sign the frame is still out of square.
7. Fasten through the shims
Once the frame is plumb, level, and square, fasten it.
1. Drive nails or screws through the jamb and the shims into the framing, at each shim location.
2. Do not overdrive the fasteners, since they can bow the jamb.
3. Check the reveal again after fastening, and adjust if the frame moved.
Trim the shims flush with a utility knife after the fasteners are in.
8. Insulate and seal the gap
The gap between the frame and the rough opening is an air leak.
- Fill it with a low-expansion foam or fiberglass, not a high-expansion foam that can bow the jamb.
- Seal the interior edge with caulk before the casing goes on.
- On an exterior door, seal the exterior edge as well, and check the sill pan.
9. Fit the casing and test the door
Install the casing, then open and close the door through its full swing.
Common mistakes
- Shimming only at the top and bottom, leaving the middle bowed.
- Checking plumb on one face only and missing a twist.
- Using high-expansion foam that bows the jamb.
- Fastening the frame before checking the diagonals.
- Adjusting the strike plate to fix a frame that is out of plumb.
FAQ
How far out of square can a door frame be?
Aim for within about 1/8 inch on the diagonals. More than that shows up as a rub or an uneven reveal.
Do I need to square the frame to replace just the door slab?
Yes. A new slab in a racked frame will rub, and you will end up trimming a door that did not need it.
Should the head jamb be perfectly level?
Very close, with a slight rise toward the latch side so the door does not swing open on its own.
What is a normal reveal on a door?
About 1/8 inch, even all the way around. A wide or narrow spot means the frame is out of square.
Related guides
- How to Hang a Prehung Door: How to hang a prehung door plumb and square: set the unit in the opening, shim the hinge side, and get even...
- How to Lubricate a Sticky Door Lock: Learn how to lubricate a sticky door lock: clean out grit, use the right dry lubricant, work the key, and...
- How to Stop a Door From Slamming or Banging: How to stop a door from slamming or banging with felt pads, a soft-close hinge or a door closer. Easy steps,...
- How to Fix an Interior Door That Sticks: Learn how to fix an interior door that sticks: find where it rubs, tighten hinges, sand or plane the edge,...
- How to Hang a Door by Yourself: How to hang a door by yourself: fit the slab to the opening, cut the hinge gains, set the gaps, and get it...
