The check engine light comes on when your vehicle's onboard diagnostic system detects a problem with the engine, emissions system, or transmission

Your car's engine control module (ECM) constantly monitors dozens of sensors and systems. When one of those sensors reports a reading outside normal range, the ECM stores a diagnostic trouble code and illuminates the check engine light on your dashboard. The light itself does not tell you what is wrong — only that something has triggered the system to flag an issue.

The problem could be minor, like a loose gas cap, or serious, like a failing catalytic converter. The light does not distinguish between them. That is why the next step is always to read the code stored in your vehicle's computer, either at a repair shop or with a handheld diagnostic scanner.

Key Takeaways

  • The check engine light activates when your vehicle's diagnostic system detects a sensor reading or system malfunction and stores a trouble code in the engine control module.
  • Common triggers include a loose or missing gas cap, faulty oxygen sensor, failing catalytic converter, bad spark plugs, or a malfunctioning mass airflow sensor.
  • A diagnostic scanner reads the trouble code and tells you which system is reporting the problem, though the code does not always pinpoint the exact cause.
  • Driving with the check engine light on is usually safe for short distances, but ignoring it for weeks or months can lead to more expensive repairs or engine damage.
  • Many auto parts stores read diagnostic codes for free, and you can also purchase an inexpensive scanner to check codes yourself at home.

Common reasons the check engine light turns on

A loose or missing gas cap is the single most common trigger. The cap seals your fuel system and prevents fuel vapors from escaping. When it is loose or missing, the system detects a leak and flags it. Tightening or replacing the cap often clears the light within a few driving cycles.

An oxygen sensor failure is the second most frequent cause. Your vehicle has at least two oxygen sensors that measure unburned oxygen in the exhaust. When one fails, the engine cannot adjust the fuel mixture correctly, and the light comes on. Replacing a faulty oxygen sensor typically costs between $150 and $400 depending on which sensor and your vehicle type.

A failing catalytic converter triggers the light when the converter can no longer process exhaust gases efficiently. This is a more serious and expensive repair, often running $800 to $2,000 or more. Ignoring the light when a catalytic converter is failing can cause the converter to overheat and fail completely.

Other common causes include worn spark plugs, a malfunctioning mass airflow sensor, a faulty thermostat, a bad ignition coil, or a leak in the evaporative emissions system. Each has different repair costs and urgency levels.

How to read the diagnostic trouble code

The trouble code stored in your engine control module is a four-character alphanumeric string like P0420 or P0171. This code points to a specific system or sensor, but it does not always identify the exact part that failed. For example, code P0420 means the catalytic converter is not working efficiently, but the actual cause could be a faulty oxygen sensor, a bad catalytic converter, an exhaust leak, or a failing engine control module.

Many auto parts retailers, including AutoZone, O'Reilly Auto Parts, and NAPA, will read your diagnostic code for free. You drive to the store, give them your keys, and they plug a scanner into the diagnostic port under your steering column. The scan takes a few minutes and costs nothing.

You can also purchase your own diagnostic scanner. Basic scanners that read and clear codes cost $25 to $100 and work on most vehicles made after 1996. More advanced scanners offer live sensor data and can help you diagnose the problem more thoroughly, but the basic models are sufficient for most owners who straightforward want to know what code is stored.

When to drive with the light on and when to stop

Driving with the check engine light on is generally safe for short distances, such as getting to a repair shop or auto parts store to have the code read. The light indicates a problem has been detected, but it does not mean your engine will fail when ready or that you are in danger.

However, if the light is flashing rather than steady, stop driving as soon as it is safe to do so. A flashing check engine light means the engine is misfiring — fuel is not burning correctly in one or more cylinders. Continuing to drive can damage the catalytic converter and cause more expensive repairs. Have the vehicle towed or driven directly to a repair shop.

If the light is steady and you have read the code, you can usually drive normally while you arrange a repair. The exception is if the code indicates a serious issue like a failing catalytic converter or a major fuel system leak. In those cases, delaying repair for weeks or months can turn a $1,000 repair into a $3,000 one.

What happens if you ignore the check engine light

Ignoring the light for a short time — a few days or a week — rarely causes additional damage. But ignoring it for months can lead to cascading failures. A faulty oxygen sensor that goes unrepaired will cause your engine to run too rich, wasting fuel and potentially damaging the catalytic converter. A failing catalytic converter left in place will eventually clog completely, making the vehicle undriveable.

Some problems flagged by the check engine light do not worsen over time. A loose gas cap or a minor emissions leak might never cause additional damage. But without reading the code, you have no way to know which category your problem falls into.

Selling or trading in a vehicle with an active check engine light will also lower its value. Dealers and private buyers will factor in the cost of diagnosis and repair, and many will use the light as a negotiating point to reduce their offer.

Steps to take when the check engine light comes on

First, check your gas cap. Remove it, inspect the rubber seal for cracks or damage, and screw it back on firmly. Drive for 50 to 100 miles and see if the light clears. If it does, the problem is solved.

If the light remains on, visit an auto parts store and have the code read for free. Write down the code and the description the scanner provides. Search that code online to read what it typically means and what repairs are most common.

If the code points to a sensor or component you feel comfortable replacing yourself, you can purchase the part and install it. Spark plugs, air filters, and some sensors are straightforward DIY jobs. If you are unsure, take the vehicle to a trusted repair shop with the code in hand. Providing the code saves the shop diagnostic time and can reduce your repair bill.

If the light is flashing, do not delay. Have the vehicle towed to a repair shop to prevent damage to the catalytic converter and engine.

Frequently Asked Questions

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

Yes. The fuel system is sealed to prevent fuel vapors from escaping into the atmosphere. When the cap is loose or missing, the system detects a leak in the evaporative emissions system and triggers the light. Tightening or replacing the cap usually clears the light within a few driving cycles, though the code may remain stored in the computer until you clear it manually or it clears on its own after several restarts.

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

A steady check engine light is usually safe for short distances, like driving to a repair shop or auto parts store. A flashing light means the engine is misfiring and you should stop driving when ready to avoid damaging the catalytic converter. If you have read the code and it points to a serious issue like a failing catalytic converter, avoid long drives until the problem is repaired.

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

The cost depends entirely on what triggered the light. A loose gas cap costs nothing to fix. Spark plugs run $50 to $200. An oxygen sensor replacement costs $150 to $400. A catalytic converter can run $800 to $2,500 or more. That is why reading the code first is essential — it tells you what you are actually paying for.

Will the check engine light clear on its own?

The light will turn off if the problem stops occurring and the engine control module no longer detects the fault. For example, if a loose gas cap was the cause and you tighten it, the light may clear after a few driving cycles. However, the trouble code remains stored in the computer. If the underlying problem is not fixed, the light will come back on.

What is the difference between a steady and flashing check engine light?

A steady light means a fault has been detected but the engine is running normally. A flashing light indicates the engine is misfiring — fuel is not burning correctly in one or more cylinders. Flashing is a warning to stop driving because continued operation can damage the catalytic converter and cause more expensive repairs. If your light is flashing, have the vehicle towed to a repair shop.