No. In an OBD-based emissions or smog test, a check engine light that's on because of a stored fault is an automatic fail. The test also checks that the light works and that the car's self-tests (readiness monitors) have run, so clearing codes the day before usually gets the car rejected instead. Fix the fault, drive until the monitors are ready, then test.

Key takeaways

  • Light on with a stored code: fail. The federal OBD inspection rule says so directly, and California's Smog Check agrees.
  • Light that never comes on: fail. It must light up with the key on and the engine off.
  • Too many not-ready monitors: rejected or failed. The federal limit is two for 1996 to 2000 models and one for 2001 and newer.
  • Clearing codes resets monitors, so it trades a fail for a rejection.
  • Rules vary by state. Check your state's program before you go.

The Short Answer

Most emissions inspections for 1996-and-newer gasoline cars don't measure the exhaust directly. They plug into the car's diagnostic port and read what the engine computer reports. New York's DMV says its OBD II inspection covers 1996-and-newer gasoline vehicles and most 1997-and-newer diesels, and the California Air Resources Board (CARB) says Smog Check for 2000-and-newer cars is based mainly on the OBD II system.

In that kind of test, the check engine light is the main question. The federal inspection rule (40 CFR 85.2222) says that if the computer has commanded the light on, the stored codes are recorded and "the vehicle shall fail." CARB puts it in plain terms: "If a fault is currently causing the light to be on, you need to have the malfunctioning component repaired before you can pass the inspection."

Not every state runs an emissions test, and those that do set their own rules within the federal framework. Check your state's program for the details that apply to you.

What an OBD Emissions Test Checks

The federal procedure has four parts, and state programs such as California's follow the same pattern:

StepWhat happensFails if
Bulb checkInspector turns the key on with the engine offThe light doesn't come on
ConnectTest equipment plugs into the diagnostic port and reads the computer(Equipment must be able to read the car)
ReadinessEquipment reads monitor statusToo many monitors are not ready
Light statusEquipment checks whether the computer has commanded the light on, then reads the codesThe light is commanded on

The rule also has the inspector check that a commanded light is actually lit. If the computer says the light should be on but it isn't, the federal rule says the car fails.

California's Bureau of Automotive Repair (BAR) lists the same light checks in its Smog Check reference: the light must come on with the key on and engine off, and a light that stays lit with the engine running fails.

What Fails, and What Doesn't

Fails:

  • A lit check engine light from a stored fault. The federal rule and California both treat it as a fail. Common culprits include catalyst codes like P0420, EVAP leak codes like P0455 and P0442, misfire codes like P0300, and fuel mixture codes like P0171. For which brands report the catalyst code most, see P0420 by make.
  • A light that doesn't work. The federal rule says a car fails if the light doesn't come on at key-on, engine-off, "even if no DTCs are present."
  • Too many unset readiness monitors. See the next section.

Doesn't fail on its own (under the federal rule):

  • Codes that haven't turned the light on. The federal rule says that if the computer hasn't commanded the light on, "the vehicle shall pass the OBD inspection, even if DTCs are present." That covers most pending codes. Our guide to pending, stored and permanent codes explains those lists.

There's a catch with pending codes, though. New York's DMV lists "pending problems that have not yet illuminated the check engine light" as one reason monitors stay not ready. So a pending fault can still sink the test through readiness.

Light flashing? Don't drive to the test station. A flashing light means an active misfire that can damage the catalytic converter. See check engine light flashing.

Why Clearing Codes Before the Test Backfires

Clearing codes with a scan tool, or disconnecting the battery, turns the light off. It also resets the readiness monitors to not ready. Ohio's E-Check fact sheet explains that when diagnostic data is erased "during vehicle repairs or through battery disconnection the computer reports systems as 'incomplete' or 'not ready.'"

The federal rule allows only a few unset monitors:

Model yearUnset monitors allowed (federal rule)
1996 to 2000Two or fewer
2001 and newerNo more than one

A freshly cleared car almost always has more than that. Under the federal rule, the owner is told to come back after more driving; if the car still isn't ready at the retest, "the vehicle shall be failed." Ohio's program says not-ready vehicles "are rejected from testing." New York's DMV says a car won't pass "unless the required monitors are 'ready'."

And if the fault wasn't fixed, the light comes back once the computer confirms it again. Clearing hides the problem for a few drives at most. Our guide on how to clear the check engine light covers when clearing makes sense, and readiness monitors explains how they reset.

Ohio's advice to owners is to avoid clearing codes after a repair if possible and let the light go off on its own as the car is driven.

California Smog Check

California runs one of the most detailed programs, and a few points are worth knowing:

  • Model years. CARB says 2000-and-newer cars are tested mainly through the OBD system, while 1996 to 1999 cars get both an OBD check and a tailpipe test. California's Smog Check regulation (16 CCR 3340.42) sets a tailpipe test method for 1976 to 1999 models.
  • Readiness. CARB warns that a car with too many incomplete readiness indicators "will fail the inspection." BAR's Smog Check reference publishes the exact allowance by model year and fuel type.

If you live elsewhere, your state's rules may differ on readiness limits, retest timing and older cars.

How to Get Ready to Pass

  1. Read the codes. If the light is on, look up the code and fix the cause. Start with the check engine light guide if you're not sure what you're looking at.
  2. Don't clear codes if you can avoid it. Let the light go out on its own after the repair. The federal OBD rule lets the light go off after three drives in a row without the fault.
  3. Drive normally, with a mix of highway and city driving. Ohio and New York both recommend it. Ohio suggests about two or three days, longer on older vehicles; CARB suggests about a week.
  4. Check readiness with a scan tool. Ohio's E-Check program calls a scan tool "the best means" of checking short of a retest. Make sure the light is off and the monitors are within your state's limit.
  5. Check the bulb. Turn the key on without starting the engine and confirm the light comes on, then goes off once the engine runs.
  6. Then go for the test.

If one monitor won't finish, a pending code may be the reason. Read the pending list and the freeze frame data to see what the computer caught. If you have several codes, the multi-code tool shows which is likely primary.