Check Engine Light Comes On and Off: Why It Happens & What It Means
A check engine light that comes on and off usually means the computer found a fault that only shows up under certain conditions, such as a loose gas cap, a weak ignition coil or a sensor that misreads while the engine is cold. People who type “why is my check engine light flashing then stops” into Google are usually describing something more urgent, because a flashing light normally signals an active misfire that can overheat the catalytic converter within seconds. This page covers the causes, 2026 repair costs, the codes to read and when it is safe to keep driving.

James Mitchell
Senior Automotive Writer
12+ years writing clear, practical guides on vehicle maintenance and emissions systems.
Why Does My Check Engine Light Come On and Off?
Your check engine light comes on and off because the computer saw a fault, then ran its test again and passed. Each system is tested repeatedly, so a problem that appears only with cold starts, heavy throttle, moisture or a loose connection can switch the light on, then off again within minutes, days or weeks.
Think of the light as the visible end of a longer process. The engine control unit, the computer that manages fuel, spark and emissions, runs self tests on every emissions related system using the OBD-II onboard diagnostic standard. A check engine light that turns on and off is simply the result of those tests passing and failing at different times. When the check engine light goes on and off with no pattern, the cause is almost always an intermittent fault rather than a faulty dashboard bulb.
How Does the Computer Decide When to Turn the Check Engine Light On and Off?
The computer stores a pending code the first time a test fails and turns the light on once the same fault repeats. Many vehicles then need three consecutive driving cycles without the fault to switch the light off, and about 40 warmup cycles to erase the stored code from memory.
A driving cycle is one start, drive and shutdown. A warmup cycle is a start from a cool engine that is driven until it reaches normal operating temperature. The exact counts differ by manufacturer and by fault type, so treat the table below as a typical pattern rather than a fixed rule.
| What happens | Typical result |
|---|---|
| A test fails for the first time | A pending code is stored and the light usually stays off |
| The same fault repeats on following trips | The check engine light turns on |
| Three consecutive driving cycles pass with no fault | The check engine light turns off |
| About 40 more warmup cycles pass with no fault | The stored code is erased, and some systems use up to 80 |
| A pending code never repeats | It is cleared after roughly 40 warmup cycles without the light ever coming on |
| A repair is completed | The light often clears within 50 to 100 miles of mixed driving |
What Does It Mean When Your Check Engine Light Turns Off by Itself?
When your check engine light turns off by itself, the computer ran its tests several times and the fault did not return. The cause may have been temporary, such as a loose cap that was tightened or moisture that dried out, but the code usually stays stored and a scan tool can still read it.
Drivers often say “my check engine light went off by itself” and assume the problem fixed itself, but treat that as a clue rather than a cure. A check engine light turned off by itself only means the monitors passed, not that anything was repaired. Some monitors only run under specific conditions such as steady highway speed, so an intermittent fault can stay hidden for days and then return. When a check engine light turned off after a week, that quiet period tells you very little.
What Causes a Check Engine Light to Come On and Then Go Off?
The most common causes are a loose gas cap, a failing oxygen sensor, a dirty mass airflow sensor, ignition misfires, loose wiring and small leaks in the evaporative emissions system. Every one of them can be intermittent, which is why a check engine light comes on and off instead of staying lit. Typical 2026 repair costs are shown below.
The figures in this table come from the CarMD 2026 Vehicle Health Index, which put the overall average check engine light repair at $554. Prices include parts and labor and vary by vehicle, labor rate and region.
| Cause | What you may notice | Average repair cost |
|---|---|---|
| Loose or damaged gas cap | Light appears after refueling, car drives normally | Free to under $30 |
| Oxygen sensor | Lower fuel economy, rough idle | $287 |
| Mass airflow sensor | Hesitation, stalling, poor mileage | $346 |
| Spark plugs | Rough starts, misfires | $299 |
| Ignition coil | Shaking and misfires under load | $256 |
| Ignition coils and spark plugs together | Repeated misfires | $480 |
| EVAP purge valve | Hard starts, rough running | $172 |
| Fuel injectors | Rough running, poor fuel economy | $572 |
| Catalytic converter | Often the result of ignored misfires or sensor faults | $1,511 |
A Loose or Damaged Gas Cap
A cap that does not seal lets fuel vapor escape, and the evaporative emissions system reads that as a leak during its pressure test. The light often appears after refueling, and the check engine light turned off by itself after several drive cycles once the cap seals again. A cracked seal means a new cap, which typically costs under $30. Check the gas cap check engine light causes and fixes guide.
An Intermittent Oxygen Sensor Problem
Oxygen sensors measure unburned oxygen in the exhaust so the computer can adjust the fuel mixture. A sensor that reads slowly or drifts while cold can trigger the light, then behave normally once it heats up. Left alone, it can hurt fuel economy and quietly shorten the life of the catalytic converter, and replacement averages $287.
A Faulty Mass Airflow Sensor
The mass airflow sensor, often called the MAF sensor, measures the air entering the engine. A dirty or aging unit skews the air to fuel calculation, which can cause hesitation, poor mileage and occasional stalling. The light may go out when driving conditions change, and the check engine light turns on and off with the weather or engine temperature. Cleaning with a spray made for MAF sensors is sometimes enough, but replacement averages $346.
Temporary Engine Performance Issues
A misfire happens when a cylinder fails to burn its fuel properly, usually because of worn spark plugs, a weak ignition coil or a clogged fuel injector. Misfires often appear only under heavy throttle, then fade when you ease off, so the check engine light goes on and off with how hard you drive. Code P0300 means random or multiple cylinder misfires, and it is one of the most common codes behind a light that comes and goes.
Loose Electrical Connections or Wiring Problems
Corroded connectors and chafed wiring can break contact over bumps, in wet weather or as parts heat and cool. The sensor itself may be fine while the signal drops out for a moment. A code such as P0113, which points to the intake air temperature circuit, can be caused by the sensor or by its wiring, so a visual inspection of connectors is worth doing before replacing parts.
An Intermittent EVAP System Leak
The EVAP system traps fuel vapor from the tank and burns it in the engine. A small leak, a sticking purge valve or a worn hose can set code P0442, then pass its next test when conditions change. EVAP faults overlap with other symptoms, so diagnosis takes longer than the parts cost suggests.
Changing Operating Conditions
Cold mornings, rain and humidity can all trigger a brief fault. Moisture on ignition parts can cause a misfire that dries out as the engine heats up, and some sensors do not work properly until they reach operating temperature. If your light follows the weather or only appears on cold starts, tell the technician, because that pattern narrows the search.
A Minor Fault That Occurs Occasionally
Sometimes a sensor or pump fails for a moment and corrects itself, and the light goes out when the monitor passes. One isolated event can happen on any car, and a check engine light came on then went off once for many owners without returning. If it repeats, treat it as an intermittent fault and have the codes read, because on some vehicles the light can also be commanded by modules outside the engine, such as ABS or transmission control.
Why Is My Check Engine Light Flashing Then Stops?
A flashing check engine light means the computer detected an active misfire severe enough to damage the catalytic converter. It stops flashing when the misfire eases, often because you lifted off the throttle or the load dropped. The fault is still stored in memory, so the car needs a scan even though the flashing has stopped.
A flashing check engine light then stops in the same pattern for many drivers, and a check engine light flashing then stops again the next time you repeat the same driving: you accelerate hard or climb a hill, the light blinks, and it goes steady or off when you ease up. During the misfire, unburned fuel is pushed into the exhaust and burns inside the catalytic converter, which raises its temperature well beyond normal. If you are not yet familiar with what a catalytic converter does, what a catalytic converter is and how it works covers that in full detail.
The table below compares how different light behaviors are usually read, so you can match what you saw to the likely meaning.
| Light behavior | What it usually signals | What to do |
|---|---|---|
| Steady and stays on | A detected fault that affects performance or emissions | Get codes read within days and drive gently |
| Flashing and stays on | An active severe misfire | Reduce load, avoid highway speeds and stop driving soon |
| Flashing then stops | An intermittent severe misfire | Avoid hard acceleration and scan the car as soon as possible |
| On for a day or two, then off | A fault that passed its retest or a temporary condition | Read the stored codes and watch for a repeat |
| On and off repeatedly for weeks | An intermittent sensor, wiring or ignition fault | Scan, check freeze frame data and inspect connectors |
| Off for days, returns at highway speed | A monitor that only runs under certain conditions | Take a test drive with a scan tool connected |
Why Does My Check Engine Light Come On and Then Go Off While Driving?
While driving, the light comes on when a fault appears under load, speed or heat, then goes off when conditions change or the fault passes a retest. Misfires under heavy throttle, a sensor that warms up and a connector that loses contact over bumps are the usual reasons for a check engine light that came on then went off. The conditions at that moment are saved as freeze frame data.
Here is a typical scenario from the shop floor. A ten year old crossover blinks its light every time it climbs the same freeway ramp, and the owner ignores it because the light is off by the time the car reaches the driveway. The owner tells the technician the check engine light comes on and off only on that ramp. The technician reads a stored P0300 and finds freeze frame data showing high engine load. The cause is a worn ignition coil that only arcs under heavy demand. Three weeks of driving have also fouled two spark plugs. Replacing the coil and plugs costs far less than the catalytic converter would have.
Why Did My Check Engine Light Turn Off by Itself but Stay in the System?
The light turned off because the computer completed enough clean driving cycles, but the diagnostic trouble code, or DTC, stays stored as a history code. It is typically erased after about 40 more warmup cycles or when a scan tool clears it. That code and its freeze frame snapshot tell a technician what failed.
This is why a scan is still worth doing after the check engine light turned off. A cheap reader may show only confirmed codes, while a better tool also shows pending and history codes that explain an intermittent problem.
Can a Check Engine Light Turn Off Even When the Problem Still Exists?
Yes. The light only reflects whether the monitors passed their most recent tests. An intermittent fault such as a failing sensor, loose connector or small EVAP leak can pass several tests in a row while the defect remains and returns later. Some tests run only under specific conditions, so days can pass before another one runs.
That is why the same code can come back after a quiet week, and why a check engine light goes on and off for months on some cars. A light that stays off is a good sign, but it is not proof of a repair.
How to Diagnose a Check Engine Light That Keeps Coming On and Off
Work through these five steps in order when your check engine light keeps coming on and off, starting with the cheapest checks and ending with a hands on inspection of the part the codes point to. Each step narrows the cause before you spend money on parts.
- Remove and reseat the gas cap until it clicks, then drive normally for several days.
- Note any other warning signs such as rough idle, hesitation, stalling or lower mileage.
- Scan for stored and pending OBD-II codes before anything is cleared.
- Read the freeze frame data to see the conditions when the fault was recorded.
- Inspect the component the codes point to, including its connector and wiring.
Step 1: Check the Gas Cap
Remove the cap, look for a cracked seal and reinstall it until you hear it click. If the light was caused by the cap, it will go out on its own after several drive cycles rather than instantly. Replace a damaged cap with one made for your vehicle, since the wrong cap can keep the EVAP system from sealing.
Step 2: Look for Other Warning Signs
Write down what the car does when the light appears or when the check engine light turns on and off. Shaking points toward misfires, hesitation points toward airflow or fuel problems, and poor mileage often points toward oxygen sensors. Also note whether the light follows the weather, the fuel level or a certain speed, because that pattern helps the technician more than the code alone.
Step 3: Scan for Stored and Pending OBD-II Codes
Plug a scan tool into the diagnostic port, usually under the dashboard near the steering column. Read stored, pending and history codes, and do not clear them first, because clearing also erases the freeze frame data and resets the monitors. Many parts retailers read codes for free. Example codes include P0300 for random misfires, P0171 for a lean mixture on bank 1 and P0442 for a small EVAP leak.
Step 4: Check Freeze Frame Data
Freeze frame data is a snapshot the computer saves when a fault sets. It typically records engine speed, load, vehicle speed, coolant temperature and fuel trim. A misfire code with high load and cool coolant temperature suggests a different cause than the same code at idle on a hot engine.
Step 5: Inspect the Suspected Component
Match the inspection to the code. A misfire code means checking spark plugs, coils and injectors, a lean code means checking for vacuum leaks and the MAF sensor, and an EVAP code means checking the cap, hoses and purge valve. On every one of them, wiggle the connector and look for corrosion, because loose connections cause many intermittent lights.
Is It Safe to Drive When the Check Engine Light Comes On and Then Goes Off?
If the light stays off and the car drives normally, it is usually fine to keep driving briefly while you schedule a scan. If the light ever flashed, the car felt like it was misfiring or power dropped, reduce load, avoid highway speeds and get it checked soon, since a misfire can damage the catalytic converter.
Waiting costs money. CarMD reported that the average check engine light repair rose 33 percent in a year to $554 in 2026, with labor rates up more than 50 percent and parts up 23 percent. Small faults such as worn plugs tend to grow into coil, sensor and converter repairs when ignored. Stop and arrange help if the temperature gauge climbs, you smell raw fuel or the engine shakes badly. Rules and prices vary by state and vehicle, so confirm local requirements with a licensed shop.
How to Prevent Your Check Engine Light From Coming On Repeatedly
Prevent repeat lights by replacing spark plugs on schedule, tightening the gas cap until it clicks, fixing small codes early and using quality parts. Many of the costliest check engine repairs start as small ignored faults, such as worn plugs that stress coils and later the converter.
Follow the plug interval in your owner’s manual, since worn plugs are a leading cause of misfires and a common repair at $299 on average. Read codes the first time the light appears instead of waiting for it to return. Keep a basic OBD-II reader in the glove box, but use it to read codes rather than to clear them. Finally, fix oxygen sensors and misfires promptly, because both can shorten the life of an expensive catalytic converter.

James Mitchell
Senior Automotive Writer
12+ years writing clear, practical guides on vehicle maintenance and emissions systems.
Frequently Asked Questions
Conclusion:
Whether your check engine light comes on and off for weeks or the question is why is my check engine light flashing then stops, the safest move is to read the codes now rather than wait for the next blink. An intermittent steady light is usually a sensor, cap or wiring issue, while any check engine light flashing then stops pattern means a misfire until proven otherwise. Reseat the gas cap, then get a scan this week.
