How to Remove Check Engine Light Codes
In this article
To remove check engine light codes, you must use an OBD2 scanner to clear the diagnostic trouble codes (DTCs) from the vehicle's engine control module (ECM). Simply disconnecting the battery may also work, but it is less reliable and can reset other vehicle settings. The check engine light will stay off only if the underlying problem is fixed; otherwise, the code will return, often after a few drive cycles.
What the Check Engine Light Actually Means
The check engine light (CEL) is part of your car's onboard diagnostics system (OBD2, standardized since 1996 in most gasoline vehicles). When the ECM detects a fault—like a misfire, a faulty oxygen sensor, or a loose gas cap—it stores a specific code and illuminates the light. The code is a five-character alphanumeric string (e.g., P0301 for cylinder 1 misfire). Clearing the code erases the stored fault and turns off the light, but it does not repair the cause.
How to Clear Codes with an OBD2 Scanner
The most direct method is using a handheld OBD2 scanner or a smartphone app with a Bluetooth adapter. Here is the step-by-step process:
- Locate the OBD2 port, usually under the dashboard on the driver's side, near the steering column.
- Plug the scanner or adapter into the port. Turn the ignition to the "ON" position (do not start the engine unless the scanner instructs you to).
- Turn on the scanner and wait for it to establish communication with the vehicle's computer.
- Select "Read Codes" to see the stored DTCs. Write them down—you will need them to diagnose the issue.
- After noting the codes, choose "Erase Codes" or "Clear Codes" from the menu. Confirm when prompted.
- Turn off the ignition, unplug the scanner, and start the car. The light should be off.
Note that some vehicles require the engine to be at operating temperature or the car to be in a specific state (e.g., key on, engine off) for the erase function to work. Always follow the scanner's instructions.
Alternative Methods: Battery Disconnect and Fuses
If you do not have a scanner, you can try disconnecting the negative battery terminal for 15–30 minutes. This drains residual power in the ECM and clears the codes. However, this method has downsides:
- It may reset your radio presets, clock, and power window auto-up functions.
- Some modern cars require a security code for the radio after a battery disconnect.
- It may not clear all codes if the ECM has a backup power source (some do not fully reset).
- It does not tell you what the code was, so you may be clearing a serious issue without knowing it.
Another less common method is pulling the ECM fuse, but this is not recommended because it can be difficult to locate and may not clear all codes. The scanner method is safer and more precise.
Why the Light Comes Back After Clearing
Clearing codes is not a fix. The ECM runs continuous and readiness monitors. If the fault is still present, the light will typically return within a few drive cycles (a drive cycle includes cold start, warm-up, cruising, and idling). For example, if you clear a P0420 (catalyst efficiency below threshold) code but the catalytic converter is still failing, the light will reappear after the monitor runs again, often within 50–100 miles. If the problem is intermittent, like a loose gas cap, the light may stay off for a while but return when the condition reoccurs.
Choosing the Right OBD2 Scanner
Scanners range from basic code readers to professional-level tools. For clearing codes, any basic scanner works, but consider these factors:
- Compatibility: Ensure it supports OBD2 protocols (all 1996+ gasoline cars in the US, and most 2001+ diesel vehicles).
- Live data: Some scanners show real-time sensor values, which help diagnose why the code appeared.
- ABS and airbag codes: Basic OBD2 scanners only read engine codes. If your check engine light is on due to a transmission or ABS issue, you may need a more advanced scanner.
- Smartphone apps: Bluetooth adapters (like ELM327) paired with apps like Torque or Car Scanner are inexpensive and work well for clearing codes.
Do not buy a tool that promises to "delete" emissions-related codes permanently—that is illegal and can cause your vehicle to fail inspection.
Common Mistakes When Clearing Codes
Many DIYers make avoidable errors:
- Clearing without diagnosing: This is the most common mistake. You may be masking a serious issue like a misfire that can damage the catalytic converter.
- Not tightening the gas cap: A loose gas cap is a frequent cause of the light. Always check and tighten it before clearing codes.
- Clearing codes before an emissions test: If you clear codes right before a smog check, the vehicle's readiness monitors will show "not ready," and it will fail. You must drive through a complete drive cycle to set the monitors.
- Using a cheap scanner that cannot clear codes: Some very basic code readers only read codes and do not have an erase function. Check the product description.
When You Should Not Clear the Codes
There are situations where you should not clear codes at all:
- Flashing check engine light: A flashing CEL indicates a severe misfire that can damage the catalytic converter. Stop driving immediately and have the car towed to a mechanic.
- Overheating or low oil pressure: If the temperature gauge is in the red or the oil pressure light is on, do not clear codes—pull over and shut off the engine.
- Brake or steering issues: If the CEL is accompanied by brake or steering warning lights, the problem may be safety-critical. Do not drive.
- If you are selling the car: Clearing codes to hide a problem is unethical and often illegal in many jurisdictions. It also does not work—the light will come back.
Frequently Asked Questions
Will disconnecting the battery reset the check engine light?
Often yes, but not always. It works by draining the ECM's memory, but some vehicles have a backup power source that retains codes. Also, it resets other settings and does not tell you what the code was.
How long does it take for the check engine light to turn off after clearing?
If you clear the codes and the fault is truly fixed, the light will turn off immediately after the erase command. If the fault is still present, it will come back after a few drive cycles, typically within 50–100 miles.
Can I clear codes without a scanner?
Yes, by disconnecting the battery for 15–30 minutes, but it is less reliable and may not clear all codes. A scanner is the recommended method.
Will clearing codes make my car pass an emissions test?
No. Clearing codes sets the readiness monitors to "not ready," which automatically fails most emissions tests. You must drive through a complete drive cycle to set the monitors, and if the fault is still present, the light will come back and you will fail.
Is it safe to drive with the check engine light on?
If the light is steady and the car runs normally, you can usually drive a short distance to get a diagnosis. If the light is flashing, or if the car is overheating or losing power, stop driving immediately.
Why does my check engine light come back after a few days?
Because the underlying issue was not fixed. The ECM continuously monitors the systems, and when the fault reoccurs, it stores the code again and turns the light on. You need to diagnose and repair the root cause.