P0513 Code: Incorrect Immobilizer Key
6 min read · by Nicole Bennett · Last updated: November 26, 2026
A P0513 code means the anti-theft immobilizer did not recognize the key, so the engine computer never received a valid security code. The engine may refuse to start or may start and stop within a few seconds.
The most common trigger is a weak key fob battery, but a faulty key, a bad ignition lock, or a module that lost its pairing can cause the same code. Start with the simple checks before you assume a major part has failed.
What the P0513 Code Means
P0513 is the generic OBD-II code for an incorrect immobilizer key. According to the troublecodes.net P0513 reference, it sets when the anti-theft system does not recognize a key or key fob during an attempt to unlock or start the vehicle.
Carwhere gives the same meaning in different words: the engine computer did not receive a valid security code from the immobilizer. Its severity rating is moderate, and it advises diagnosis within days rather than weeks.
The code is about the security handshake, not about the engine itself. The engine is blocked on purpose, which is why a healthy engine can still refuse to run.

How the Immobilizer Blocks the Engine
The powertrain control module, the passive immobilizer module, and the body control module must all recognize the key and each other before the fuel and ignition systems are enabled. If any link in that chain fails, the car stays off, even with a good battery and a working starter.
This is why the code can appear with a dead fob, a faulty key, or a computer that lost its pairing. Each one breaks the same handshake, so the scan tool shows the same code and the diagnosis has to work through the list. Seeing P0512 Code alongside this one? That guide explains what it means.
Symptoms of P0513
The clearest sign is a no-start condition, often with a security or immobilizer light that stays on or flashes. Some cars crank normally and then shut off, and others do not crank at all.
- The engine will not start, or it starts and shuts off after two or three seconds
- The security warning light is illuminated or flashing on the dashboard
- The starter does not crank on some models
- A stored trouble code, which the scan tool reads even after the car runs again
On some vehicles, the electrical system shuts down after too many attempts with an unrecognized key. If the car goes quiet after several tries, stop cycling the key and let the system reset before you try again.
Common Causes, Most Likely First
The main reference calls a run-down key battery the most frequent cause. Other causes include a faulty or unprogrammed key, problems with the ignition lock, and the wiring around it. Codes in this range are close together, so if P0515 Code shows up as well, read that guide too.
- Run-down batteries in the key or fob
- A defective or incorrectly programmed key or fob
- A defective ignition lock
- Damaged, shorted, or corroded wiring or connectors
- Control module damage from abnormal system voltage
- A battery disconnection or battery replacement without a memory-saving device
Carwhere adds a module-level cause: an engine computer that was replaced or reprogrammed but never paired with the immobilizer. This is common after a repair that involved swapping the computer, so ask whether any module was replaced before the fault appeared. Live data makes this diagnosis much easier, and Best Bidirectional Scan Tool for Uber Drivers lists tools that show it.
Check the Key and Battery First
The first two checks cost nothing. Try a second known-good key to rule out a single bad key, then replace the batteries in the suspect fob if the spare key works.

Carwhere also says to check battery voltage, because low system voltage can disrupt the handshake even when the key is fine. A weak starter battery can produce this code, so test the main battery before you condemn the key.
- Record all codes and freeze frame data before doing anything else.
- Repair any other codes first, especially voltage or charging codes.
- Try a second known-good key.
- Replace the batteries in the key or fob, then retest.
- Check the main battery voltage, since low voltage disrupts the security handshake.
If the car still refuses to start after these steps, the fault is in the vehicle side of the system, and the next checks need factory-level tools.
When the Key Is Not the Problem
If a spare key also fails, the immobilizer module, the ignition lock, or the wiring to them is the likely fault. Troublecodes suggests checking the ignition lock wiring for resistance, continuity, and ground against the manufacturer’s specifications.
If the wiring tests good and the code returns, the ignition lock is the next part to replace. Troublecodes adds that all relearn procedures must be completed after the swap, because the new lock has to be paired before the car will start. Some scans return a group of codes in this range, and P0511 Code is one of them.
When to Call a Professional
Key programming and module pairing need a scan tool that can reprogram keys and modules. Troublecodes says non-professionals should refer the car to a professional when that equipment is not available, and a dealer or a qualified automotive locksmith can usually do the work.
Expect the pairing to take longer than a battery swap. Ask the shop whether they will test the key, the immobilizer, and the ignition lock in one visit, so you do not pay twice for the same diagnosis.
Frequently Asked Questions
Can I drive with a P0513 code?
Usually no, because the code blocks the engine from running for security reasons. If the car does start and runs, the engine can shut off again within a few seconds, so get the code diagnosed before you rely on the vehicle.
Is a weak key fob battery the usual cause?
Yes. Troublecodes lists run-down batteries in the key or fob as the most common cause. Replacing the battery and trying the key again is the cheapest first test, so do it before you order any module or lock.
Can I program a new key myself?
Most cars need a scan tool that can reprogram keys, and the source notes that this work usually goes to a dealer or qualified locksmith. The exact procedure depends on the make and model year, so check the service information for your car first.
Does a battery change cause P0513?
It can. Troublecodes lists battery disconnection, or a replacement made without a memory-saving device, among the causes. Connect a memory saver before disconnecting the battery, and check the key and immobilizer after any battery work.
A P0513 code usually starts with a cheap key check and ends with a pairing job. Test the key battery and a spare key first, and let the results decide whether the car needs a professional.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP2094 Code: Find the VVT Circuit Fault and Restore Engine Performance
LearnP1267 Code: Diagnose Cylinder 7 Injector Circuit Problems
LearnFord Fusion Spark Plug and Coil Replacement: Steps
LearnP2525 Code: Causes, Symptoms, Diagnosis, and Repair
LearnP0304 Subaru Forester: Find and Fix Cylinder 4 Misfires
LearnP0505 Toyota Highlander: Diagnose and Fix Idle Problems