Amazon holiday deals See deals →ad

How to Install a Door Frame in an Unlevel Opening

Installing a door frame in an unlevel opening means making the frame plumb and square even when the rough opening’s floor, walls, or header are not perfectly level or straight. This guide shows you how to shim, plumb, and secure a prehung door so it operates smoothly and looks right, without tearing out the existing framing. You’ll need basic carpentry tools and a willingness to check your work repeatedly.

What You’ll Need

  • Prehung interior or exterior door (with frame attached)
  • Shims (wood or composite, tapered)
  • Level (at least 4-foot, but a shorter one helps)
  • Hammer or mallet
  • Screwdriver or drill with bits
  • Screws (long enough to reach the rough framing, usually 3-inch deck screws)
  • Nails (finish nails for interior, galvanized for exterior)
  • Pry bar or flat bar
  • Utility knife
  • Pencil
  • Safety glasses

Step-by-Step

  1. Measure the rough opening. Check the width at the top, middle, and bottom, and the height on both sides. Note where it is out of level—usually the floor slopes or one side of the opening is higher. Your frame must fit with a small gap (about a half-inch) on the sides and top for shimming.
  2. Prepare the opening. Remove any old trim, nails, or debris. Check that the subfloor is solid and that the wall studs are not bowed. If the floor is severely sloped, you may need to add a tapered sill or use a floor leveler, but for most cases, shims will handle it.
  3. Set the door frame in the opening. Lift the prehung door into the rough opening, centered. Use a pry bar or a helper to hold it. Place a couple of shims under the bottom of the frame on the low side to raise it to level—this is the first critical adjustment.
  4. Plumb the hinge side first. Place your level against the hinge-side jamb (the side with the hinges). Adjust the frame by tapping the bottom or top with a mallet, and insert shims behind the jamb to push it plumb. Work from bottom to top, adding shims every 6 to 8 inches. Check the level both vertically and horizontally.
  5. Secure the hinge side. Once the hinge side is plumb, drive screws through the jamb and shims into the rough framing. Use two screws per hinge location, but don’t fully tighten yet—just snug. Re-check plumb after each screw.
  6. Level the header. Place a level across the top of the frame. If the header is not level, adjust the shims under the low side or tap the frame gently. The goal is to make the top of the frame level, even if the floor is not.
  7. Plumb the latch side. Move to the latch side (the side without hinges). With the door closed, check the gap between the door and the jamb—it should be even top to bottom. Adjust the latch side by shimming behind it until the gap is uniform and the jamb is plumb.
  8. Secure the latch side. Drive screws through the latch side jamb into the framing, again using shims. Tighten all screws fully, but avoid over-tightening which can bow the jamb.
  9. Check the door swing. Open and close the door. It should swing freely and latch without sticking. If it binds, loosen the screws slightly and adjust shims, then retighten.
  10. Trim the shims. Once everything is secure, use a utility knife to score the protruding shims and break them off flush with the wall. Be careful not to damage the jamb.
  11. Install the casing (trim). Nail on the door casing, making sure it sits flat against the wall. If the wall is not perfectly flat, you may need to shim behind the casing or use a flexible caulk to hide gaps.

Common Mistakes

  • Forgetting to check the floor slope. If you don’t level the frame from the start, the door will be out of plumb and may swing open or closed on its own.
  • Over-shimming. Using too many shims or stacking them too thick can push the jamb out of shape. Use a few, well-placed shims rather than many.
  • Tightening screws too early. If you fully tighten before checking alignment, you’ll have to loosen and redo. Snug is fine until final.
  • Ignoring the door gap. An even gap is essential for proper operation. If the gap is uneven, the door will rub or bind.
  • Not using a level on both planes. A jamb can be plumb but not level across the header, causing the door to sag.

Tips

  • Use a long level (at least 4 feet) for accuracy, but a shorter one is fine for tight spaces.
  • Place shims at every hinge and latch location, plus at the top and bottom of each jamb.
  • If the floor is very unlevel, consider using a tapered threshold or a door sweep to close the gap at the bottom.
  • For exterior doors, use galvanized screws and weatherproof shims to prevent rot.
  • Work with a helper—holding a door frame while adjusting shims is much easier with two people.
  • Check the door operation after each screw is tightened—small adjustments are easier than big ones.

Troubleshooting

  • Door won’t latch. The latch side may be too far from the strike plate. Loosen the screws, shim the latch side slightly inward, and retighten. Or adjust the strike plate position.
  • Door swings open by itself. This means the frame is not plumb. Re-check the hinge side with a level and add shims to correct the tilt.
  • Gap is uneven at the top. The header is not level. Adjust the shims under the low side or tap the frame to level it.
  • Door binds at the top or bottom. The frame may be twisted. Loosen all screws, re-plumb, and retighten gradually, checking the door swing between each.
  • Shims split. Use a sharp utility knife to score them before breaking, and always use the tapered end facing out.

Frequently Asked Questions

  • Can I install a door frame if the floor is very sloped? Yes, but you may need to cut the bottom of the door or use a threshold to fill the gap. The frame can be plumb even if the floor is not level.
  • How much gap should be between the door and the frame? Typically about 1/8 inch on the sides and top, but check the manufacturer’s instructions. The gap should be even all around.
  • Do I need to remove the door from the frame to install it? No, a prehung door comes with the door attached. Installing it as one unit is easier and keeps the alignment correct.
  • What if the rough opening is too small? You may need to trim the frame sides, but only if the door is not prehung. For a prehung, it’s better to enlarge the opening slightly.
  • Can I use construction adhesive instead of shims? Shims are better because they allow adjustment. Adhesive dries fast and doesn’t let you correct mistakes.
  • How long does this take? For a first-timer, plan for a few hours. With experience, it can be done in under an hour.