Skip to content
A woman stands beside a 1970s sedan inside an auto emission inspection station in Cincinnati, Ohio, in 1975

Automotive Insights

Can a Car Pass Inspection With the Check Engine Light On?

Translate this article
In this article 7 sections

If your car needs an emissions inspection, a lit check engine light can fail it before anyone looks at the tailpipe. The rules differ by state and even by county, but the core test comes from federal regulations. Here is how it works, with the specific rules in California, New York, Texas and Pennsylvania.

Quick answer: Usually not. Where a state or county runs an OBD-based emissions test, federal rules fail a vehicle when the check engine light is commanded on with a stored trouble code, or when the bulb does not light at key-on. Clearing the code right before the test rarely works, because readiness monitors reset and too many unset monitors also fail or get the car turned away.

The Federal Rule Behind OBD Emissions Tests

The EPA says the Clean Air Act requires 33 state and local areas to run vehicle inspection and maintenance (I/M) programs, and a majority of them use the onboard diagnostic (OBD) system for the test. For 1996 and newer cars, the test typically reads the onboard computer rather than the exhaust.

EPA’s test standards in 40 CFR 85.2207 and procedures in 40 CFR 85.2222 set the pass and fail logic:

  • A vehicle fails if the check engine light (the malfunction indicator light, or MIL) is commanded on for one or more trouble codes.
  • It fails if the computer commands the light on but the light is not actually lit on the dash.
  • It fails if the light does not come on at all with the key on and engine off, even with no codes stored. This is the bulb check.
  • If the light is not commanded on, the vehicle passes the OBD check even if some trouble codes are stored.
Close-up of a 16-pin OBD-II diagnostic connector mounted under a car dashboard
The OBD-II port that emissions inspectors plug into on 1996 and newer cars. Photo: Alain Van den Hende, CC BY-SA 4.0, via Wikimedia Commons.

Readiness Monitors: Why Clearing the Code Backfires

California’s OBD II regulation (13 CCR 1968.2) requires every readiness monitor, the OBD system’s self-tests, to report “not complete” whenever fault memory has been cleared by a scan tool or a battery disconnect. Under the federal procedure, a car with unfinished monitors is told to come back after more driving, and fails if they are still incomplete. The federal allowance is two unset monitors for 1996 to 2000 models and one for 2001 and newer.

New York’s emissions rule (6 NYCRR 217-6.3) also counts an OBD system that fails to complete its diagnostic routines against a car, so disconnecting the battery before an inspection can backfire.

State Rules: California, New York, Texas and Pennsylvania

StateCheck engine light ruleReadiness allowance
California (Smog Check)Fails if the light is on with the engine running, or if it does not light at key-on1996-1999 gas: any one incomplete; 2000 and newer gas: evaporative monitor only
New York (NYVIP3)An illuminated light fails the emissions inspectionReadiness failures are possible
Texas (OBD counties)Light commanded on with emissions codes fails regardless of readiness2001 and newer: two or more not-ready monitors fail
Pennsylvania (I/M counties)Fails if the light is on or flashing while running, even with no codes1996-2000: up to two not ready; 2001 and newer: one

California. The Bureau of Automotive Repair’s OBD test reference lists the light standards and readiness limits above. California adds another check: most 2010 and newer vehicles fail if a permanent diagnostic trouble code is stored, whether or not the light is on. BAR notes that permanent codes cannot be erased with a scan tool or by disconnecting the battery; only the car’s own OBD system clears them after confirming the fault is gone.

New York. Under NYSDEC’s emissions regulation (6 NYCRR 217-6.3), a vehicle whose MIL is illuminated with the engine running fails. A repair waiver is possible when a car fails its reinspection after documented qualifying repairs that meet a minimum cost, set in 15 NYCRR 79.25 as $450 in 1989 dollars, adjusted each year for inflation.

Texas. The Texas Commission on Environmental Quality lists 17 counties with OBD testing, in the Dallas-Fort Worth, Houston-Galveston-Brazoria, Austin and El Paso areas, with Bexar County (San Antonio) starting on November 1, 2026. Gasoline vehicles 2 to 24 years old are tested annually. TCEQ’s August 2026 program evaluation adds that on January 1, 2025, Texas ended the safety inspection for non-commercial vehicles, so cars outside emissions counties no longer need a state inspection at all.

Pennsylvania. Chapter 177 fails a car whose light is on or flashing while the engine runs, even if no codes are present, or that has codes stored with the light commanded on. Testing applies only in the state’s emissions counties, and Pennsylvania adds a gas cap test.

Handheld OBD-II scan tool with an orange rubber case and its cable lying on a gray carpet
A handheld scan tool can show stored codes and readiness monitor status before an inspection. Photo: Arp, Public domain, via Wikimedia Commons.

How to Get the Light Off and Pass

  • Read the code first. Our guides cover common emissions failures such as P0455 (large EVAP leak), P0420 (catalyst efficiency), P0171 (system too lean) and P0300 (misfire).
  • Check the gas cap. A loose cap is worth ruling out, and Pennsylvania even runs a separate gas cap test.
  • Repair, then drive normally. The monitors need ordinary driving before they report ready. Do not clear codes on the way to the station.
  • Know your model year. Readiness limits depend on it; our VIN decoder confirms it.
  • Ask about warranty coverage. The EPA says that in areas with a qualifying I/M program, repairs needed because a car failed an approved emissions test are covered for 2 years or 24,000 miles, and the catalytic converter, engine computer and OBD computer for 8 years or 80,000 miles, subject to conditions.

Many repairs are modest. In the Texas evaluation, 68.1% of repair records in the Dallas-Fort Worth and Houston areas reported zero cost. Excluding those and any over $2,000, median repair costs ranged from $25 to $299 and mean costs from $82 to $415.

What If Your Area Has No Emissions Test?

The OBD check applies only where a state or local emissions program exists, and as Texas and Pennsylvania show, those programs often cover specific counties rather than whole states. Check your state DMV or environmental agency for the rules at your registration address. Even where no test applies, the light still marks a real fault worth diagnosing.

Frequently Asked Questions About Inspection With the Check Engine Light On

Will my car fail inspection if the check engine light is on?
In areas with OBD-based emissions testing, yes in almost every case. Federal test standards fail a vehicle when the light is commanded on for a stored trouble code.
Can I clear the code right before an emissions test?
It rarely works. Clearing fault memory sets the readiness monitors to not complete. Federal rules allow only two unset monitors on 1996 to 2000 models and one on 2001 and newer, so a freshly cleared car is usually turned away or failed.
Will a stored code fail inspection if the light is off?
Under the federal rules, no. A vehicle passes the OBD check if the light is not commanded on, even with codes stored. California is stricter for most 2010 and newer models: a stored permanent code fails Smog Check whether or not the light is on.
How long after a repair can I pass the emissions test?
There is no fixed number of days. Once normal driving has completed enough readiness monitors and the light stays off, the car can be retested.
Does Texas still require a safety inspection?
Not for non-commercial vehicles since January 1, 2025. Gasoline vehicles 2 to 24 years old in the 17 emissions counties still need an annual OBD test, and Bexar County joins on November 1, 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *