Quick Answer: The entire secret to a perfectly hung door is a five-cent wooden wedge: the shim. Shimming does 90% of the real work, on both paths — pre-hung doors (the easy win) and slab doors (the advanced route). Get the shims right and the door latches cleanly, never sticks, and never swings open on its own.
Be honest: how many times this week did you shoulder a door open, jiggle a handle, or watch a door drift shut on its own and just sigh? I lived with a door like that for months, convinced the frame was cursed or the house was settling — until a neighbour showed me the fix took less time than making coffee.
Be honest: how many times this week did you shoulder a door open, jiggle a handle, or watch a door drift shut on its own and just sigh? I lived with a door like that for months, convinced the frame was cursed or the house was settling — until a neighbour showed me the fix took less time than making coffee.
The fix is embarrassingly small: a five-cent wooden wedge called a shim, used in pairs, behind the hinge-side jamb, checked with a level in both directions. That one habit — plus the three tests at the end — is the difference between a door you fight every day and a door you never think about again. This guide shows you the whole job, both versions of it, in the order you will actually do it.


Safety first: Doors are heavy and awkward — get help for solid-core and exterior doors (back injuries are the real risk). Eye protection for drilling/cutting, and support the door securely during hinge mortising (clamped, never balanced precariously).
Pre-hung vs slab (know what you’re installing)
Keep This Chart Handy — Pre-Hung or Slab? Pick in 30 Seconds
Find your row and the decision makes itself — every fact below is from this guide.
| Your situation | Pick | Why |
|---|---|---|
| New opening, or replacing a damaged frame | Pre-hung | The door comes mounted in its frame with hinges installed — the hinges and alignment are factory-done |
| First door job, or a beginner | Pre-hung | The factory hinge work eliminates the hardest part of the job |
| Replacing a damaged door in a good frame | Slab | You keep the existing frame and only fit the new door to it — no frame work needed |
| Matching existing trim | Slab | The door is fitted to the frame you already have, so the trim stays untouched |
| Working solo and want the easier lift | Slab | One piece at a time — lighter than wrestling a whole pre-hung unit into the opening |
Pre-hung door — the easier path
The door comes mounted in its frame (jamb) with hinges installed — you install the whole unit into the rough opening.
- For: new openings, replacing damaged frames, beginners. The hinges and alignment are factory-done.
- The work: plumbing and leveling the frame in the opening with shims, then securing.
Slab door — the harder path
Just the door — no frame, no hinges. You mortise the hinges, drill for the knob, and fit it to the existing frame.
- For: replacing a damaged door in a good frame, matching existing trim.
- The work: precise hinge mortising, knob installation, fitting to the frame’s dimensions.
Beginners: choose pre-hung. The factory hinge work eliminates the hardest part.
Bookmark This Checklist — Tools & Materials
| Tool / material | Why it is on the list |
|---|---|
| Level — 2 ft (60 cm) and 4 ft (120 cm) | The long level spans the full jamb to confirm plumb in both directions; the short one checks the head and tight spots |
| Cedar shims (one bundle) | Tapered wedges used in pairs behind the jamb at every hinge location (top, middle, bottom) to plumb and lock the frame — always pair shims, never use a single shim alone |
| Drill/driver + screws | Drives screws through the jamb and shims into the wall framing to lock the unit in place — guide |
| Circular saw or handsaw | Trims the door bottom when the slab needs ~1/2″–3/4″ (12–19 mm) of flooring clearance |
| Chisel + hammer | Cuts hinge mortises to the hinge leaf’s exact depth (slab doors) and mortises the strike plate flush |
| Tape measure | Measures the rough opening (~2″/50 mm wider and ~2.5″/64 mm taller than the slab) and confirms even 1/8″ (3 mm) reveals |
| Utility knife | Scores paint and caulk lines, outlines hinge mortises to prevent tearout, and trims shims flush after securing |
| Brad nailer (optional) | Attaches the trim and casing after the door passes the close, swing, and gap tests |
Pre-hung installation (step by step)
1. Prepare the opening
- Remove the old door/frame if replacing.
- Check the rough opening: it should be ~2″ wider and ~2.5″ taller than the door slab (room for the jamb + shims + flooring clearance).
- Ensure the subfloor is level — an unlevel floor means an unlevel door.
2. Test-fit the unit
Set the pre-hung unit in the opening (with help). Check: does it fit with ~1/2″ gap on each side for shimming? Is the floor level where it sits?
3. Shim the hinge side first (THE critical step)
This is the entire secret of door hanging:
- Plumb the hinge-side jamb — shims behind the jamb at each hinge location (top, middle, bottom). The jamb must be perfectly plumb (check with the level in both directions).
- Secure with one screw per shim location — through the jamb, through the shim, into the framing. Don’t fully tighten yet.
- The hinge side determines everything — if this jamb isn’t plumb, nothing else will work. Take the time.
4. Shim the latch side
- Close the door and check the gap (reveal) between door and jamb — it should be even (~1/8″) top to bottom.
- Shim the latch-side jamb to achieve the even gap — the door itself is your gauge.
- The head jamb (top) gets shimmed to maintain the gap across the top.
5. Secure everything
- Drive screws through jambs and shims into framing at each shim location.
- Don’t overtighten — it bows the jamb. Snug, then check plumb again.
- Trim shims flush with a utility knife or oscillating tool.
6. Install the hardware
- Door knob/lever per manufacturer instructions (lockset installation is straightforward — follow the template).
- Strike plate — mortise it flush, test the latch engagement.
7. Test and adjust
- The close test: the door should close with a gentle push and latch without force.
- The swing test: open to 45° — it should stay (not swing open or closed on its own). If it moves: the jambs aren’t plumb.
- The gap test: even 1/8″ reveal on all three sides.
Slab door installation (the advanced path)
1. Fit the door to the opening
- Measure the existing frame — the slab needs ~1/8″ clearance on sides/top, ~1/2″–3/4″ at the bottom (flooring clearance).
- Trim with a circular saw + straightedge guide (or plane for small adjustments).
2. Mortise the hinges
- Mark hinge locations (matching the existing frame, or standard: 7″ from top, 11″ from bottom, middle centered).
- Score the outline with a utility knife (prevents tearout).
- Chisel the mortise to the hinge leaf’s exact depth — the leaf must sit flush.
- Test fit repeatedly — the mortise depth determines the door’s position. Too deep: the door binds; too shallow: the gap’s too wide.
3. Install knob and strike
Follow the lockset template — drill the face bore and edge bore, mortise the latch plate flush.
4. Hang and shim
Same shimming principles as pre-hung — plumb the hinge side, even the gaps, secure, test.
The shimming masterclass (the real skill)
Shims are tapered wedges — used in pairs (one from each direction) to create parallel adjustment:
- Pair them: two shims from opposite directions = flat, adjustable packing. Single shims create angled pressure.
- At hinge locations: shims go directly behind each hinge (this is where the load is).
- Snug, not crushed: the shim fills the gap firmly without bowing the jamb.
- Score and snap: after securing, score the shim with a utility knife and snap it flush.
The mindset: you’re not “filling gaps” — you’re engineering the frame into plumb and level. Every shim is a deliberate adjustment.
Keep This Chart Handy — Door Problem Diagnosis Chart
Find the symptom, check the likely cause, and try the first fix in that order. Each row restates a diagnosis already given in this guide.
| Symptom | Likely cause | First fix to try |
|---|---|---|
| Door will not catch when closed | The strike plate is out of line, the most frequent cause; a dropped door or a moved frame can also be responsible | Re-cut the strike recess or shift the plate, then fit longer hinge screws that reach the framing if the door has dropped |
| Door drifts open or shut by itself | The frame sides are out of plumb, so gravity drags the door toward its low side | Straighten the hinge-side frame again, checking the level in both directions |
| Door binds or sticks | Clearances are too tight, so seasonal moisture changes make the door swell against the frame | Restore about 1/8 in (3 mm) of clearance at the sides and across the top, and 1/2 in to 3/4 in (12 mm to 19 mm) at the bottom |
| Gap around the door is uneven | The latch-side frame was secured before the gap was evened out | Shut the door and use it as your reference, packing the latch-side frame until the gap is even top to bottom |
| Ready-made unit looks twisted in the opening | The unit got twisted while being moved, or the opening itself is not square | Compare the frame’s diagonals, then pack it until it sits square inside the opening |
Bookmark This Checklist — Mistakes to Avoid When Hanging a Door
Screenshot this before you pick up the level. Every mistake below is one this guide warns about — and every one of them shows up as a door that sticks, won’t latch, or swings on its own.
- Using single shims instead of pairs. Shims work in pairs — two wedges from opposite directions create flat, adjustable packing. A single shim creates angled pressure and a jamb that will not stay plumb.
- Crushing the shims or overtightening screws. The shim fills the gap firmly without bowing the jamb, and screws go snug — overtightening bows the jamb out of plumb. Secure, then recheck plumb.
- Skipping the hinge-side plumb check. The hinge-side jamb determines everything. Check it with the level in both directions before anything else — if it isn’t plumb, nothing else will work.
- Not painting all six sides first. Paint the top and bottom edges especially: unfinished edges absorb moisture and cause warping. This is the #1 skipped step that causes future problems.
- Forgetting flooring clearance. A slab needs ~1/8″ (3 mm) clearance on the sides and top, but 1/2″–3/4″ (12–19 mm) at the bottom for flooring and air circulation. Too tight and it sticks with humidity changes; too loose and you get drafts and poor latch engagement.
- Skipping the three tests before trim. Close test: the door closes with a gentle push and latches without force. Swing test: open to 45° — it should stay put, not drift open or closed (drifting always means the jambs aren’t plumb). Gap test: an even 1/8″ (3 mm) reveal on all three sides. Adjust before the trim goes on, not after.
- Going solo on a heavy door. Pre-hung units are heavy and awkward — get help for positioning. For solid-core or exterior doors, always get help; back injuries are the real risk.
- Installing into a racked frame. Check the frame for square (diagonal measurements equal) before installing. A racked frame can sometimes be shimmed back to square — a twisted door slab usually can’t be fixed.
Why won’t my door latch?
In order: strike plate misaligned (most common — adjust or re-mortise), door sagging (tighten hinge screws — use longer screws into the framing, not just the jamb), or the frame shifted (check plumb, re-shim). Diagnose before forcing.
Why does my door swing open/closed by itself?
The jambs aren’t plumb — gravity pulls the door toward the low side. Re-plumb the hinge-side jamb. This is always a plumb issue, never a door issue.
How much gap should be around the door?
~1/8″ on sides and top (the reveal), 1/2″–3/4″ at the bottom (flooring + air circulation). Too tight: sticking with humidity changes. Too loose: drafts, poor latch engagement.
Can I hang a door by myself?
Pre-hung: possible but difficult — the unit is heavy and awkward. Get help for positioning; solo for the shimming/securing. Slab: easier solo (lighter, one piece at a time). For solid-core or exterior doors: always get help.
Do I need to paint the door before hanging?
Yes — especially the top and bottom edges (the unfinished edges absorb moisture and cause warping). Paint all six sides before installation. This is the #1 skipped step that causes future problems.
Why is my pre-hung door racked (twisted)?
The unit twisted during handling or the opening is out of square. Check the frame for square (diagonal measurements equal) before installing — correct by shimming the frame back to square in the opening. A racked frame can sometimes be fixed; a twisted door slab usually can’t.
The verdict: the door-hanging sequence
- Choose pre-hung (unless matching an existing frame).
- Paint all six sides before installation.
- Plumb the hinge-side jamb with paired shims — this determines everything.
- Even the gaps using the door as your gauge.
- Secure without bowing — snug screws, recheck plumb.
- Test everything — close, swing, gaps. Adjust before trim.
A well-hung door is invisible — it just works, every day, for decades. The secret was never strength or speed — it was shims, patience, and the hinge-side jamb being perfectly plumb. Get that right, and the door hangs itself.
Tool Worth Lab provides research-based carpentry guidance. Get help with heavy doors, paint all six sides before installation, and never force a door that doesn’t fit — diagnose the plumb and gaps first.
Keep Reading
Door hung? Keep the momentum going — these carpentry guides pair perfectly with this project:
