The short answer
Yes, you can use WD-40 to unstick a lock, and it often helps in the short term. The original WD-40 is mainly a water displacer and light penetrating oil, so it’s good at loosening grime, flushing out debris and freeing parts that have started to corrode. It isn’t the ideal long-term lubricant for a lock cylinder, though, because it can leave a thin, slightly oily film that may attract dust over time.
A sensible approach is to use WD-40 to free and clean a stuck lock, let it dry out, and then follow up with a dry lubricant such as a PTFE spray or graphite powder.
What WD-40 actually does in a lock
The name stands for “Water Displacement, 40th formula,” which hints at its main job. When you spray it into a lock, it:
- Loosens dirt, old grease and light corrosion.
- Pushes out moisture.
- Leaves a thin film that temporarily reduces friction.
That’s why a lock that felt gritty or stiff often feels much better right after a spray. The relief may not last, especially in dusty or outdoor conditions.
Why many locksmiths prefer a dry lubricant
A pin tumbler lock has small spring-loaded pins that must slide freely in tight bores. Anything that makes those pins sticky can cause them to hang up, which stops the key from turning.
Oily or wet products can, over time, combine with dust, pocket lint and grit to form a sludge inside the cylinder. That’s the main reason many locksmiths recommend dry lubricants for key cylinders. They reduce friction without leaving much residue for dirt to cling to.
This doesn’t mean a single application of WD-40 will ruin a lock. It means it works better as a cleaner and loosener than as the lubricant you rely on for years.
How to use WD-40 on a sticky lock
- Use the straw. Fit the thin nozzle tube so you can aim into the keyway.
- Spray briefly into the keyway. A short burst is enough.
- Work the key. Insert the key, slide it in and out several times, and gently turn it back and forth. Don’t force it.
- Wipe the key. You’ll often see dirt come out on the key; wipe it clean and repeat if needed.
- Let it dry. Give the lock some time for the excess to evaporate or drain, and wipe away any drips.
- Follow up with a proper lock lubricant (see below).
For latches, hinges and bolts, the moving parts outside the cylinder, WD-40 can also help free things up. For those parts, a light grease or a lubricant meant for latches is often a better follow-up.
Following up with the right lubricant
PTFE dry lubricants
PTFE-based dry sprays go on wet and leave a thin, slippery film once the carrier evaporates. They’re easy to apply into a keyway and generally don’t attract much dirt. Several brands sell versions intended for locks, including WD-40’s own specialist range.
Graphite powder
Graphite has long been used for lock cylinders. It’s a dry powder that coats the pins and reduces friction. It can be messy to apply, and a little goes a long way. Some lock manufacturers recommend a specific lubricant for their products, so check the instructions if you have a high-security or electronic lock.
Don’t mix the two approaches
Graphite and oil don’t mix well. If a lock has been heavily oiled, adding graphite on top can create a paste. If you plan to use graphite, let the lock dry out first after any wet spray.
When WD-40 is a reasonable choice
WD-40 is a practical first step when:
- A padlock or outdoor lock has been exposed to rain and has started to rust.
- A lock is gritty and you want to flush out debris.
- It’s the only product you have on hand and the lock needs to work now.
For frozen locks, it may help in some cases because it displaces water, but a product made for de-icing usually works faster. We cover this in does WD-40 work as a lock de-icer. And if a key is already jammed in the cylinder, see will WD-40 get a stuck key out of a lock.
When a stuck lock isn’t a lubrication problem
If a lock still sticks after cleaning and lubricating, the cause may be something spraying won’t fix:
- A worn key. Try a spare original key. Copies made from a worn key can be just as unreliable.
- Misalignment. If a door lock works with the door open but not when closed, the bolt or latch is binding on the strike plate. Adjusting the strike or tightening hinge screws is the fix. Our guide on how to fix a jammed door lock covers this.
- Broken internal parts. A spring, cam or pin may have failed, and the lock may need repair or replacement.
- Wrong key. It sounds obvious, but similar-looking keys are easy to mix up.
For vehicle locks, stiffness can also come from a seized latch rather than the cylinder; see how to fix a seized car door lock.
Quick tips for different locks
- Padlocks: Spray into the keyway and into the shackle holes, work the key and shackle repeatedly, then let it dry and add a dry lubricant. Heavily rusted padlocks are often cheaper to replace.
- House door locks: Clean with a short spray if needed, then use a dry lubricant in the cylinder. Use a light grease or a suitable lubricant on the latch and bolt.
- Car door locks: Many car key cylinders are rarely used and can seize. A short spray and some gentle key work often frees them. Our guide to the best lubricant for car door locks covers follow-up products.
- Caravan and trailer locks: These often stiffen during storage. Lubricate at the start and end of each season; see caravan door locks not working for more on these locks.