Skip to content

Check engine light

Why does my check engine light come on and off?

The fault comes and goes, so the computer lights and clears the lamp on its own

Intermittent faultsCodes stay storedHow to catch itReviewed 6 Dec 2026

Technical drawing for the Light comes on and off guide on AutoCar Electronic: Engine light that comes and goes

The reason why does my check engine light come on and off is a common search is simple: the engine computer switches the lamp on when a self test fails and switches it back off when that same test passes on several drives in a row, so a fault that comes and goes makes the lamp come and go too. A steady lamp that later clears is usually a check soon matter, but if it ever blinks or the car runs rough, treat it as urgent that day.

The good news is that the computer remembers. Even with the dash dark again, the code that lit it normally sits in memory as a history entry for a good while, so you can still find out what happened.

At a glance

  • Urgency

    Check soon, unless it ever flashes
  • Safe to drive?

    Yes, if the car runs normally
  • Most common cause

    Gas cap, loose connector or a borderline sensor
  • First check

    Read stored and history codes
  • DIY level

    Easy to read, Moderate to trace
  • Tool needed

    Code reader that shows pending codes

How the engine computer clears its own warning

Under federal OBD rules, most faults that light the lamp are allowed to turn it off again once the problem has not come back for three driving trips in a row under similar conditions. The code is not erased at that moment. It can stay stored for about 40 engine warm up cycles before the computer drops it, which is why a scan days later can still find it.

The life of a code that comes and goes
StageLamp on the dashWhat a scan tool shows
Fault seen onceUsually offPending code
Fault seen again on a later driveOn, steadyConfirmed code plus freeze frame
Test passes on three trips in a rowGoes outCode still stored as history
Many warm ups with no repeatOffCode finally drops out of memory
Fault returns at any pointBack onCode confirmed again

Some misfire and fuel system faults follow stricter rules, so the exact count of drives can differ.

Why does my check engine light come on and off? Common culprits

  • The gas cap. A cap with a tired seal may pass the vapor leak test on a warm day and fail it on a cold one.
  • A loose or corroded connector. Engine heat and vibration can make a weak pin connect and disconnect.
  • A sensor right at its limit. An aging oxygen sensor or a converter near the efficiency threshold may pass one drive and fail the next.
  • A misfire that only happens sometimes. Damp weather, a cracked coil boot or one weak plug can misfire only in certain conditions.
  • A small vacuum leak. A hose that opens up only when cold or only when hot.
  • Sagging voltage. A tired battery may log codes during cold starts that never appear on warm days.

A longer list of everyday triggers is in why the light is on.

Some tests only run under certain conditions

Many self tests wait for the right moment. The fuel vapor leak test on many cars runs only after a cold soak, with the tank neither nearly empty nor full, and within a set outside temperature range. A catalyst test may need a steady cruise. That means a fault can sit unseen for days, light the lamp once the right drive happens, and then pass again on a drive when the conditions are a little different.

So a lamp that appears only on long highway trips, only in the morning, or only after filling up is itself a clue. Write down when it happens.

How to catch a fault that will not stay on

  1. Do not clear anything yet. Clearing wipes the very evidence you need.
  2. Plug in a reader and look for stored, pending and history codes. Many basic tools show pending ones.
  3. Save the freeze frame. It records speed, engine temperature and load at the moment the fault set.
  4. Keep a short log: weather, fuel level, trip length and when the lamp appeared.
  5. Check the simple things linked to the code: cap seal, hose clamps, connector locks.
  6. If the code points to a sensor, a technician can watch it on live data during a road test.
If the lamp is out when you get to the shop, the code is still usually there. Ask the shop to check history and pending codes, not only active ones.

The code reading guide explains the difference between stored and pending codes on the reader screen.

When on and off is a warning, not a nuisance

Most coming and going lamps are mild. A few patterns deserve faster action:

Patterns that change the urgency
PatternWhy it mattersWhat to do
Lamp blinks, then goes steady or outA damaging misfire happenedRead the code today and fix it before a long drive
Lamp on with stalling or hesitationFuel, air or ignition fault in progressAvoid highway driving until it is checked
Lamp comes on with a fuel smellPossible fuel leakPark away from ignition sources and get help
Lamp on and the temperature gauge climbsCooling problemStop and switch off; keep hot caps closed

For the blinking case, read the flashing lamp guide.

Check engine light went off after a week

When the lamp clears after several days, the computer has seen enough good drives to be satisfied for now. If you tightened the cap or fixed a loose connector in that time, that may be the whole story. If you did nothing, the fault probably just did not show up during recent trips, and it may well return.

Either way, the emissions readiness monitors were not reset by the lamp going out by itself, so a self cleared lamp is not a problem for inspection. A lamp that is on during an inspection is a different matter, covered in driving with the light on.

Disconnecting the battery to make the lamp go away is not the same as the computer clearing it. That resets the monitors so an inspection station will turn the car away until its drive cycles are done.

Questions drivers ask

Why does my check engine light go on and off?

The fault that set it is intermittent. The computer lights the lamp when a test fails and turns it off after the test passes for several drives. The code usually stays in memory, which means a reader can still pull it up.

My check engine light went off by itself. Is the problem fixed?

Not always. It means the fault has not come back on recent drives. If you fixed something like the gas cap, it may be solved; if not, expect it to return and read the code.

Can a worn gas cap cause a lamp that comes and goes?

Yes. A cap with a worn seal can pass the leak test in some weather and fail it in other weather. Replacing a cracked cap is often the cheapest fix on the whole list.

Can a shop read the code after the light goes off?

Usually yes. The code moves to history or stays stored until many warm up cycles pass without a repeat. Ask for pending and history codes as well as active ones.

Is it safe to drive if the check engine light keeps coming on and off?

If the car runs normally and the lamp is never blinking, yes, while you get it checked. A blinking lamp, stalling or a fuel smell changes that, and the car should be looked at first.

Why does my engine lamp show up on cold mornings and clear later in the day?

Cold starts stress weak parts. A small vacuum leak, a weak battery or a sensor heater fault can show up when cold and disappear once the engine is warm. Note the timing and tell the technician.