Clearing OBD2 codes erases stored diagnostic trouble codes (DTCs) from your vehicle's computer, turning off the check engine light. You can clear codes using an OBD2 scan tool or by disconnecting the battery for 15 minutes, but you should only clear codes after completing and verifying a repair—clearing them before diagnosis erases freeze-frame data that pinpoints when and how the fault occurred.
When You Should (and Shouldn't) Clear OBD2 Codes
Clear OBD2 codes only after you have diagnosed the problem, completed the repair, and want to verify the fix by monitoring whether the code returns. Clearing codes before diagnosis destroys freeze-frame data—snapshots of engine conditions (RPM, coolant temperature, fuel trim, vehicle speed) captured the moment the fault was detected. This data is critical for accurate troubleshooting, especially for intermittent problems.
Do not clear codes to pass an emissions inspection without fixing the underlying issue. Most states reject vehicles with incomplete readiness monitors, which reset to "not ready" when you clear codes. The vehicle must complete a full drive cycle—sometimes 50 to 100 miles of varied driving—before monitors set to "ready" again.
Clearing codes also erases pending codes (faults detected once but not yet confirmed) and any stored diagnostic history. If you're troubleshooting an intermittent problem or the vehicle is under warranty, preserve this data by reading and recording all codes and freeze-frame information before clearing.
What You Need to Clear OBD2 Codes
OBD2 scan tool method:
- OBD2 scan tool (handheld, Bluetooth adapter, or dedicated scanner)
- Smartphone or tablet if using a wireless adapter
- Vehicle ignition key
Battery disconnect method:
- 10 mm or adjustable wrench (most vehicles)
- Safety gloves
- 15 minutes of wait time
The scan tool method is preferred because it clears codes without erasing radio presets, clock settings, or learned engine adaptations (idle speed, fuel trim corrections). Battery disconnection clears codes but also resets all keep-alive memory, which can cause rough idle or poor drivability until the engine control unit relearns operating parameters.
Method 1: Clear Codes With an OBD2 Scan Tool
Step 1: Locate the OBD2 port. The port is typically under the dashboard on the driver's side, near the steering column or center console. It's a 16-pin trapezoid connector.
Step 2: Connect the scan tool. Plug the scan tool or Bluetooth adapter firmly into the port. If using a wireless adapter, pair it with your smartphone and open the companion app.
Step 3: Turn the ignition to ON. Turn the key to the ON or RUN position without starting the engine. This powers the vehicle's computer. Some scan tools draw power from the port and do not require the ignition on, but most require it.
Step 4: Navigate to the clear/erase codes function. On most scan tools, select "Read Codes" or "Diagnostics," then choose "Clear Codes," "Erase Codes," or "Reset." The exact menu varies by tool. If you haven't already, record all codes and freeze-frame data before proceeding.
Step 5: Confirm the clear operation. The tool will prompt you to confirm. Select "Yes" or "OK." The scan tool will send a command to the engine control unit to erase all stored and pending codes.
Step 6: Verify codes are cleared. After clearing, select "Read Codes" again. The tool should display "No codes" or "P0000" (no fault). Check readiness monitors; most or all will show "not ready" or "incomplete."
If you're using an OBD2 scanner for the first time, familiarize yourself with the menu structure before clearing codes so you don't accidentally erase data you need.
Method 2: Clear Codes by Disconnecting the Battery
Use this method only if you do not have access to a scan tool and understand that you will lose radio presets, clock time, and engine adaptations.
Step 1: Turn off the vehicle and remove the key. Ensure the ignition is completely off. Remove the key or fob from the vehicle.
Step 2: Locate the battery and identify terminals. Open the hood and locate the battery. Identify the negative terminal, marked with a minus (−) symbol and usually a black cable.
Step 3: Disconnect the negative terminal. Using a 10 mm wrench (or the size appropriate for your vehicle), loosen the nut securing the negative cable clamp. Lift the cable off the terminal and secure it away from the battery so it cannot accidentally reconnect.
Step 4: Wait 15 minutes minimum. Leave the cable disconnected for at least 15 minutes. This allows capacitors in the vehicle's electrical system to discharge fully, clearing keep-alive memory.
Step 5: Reconnect and verify. Reconnect the negative terminal, tighten the nut, and start the vehicle. The check engine light should illuminate briefly during the start sequence, then turn off if no active faults are present. You may need to reset the clock and radio presets.
Drawbacks: The engine may idle roughly or exhibit poor throttle response for the first few miles as the ECU relearns idle speed, fuel trim, and transmission shift points. Readiness monitors will reset to "not ready," just as with the scan tool method.
What Happens After You Clear OBD2 Codes
When you clear OBD2 codes, the engine control unit erases all stored DTCs, freeze-frame data, and pending codes. It also resets readiness monitors—self-tests the ECU runs to verify that emissions-related systems (catalyst, oxygen sensors, EVAP, EGR) are functioning correctly.
Immediately after clearing, most or all readiness monitors will show "not ready" or "incomplete." The vehicle must complete a drive cycle—a specific sequence of driving conditions (idle, steady cruise, deceleration, acceleration)—for each monitor to run and set to "ready." The exact drive cycle varies by manufacturer, but most require 50 to 100 miles of varied driving over several days.
Most U.S. states allow one or two monitors to remain incomplete during an emissions inspection, but not all. If you clear codes the day before a test, the vehicle will likely fail due to incomplete monitors even if no fault is present.
If the code returns after clearing, the underlying problem was not resolved. The fault is still present, and the ECU has detected it again. Do not repeatedly clear the code; instead, diagnose the root cause using freeze-frame data, live data, and guided troubleshooting.
Common Mistakes When Clearing OBD2 Codes
Clearing codes to pass inspection without repair. This fails in two ways: readiness monitors will be incomplete, and if the fault is active, the code will return within miles or even immediately upon starting.
Not recording freeze-frame data before clearing. Freeze-frame data shows engine speed, load, temperature, and other parameters at the moment the fault occurred. Once cleared, this data is gone. Always decode and record trouble codes and freeze-frame before clearing.
Assuming a cleared code means the problem is solved. Clearing a code only erases the record of the fault; it does not repair the underlying issue. If the condition that triggered the code still exists, the code will return.
Clearing codes on a vehicle you're selling. This is deceptive and, in many jurisdictions, illegal. Buyers who discover reset monitors or returning codes after purchase may have legal recourse. Disclose known faults and provide repair records.
Diagnostic output is a decision-support estimate, not a substitute for professional inspection.