Your check engine light turns on when your car's computer detects a problem with the engine, emissions system, or transmission

The check engine light is your car's way of telling you that its onboard diagnostic system has found a fault. This light does not mean your engine is about to fail — it means the computer detected something that does not meet the car's emissions or performance standards. The problem could be minor, like a loose gas cap, or more serious, like a faulty oxygen sensor or catalytic converter issue.

The light appears as a small engine symbol on your dashboard, usually in yellow or amber. Some cars show the words "Check Engine" instead. When it comes on, your car has stored a diagnostic trouble code in its computer memory. That code is the key to understanding what is actually wrong.

Key Takeaways

  • A check engine light means your car's computer found a problem, but it does not tell you what the problem is without reading the diagnostic code.
  • You can read the code yourself with an inexpensive scanner, or a mechanic or auto parts store can read it for free or low cost.
  • A solid check engine light usually means you can drive to a mechanic, but a flashing light means stop driving when ready to avoid engine damage.
  • Common causes include a loose gas cap, a faulty oxygen sensor, a bad catalytic converter, or a misfire in one or more cylinders.
  • Ignoring the light does not make the problem go away and may cause more expensive damage the longer you wait.

The difference between a solid light and a flashing light

A solid check engine light means the computer found a problem, but your engine is still running safely enough to drive. You should plan to have it diagnosed soon, but you can usually make it to a mechanic without risk. A solid light often indicates an emissions issue, a sensor problem, or a misfire that is not severe enough to damage the engine right now.

A flashing check engine light is a warning to stop driving when ready. A flashing light means your engine is misfiring badly enough that unburned fuel is entering the exhaust system and can damage your catalytic converter — one of the most expensive parts to replace. Pull over safely, turn off the engine, and call for a tow truck or have someone pick you up. Do not drive the car to the mechanic.

How to read the diagnostic code yourself

Every check engine light corresponds to a diagnostic trouble code stored in your car's computer. You need to read that code to know what is wrong. You have three main options: read it yourself with a scanner, have an auto parts store read it, or take it to a mechanic.

An OBD-II scanner (On-Board Diagnostics) is a handheld device that plugs into a port under your steering wheel or dashboard — usually on the left side below the instruments. The port looks like a rectangular connector about the size of a USB port. Basic scanners cost $25 to $60 and show you the code and a plain-language description of what it means. Many auto parts stores like AutoZone, O'Reilly, and NAPA will read the code for free if you bring your car in. Some will even lend you a scanner to use yourself.

The code itself is a letter followed by four numbers, like P0420 or P0171. You can search that code online to find out what it means. A P code refers to the powertrain (engine and transmission), a C code to the chassis, a B code to the body, and a U code to the network. The first number after the letter tells you whether it is a generic code (0 or 1) that all cars use, or a manufacturer-specific code (2 through 9).

Common reasons the check engine light comes on

A loose or missing gas cap is the most common reason for a check engine light. The cap seals your fuel tank and helps maintain pressure in the fuel system. If it is loose or cracked, the computer detects a leak and turns on the light. Check your cap first — tighten it or replace it if it is damaged. The light may turn off on its own after a few driving cycles, or you may need to clear the code with a scanner.

An oxygen sensor failure is the second most common cause. Your car has at least two oxygen sensors that measure how much unburned oxygen is in the exhaust. When one fails, the engine cannot adjust the fuel mixture correctly, and the light comes on. A faulty oxygen sensor usually makes your car run rough or use more fuel than normal. Replacement typically costs $150 to $400 depending on which sensor and your car model.

A catalytic converter problem triggers the light when the converter is not working efficiently. The catalytic converter turns harmful exhaust gases into less harmful ones. If it is clogged, damaged, or failing, the computer detects it and turns on the light. Catalytic converter repairs are expensive — often $500 to $2,500 — so addressing the underlying cause (like a misfire or oxygen sensor problem) early can prevent damage to the converter.

A misfire occurs when one or more cylinders fail to ignite fuel properly. This can be caused by a bad spark plug, a faulty ignition coil, low fuel pressure, or a vacuum leak. A misfire makes your car run rough, shake, or lose power. If you see a flashing check engine light, a severe misfire is likely the cause.

Other common codes involve the mass airflow sensor, the evaporative emissions system, or transmission problems. Each has its own code and its own repair cost, which is why reading the code is the first step.

What to do when the light comes on

First, check your gas cap. Tighten it or replace it if it is loose or damaged. If the light was caused by the cap, it may turn off after you drive for a while, though it could take several driving cycles.

Second, get the code read. Use a scanner yourself, visit an auto parts store, or take the car to a mechanic. Write down the code and the description so you have it for reference. Do not ignore the light or assume it will go away on its own — the problem will not fix itself, and waiting can make repairs more expensive.

Third, decide whether to repair it yourself or take it to a mechanic. If the code is something straightforward like a loose gas cap or a bad spark plug, you may be able to handle it. If it is an oxygen sensor, catalytic converter, or transmission issue, a mechanic is the safer choice. Get a quote before authorizing any work.

You can clear the code yourself with a scanner, but clearing it does not fix the problem — the light will come back on when the computer detects the fault again. Some people clear the code to make the light go away temporarily, but this is not a solution and can mask a serious issue.

When to drive to a mechanic and when to call for a tow

If the light is solid and your car is running normally, you can drive to a mechanic during business hours. Plan to go within a day or two so the problem does not get worse. Bring any information you have about when the light came on and whether you noticed any changes in how the car runs.

If the light is flashing, do not drive the car except to pull over safely. Turn off the engine and call for a tow truck. A flashing light indicates a severe misfire that can damage your catalytic converter in minutes. The cost of a tow is much less than the cost of a new catalytic converter.

If your car is running rough, shaking, stalling, or losing power, treat it like a flashing light even if the light is solid. These symptoms suggest a serious problem that needs when ready attention.

How much it usually costs to fix

The cost depends entirely on what the code says. A loose gas cap costs nothing to tighten and maybe $5 to $15 to replace. A spark plug replacement runs $50 to $200. An oxygen sensor is $150 to $400. A catalytic converter is $500 to $2,500. A transmission problem can be much more.

The only way to know the actual cost is to have the code read and get a quote from a mechanic. Many mechanics will read the code and give you an estimate for free or for a small diagnostic fee ($50 to $150). If you take it to a dealership, the diagnostic fee is usually higher but may be waived if you authorize the repair.

Frequently Asked Questions

Can I drive with the check engine light on?

If the light is solid and your car is running normally, yes — you can drive to a mechanic. If the light is flashing, no — pull over and call for a tow truck. A flashing light means your engine is misfiring severely and can damage the catalytic converter.

Will the check engine light turn off by itself?

Not usually. The light will turn off only if the problem goes away on its own (like a loose gas cap that you tighten) or if you clear the code with a scanner. Clearing the code does not fix the problem — the light will come back when the computer detects the fault again.

What does the code P0420 mean?

P0420 means your catalytic converter is not working efficiently. This code can be triggered by a failing catalytic converter, a bad oxygen sensor, an exhaust leak, or a misfire. You need to read the full diagnostic report to know which one is the actual cause.

Should I go to a dealership or an independent mechanic?

An independent mechanic is usually cheaper for diagnosis and repair. A dealership knows your car's specific systems and may have better access to parts and technical information, but charges more for labor. Get quotes from both and compare before deciding.

Can a loose gas cap really cause the check engine light?

Yes. The gas cap seals your fuel tank and maintains fuel system pressure. If it is loose or cracked, the computer detects a leak in the evaporative emissions system and turns on the light. Always check the cap first before assuming something serious is wrong.