The check engine light signals that your vehicle's onboard diagnostic system has detected a problem, but it does not tell you what the problem is

When the check engine light comes on, it means your car's engine control module — the computer that monitors emissions, fuel delivery, and ignition timing — has stored a fault code. That code points to a specific system or sensor, but the light itself tells you nothing about severity. A loose gas cap and a failing catalytic converter both trigger the same amber light. You need a diagnostic scan to read the actual code and understand what needs attention.

The light will stay on until the problem is fixed and the code is cleared, or until the car's computer determines the condition no longer exists. Some problems clear themselves after a few drive cycles if they were temporary — a sensor glitch, for example. Others require repair. Ignoring the light does not make the problem go away, but it also does not mean your car will stop running when ready. Many drivers operate vehicles with the check engine light on for weeks or months, though doing so can lead to more expensive repairs later.

Key Takeaways

  • The check engine light indicates a stored diagnostic trouble code, but you cannot know what the code is without a scan tool that reads your vehicle's computer.
  • A solid check engine light usually means the problem is not urgent, but a flashing light means stop driving when ready — a flashing light signals engine damage in progress.
  • You can get a free or low-cost diagnostic scan at many auto parts stores, independent shops, or dealerships to learn what code triggered the light.
  • Common causes include a loose or missing gas cap, a faulty oxygen sensor, a failing catalytic converter, or a bad mass airflow sensor.
  • Repair costs range from under $20 for a gas cap to $800 or more for a catalytic converter, depending on what the scan reveals.

Solid light versus flashing light — the difference matters

A solid check engine light means your vehicle detected a problem but the engine is not in when ready danger. You should have the code scanned within a few days, but you can usually drive to a shop or home without risk. Solid lights often indicate emissions system issues, sensor faults, or other problems that develop over time.

A flashing check engine light is a warning to stop driving. A flashing light means the engine is misfiring — fuel is not burning properly in one or more cylinders — and continuing to drive can damage the catalytic converter or cause engine damage. If your light flashes, pull over safely, turn off the engine, and have the car towed or driven directly to a repair shop. Do not ignore a flashing light or assume you can make it to your destination.

How to get a diagnostic scan and what it costs

A diagnostic scan reads the fault codes stored in your vehicle's computer and displays them as alphanumeric codes — for example, P0171 (system too lean) or P0420 (catalyst system efficiency below threshold). The scan itself takes 10 to 15 minutes and does not require any repair work.

You have three main options for getting a scan. Many auto parts chains — including AutoZone, O'Reilly, Advance Auto Parts, and NAPA — offer free in-store diagnostic scans. You drive to the store, a technician plugs a scan tool into your vehicle's diagnostic port (usually under the steering wheel), and you get the code number and a printout. Independent repair shops typically charge $50 to $100 for a scan. Dealerships charge $100 to $150 or more, but they have access to manufacturer-specific diagnostic tools and can sometimes identify problems that generic scanners miss.

If you own a scan tool or smartphone adapter, you can scan the code yourself. Basic Bluetooth OBD2 adapters cost $20 to $50 and work with free apps on your phone, though they read only standard codes — some vehicles store manufacturer-specific codes that require a dealer scanner.

Common reasons the check engine light comes on

A loose or missing gas cap is the most common trigger. The cap seals the fuel tank and allows the emissions system to maintain proper pressure. If the cap is loose, cracked, or missing, the system detects a leak and stores a code. Tighten or replace the cap, drive for a few cycles, and the light often clears on its own.

A faulty oxygen sensor is the second most common cause. Oxygen sensors measure how much unburned oxygen is in the exhaust and tell the engine computer whether to add or reduce fuel. A bad sensor triggers a code and can reduce fuel economy by 10 to 20 percent. Replacement costs $150 to $400 depending on which sensor and your vehicle.

A failing catalytic converter stores codes like P0420 or P0430 (catalyst system efficiency below threshold). The converter cleans exhaust gases before they leave the tailpipe. When it fails, it cannot do its job and the light comes on. Catalytic converters are expensive — $400 to $1,200 or more — and theft is common on some vehicles because the converter contains precious metals.

