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:
| Step | What happens | Fails if |
|---|---|---|
| Bulb check | Inspector turns the key on with the engine off | The light doesn't come on |
| Connect | Test equipment plugs into the diagnostic port and reads the computer | (Equipment must be able to read the car) |
| Readiness | Equipment reads monitor status | Too many monitors are not ready |
| Light status | Equipment checks whether the computer has commanded the light on, then reads the codes | The 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 year | Unset monitors allowed (federal rule) |
|---|---|
| 1996 to 2000 | Two or fewer |
| 2001 and newer | No 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
- 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.
- 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.
- 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.
- 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.
- Check the bulb. Turn the key on without starting the engine and confirm the light comes on, then goes off once the engine runs.
- 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.
Questions drivers ask
Can you pass an emissions test with the check engine light on?
Not in an OBD-based test. Under the federal inspection rule, a car whose computer has turned the light on because of a stored code fails. California's Smog Check and other state programs fail it too. Fix the fault first.
Can I clear the codes right before the test?
It usually doesn't work. Clearing codes resets the readiness monitors to not ready, and the federal rule allows only one unset monitor on 2001-and-newer cars. Ohio's E-Check program rejects cars that aren't ready.
What if my check engine light doesn't come on at all?
That fails too. Under the federal rule and California's Smog Check, the light must come on with the key on and the engine off. A light that never lights up can hide faults.
Do pending codes fail an emissions test?
Under the federal rule, codes that haven't turned the light on don't fail the OBD check by themselves. But a pending fault can keep a monitor from finishing, and the car can then fail on readiness.
How long should I drive after a repair before the test?
Long enough for the monitors to read ready. Ohio suggests about two or three days of normal mixed driving; CARB suggests about a week. Check readiness with a scan tool before you go.
Sources & further reading
- law.cornell.edu — 85.2222 https://www.law.cornell.edu/cfr/text/40/85.2222 Open source ↗
- govinfo.gov — CFR 2012 Title40 Vol20 Sec86 1806 05 https://www.govinfo.gov/content/pkg/CFR-2012-title40-vol20/pdf/CFR-2012-title40-vol20-sec86-1806-05.pdf Open source ↗
- bar.ca.gov — Obd Test Reference https://www.bar.ca.gov/obd-test-reference Open source ↗
- California Air Resources Board (CARB) — Board Diagnostic Ii Obd Ii Systems Fact Sheet https://ww2.arb.ca.gov/resources/fact-sheets/board-diagnostic-ii-obd-ii-systems-fact-sheet Open source ↗
- law.cornell.edu — 16 CCR 3340.42 https://www.law.cornell.edu/regulations/california/16-CCR-3340.42 Open source ↗
- dam.assets.ohio.gov — Readiness Fact Sheet https://dam.assets.ohio.gov/image/upload/epa.ohio.gov/Portals/27/echeck/docs/Readiness-fact-sheet.pdf Open source ↗
- dmv.ny.gov — What Do You Mean My Cars Not Ready https://dmv.ny.gov/brochure/what-do-you-mean-my-cars-not-ready Open source ↗
- dmv.ny.gov — 6571 https://dmv.ny.gov/node/6571 Open source ↗