The check engine light comes on because your car's computer found a problem in the engine, emissions, or transmission system
Your check engine light (also called the malfunction indicator lamp, or MIL) turns on when your vehicle's onboard diagnostic system detects a fault code. This is not a guess or a warning about something that might happen — it means your car's computer has already recorded a specific problem. The light stays on until someone reads that code, fixes the underlying issue, and clears the code from the computer's memory.
The light itself does not tell you what is wrong. A loose gas cap, a failing oxygen sensor, a misfire in cylinder three, or a catalytic converter problem can all trigger the same amber light. To actually eliminate it, you need to know which of these things (or something else entirely) is happening in your car.
Key Takeaways
- The check engine light turns on because your car's computer has stored a diagnostic trouble code, and you cannot clear it permanently without fixing the underlying problem.
- Reading the code requires an OBD-II scanner, which you can borrow from an auto parts store for free, buy for $25 to $100, or have a mechanic read for $50 to $150.
- Some problems (loose gas cap, worn spark plugs) you can fix yourself; others (catalytic converter, transmission sensors) require a mechanic and can cost hundreds of dollars.
- Clearing the code without fixing the problem will turn the light back on within days or weeks, so diagnosis must come before clearing.
- If the light is flashing rather than steady, your engine is misfiring and you should not drive the car — have it towed to a mechanic.
Read the diagnostic code before you do anything else
Your first step is to find out what code your car is storing. The code is a four-digit number (like P0420 or P0171) that points to a specific system or sensor. You cannot fix the problem without knowing what the code is, and clearing the light without fixing the problem is pointless — it will come back.
You have three ways to read the code. The cheapest is to visit an auto parts store (AutoZone, O'Reilly, NAPA, Advance Auto Parts) and ask them to scan your car for free. They will plug an OBD-II scanner into the port under your steering wheel, read the code, and print it out. This takes five minutes and costs nothing. The second option is to buy your own scanner — basic models cost $25 to $100 and will read codes and clear them yourself. The third is to take the car to a mechanic, who will charge $50 to $150 to diagnose the problem, though that fee is often waived if you have them do the repair.
Write down the code number and the description the scanner gives you. Search that code online to understand what system it refers to. A P0300 code means random cylinder misfires; a P0420 means the catalytic converter is not working properly; a P0171 means the engine is running too lean (too much air, not enough fuel). The description will tell you whether this is something you can address or something that needs a mechanic.
Determine whether you can fix it yourself or need a mechanic
Some check engine codes point to problems you can fix in your driveway. Others require specialized tools and knowledge. Here is how to tell the difference.
You can likely fix it yourself if the code is: A loose or missing gas cap (P0457), worn spark plugs (P0300 or P0301 through P0308 if accompanied by rough idle), a bad air filter (P0101), or a disconnected or damaged hose in the intake or emissions system. These repairs cost $10 to $150 in parts and take 15 minutes to an hour. If you are not comfortable working under the hood, a mechanic will charge $100 to $300 for labor.
You should take it to a mechanic if the code involves: Oxygen sensors (P0130 through P0167), catalytic converter (P0420, P0430), transmission sensors (P0700 series), engine knock sensors, or fuel injectors. These parts cost $200 to $1,500 and require diagnostic equipment to confirm which one is actually failing. A mechanic will use a scope or live data from your car's computer to pinpoint the problem before replacing anything.
If you are unsure, search the specific code number plus your car's year, make, and model on a forum like Car Care or your manufacturer's forum. Other owners of the same car will have encountered the same code and can tell you whether it is a DIY job or a shop job.
Fix the underlying problem, then clear the code
Once you know what is wrong, fix it. If it is a gas cap, tighten or replace it. If it is spark plugs, replace them according to your owner's manual. If it is a sensor or catalytic converter, have a mechanic do the work and confirm the repair with a test drive.
After the repair is complete, the light may turn off on its own — some cars clear codes automatically after the system runs a self-test and finds no new faults. This usually takes 40 to 100 miles of normal driving. If the light stays on after you have fixed the problem, you need to clear the code manually.
You can clear the code yourself using an OBD-II scanner (select "Clear Codes" from the menu), or a mechanic will do it as part of the repair. Some auto parts stores will also clear codes for free. After clearing, drive the car normally for at least 50 miles so the computer can run its diagnostic tests again. If the light does not come back, the problem is solved.
What a flashing check engine light means and why you should not ignore it
A steady check engine light means your car has a problem that needs attention, but it is usually safe to drive to a mechanic. A flashing check engine light means your engine is misfiring — fuel is not burning properly in one or more cylinders — and you are damaging the catalytic converter right now. Do not drive the car. Have it towed to a mechanic or pull over and call for a tow truck.
A misfire can be caused by a bad spark plug, a fuel injector that is not spraying, low fuel pressure, or a compression problem in the cylinder. Any of these will get worse the longer you drive, and a damaged catalytic converter can cost $800 to $2,500 to replace. If your light is flashing, stopping when ready is the cheapest decision you can make.
Why the light comes back after you clear it
If you clear the code without fixing the problem, the light will come back within a few days or a few hundred miles. This happens because the underlying issue is still there — a bad sensor is still sending wrong data, a vacuum leak is still letting air in, a misfire is still happening. Your car's computer will detect the problem again and store the code again.
Some people clear the code repeatedly, hoping the problem will go away on its own. It will not. The only way to permanently eliminate the check engine light is to fix what caused it. If you cannot afford the repair right now, clear the code and drive carefully, but understand that the problem is still there and may get worse. A small repair today (spark plugs, $100) can become a large one tomorrow (catalytic converter, $1,500) if you ignore it.
When to seek a second opinion from another mechanic
If a mechanic tells you that you need a $1,000 repair based on a check engine code, it is reasonable to get a second diagnosis. Some shops recommend expensive parts when a cheaper fix would work. Take your car to another mechanic and have them read the same code and tell you what they think is wrong. If both shops say the same thing, you have your answer. If they disagree, a third opinion from a dealership (which has factory diagnostic tools) can break the tie.
Be wary of any shop that wants to replace a part without confirming it is actually bad. A good mechanic will use a scope, a fuel pressure gauge, or live data from your computer to prove that a sensor is failing or a component is not working. They should be able to explain why they think that specific part is the problem, not just say "the code says so."
Frequently Asked Questions
Can I drive with the check engine light on?
Yes, if the light is steady. A steady light means your car has a problem that should be fixed soon, but it is usually safe to drive to a mechanic. A flashing light means your engine is misfiring and you are damaging the catalytic converter — do not drive, have it towed instead.
Will the check engine light go away on its own?
No. The light will stay on until the underlying problem is fixed and the code is cleared from the computer. It may turn off briefly if you disconnect the battery, but it will come back as soon as the computer detects the problem again.
How much does it cost to fix a check engine light?
It depends on what is wrong. A loose gas cap costs nothing. Spark plugs cost $50 to $200. A bad oxygen sensor costs $200 to $400. A catalytic converter costs $800 to $2,500. Read the code first to know what you are actually dealing with.
What does it mean if multiple codes appear?
Multiple codes usually point to a single root cause. For example, a bad fuel pump might trigger codes for low fuel pressure, a lean condition, and misfires in multiple cylinders. Fix the fuel pump and all three codes clear. A mechanic can help you understand which code is the primary problem and which are symptoms.
Is it safe to clear the code myself with a scanner?
Yes, clearing the code is safe. The code is just data stored in your computer's memory. Clearing it does not damage anything. However, clearing it without fixing the problem means the light will come back, so only clear it after you have actually repaired what caused it.