First Home Fixes logo

Home / Doors and Windows

How to Square a Door Frame Before Hanging a Door

5 min read · Updated 28 November 2026 ·

Part of: Floors, walls and doors

Simple diagram for the guide: How to Square a Door Frame Before Hanging a Door
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
  1. Check the rough opening size
  2. Check the floor and the header
  3. Measure the diagonals
  4. Set the hinge jamb first
  5. Level the head jamb
  6. Set the latch jamb and check the reveal
  7. Fasten through the shims
  8. Insulate and seal the gap
  9. Fit the casing and test the door
  10. Common mistakes
  11. FAQ
  12. When to call a pro
Safety. Door frames are heavy and awkward, and a prehung unit can fall out of the opening while you shim it. Have a helper or brace it before you let go. Wear eye protection when nailing close to the frame, and keep the ladder or step stool clear of the door swing.

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

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.

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.

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.

9. Fit the casing and test the door

Install the casing, then open and close the door through its full swing.

Common mistakes

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.

how to square a door frame before hanging a doordoor frame shimmingprehung doorrough openingdoor installation

Related guides

Product photo related to: How to Hang a Prehung DoorDoors and WindowsHow to Hang a Prehung DoorHow to hang a prehung door plumb and square: set the unit in the opening, shim the hinge side, and get even reveals on the first try.How to Lubricate a Sticky Door LockDoors and WindowsHow to Lubricate a Sticky Door LockLearn how to lubricate a sticky door lock: clean out grit, use the right dry lubricant, work the key, and know when the lock needs a repair or replacement.Interior door with felt bumpers on the frame and a soft-close hinge, with an arrow showing a slow closeDoors and WindowsHow to Stop a Door From Slamming or BangingHow to stop a door from slamming or banging with felt pads, a soft-close hinge or a door closer. Easy steps, tools and when to adjust the hinges.Product photo related to: How to Fix an Interior Door That SticksDoors and WindowsHow to Fix an Interior Door That SticksLearn how to fix an interior door that sticks: find where it rubs, tighten hinges, sand or plane the edge, and seal the wood so humidity stops the problem.Product photo related to: How to Hang a Door by YourselfDoors and WindowsHow to Hang a Door by YourselfHow to hang a door by yourself: fit the slab to the opening, cut the hinge gains, set the gaps, and get it swinging alone.