What you need to do before the test
The most common reason people fail emissions tests is that their vehicle isn't ready for one. Before you schedule or show up for testing, your car needs to be in a condition where the emissions system can be properly measured. This means the engine should be warmed up, the fuel cap should seal tightly, and the vehicle's diagnostic computer should have completed its self-check cycle.
Start by checking your fuel cap. A loose or damaged cap is one of the easiest things to fix and one of the most common causes of test failure. Screw it on firmly until you hear or feel it click. If it's cracked or won't seal, replace it before testing — a new cap costs $10 to $20 at any auto parts store.
Next, drive your vehicle normally for at least 100 to 200 miles before the test. This allows the engine's onboard diagnostic system to run through its complete cycle and clear any temporary error codes. If you've recently had the battery disconnected or replaced, or if your check engine light was recently cleared, you need this driving time. Without it, the test center may refuse to test your vehicle or you may fail because the system isn't ready.
Key Takeaways
- Your vehicle must have been driven at least 100 to 200 miles since the battery was last disconnected or the check engine light was cleared, so the diagnostic system can complete its cycle.
- A loose fuel cap is the single easiest fix that prevents many test failures — check that it seals tightly and replace it if cracked.
- If your check engine light is on, have the code read before testing; some codes will cause automatic failure, while others may be fixable quickly.
- The test itself measures what your tailpipe emits at idle and at a higher engine speed, so a well-maintained engine with fresh oil and a clean air filter performs better.
- If you fail, you have a set number of days (usually 30 to 60, depending on your state) to repair the vehicle and retest at no additional cost.
Check your check engine light before you go
If your check engine light is on, you need to know what code triggered it before you show up for the test. Some codes will cause an automatic failure, while others may be fixable in an hour or less. A code reader costs $25 to $100 to buy, or you can have it read for free at many auto parts stores like AutoZone or O'Reilly.
Common codes that cause failure include problems with your oxygen sensors, catalytic converter, or fuel system. If the code points to something straightforward — like a loose gas cap that wasn't fully seated — you can fix it and clear the code yourself. If it points to a worn catalytic converter or a failing oxygen sensor, you'll need a repair before the test. Some states allow you to retest within 30 to 60 days at no charge if you fail, so knowing the problem ahead of time lets you plan the repair.
Basic maintenance that improves test results
Your vehicle's emissions depend partly on how well the engine is running overall. An engine that's starved for air, running on old oil, or using the wrong fuel grade will produce higher emissions. Before testing, check three things that take minutes and cost little to nothing.
First, check your oil level and condition. If the oil is dark and thick, change it. Old oil makes the engine work harder and produce more emissions. Second, inspect your air filter. A clogged air filter restricts oxygen to the engine, which makes it run rich and fail the test. If the filter looks gray or brown and clogged, replace it — a new one costs $15 to $40 and takes five minutes to install. Third, make sure you're using the fuel grade your owner's manual specifies. Using a lower octane than recommended can cause knocking and higher emissions.
If your vehicle is older or has high mileage, consider using a fuel system cleaner additive a week or two before the test. These are sold at any auto parts store and cost $8 to $15. They help clear carbon buildup in the fuel injectors and combustion chamber, which can reduce emissions.
What happens during the actual test
The emissions test itself is quick and non-invasive. A technician will connect a probe to your tailpipe and measure the gases coming out. The test usually has two parts: one at idle (your engine running but not accelerating) and one at a higher engine speed, sometimes called a loaded test or acceleration test.
During the test, keep your foot off the gas pedal and let the machine do the work. The technician will tell you when to shift into gear and when to accelerate. The whole process usually takes 10 to 15 minutes. Your vehicle passes if the emissions it produces fall below the limits set by your state's environmental agency. These limits vary by state and sometimes by the age and weight of your vehicle.
What to do if you fail
If you fail, you'll receive a report showing which emissions exceeded the limit. Common failures are for nitrogen oxides (NOx), hydrocarbons (HC), or carbon monoxide (CO). The report will tell you what the limit was and what your vehicle produced.
You then have a window — usually 30 to 60 days depending on your state — to repair the vehicle and retest at no additional cost. Some states charge a small retest fee, usually $10 to $25. Use the failure report to guide your repair. If you're not sure what to fix, take the report to a mechanic who specializes in emissions work. Many shops can diagnose the problem based on the failure numbers.
Common repairs after failure include replacing an oxygen sensor ($150 to $400), cleaning or replacing the catalytic converter ($400 to $2,500), or fixing a vacuum leak ($50 to $300). If the repair is expensive, get a second opinion before proceeding. Some states have repair information programs for low-income vehicle owners, so ask your test center or your state's environmental agency whether one exists in your area.
Preparing for a retest after failure
After you've had the vehicle repaired, drive it for at least 50 to 100 miles before retesting. This gives the diagnostic system time to run through its cycle again and confirm that the repair worked. Schedule your retest within the window your state allows — if you wait until the last day and fail again, you may not have time for a second repair.
Bring your repair receipt to the retest. Some states require proof that you've had work done, and the receipt documents what was fixed. If the same issue fails again, the repair shop should warranty their work and fix it at no charge. Ask about this before you leave the shop.
State-by-state differences in testing
Not all states require emissions testing, and those that do have different rules about which vehicles must test, how often, and what the limits are. Some states test all vehicles; others only test vehicles in certain counties or only vehicles above a certain model year. Some states test every year; others test every two years.
Your state's environmental agency website will tell you whether your vehicle must test and when. You can usually find this by searching "[your state] emissions test requirements" or by visiting your state's Department of Environmental Quality or equivalent agency. Your vehicle registration paperwork may also indicate whether testing is required.
Frequently Asked Questions
Can I pass an emissions test if my check engine light is on?
No. Most test centers will refuse to test a vehicle with the check engine light illuminated, or if they do test it, the vehicle will fail automatically. Have the code read and the problem addressed before scheduling your test.
How long does an emissions test take?
The actual test takes 10 to 15 minutes. Waiting time at the test center varies by location and how busy they are — anywhere from 15 minutes to an hour. Call ahead or check your state's test center website to see current wait times.
What if I fail and can't afford the repair?
Some states and counties have repair information programs or grants for low-income vehicle owners. Contact your state's environmental agency or your local test center to ask whether a program exists in your area. You may also may have access to for a waiver if you've made a good-faith repair attempt and still fail.
Do I need to warm up my engine before the test?
Yes. Arrive at the test center and let your engine idle for a few minutes before going in. A cold engine produces different emissions than a warm one, and the test is calibrated for a warm engine. Don't rev the engine or drive hard right before testing.
Can I retest the same day if I fail?
No. You must have the vehicle repaired and then return within your state's retest window, which is usually 30 to 60 days. You cannot retest the same day or the next day. Plan your repair schedule accordingly.