Your check engine light turns on when your engine's computer detects a problem with emissions, fuel delivery, ignition, or engine performance

The check engine light (also called the malfunction indicator lamp, or MIL) is your car's way of telling you its onboard diagnostic system has found a fault. It does not mean your engine is about to fail or that you must pull over when ready—but it does mean something needs attention. The light stays on until either the problem is fixed or the code is cleared from the computer's memory.

The engine computer monitors dozens of sensors and systems constantly. When one of those sensors reports a reading outside the normal range, the computer stores a diagnostic trouble code and illuminates the light. That code is the key to understanding what went wrong. Without reading the code, you are guessing.

Key Takeaways

  • A check engine light means the engine computer found a fault code; you need a diagnostic scan to know what it is.
  • Common causes include a loose gas cap, a faulty oxygen sensor, a catalytic converter problem, or a misfire in one or more cylinders.
  • A steady light is less urgent than a flashing light, which means stop driving when ready to avoid engine damage.
  • You can have the code read for free at many auto parts stores, or pay a technician to diagnose and repair the underlying problem.

Steady light versus flashing light—what the difference means

A steady check engine light means the computer found a problem, but your engine is still running normally enough to drive. You should have it scanned soon, but you are not in when ready danger. Steady lights often indicate emissions system faults, sensor failures, or minor misfires that do not affect drivability right now.

A flashing check engine light is a warning to stop driving. It means the engine is misfiring badly enough that unburned fuel is entering the exhaust system and can damage the catalytic converter—an expensive part. Pull over safely, turn off the engine, and have the car towed or driven directly to a repair shop. Continuing to drive risks thousands of dollars in damage.

The most common reasons your check engine light comes on

A loose or missing gas cap is the single most common cause. The cap seals the fuel tank and allows the computer to monitor fuel system pressure. A loose cap triggers a code within a few driving cycles. Tighten or replace the cap, clear the code (or wait a few days for it to clear on its own), and the light usually goes out.

A faulty oxygen sensor is the second most common culprit. Your car has at least two oxygen sensors—one before the catalytic converter and one after. They measure how much unburned oxygen is in the exhaust so the computer can adjust the fuel mixture. A bad sensor sends wrong readings, which throws off the fuel mixture and triggers the light. Oxygen sensor replacement typically costs between $150 and $400 depending on which sensor and which vehicle.

A catalytic converter problem or failure will light the check engine light and often cause a rotten-egg smell from the exhaust. The catalytic converter uses heat and chemical reaction to convert harmful emissions into less harmful ones. When it fails, it cannot do its job, and the downstream oxygen sensor detects the problem. Catalytic converter replacement is expensive—often $800 to $2,500—which is why catching oxygen sensor problems early matters.

Misfires in one or more cylinders trigger the light when they happen frequently enough. A misfire means the fuel in that cylinder did not ignite properly. Common causes are a bad spark plug, a failing ignition coil, low fuel pressure, or a vacuum leak. A single misfire code usually points to one cylinder; a random misfire code suggests a fuel or ignition system problem affecting multiple cylinders.

How to read your check engine code yourself

You do not need to pay a technician to find out what code triggered the light. Many auto parts stores—including AutoZone, O'Reilly, Advance Auto Parts, and NAPA—will scan your vehicle for free and tell you the code number and what it means. Bring your keys and be prepared to sit in the parking lot for 10 to 15 minutes while they connect a scanner to your vehicle's diagnostic port (located under the steering wheel on most cars).

Write down the exact code number—it will be something like P0171 or P0300. That number tells you and any technician exactly what the computer found. You can then search online for that specific code to understand what systems are involved and what repairs might be needed. Some codes point to straightforward fixes; others require professional diagnosis.

If you want to scan your own vehicle repeatedly, you can buy a basic code reader for $25 to $100. These handheld devices plug into the diagnostic port and display the code. They do not fix anything, but they let you check whether a code has returned after a repair or whether a problem is getting worse.

When you can clear the code yourself and when you need a repair

If the code is a loose gas cap, tighten it and the light will go out on its own after a few driving cycles (usually within a week). You can also disconnect the negative battery terminal for 15 minutes to manually clear the code, though this erases all stored codes and data, so do it only if you are certain the problem is solved.

For any other code, clearing it without fixing the underlying problem means the light will come back. The computer will detect the same fault again and re-illuminate the light. Clearing a code without repair is a temporary cosmetic fix, not a solution. If you ignore a real problem—like a bad oxygen sensor or a misfire—it will get worse and cost more to fix later.

What happens if you ignore the check engine light

Ignoring a steady check engine light will not cause when ready catastrophic failure, but it will cause problems over time. A bad oxygen sensor wastes fuel and reduces engine efficiency. A misfire puts extra stress on the catalytic converter and can eventually destroy it. A vacuum leak or fuel system problem gets worse as components degrade. The longer you wait, the more damage spreads and the higher the repair bill climbs.

A flashing light is different—continuing to drive with a flashing light will damage the catalytic converter within minutes to hours of hard driving. That damage is irreversible and expensive. If your light is flashing, stop driving when ready.

What to expect from a professional diagnosis

A technician will connect a diagnostic scanner to your vehicle, read the code, and then perform a physical inspection related to that code. For an oxygen sensor code, they will check the sensor and the wiring. For a misfire code, they will inspect spark plugs, ignition coils, and fuel pressure. For a catalytic converter code, they will check the converter itself and the sensors around it.

A proper diagnosis takes time and costs money—usually $75 to $150 for the scan and inspection. That cost is separate from the repair cost. Some shops will waive the diagnostic fee if you have them do the repair; others charge it regardless. Ask before you leave the car. Once the diagnosis is complete, you will know exactly what needs to be fixed and what it will cost.

Frequently Asked Questions

Is it safe to drive with the check engine light on?

A steady light is usually safe for short distances, though you should have it scanned soon. A flashing light means stop driving—it indicates severe misfiring that will damage the catalytic converter. If the light is steady and your car is running normally, you can drive to a repair shop or parts store to have it scanned, but do not ignore it for weeks.

Can a check engine light come on and then go off by itself?

Yes. If the problem was temporary—like a loose gas cap or a brief sensor glitch—the code may clear on its own after several driving cycles without the fault recurring. However, if the light comes back, the problem is real and needs repair. Do not assume it is gone just because the light turned off once.

How much does it cost to fix a check engine light?

It depends entirely on the code. A loose gas cap costs nothing. An oxygen sensor replacement runs $150 to $400. A catalytic converter replacement can cost $800 to $2,500. A spark plug or ignition coil might be $100 to $300. The only way to know is to have the code read and diagnosed by a technician.

Will the check engine light affect my car's performance or safety?

A steady light usually does not affect how the car drives, though some faults (like a misfire or fuel system problem) may cause rough running, poor fuel economy, or hesitation. A flashing light means the engine is misfiring badly and you should not drive it. Either way, the underlying problem will get worse if ignored.

Can I pass an emissions test with the check engine light on?

No. Most states will not issue an emissions test pass if the check engine light is on or if the computer shows that the emissions system has not completed its self-test cycle. You must have the code diagnosed and repaired, and the light must be off, before you can pass.