What actually happens during a smog check and why your car might fail

A smog check measures what comes out of your tailpipe—specifically nitrogen oxides, particulate matter, and hydrocarbons—and compares those readings against the standard your vehicle's model year is supposed to meet. The test itself takes about 30 minutes. A technician plugs a probe into your exhaust pipe, runs your engine through a set sequence (idle, acceleration, cruise), and records the numbers. Your car passes if those numbers fall below the legal limit for your vehicle.

Most cars fail because of one of three things: a check engine light is on, the engine isn't running smoothly enough to produce clean exhaust, or the emissions control system itself isn't working. A check engine light is an automatic fail—the test won't even run until that light is off. Beyond that, a car that misfires, runs rough, or has a clogged catalytic converter will produce dirtier exhaust than the standard allows.

The good news is that if your car is mechanically sound, you will pass. The test doesn't care how old your car is or how many miles it has. It only cares whether the emissions coming out right now are clean enough.

Key Takeaways

  • A check engine light means automatic failure—have it diagnosed and repaired before you schedule the test.
  • The most common failures are a misfiring engine, a clogged catalytic converter, or a faulty oxygen sensor, all of which affect how clean your exhaust is.
  • A tune-up (spark plugs, air filter, fuel filter) can help an older car run cleaner, but only if the underlying problem isn't a broken emissions component.
  • You can find a smog station through your state's official testing program website, and the test costs between $30 and $80 depending on your state and vehicle type.
  • If you fail, you have a grace period (usually 30 days) to fix the problem and retest at no additional cost at the same station.

Check your check engine light before you book the test

If your check engine light is on, the smog station will plug in a diagnostic scanner, see the code, and fail you on the spot. You cannot pass with that light on, no matter how clean your exhaust actually is. The light means your car's onboard computer detected a problem in the emissions system—and the test is designed to catch that.

Get the code read first. Many auto parts stores (AutoZone, O'Reilly, Advance Auto Parts) will read the code for free. Write down the exact code—it will be something like P0420 or P0133. Then decide whether to fix it yourself or take it to a shop. Some codes point to straightforward fixes (a loose gas cap, a bad sensor); others mean a more expensive repair like a catalytic converter. Either way, you need the light off before the test.

If you fix the problem yourself, drive the car for at least 50 to 100 miles so the computer can relearn and turn the light off on its own. If the light comes back on, the underlying problem wasn't fixed.

Address the most common failure points

The three parts of your car that most often cause smog test failures are the catalytic converter, the oxygen sensors, and the spark plugs. All three affect how completely your engine burns fuel, which directly affects what comes out the tailpipe.

A clogged catalytic converter restricts exhaust flow and causes the engine to run rich (too much fuel, not enough air), which makes emissions dirtier. Oxygen sensors tell the engine how much fuel to inject; a bad sensor means the engine guesses wrong and burns fuel inefficiently. Worn spark plugs don't ignite the fuel completely, so unburned fuel exits as emissions.

If your car is over 100,000 miles and you haven't replaced spark plugs recently, replace them before the test. If your car is running rough, hesitating, or losing power, have the oxygen sensors checked. If you smell rotten eggs from the tailpipe or the car feels sluggish under acceleration, the catalytic converter may be failing. None of these repairs are optional if you want to pass—they're the actual problem, not just a test-day fix.

Do a basic tune-up if your car is older

A tune-up won't fix a broken emissions component, but it can help an older engine run cleaner by removing carbon buildup and ensuring the fuel and air mix is correct. The basics are a new air filter, a new fuel filter, and fresh spark plugs. Some shops also include a fuel system cleaning, which can help if carbon deposits are clogging the injectors.

This costs between $100 and $300 depending on what you include and where you go. It's worth doing if your car hasn't had one in a few years and you're not sure whether a specific component is broken. It won't hurt, and it may be enough to push a borderline car over the pass line.

Do not rely on a tune-up alone if your check engine light is on or if you know a specific component is broken. A tune-up is maintenance, not repair.

Find a smog station and understand the retest grace period

Your state's official smog program website lists all certified testing stations. In California, that's the Bureau of Automotive Repair (BAR) website; in other states, check your state's Department of Motor Vehicles or environmental quality agency. You can search by zip code and see which stations are open, their hours, and their phone numbers.

Call ahead and ask whether they test your vehicle type (some stations don't test heavy trucks or diesel vehicles). The test itself costs between $30 and $80 depending on your state and whether your vehicle is a sedan, SUV, or truck. Bring your registration and a valid ID.

If you fail, you have a grace period—usually 30 days in most states—to fix the problem and retest at the same station at no additional cost. Use that time to actually fix the problem, not to try a different station or a different test. The retest is your chance to prove the repair worked.

What to do if you fail and need to diagnose the problem

When you fail, the smog station gives you a report showing which emissions (nitrogen oxides, hydrocarbons, or particulates) were too high. That number tells a mechanic where to look. High nitrogen oxides often point to a faulty oxygen sensor or a timing problem. High hydrocarbons usually mean incomplete combustion—spark plugs, fuel injectors, or a misfire. High particulates suggest a clogged catalytic converter or oil burning.

Take that report to a mechanic and explain what failed. A good mechanic will use that information to narrow down the diagnosis instead of replacing parts at random. If you go to a shop that wants to replace your catalytic converter without checking the oxygen sensors first, get a second opinion.

The repair cost depends on what's broken. Oxygen sensors run $150 to $400. Spark plugs run $100 to $300. A catalytic converter can run $400 to $2,500 depending on your vehicle. If the quote seems high, ask whether the part is OEM (original equipment manufacturer) or aftermarket, and whether the shop is replacing just the converter or the whole assembly.

Prepare your car the day before the test

The night before your test, fill your gas tank with fresh fuel. Old fuel can leave deposits in the injectors that affect combustion. Drive normally for at least 20 minutes so the engine reaches full operating temperature and the computer runs through its self-checks. Do not drive aggressively or let the car sit idle for long periods.

On test day, make sure your tires are properly inflated (check the door jamb for the correct pressure, not the sidewall). Underinflated tires increase rolling resistance and can make the engine work harder, which affects emissions. Arrive with a full tank or at least three-quarters full—some stations need enough fuel to run the test cycle without the tank getting too low.

If your car has been sitting for more than a week, drive it for 30 minutes before the test to warm up the catalytic converter and let the oxygen sensors reach operating temperature. A cold catalytic converter is less efficient and can cause a borderline car to fail.

Frequently Asked Questions

Can I pass a smog check if my car has a check engine light on?

No. The test will not run if the light is on. The technician plugs in a scanner, sees the code, and fails you when ready. You must have the code diagnosed and the light turned off before you schedule the test.

What if I fail and can't afford the repair right away?

You have a grace period—usually 30 days—to fix the problem and retest. During that time, your registration remains valid. If you cannot afford the repair within 30 days, some states offer a Gross Polluter Abatement Program or a Consumer information Program that may help with repair costs. Check your state's smog program website for details.

Do I need to get my car repaired at the smog station where I failed?

No. You can take your car to any mechanic you trust. When you're ready to retest, you can go back to the same station or choose a different one—the retest grace period applies at any certified station in your state.

How long does a smog check take?

The actual test takes about 30 minutes. Waiting time depends on how busy the station is. Call ahead to ask about wait times, or check whether the station takes appointments.

What if my car is too old to test?

Most states exempt vehicles over a certain age (usually 1975 or earlier) from smog testing. Check your state's rules on the official smog program website. If your car is exempt, you won't need a smog check to register it.