STUCKFIX
handymanDIY Friendly
key

Key Stuck in Lock and Won't Come Out or Turn

A key jammed in a door lock is a problem with the lock cylinder, not the key. Get it out without snapping the key off inside the lock — because that's a whole different nightmare.

Category:Hardware
Difficulty:Easy
Time:10-15 min
Success:50%
Updated:May 24, 2026

quick_referenceQuick Answer

For Key Stuck in Lock and Won't Come Out or Turn, start with "Lubricate before you pull": Do not yank the key out. Spray a shot of graphite lock lubricant or dry Teflon spray directly into the keyhole. Wiggle the key gently — tiny movements, not force — while spraying. The lubricant loosens the stuck pins and flushes out the graphite-and-dirt sludge that's binding them. Give it 30 seconds to work. Then, try to turn the key to the locked position before pulling it out. Keys usually only come out in one position (the position they went in), so if the cylinder has rotated at all, the key is trapped until it's returned to the correct orientation. Stop DIY if the key breaks off inside the lock — the broken piece must be extracted with a broken key extractor tool before you can do anything else. if you can't get it out, call a locksmith. drilling out the cylinder is the last resort, but it's less expensive than a locksmith's emergency call if you have the skills. This is listed as a easy recovery and usually takes about 10-15 min.

verifiedGuide Snapshot

Repair areaHardware
Estimated time10-15 min
DifficultyEasy
Stop conditions3

Last updated May 24, 2026. Review the stop conditions before continuing.

account_treeRecovery State

DeviceDoor Lock
Current stateKey Stuck In Cylinder
Specific stateGummed Pins Or Bent Key
Failed stepKey Operation
Likely failure typeMechanical Jam
DIY boundaryDIY recovery first
paymentsCost decision

help1. Understand the Problem

Keys get stuck in locks for exactly three reasons: the lock cylinder pins are gummed up with dirt and graphite-powder paste, the key itself is bent or worn and has jammed against a pin that can't retract, or the cylinder plug has seized from corrosion — especially on exterior doors exposed to weather. The lock still turns partially (or not at all) because the stuck pin or debris is preventing full rotation. Never force the key — a snapped-off key inside a lock cylinder is a job that requires extracting the broken piece before you can even diagnose the original problem.

build_circle2. Try This First

Best First Step

Lubricate before you pull

Do not yank the key out. Spray a shot of graphite lock lubricant or dry Teflon spray directly into the keyhole. Wiggle the key gently — tiny movements, not force — while spraying. The lubricant loosens the stuck pins and flushes out the graphite-and-dirt sludge that's binding them. Give it 30 seconds to work. Then, try to turn the key to the locked position before pulling it out. Keys usually only come out in one position (the position they went in), so if the cylinder has rotated at all, the key is trapped until it's returned to the correct orientation.

visibility3. Visual Guidance

See what's happening and how to try the first recovery step.

1
image
Return the cylinder to the correct key-removal positionLook at the keyway slot — the narrow opening where the key enters. In most locks, the key can only be removed when the keyway is vertical (12 o'clock) or at the insertion angle (usually horizontal or at 45 degrees). If the key has rotated at all — even 10 degrees — it's locked in place. Gently turn the key back to its insertion position. If it won't turn back, the pins are still bound up. More lubricant, more patience. If the key won't turn at all in either direction, the pins are seized and you're looking at lock replacement.
2
image
Check the key for bends, burrs, and wearOnce the key is out, lay it on a flat surface. If it's bent — even slightly — the bend is what jammed it against the pins. A bent key won't slide in or out smoothly. Straighten it carefully with pliers, or better yet, make a copy from the original code rather than copying the worn key. If the key has sharp burrs on the edges, file them smooth with a fine metal file. If the key teeth are worn rounded — called a 'worn key' — it may have worked the cylinder pins unevenly and the cylinder needs rekeying. A worn key will eventually damage the lock beyond repair.
3
image
Clean and lubricate the lock cylinderWith the key finally out, flush the lock cylinder with a dedicated lock cleaner or electrical contact cleaner — something that evaporates completely and leaves no residue. Spray it into the keyway until it runs clear out the bottom. Let it dry for 5 minutes, then apply graphite powder or a dry Teflon lock lubricant. Never use oil-based lubricants (WD-40, 3-in-1) in locks — they collect dust and turn into sludge that makes the problem worse than it was before. Insert and remove the key a dozen times to distribute the lubricant across the pins.

autorenew4. If That Doesn't Work

Try the next recovery options.

build
Remove and disassemble the lock cylinderIf the key is still stuck, remove the entire lock cylinder from the door. On most residential locks, there are two screws on the inside trim plate. Remove them, slide the cylinder out, and you can access the back of the plug. Tap the back of the cylinder on a wood block while holding the key — sometimes the shock frees the pins. Worst case, drive out the cylinder plug follower pin and disassemble the pin stack individually. This requires a pinning kit to reassemble.
chevron_right
swap_horiz
Replace the entire lock if the cylinder is seizedIf the lock is old, rusty, and the key still won't budge after lubrication, the cylinder is corroded internally. A new deadbolt or entry lockset is $20-40 and takes 15 minutes to install. Match the existing brand (Kwikset, Schlage, etc.) so you don't have to modify the door prep. SmartKey locks let you rekey the new lock to your existing key in 30 seconds.
chevron_right

Frequently Asked Questions

Can I use WD-40 to get a key unstuck?expand_more
Only in an emergency, and only once. WD-40 will free the key short-term but leaves an oily residue that attracts dust and turns into a sticky paste inside the cylinder. If you use it to get the key out, flush the lock with contact cleaner afterward and relubricate with graphite powder or dry Teflon. Otherwise your lock will be worse in 3 months.
Why does my key go in but won't turn at all?expand_more
One or more pins are seized in the cylinder. This happens when the lock hasn't been used in a long time, or the wrong key was forced in and damaged a pin. Try lubricant first. If it still won't turn, the cylinder needs to be disassembled or replaced. Don't force the key — you'll snap it.
Should I get a new key cut from my old worn one?expand_more
No. A copy of a worn key is just a worn copy. Go to a locksmith shop (not a hardware store kiosk) with your lock or your key code if you have it. They can cut a key to the factory specifications, which will operate the lock smoothly. Or rekey the cylinder and get fresh keys — rekeying kits are $12.
How do I prevent keys from getting stuck again?expand_more
Lubricate your locks once a year with graphite powder or dry Teflon spray. Replace keys that show visible wear before they start damaging the cylinder. Don't hang heavy keychains from your door key — the weight pulls the key down and wears the bottom pins unevenly.

warning5. Stop DIY If

Don't continue if any of these apply.

reportThe key breaks off inside the lock — the broken piece must be extracted with a broken key extractor tool before you can do anything else. If you can't get it out, call a locksmith. Drilling out the cylinder is the last resort, but it's less expensive than a locksmith's emergency call if you have the skills.
reportThe lock is on a door that's your only point of entry and you've been locked out for hours — call a locksmith. Emergency lockout is what they do. The cost is usually $75-150, cheaper than breaking a window.
reportThe lock is an older mortise-style lock with a separate cylinder — these are harder to work on than modern cylindrical locks. If you're not confident, a locksmith can extract the key and rekey the cylinder in 15 minutes.
Still stuck?Get personalized help with AI Recovery.

Related Recovery Problems

View all arrow_forward

Same Device Recovery States

Device index arrow_forward

Similar Failure Pattern

This page provides general DIY guidance.
If you're unsure, it's always best to consult a professional.