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

The check engine light (also called the malfunction indicator lamp or MIL) is a yellow or amber light on your dashboard shaped like an engine. It turns on when your vehicle's computer finds a fault code — a specific error stored in the engine control module. That code tells a mechanic or diagnostic scanner what system is misfiring, what sensor is failing, or what emissions component isn't working.

The light does not mean your engine is about to fail. It means your vehicle detected something that does not meet emissions standards or engine performance specs. Some problems are minor and can wait a few days. Others need attention within hours. The only way to know which is to read the code.

Key Takeaways

  • A check engine light indicates a stored fault code in your engine control module, which a mechanic can read with a diagnostic scanner.
  • Common reasons include a loose gas cap, a faulty oxygen sensor, a bad catalytic converter, or a misfiring cylinder — each requiring different repairs.
  • You can drive to a mechanic to have the code read, but if the light is flashing (not steady), pull over and have the vehicle towed instead.
  • The cost to fix the problem ranges from under $100 for a gas cap to $1,000 or more for a catalytic converter, depending on what the code reveals.

Common reasons the check engine light turns on

Loose or missing gas cap. The gas cap seals your fuel system. If it is loose, cracked, or missing, fuel vapors escape and your vehicle's computer detects a leak in the emissions system. This is the easiest problem to fix — tighten or replace the cap and the light may turn off after a few drive cycles (usually within a day or two of normal driving).

Faulty oxygen sensor. Your vehicle has one or more oxygen sensors that measure how much unburned oxygen is in the exhaust. A failing sensor sends bad data to the engine control module, which then adjusts fuel mixture incorrectly. This reduces fuel economy and can damage the catalytic converter if left unrepaired. Oxygen sensor replacement typically costs $150 to $400 per sensor.

Bad catalytic converter. The catalytic converter uses heat and chemicals to convert harmful exhaust gases into less harmful ones. When it fails, your vehicle cannot meet emissions standards. A failing converter often causes the check engine light to come on, and the vehicle may run rough or lose power. Replacement is expensive — usually $800 to $2,500 depending on your vehicle — so catching a bad oxygen sensor early can prevent this.

Engine misfires. A misfire happens when one or more cylinders fail to ignite fuel properly. Causes include a bad spark plug, a faulty ignition coil, a fuel injector problem, or low compression. A flashing check engine light usually means a misfire is happening right now. Do not drive the vehicle; have it towed to a mechanic.

Mass airflow sensor failure. The mass airflow (MAF) sensor measures how much air enters the engine so the computer can adjust fuel mixture. A dirty or failing MAF sensor causes rough idle, hesitation, and poor fuel economy. Cleaning or replacing it costs $150 to $400.

Steady light versus flashing light — what each means

A steady check engine light means your vehicle detected a problem, but the engine is still running normally. You can drive to a mechanic or auto parts store to have the code read. There is no when ready danger, though you should not ignore it for weeks.

A flashing check engine light means a misfire is occurring right now — the engine is misfiring repeatedly. This can damage the catalytic converter and cause engine damage if you keep driving. Pull over safely, turn off the engine, and call for a tow truck. Do not drive the vehicle to the mechanic.

How to read the fault code yourself

You can read the code without paying a mechanic. Many auto parts stores (including AutoZone, O'Reilly, and NAPA) will read your check engine code for free using a diagnostic scanner. You drive to the store, they plug a scanner into the diagnostic port under your steering wheel, and they print out the code and its description.

You can also buy your own diagnostic scanner. Basic Bluetooth scanners that connect to your phone cost $25 to $60 and read most common codes. More advanced scanners cost $100 to $300 and can read manufacturer-specific codes and clear codes yourself (though clearing a code without fixing the problem means the light will come back on).

The diagnostic port is usually located under the dashboard on the driver's side, below the steering wheel. It is a rectangular connector about the size of a USB port. The scanner plugs in, and within seconds you see the code — for example, P0171 (system too lean) or P0300 (random misfire detected).

What to do after you know the code

Once you have the code, you have three options: fix it yourself if it is straightforward (like a gas cap), take it to an independent mechanic, or take it to a dealership. Independent mechanics are usually cheaper. Dealerships have access to manufacturer-specific diagnostic tools and may be necessary if the code is complex or if your vehicle is still under warranty.

Search online for the specific code plus your vehicle's year, make, and model. You will find forums and repair guides that explain what the code means and what repairs are typical. This helps you understand whether the estimate you receive is reasonable.

If the code is something like P0420 (catalyst system efficiency below threshold), get a second opinion before authorizing a catalytic converter replacement. Some shops recommend replacing the converter when a simpler fix (like replacing an oxygen sensor) would solve the problem.

Cost ranges for common check engine repairs

ProblemTypical Cost RangeUrgency
Loose or missing gas cap$0–$20Low — fix within a week
Oxygen sensor replacement$150–$400Medium — fix within a few days
Spark plug replacement$100–$300Medium — fix within a few days
Mass airflow sensor$150–$400Medium — fix within a few days
Catalytic converter replacement$800–$2,500High — fix within a week to avoid damage
Engine misfire (multiple causes possible)$100–$1,000+High — do not drive if light is flashing

Costs vary by vehicle make and model, your location, and whether you use an independent shop or dealership. Dealerships typically charge 20 to 40 percent more than independent mechanics for the same repair.

When to drive versus when to stop

If the light is steady and your vehicle is running normally, you can drive to a mechanic or auto parts store to have the code read. Plan to do this within a few days so you know what you are dealing with.

If the light is flashing, do not drive. A flashing light means the engine is misfiring now, and continuing to drive can cause expensive damage to the catalytic converter and engine. Pull over, turn off the engine, and call a tow truck or roadside information.

If the light comes on and your vehicle is running rough, hesitating, or losing power, treat it as a flashing light situation even if the light is steady. These symptoms suggest a serious problem that needs when ready attention.

Frequently Asked Questions

Can I drive with the check engine light on?

If the light is steady and your vehicle is running normally, yes — you can drive to a mechanic to have it diagnosed. If the light is flashing or your vehicle is running rough, do not drive; have it towed instead. A flashing light means active engine damage is occurring.

Will the check engine light turn off on its own?

Sometimes. If the problem was temporary (like a loose gas cap or a brief sensor glitch), the light may turn off after a few drive cycles. If the underlying problem is not fixed, the light will come back on. Clearing the code without fixing the problem just resets the light temporarily.

What does it cost to read a check engine code?

Most auto parts stores read codes for free. Independent mechanics typically charge $50 to $150 for a diagnostic scan. Dealerships may charge $100 to $200. You can also buy a basic diagnostic scanner for $25 to $60 and read codes yourself.

Is a check engine light the same as an engine temperature warning?

No. The check engine light (shaped like an engine) indicates a fault code in the emissions or engine control system. An engine temperature warning (usually a thermometer symbol) means your engine is overheating. Both need attention, but they signal different problems.

Can a bad battery cause a check engine light?

Rarely. A weak battery can cause sensor readings to be inaccurate, which might trigger a code. However, if your battery is the problem, you will usually see other warning lights and the vehicle may not start. Have the code read to confirm what is actually wrong.