First Home Fixes logo

Home / Doors and Windows

How to Hang a Prehung Door

5 min read · Updated 28 November 2026 ·

Part of: Floors, walls and doors

Product photo related to: How to Hang a Prehung Door
Difficulty
Moderate
Time
2 to 4 hours
Tools
level, shims, hammer, nails or screws, drill, driver, utility knife, tape measure, pry bar, caulk, safety glasses
Call a pro if
The rough opening is out of square by more than about half an inch, the header is sagging, or the wall is load bearing and needs to be altered.
In this guide
  1. Measure the rough opening
  2. Remove the unit from its packaging carefully
  3. Dry fit the unit in the opening
  4. Level the floor line first
  5. Shim the hinge side plumb
  6. Set the head jamb
  7. Shim the latch side for even reveals
  8. Test the swing before you finish nailing
  9. Nail off the frame
  10. Install the casing and hardware
  11. Common mistakes
  12. FAQ
  13. When to call a pro
Safety. Door units are heavy and top heavy, and a prehung exterior door can weigh well over a hundred pounds. Lift with your legs, get help for anything larger than a standard interior unit, and keep the door closed and latched while you carry it so it cannot swing open on the stairs. Wear glasses when nailing near the frame, since a missed nail can send a shim flying.

Knowing how to hang a prehung door is mostly a shimming exercise. The door and frame arrive as one unit, already hinged, already square in the factory. Your only job is to hold that square unit in the opening so it stays square, and that means shims in the right places, checked with a level at each stage.

Most first attempts fail at the same point: the door is nailed off before the reveals are checked, and then it rubs at the top corner. Take the extra fifteen minutes to hang the door with a few nails, swing it, adjust, and only then finish nailing.

1. Measure the rough opening

The rough opening should be about two inches wider and two and a half inches taller than the door unit. Measure at the top, middle, and bottom of both sides, since old walls are rarely consistent. If the opening is tight, trim the framing rather than forcing the unit.

2. Remove the unit from its packaging carefully

Set the unit on the floor with the hinge side up and cut the wrapping away without running a knife along the frame face. Check that the door swings freely in the frame before it goes into the wall. A door that binds on the floor is easier to deal with now than after it is nailed in.

3. Dry fit the unit in the opening

Lift the unit into the opening and check the fit. The frame should sit against the framing with a small gap all around for shims. If the unit will not go in, find out why: a crowned header, a bowed stud, or a floor that is out of level. Fix the cause rather than shaving the frame.

4. Level the floor line first

A door hung on an out of level floor will swing open or closed on its own. Set a level on the floor across the opening. If one side is low, shim under the low jamb so the frame sits level, then adjust the casing later to cover the gap.

5. Shim the hinge side plumb

Put shims behind each hinge, stacked in pairs from opposite sides so they lock together, and check the hinge jamb with a level. This side is the one that matters most, because the hinges carry the door. Drive one nail through the jamb at each shim once it reads plumb.

6. Set the head jamb

With the hinge side fixed, shim the head so the top of the frame is level and the gap between the door and the head is even. A door that rubs at the top is almost always a head jamb that was not checked.

7. Shim the latch side for even reveals

Close the door and look at the gap around it. You want roughly an eighth of an inch at the top and along both sides, and it should be even from top to bottom. Shim the latch side to hold that gap, then check the door still latches.

8. Test the swing before you finish nailing

Open and close the door several times. It should not rub, it should not swing on its own, and the latch should catch without a shove. Check that the door does not hit the floor at the outer corner as it swings. Adjust shims now, while only a few nails are in.

9. Nail off the frame

Finish nailing through the jamb and shims, keeping the nails under where the casing will cover them. Use a nail set to sink the heads. Trim the shims flush with a utility knife or a pull saw, being careful not to score the jamb.

10. Install the casing and hardware

Set the casing tight to the frame with an even reveal on the frame face, and nail it off. Then fit the strike plate and the lockset. If the door is an exterior unit, insulate the gap between the frame and the framing before the casing goes on, and caulk the outside edge.

Common mistakes

FAQ

How much gap should a prehung door have?

About an eighth of an inch at the top and along both sides, even from top to bottom.

Do I have to remove the door from the frame to install it?

No. Keep the unit together, shim the frame, and adjust with the door in place.

Why does my new door swing open by itself?

The hinge jamb is out of plumb, or the floor is out of level and the frame followed it.

Can I hang a prehung door in an existing frame?

Only if the frame matches the unit. Usually the old frame comes out with the old door, and the new unit goes into the rough opening.

How long does it take?

Two to four hours for an interior unit, longer for an exterior door with insulation, flashing, and caulk.

how to hang a prehung doorprehung doordoor installationdoor shimminghome repair

Related guides

Simple diagram for the guide: How to Square a Door Frame Before Hanging a DoorDoors and WindowsHow to Square a Door Frame Before Hanging a DoorHow to square a door frame before hanging a door: check plumb, level and the diagonals, shim the jamb at the hinges, and get an even reveal.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.Simple diagram for the guide: How to Install a Bifold DoorDoors and WindowsHow to Install a Bifold DoorHow to install a bifold door square and smooth: set the track level, anchor the pivot side, hang the panels, and adjust the gap.Simple diagram for the guide: How to Install a Door ThresholdDoors and WindowsHow to Install a Door ThresholdHow to install a door threshold that seals the gap, sheds water, and does not trip anyone: measure, cut, bed it in sealant, and fasten it down.Simple diagram for the guide: How to Install a Pocket DoorDoors and WindowsHow to Install a Pocket DoorHow to install a pocket door: plan the pocket wall, frame it square and plumb, hang the slab so it clears the floor, and finish the opening clean.