What an OBD2 scanner does during a smog check
An OBD2 scanner reads diagnostic trouble codes from your vehicle's onboard computer—the same codes that a smog technician's equipment will read during your official test. When you plug a scanner into the OBD2 port (usually under the steering wheel), it shows you whether your engine's emissions systems are working correctly and whether any fault codes are stored in memory. If codes are present, your vehicle will likely fail the smog test.
The scanner does not perform the smog test itself. The official smog check measures actual exhaust emissions—carbon monoxide, nitrogen oxides, particulate matter—using specialized equipment at a licensed test station. What the scanner does is tell you whether your vehicle's computer thinks the emissions systems are functioning. This matters because most smog failures come from stored or pending fault codes, not from borderline emission readings.
Using a scanner before you go to the test station saves you the test fee if you know a failure is coming. It also tells you whether a repair is worth doing before testing, or whether the vehicle is likely to pass.
Key Takeaways
- An OBD2 scanner reads fault codes from your engine computer and shows whether emissions systems are working, but it does not measure actual exhaust emissions the way a smog test does.
- Most smog test failures are caused by stored fault codes, not high emission readings, so clearing codes with a scanner can help you understand whether repairs are needed.
- Scanners range from basic code readers ($25–$50) that only show codes, to mid-range devices ($100–$300) that clear codes and show live data, to professional-grade tools ($500+).
- Clearing a code yourself with a scanner does not fix the underlying problem—the code will return if the fault is still present, and you may fail the smog test again.
- Some states and test stations have rules about how recently the vehicle must have been driven or how long codes must have been cleared before testing.
Types of OBD2 scanners and what they cost
A basic code reader is the cheapest option, usually $25 to $50. It plugs into the OBD2 port and displays fault codes in a straightforward format. You can see what the code is and look up what it means online, but the device does not clear codes or show you live sensor data. This is useful if you just want to know whether codes are present before you pay for a smog test.
A mid-range scanner costs $100 to $300 and can read codes, clear codes, and show live data from sensors (oxygen sensor readings, fuel trim, coolant temperature). Some can also show pending codes—faults the computer has detected but not yet stored as permanent failures. These are more useful for understanding what is happening with your emissions systems and whether a repair actually fixed the problem.
Professional-grade scanners ($500 and up) are used by repair shops and can access manufacturer-specific codes and perform advanced diagnostics. For a smog check, you do not need this level of equipment. A mid-range scanner is usually enough to tell you whether your vehicle is likely to pass.
How to use a scanner before your smog test
Plug the scanner into the OBD2 port, which is located under the steering wheel on the driver's side of most vehicles (check your owner's manual if you cannot find it). Turn the ignition to the "On" position without starting the engine, or start the engine—either works, depending on the scanner. The device will power up and connect to your vehicle's computer.
Select "Read Codes" or "Scan" on the scanner's menu. It will display any stored fault codes. Write down the codes exactly as they appear (they are usually formatted as P0XXX, where X is a number). Look up each code online or in the scanner's built-in code library to understand what system it refers to—oxygen sensor, catalytic converter, fuel system, evaporative emissions system, and so on.
If codes are present, you have two choices: repair the fault before testing, or clear the codes and see whether they return. Clearing codes is straightforward—most scanners have a "Clear Codes" or "Erase Codes" option—but understand that this does not fix the underlying problem. If the fault is still present, the code will return after the vehicle has been driven for a certain distance or number of engine starts (this varies by code and manufacturer).
Why clearing codes yourself is not the same as passing a smog test
When you clear a fault code with a scanner, you are erasing the record of the fault from the computer's memory. You are not repairing the system that caused the fault. If the oxygen sensor is still faulty, the catalytic converter is still damaged, or the fuel system is still leaking, the computer will detect the problem again and store the code again.
Some states and test stations have rules about code status before smog testing. California, for example, requires that the vehicle be driven for a certain number of miles after codes are cleared so that the computer can run its own diagnostic tests (called "readiness monitors"). If the readiness monitors have not completed, the vehicle may not be testable, or it may fail for having incomplete diagnostics rather than for emissions readings.
A scanner tells you whether codes are present right now. A smog test measures whether your exhaust actually meets emissions standards. A vehicle with no codes can still fail a smog test if the emissions are too high. A vehicle with codes will almost certainly fail. The scanner is a tool to help you decide whether to repair before testing, not a predictor of the test result.
Common fault codes that cause smog test failures
Codes in the P0400 range relate to the evaporative emissions system (the system that captures fuel vapors from the tank). These are common smog test failures. P0420 and P0430 indicate a problem with the catalytic converter or oxygen sensors. P0101 and similar codes point to the mass airflow sensor, which measures how much air enters the engine. P0171 and P0174 indicate the fuel system is running too lean or too rich.
Not every fault code will cause a smog test failure. Some codes relate to systems that do not directly affect emissions (transmission, ABS, power steering). A scanner cannot tell you which codes will fail you and which will not—that depends on your state's smog test rules and the specific test equipment used. If you see codes related to fuel, air, oxygen sensors, or the catalytic converter, those are the ones most likely to cause a failure.
If you are unsure whether a code will affect your smog test, call the test station before you go. Many technicians can tell you over the phone whether a particular code typically causes a failure in your state.
When to repair before testing versus clearing codes and retesting
If your scanner shows no codes, you are in the best position to take the smog test. The vehicle may still fail if emissions are high, but at least you are not starting with a known fault.
If your scanner shows codes related to emissions systems (oxygen sensors, catalytic converter, fuel system, evaporative system), repairing them before testing is usually the better choice. These repairs are often necessary anyway—a faulty oxygen sensor or leaking fuel line will eventually damage the catalytic converter or cause poor fuel economy. The cost of the repair is usually less than the cost of failing the test, paying the test fee again, and then having to repair the vehicle anyway.
If your scanner shows codes unrelated to emissions (transmission, ABS, power steering), you may be able to clear the codes and test without repair. However, check your state's smog test rules first. Some states fail any vehicle with stored codes, regardless of what the codes are.
Readiness monitors and why they matter for smog testing
Your vehicle's computer runs continuous diagnostic tests on the emissions systems while you drive. These tests are called readiness monitors. When you clear codes with a scanner, you also clear the results of these tests. The computer needs to run the tests again before the smog test station can verify that all systems are working correctly.
In California and some other states, the smog test equipment checks whether the readiness monitors have completed. If they have not, the vehicle cannot be tested, or it fails automatically. To complete the monitors, you typically need to drive the vehicle for 50 to 100 miles under normal driving conditions (a mix of highway and city driving, with the engine reaching normal operating temperature). The exact distance and driving pattern depend on your vehicle's make and model.
If you clear codes a few days before your smog test and drive normally, the monitors should complete in time. If you clear codes the day before testing and do not drive much, you may not pass the readiness check. Plan ahead: clear codes at least a few days before your test appointment, and drive the vehicle normally in the meantime.
Frequently Asked Questions
Can I use a phone app instead of a physical OBD2 scanner?
Some phone apps connect to a Bluetooth OBD2 adapter and read codes. These are cheaper than standalone scanners but often less reliable and slower. For a one-time smog check, a basic code reader ($25–$50) is usually more dependable and does not require a smartphone or app read. If you plan to monitor your vehicle regularly, a Bluetooth adapter and app may be worth trying.
Will clearing codes may provide I pass the smog test?
No. Clearing codes removes the record of faults from the computer, but it does not repair the underlying problem or may provide that emissions are low enough to pass. If the fault is still present, the code will return. Even with no codes, a vehicle can fail if actual exhaust emissions are too high. A scanner shows code status, not emission levels.
How long does it take for codes to come back after I clear them?
It depends on the fault and the vehicle. Some codes return after a few miles of driving; others take hundreds of miles or many engine starts. If a code returns quickly after you clear it, the fault is still present and needs repair before you test. If it does not return after normal driving for a few days, the problem may have been temporary or intermittent.
Do I need to turn off the engine before I unplug the scanner?
No. You can unplug the scanner while the engine is running or off. Unplugging it does not affect the vehicle's computer or the codes stored in memory. However, if you are clearing codes, turn off the engine first and wait a few seconds before unplugging, just to be safe.
What if the scanner says "No Communication" when I plug it in?
This usually means the scanner is not making a good connection to the OBD2 port. Check that the port is clean and the scanner is fully inserted. If the vehicle is older than 1996, it may not have an OBD2 port—older vehicles use different diagnostic systems. If the scanner still will not connect, try a different scanner or take the vehicle to a repair shop for a diagnostic scan.