The usual ways it happens
A lockout is rarely a mystery. Looking at how it happened tells you what will work.
- Keys left inside. A door shut with the lock button pressed, or a car that locks itself when the fob is out of range.
- A dead fob battery. The fob stops sending its code and the doors will not unlock by button.
- A dead car battery. Power locks and keyless entry do nothing, and the key may not turn a stuck lock cylinder.
- A lost key. No key means a new one must be made, which is a bigger job than opening a door.
- A failed lock actuator or latch. The key works in the cylinder, but the door will not move.
Each cause points to a different fix. For the step-by-step first minutes, including who to ring and where to wait, read the locked-out checklist.
Check before you pay for help
Walk around the car and try every door and the trunk. Rear doors and hatches are sometimes unlocked by a child, a friend or an earlier errand. Check the windows for a gap. If you have an app from your carmaker, a phone unlock may work, and some cars let a spare fob in your pocket do the job from the second door.
If the car has a keyless fob and the buttons are dead, try the mechanical key. Many fobs hide a thin metal key blade behind a release catch, and many door handles have a small cap that hides the key slot. Your owner's manual shows where. Do not force the cap or pry the handle, since broken trim costs more than a lockout service.
If the fob works from a short distance but not far away, the battery is probably weak. Fobs usually work within about 5 to 20 meters (16 to 66 feet), and a weak battery shrinks that range first. Once you are inside, a fob that has died completely can often still start the car, as our steps for a flat fob explain.
What not to try
Coat hangers, wedges and slim-jim tools damage the weather seal, the wiring inside the door and the side airbag components on newer cars. Modern doors often have shields and electronics in the exact spot a hanger pushes. Forcing a window can crack the glass or knock it off its track, and the repair will cost more than the service call. A driver who tries a trick and fails also tends to leave scratches the professional then has to avoid.
If keys are locked in with a child or an animal inside, do not wait on a repair appointment. Emergency crews and police respond to that situation, and they have the authority to break a window. In hot weather a closed car heats up quickly.
Who can open the door
A car lockout service opens the door without damage using inflatable wedges and long reach tools. It is the quickest route when the key is inside and the car is otherwise fine. If the real problem is a dead car battery, the door may still open by a mechanical key, but the car will not start afterward. A jump start may be needed as well.
When the key is gone altogether, you need a replacement key made for the car. Keys with chips are programmed to the vehicle. Fobs use a rolling code, where each press sends a different code that the car's receiver recognizes in sequence, so a copy cut at a hardware store may open the door but not start the engine. A mobile mechanic or a dealer can advise on programming for your model. Kelley Blue Book puts a replacement transponder key at about $125 to $250 and a switchblade fob at about $150 to $300 with programming, so ask for a quote that lists cutting, the fob and programming separately.
If the cause is the car, not the key
A car that unlocks and locks on its own, or a fob that works only sometimes, can mean a failing lock actuator, low battery voltage or a short in the body control circuits. A shop that handles electrical repair can trace it. If the problem began alongside slow cranking, see dead battery and have the battery tested at a battery service shop.
If the engine will not turn over with a good key in hand, you may have an immobilizer issue, not a lockout problem. The no-start troubleshooting page covers that.
Lockouts away from home
A lockout in your driveway is an inconvenience. A lockout on a shoulder, at a trailhead or at a gas station at night is a safety issue. If you are on the side of a road, stay out of traffic lanes and wait where drivers can see you. The advice on a highway breakdown says where to wait.
Keep your phone, ID and a spare key with you. Many people lose time because the phone was in the locked car too. A lockout is also a good reason to keep a roadside plan from your insurer or a motor club saved on a card in your wallet.
Keeping it from happening twice
- Replace the fob battery on a schedule. Most use a small coin cell that costs a few dollars and takes a minute.
- Keep a spare mechanical key with a person you trust, not in a magnetic box under the bumper.
- Get in the habit of pocketing the key before closing the door.
- If your car locks itself when it senses the fob walking away, learn which door that applies to.
- Program a second fob now. Making a first replacement after you lose the only key costs more than adding a spare while you still have one.
Updated November 25, 2026