A bad mass airflow sensor measures how much air enters the engine so the computer can adjust fuel delivery. When it fails, the engine runs rich (too much fuel) or lean (too little fuel), triggering codes like P0101. Replacement typically costs $200 to $400.

Other common codes point to transmission issues, spark plug problems, fuel system leaks, or electrical faults. The code itself tells you which system to focus on, but not always the exact part that failed.

What to do if the light comes on while driving

If the light comes on solid while you are driving, note what you were doing — accelerating, idling, on the highway, in cold weather — because that context helps a technician understand the problem. Continue driving normally to a shop or home. You do not need to pull over unless the light is flashing.

If the light flashes, pull over as soon as it is safe to do so. Turn off the engine and do not restart it. Call a tow truck or have someone drive you to a repair shop. Continuing to drive a misfiring engine risks damage to the catalytic converter and engine internals.

If you are far from home or a shop, you can try tightening your gas cap if it is loose — this solves the problem in a small percentage of cases. Otherwise, have the vehicle towed rather than driven.

Repair costs depend on what the code reveals

Once you have the code, you can estimate repair costs. A loose gas cap costs nothing to tighten. A replacement cap costs $15 to $25. An oxygen sensor runs $150 to $400. A catalytic converter runs $400 to $1,200 or more. Spark plugs cost $100 to $300 for a set. A mass airflow sensor costs $200 to $400.

Before authorizing any repair, ask the shop to show you the code and explain what it means. Ask whether the repair is urgent or can wait. Some codes indicate problems that worsen over time and should be fixed soon; others indicate issues that are not getting worse. A shop that explains the difference and lets you decide is more trustworthy than one that pushes you to repair everything when ready.

If the repair cost seems high, get a second opinion from another shop. Diagnostic codes are standard across vehicles, so any competent technician can read the same code and offer a repair estimate. Comparing estimates often reveals significant price differences for the same work.

Can you drive with the check engine light on?

You can drive with a solid check engine light, though you should have it scanned within a few days. Driving with the light on does not automatically cause damage, but it means you are not addressing a problem that may get worse. Some problems — like a bad oxygen sensor — reduce fuel economy and cost you money in gas. Others — like a failing catalytic converter — can become much more expensive if left unrepaired.

A flashing light is different. Do not drive with a flashing check engine light except directly to a repair shop. A flashing light means the engine is misfiring and damage is happening in real time.

If you are waiting for a repair appointment or saving money for a repair, a solid light is not an emergency. But the longer you wait, the higher the risk that a secondary problem develops. For example, a bad oxygen sensor can cause the catalytic converter to overheat and fail, turning a $300 repair into a $1,000 repair.

Frequently Asked Questions

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

Yes. The fuel system is sealed, and the cap maintains pressure. If the cap is loose or missing, the system detects a leak and stores a code. Tighten or replace the cap and drive for a few cycles — the light often clears on its own. This is why checking the gas cap is always the first step.

What does it mean if the light comes on and then goes off by itself?

A temporary problem triggered the code — perhaps a sensor glitch, a loose connection, or a condition that no longer exists. The code is still stored in the computer's memory even if the light goes off. Have the code scanned to see what triggered it, because the problem may return.

Will the check engine light fail my vehicle inspection?

Yes. Most states require that the check engine light be off and no codes be stored for a vehicle to pass inspection. If the light is on, you will fail. You must have the problem diagnosed and repaired before the inspection can be passed.

Is it safe to clear the check engine light without fixing the problem?

Clearing the code without fixing the problem is not recommended. The code will return once the underlying issue triggers again, and you will be back where you started. Some shops will clear codes as a favor, but the problem remains. Fix the problem first, then clear the code.

How much does a diagnostic scan cost at a dealership versus an independent shop?

Dealerships typically charge $100 to $150 for a scan, while independent shops charge $50 to $100. Many auto parts stores offer free scans. Dealership scans are useful if you suspect a manufacturer-specific problem, but a free or low-cost scan from an independent shop or parts store is usually sufficient to identify the issue.