What the smog check actually measures
A smog check (also called an emissions test) measures the pollutants your car's exhaust produces. The test looks for three main things: hydrocarbons (unburned fuel), nitrogen oxides (NOx), and carbon monoxide (CO). These are the gases that contribute to air pollution and smog formation. The test does not measure whether your car runs well or whether you change your oil on time—it measures only what comes out the tailpipe.
How the test works depends on your car's model year. Newer cars (usually 1996 and later) plug into a computer that reads your vehicle's onboard diagnostic system, called the OBD-II scanner. Older cars go on a dynamometer, a treadmill-like machine that measures exhaust gases directly while the engine runs under load. Either way, your car must stay within state limits for each pollutant, or it fails.
The limits themselves vary by state. California has the strictest standards in the country. Other states follow federal EPA standards, which are less strict. Some states do not require smog checks at all. Where you live determines what your car must pass.
Key Takeaways
- A smog check measures hydrocarbons, nitrogen oxides, and carbon monoxide in your exhaust—not engine condition or maintenance.
- Newer cars (1996+) use an onboard computer scan; older cars run on a dynamometer that measures exhaust directly.
- A check engine light, faulty oxygen sensor, or clogged catalytic converter are the most common reasons cars fail.
- Fixing a failed smog test usually costs between $200 and $800, depending on what is wrong.
- Regular maintenance—oil changes, air filter replacement, and spark plug service—helps prevent failure by keeping the engine running cleanly.
Why cars fail: the most common problems
The single biggest reason a car fails smog is a check engine light that is on or has been on recently. The light means your car's onboard computer detected a problem with the emissions system. Even if the light is off now, the computer remembers the fault code. Many testing stations will not even run the test if they see a stored code—they will tell you to fix it first and come back.
The second most common culprit is a faulty oxygen sensor. This sensor tells your engine how much fuel to burn. When it fails, the engine runs too rich (too much fuel) or too lean (too little), and emissions spike. A bad oxygen sensor usually triggers a check engine light, but not always. Replacement typically costs $150 to $300.
A clogged or failing catalytic converter is the third major reason. The catalytic converter is the part that chemically transforms harmful gases into less harmful ones before they leave the tailpipe. When it clogs or fails, emissions shoot up and the car fails when ready. This is also expensive to fix—$400 to $1,200 or more, depending on your car.
Other common failures come from a dirty air filter (restricts oxygen flow), worn spark plugs (cause incomplete combustion), a leaking fuel cap (lets fuel vapors escape), or a malfunctioning EGR valve (recirculates exhaust gases to reduce emissions). Many of these are cheap fixes if caught early.
What happens if your check engine light is on
Do not ignore a check engine light before your smog test. The light means your emissions system is not working as designed, and you will almost certainly fail. More importantly, you need to know what the code is before you go to the testing station.
You can read the code yourself using an inexpensive OBD-II scanner (around $25 to $50) that plugs into the diagnostic port under your steering wheel. Many auto parts stores will also read the code for free. Common codes include P0420 (catalytic converter problem), P0133 (oxygen sensor circuit), and P0171 (fuel system too lean). Once you know the code, you can decide whether to fix it before testing or accept the failure and repair it afterward.
Some people choose to fix the problem first, then test. Others fail the test, get a repair report, fix the car, and retest. The retest fee is usually $20 to $40. Either way, you cannot pass smog with an active fault code.
Maintenance that actually prevents smog test failure
Regular maintenance keeps your emissions system working and reduces the chance of failure. The most important tasks are replacing your air filter every 12,000 to 15,000 miles, changing your oil and oil filter on schedule (follow your owner's manual), and replacing spark plugs at the interval your manufacturer recommends (usually 30,000 to 100,000 miles depending on the type).
These tasks matter because a clean air filter lets the engine breathe properly, fresh oil keeps the engine running smoothly, and good spark plugs may support fuel burns completely. When any of these are neglected, the engine compensates by running rich or lean, which raises emissions.
You should also check your fuel cap before testing. A loose or cracked cap lets fuel vapors escape, which is detected as a leak and can cause failure. Replacement caps cost $5 to $15. If your car is due for a smog test, tighten or replace the cap as part of your prep.
How to prepare your car for a smog test
Start by driving your car normally for at least a week before the test. The emissions system needs to complete its self-check cycle, called the readiness monitors. If you just cleared the check engine light or disconnected the battery, the monitors reset and you may fail the test even if the car is fine. Some testing stations will not test a car with incomplete monitors.
Next, check your fuel cap and tighten it. Fill your gas tank at least three-quarters full—a low fuel level can trigger a vapor leak code. Make sure your tires are properly inflated; underinflated tires make the engine work harder and can raise emissions slightly.
If your check engine light is on, read the code before you go. If it is off but you are worried about a past problem, bring a code reader or ask the testing station to scan for stored codes. Finally, do not make any major changes to your car right before the test—no new parts, no tuning, no modifications. Let the car run as it normally does.
The cost of fixing a failed smog test
Repair costs depend entirely on what is wrong. A new air filter costs $15 to $40. Spark plugs run $20 to $100 per set. An oxygen sensor replacement is $150 to $300. A catalytic converter is $400 to $1,200 or more. An EGR valve can be $200 to $600. If the problem is just a loose fuel cap, you spend $5 to $15.
The best approach is to get a diagnosis before you pay for repairs. A mechanic can scan your car's computer and tell you exactly what is causing the failure. Some shops charge $50 to $100 for a diagnostic scan; others do it free if you have them do the repair. Once you know the problem, you can decide whether to fix it before retesting or accept the failure and fix it on your own timeline.
Keep in mind that some states allow you to register your car even if it fails smog, as long as you have a repair report showing you took it to a shop. Other states require a passing test before registration. Check your state's rules so you know what you are working toward.
Frequently Asked Questions
Can I pass a smog test if my check engine light just turned off?
Not always. The computer stores the fault code even after the light goes off. Most testing stations scan for stored codes and will fail you if they find one. Drive the car normally for at least a week to let the readiness monitors complete their cycle, then have the code scanned before you test.
What is the difference between a smog check and a regular inspection?
A smog check measures only exhaust emissions. A regular safety inspection checks brakes, lights, wipers, and steering. Some states require both; some require only one. Your state's DMV website lists what your car needs.
If I fail, do I have to fix it at a specific shop?
No. You can take your car to any mechanic you trust. Some states require you to get a repair report from a certified shop before retesting, but you choose which shop. Do not feel pressured to use the testing station's recommended repair shop.
How long does a smog test take?
Usually 15 to 30 minutes from start to finish. Newer cars with OBD-II scans are faster. Older cars on a dynamometer take longer because the engine has to run under load. Call ahead to ask how long the station typically takes.
Can I retest the same day if I fail?
Most stations allow you to retest the same day if you fix the problem and come back, but you will pay the retest fee again (usually $20 to $40). Some stations have a waiting period between tests. Call ahead to ask their policy.