How to Clear OBD2 Codes (and Why the Check Engine Light Comes Back)

Quick answer

You can clear an OBD2 code in about two minutes. Clearing it does not fix the fault.

Any OBD2 scanner can erase the code and switch the check engine light off. If the cause is still there, the car detects it again and the light returns, sometimes within minutes. Read the code first, fix the cause, then clear.

Clear the code ifThe repair is done (new gas cap, sensor, spark plug) and you want to confirm the light stays off.
Don’t clear it ifAn emissions test is close, or you have not written down the code. Clearing erases both.
I need a scanner ↓Compare all scanners

How to Clear Codes

  1. Plug the scanner into the OBD2 port. It is usually under the dashboard on the driver’s side. Turn the ignition on (engine off is fine).
  2. Connect. A handheld scanner powers up on its own. A Bluetooth adapter needs pairing in its app first.
  3. Read and write down the codes first. Take a photo of the screen. Once you clear, the codes and the freeze-frame data (a snapshot of engine conditions when the fault happened) are gone.
  4. Choose “Erase codes” or “Clear DTCs” and confirm.
  5. Turn the ignition off, wait a few seconds, then start the engine. Check that the light stays off.

What Clearing Does and Doesn’t Remove

ItemCleared by a scanner?What to know
Stored (confirmed) codeYesComes back if the fault is still present.
Pending codeYesThe car saw the fault once. It becomes a stored code if it repeats on later drives.
Freeze-frame dataYesLost on clearing. Note it before you erase.
Readiness monitorsResetThe car must re-run its self-tests. See the next section.
Permanent codeNoClears itself only after the car re-tests and confirms the fault is gone.

Why the Light Comes Back

The code exists because the car’s computer detected a fault. If you have not fixed the cause (a loose gas cap, a failing sensor, a misfire), it detects it again and the light returns. For some faults that takes a few minutes. For others it takes several drives, because the car only re-tests certain systems under specific conditions.

Flashing light? Do not just clear it. A flashing check engine light usually means an active misfire that can damage the catalytic converter. Read the code and see what to do when the check engine light is flashing.

Clearing Codes Resets the Readiness Monitors

Clearing codes also resets the car’s self-test “readiness monitors”. Emissions inspections in many places require most of them to show “ready” before the car can pass. Getting them ready needs a period of normal mixed driving, and how long it takes depends on the car. Your owner’s manual or the repair-manual drive cycle for your model has the exact conditions. Do not clear codes right before an inspection.

Can You Clear Codes by Disconnecting the Battery?

Sometimes it works, but it is a poor method. On many cars it also erases radio presets, clock settings and learned idle or transmission adaptations, and it does not remove permanent codes. A scanner clears the codes only, and lets you read them first.

Permanent Codes

Some codes are stored as permanent. A scanner cannot erase them. They disappear only after the car runs its own test again and confirms the fault is gone. This is by design: it stops a quick clear from hiding a real problem before an emissions test. California’s Bureau of Automotive Repair says permanent codes cannot be cleared with a scan tool or by disconnecting the battery. See our full guide: How to Clear Permanent OBD2 Codes.

Need a Scanner That Can Clear Codes?

Simple code reader, no phone needed

KONNWEI KW330 OBD2 Scanner

Listed as a handheld OBD2 code reader with its own screen. It reads and clears codes and shows live data. About $32 on Oct 29, 2026 (new shoppers may see a lower welcome price). 4.7 stars from 795 reviews. The listing says it is for gasoline vehicles only. Check that your car is OBD2 compatible before you order.

Affiliate link: I may earn a commission at no extra cost to you. It reads engine codes only. For ABS, airbag and other systems see the full-system scanners guide.

Fix First, Clear Second

Look up what the code means before you clear it. My guide to common OBD2 error codes is a good place to start. If your scanner will not connect, see my 9 fixes for a scanner that won’t connect, and to pick one, see my OBD2 scanner guide.

FAQ

Will clearing the code make my car pass an emissions test?
No. Clearing resets the readiness monitors, and most inspections check that they are ready. If the fault is still there, the code returns once the monitors run.
How long until the light comes back if the problem is not fixed?
It varies by fault. Some return within minutes of starting the engine, others only after several drives, when the car runs the relevant test again.
Do I need an expensive scanner just to clear a code?
No. Basic code readers and Bluetooth adapters can read and clear generic engine codes. You only need a more capable scanner for ABS, airbag, transmission or service resets on specific brands.

Related: OBD2 scanners compared

Related guides: How to Add CarPlay to an Older Car Without Replacing the Stereo (2026) · Cheap Car Accessories That Actually Look and Feel Expensive · Are AliExpress Motorcycle Multimedia Screens Worth It in 2026? My Poin · OBD2 vs OBD1: What’s the Difference (and Which One Does Your Car Have? · Dash Cam Keeps Falling Off the Windshield? 7 Fixes · Portable CarPlay Screen vs Android Head Unit: Which Should You Buy? (2026) · AliExpress vs Amazon OBD2 Scanner: Which Should You Actually Buy in 2026?