Your check engine light can turn on for dozens of reasons, many of them minor, and a car that runs fine with the light on is usually safe to drive — but you still need to find out why it's on, because some causes do get worse over time.

The check engine light (also called the malfunction indicator lamp or MIL) turns on when your car's onboard diagnostic system detects a problem in the engine, emissions system, or transmission. That system is sensitive and catches issues long before they affect how the car feels or sounds. A loose gas cap, a faulty oxygen sensor, or a problem with your catalytic converter can all trigger the light while your car drives normally.

The light itself is not a warning to pull over when ready. It is a signal that you need to read the diagnostic code — the specific error your car has recorded — so you know whether the problem is urgent or can wait until your next service appointment.

Key Takeaways

  • A check engine light with normal driving usually means a minor issue like a loose gas cap or a sensor problem, not an engine failure.
  • You need a diagnostic scan to read the code and learn what triggered the light; many auto parts stores offer this scan for free.
  • Some codes point to problems that worsen over time (like a failing catalytic converter), so waiting weeks to investigate can cost you more later.
  • If the light is flashing rather than steady, the problem is more serious and you should not drive the car to a mechanic — have it towed.

How to read the diagnostic code yourself

Your car stores a specific code when the light turns on. You can read that code with a diagnostic scanner — a handheld device that plugs into the port under your steering wheel (usually on the left side, below the dashboard). Many auto parts stores, including AutoZone, O'Reilly Auto Parts, and NAPA, will scan your car for free if you visit in person.

When you go in, tell them your check engine light is on and ask for a free diagnostic scan. They will plug in the scanner, read the code, and print out a report that tells you what system triggered the light. The code itself is a letter and four numbers — for example, P0420 (catalytic converter problem) or P0171 (fuel system too lean). Write down the exact code so you can research it or show it to a mechanic.

If you prefer to scan the car yourself, you can buy a basic scanner for $25 to $100 online or at an auto parts store. More advanced scanners cost more but give you additional information. For a one-time problem, the free scan at an auto parts store is usually enough.

Common codes and what they mean

Some codes point to problems that are annoying but not urgent. A loose or missing gas cap triggers code P0457 and will turn the light on until you tighten or replace the cap — then the light may take a few driving cycles to turn off on its own. Oxygen sensor codes (P0130 to P0167) mean a sensor is failing and should be replaced soon, but the car will run fine until you do. A faulty mass airflow sensor (P0100 to P0104) can cause rough idling or poor fuel economy but is not an emergency.

Other codes point to problems that get worse if you ignore them. A catalytic converter code (P0420, P0430) means the converter is not working properly and will eventually clog, which can damage the engine. A transmission code (P0700 to P0799) can indicate a fluid leak or a failing solenoid — both things that worsen with time and miles. An evaporative emissions system code (P0440 to P0459) usually means a leak in the fuel system that should be found and sealed.

The difference is not always obvious from the code alone, which is why getting a scan is the first step. Once you have the code, you can search it online or ask a mechanic whether it is something that can wait or something that needs attention soon.

Steady light versus flashing light

A steady check engine light means the problem is real but not when ready dangerous. You can drive the car to a mechanic or auto parts store to get it scanned. You should not ignore it for weeks, but you do not need to pull over on the highway.

A flashing check engine light is different and more serious. It means the engine is misfiring — one or more cylinders are not firing properly — and continuing to drive can damage the catalytic converter or the engine itself. If the light is flashing, do not drive the car except to get it to a mechanic. If you are far from home, call a tow truck. Driving a flashing light car for long distances can turn a $200 repair into a $1,000 one.

What happens if you ignore the light

Ignoring a check engine light does not make the problem go away. Some issues stay the same for months or years — a faulty oxygen sensor might never cause the car to fail, though it will reduce fuel economy. Other problems get worse. A catalytic converter that is starting to fail will eventually clog completely, which can cause the engine to overheat or lose power. A transmission fluid leak will eventually leave you without enough fluid to shift properly.

The longer you wait, the more likely the problem will cause a second problem. For example, a failing oxygen sensor can cause the engine to run too rich (too much fuel), which can foul the spark plugs and damage the catalytic converter. What started as a $150 sensor replacement becomes a $800 catalytic converter replacement.

In some states, a car with an active check engine light will fail an emissions test, which you may need to pass to renew your registration. If you are due for an inspection soon, getting the light diagnosed and fixed before the test is cheaper than paying a re-test fee.

When to see a mechanic versus doing it yourself

If the code is something straightforward — a loose gas cap, a faulty oxygen sensor, or a mass airflow sensor — and you are comfortable working on cars, you can often replace the part yourself. Oxygen sensors and mass airflow sensors are usually accessible and take 15 to 30 minutes to swap out. The parts cost $30 to $150 depending on your car.

If the code points to something more complex — a transmission problem, a catalytic converter issue, or an evaporative emissions leak — you will need a mechanic. These repairs require diagnostic tools beyond a basic scanner and sometimes require removing major components. A mechanic can also clear the code after the repair, which resets the light.

Even if you fix the problem yourself, you will need to clear the code to turn off the light. Some scanners have a clear function; others do not. A mechanic can clear it in seconds, or you can drive the car for 50 to 100 miles and the light may turn off on its own if the problem is truly fixed.

How much a check engine light repair usually costs

The cost depends entirely on what the code is. A loose gas cap costs nothing. An oxygen sensor replacement runs $150 to $300 at a shop. A catalytic converter replacement can cost $400 to $1,200 depending on your car. A transmission solenoid might be $200 to $400. An evaporative emissions leak repair varies widely depending on where the leak is.

The diagnostic scan itself — if you do not get it free at an auto parts store — usually costs $50 to $150 at a mechanic shop. Some shops waive the scan fee if you have them do the repair. Always get the code first before you commit to a repair, because the code tells you exactly what needs fixing and you can shop around for the best price.

Frequently Asked Questions

Can I drive my car with the check engine light on?

Yes, if the light is steady and not flashing. A steady light means the problem is not an when ready threat to the engine. You should get it scanned within a few days or a week, but you can drive the car normally in the meantime. A flashing light means you should not drive except to a mechanic — have it towed if you are far from home.

Will the check engine light turn off on its own?

Sometimes, if the problem was temporary. For example, a loose gas cap might trigger the light, and once you tighten it, the light may turn off after a few driving cycles (usually 10 to 20 miles of driving). But if the problem is a faulty sensor or a real mechanical issue, the light will stay on until the problem is fixed and the code is cleared.

What if I clear the code myself but the light comes back?

That means the underlying problem is still there. Clearing the code without fixing the problem is like turning off a smoke alarm without putting out the fire. The light will come back within a few driving cycles. You need to fix whatever triggered the code in the first place.

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

No, it is not illegal in most places. However, if you fail an emissions test because of the light, you will need to fix the problem before you can renew your registration. Some states require you to pass an emissions test every year or every two years, so check your local rules.

How long does it take to fix a check engine light problem?

A straightforward fix like replacing an oxygen sensor takes 30 minutes to an hour at a shop. A more complex repair like a catalytic converter replacement might take two to four hours. Some shops can fit you in the same day; others might need an appointment. Call ahead and ask how long the repair will take once they know the code.