No, you cannot pass an emissions test with your check engine light on in most states
The check engine light signals that your vehicle's onboard diagnostic system has detected a problem. When that light is illuminated, your car will fail the emissions portion of your state's inspection, even if the underlying issue has nothing to do with emissions. Some states will not even allow you to proceed with the full inspection if the light is on.
The reason is straightforward: the light means your vehicle's computer has stored a diagnostic trouble code, and emissions inspectors use a scan tool to read those codes as part of the test. A stored code—any code—is grounds for an automatic fail. You must have the code cleared and the underlying problem fixed before you can pass.
The timing matters. If you just had the light come on, you may have a few days or weeks before your inspection is due. If your inspection is coming up soon and the light is on, you need to address it now.
Key Takeaways
- An illuminated check engine light causes an automatic emissions test failure in most states, regardless of what triggered the light.
- You must have the vehicle scanned, the problem diagnosed and repaired, and the code cleared before retesting.
- Some states allow a retest at no charge if you fix the problem within a set window; others charge a new inspection fee.
- If the code is emissions-related (like a faulty oxygen sensor), the repair is usually straightforward; if it is engine-related, the fix may be more involved.
- Clearing the code yourself without fixing the underlying problem will cause the light to return and the test to fail again.
Why the check engine light causes an automatic fail
Emissions inspectors use a diagnostic scanner to connect to your vehicle's onboard diagnostic system (OBD-II). That system monitors dozens of emissions-related components and engine functions. When something goes wrong, the system stores a diagnostic trouble code and turns on the check engine light.
The inspector's scanner reads all stored codes. If any code is present—even if it is unrelated to emissions—the test fails. The logic is that a stored code means your vehicle's monitoring system is not functioning normally, and inspectors cannot trust the emissions data without knowing what the problem is.
This is different from a warning light that comes on and then goes away on its own. Once a code is stored, it stays in the vehicle's memory until it is deliberately cleared by a technician or diagnostic tool.
What you need to do before retesting
First, have the vehicle scanned by a technician or at an auto parts store. Many auto parts retailers offer free or low-cost scanning. The scan will pull the specific trouble code and give you a starting point for diagnosis.
Second, have the problem diagnosed and repaired. Not all check engine codes are emissions-related. A code for a faulty oxygen sensor or catalytic converter problem is emissions-related and will prevent you from passing. A code for a transmission issue or a loose gas cap may not directly affect emissions, but the code itself still causes a fail.
Third, have the code cleared. This is done with a diagnostic scanner and usually takes minutes. Some repair shops clear the code as part of the repair; others charge a small fee if you bring the vehicle in just for clearing.
After the code is cleared, the check engine light will turn off. You can then schedule your emissions test. If the underlying problem was not actually fixed, the code will return and the light will come back on—sometimes within days, sometimes after weeks of driving.
Emissions-related codes versus other codes
Some trouble codes directly relate to your vehicle's emissions system. These include problems with oxygen sensors, the catalytic converter, the evaporative emissions system, and the exhaust gas recirculation system. If your code is emissions-related, the repair is often straightforward—replacing a sensor, for example—and relatively affordable.
Other codes relate to the engine, transmission, or other systems. A misfire code, a transmission shift code, or a sensor code unrelated to emissions will still cause an inspection fail, but the underlying repair may be more complex or expensive. The good news is that fixing it will allow you to pass the test.
Ask your technician whether the code is emissions-related. If it is not, you may still need to fix it to pass inspection, depending on your state's rules. Some states fail you only on emissions-related codes; others fail you on any stored code.
Retesting after the repair
Once the code is cleared and the light is off, you can schedule a retest. The rules for retesting vary by state and by inspection facility.
Some states allow a free retest within a certain window—often 30 days—if you had the problem fixed. You pay for the original test, fix the vehicle, and the retest is free. Other states charge a full inspection fee for the retest, treating it as a new test.
A few states have a "waiver" program: if you have made a good-faith repair attempt and the vehicle still fails, you may be able to get a waiver and pass inspection anyway. Waivers are not common and have strict requirements, so do not count on this option.
Call your local inspection station or your state's emissions program office before you schedule the retest. They can tell you the exact fee, how long you have to retest, and what documentation you may need to bring (such as a receipt for the repair).
How long the repair and retest take
The timeline depends on the problem. If the code is for a loose gas cap or a straightforward sensor replacement, the repair may take a few hours and cost under $200. If the code is for a catalytic converter problem, the repair could take a day or more and cost several hundred dollars.
After the repair, you do not have to wait before retesting. The code is cleared, the light is off, and you can go directly to the inspection station. However, if the underlying problem was not fully fixed, the code may return during the retest or shortly after, so make sure the technician has confirmed the repair is complete.
If you are short on time before your inspection expires, prioritize getting the vehicle scanned and diagnosed when ready. Once you know what the problem is, you can decide whether to fix it yourself, take it to a shop, or explore other options.
What not to do
Do not clear the code yourself without fixing the problem. You can buy an OBD-II scanner online for $25 to $100 and clear the code at home, which will turn off the check engine light. But the underlying problem remains unfixed. The code will return—sometimes within a few miles of driving—and the light will come back on. You will fail the inspection again.
Do not ignore the light and hope it goes away. It will not. The only way to pass an emissions test is to have the problem diagnosed, fixed, and the code cleared by a technician.
Do not assume the problem is minor just because the vehicle seems to run fine. Many emissions problems do not cause noticeable symptoms. A faulty oxygen sensor or a small exhaust leak may not affect how the car drives, but both will trigger a code and cause an inspection fail.
Frequently Asked Questions
Can I pass emissions if the check engine light just came on?
No. The light means a code has been stored, and any stored code causes an automatic fail. You must have the problem diagnosed and fixed, and the code cleared, before you can pass the test.
How much does it cost to fix a check engine code?
It varies widely. A gas cap replacement might cost $15 to $30. An oxygen sensor replacement typically runs $100 to $300. A catalytic converter replacement can cost $400 to $1,500 or more. Have the vehicle scanned first to know what you are dealing with before committing to a repair.
What if I fix the problem but the code comes back?
The repair may not have addressed the root cause. Return to the technician and explain that the code returned. They should diagnose further at no charge if the repair was recent. Some problems require multiple repairs or replacement of a different component than the one initially replaced.
Do I have to go to a dealer to clear the code?
No. Any technician with a diagnostic scanner can clear the code. Independent shops, chain repair facilities, and many auto parts stores offer scanning and code clearing. Dealer prices are often higher than independent shops for the same service.
Can I get an extension on my inspection if the light is on?
That depends on your state. Some states allow a brief extension if you have scheduled a repair; others do not. Contact your local inspection station or your state's motor vehicle department to ask about extension policies.