How to Fix P0171 and P0442: From Vacuum Leak Testing to EVAP Diagnosis
To fix P0171 and P0442, start with fuel trim data, smoke test the intake for vacuum leaks, and then smoke test the EVAP system. The two codes come from different monitors, but they share more causes than most code pairs. Unmetered air causes P0171, and a leak in the sealed EVAP system causes P0442. A single faulty part, the purge valve, can set both.
What P0171 and P0442 Mean
Both codes point to air getting where it should not, but in different parts of the vehicle. Understanding each one tells you where to start testing.
P0171 system too lean (bank 1)
The PCM uses the upstream oxygen sensor to adjust fuel delivery. When it keeps adding fuel to correct a lean signal and reaches its limit, P0171 sets. Long term fuel trim well above 10 percent at idle is a common sign.
P0442 EVAP system small leak detected
The PCM seals the EVAP system and monitors pressure or vacuum. If the system cannot hold, the PCM flags a small leak, usually sized around 0.040 inch. Common causes include a loose or worn gas cap, cracked hoses, a leaking canister, and faulty purge or vent valves.
Why These Codes Often Appear Together
The purge valve connects the EVAP system to the intake manifold, which makes it the most common shared cause. When it sticks open, intake vacuum pulls air and vapor through the EVAP lines at all times.
That unmetered flow leans out the mixture at idle, which can set P0171. It also means the EVAP system cannot seal during the leak test, which can set P0442.
Cracked hoses near the intake are another shared cause. On many engines, EVAP lines and vacuum lines run close together and age in the same heat. Check both whenever one is cracked.
Read the Fuel Trims First
Fuel trims tell you where to look first. Warm the engine and record short and long term trims at idle, then at a steady 2,500 rpm.
If trims are high at idle and drop close to normal at 2,500 rpm, the engine has a vacuum leak. Extra air has a bigger effect at idle, when total airflow is low. If trims stay high at every speed, look at fuel delivery or the mass airflow (MAF) sensor instead. A dirty MAF under-reports airflow, so the PCM delivers too little fuel.
Smoke Test the Intake for Vacuum Leaks
A smoke test is the fastest way to find unmetered air. Cap the intake ahead of the throttle body and feed smoke into the intake manifold. Watch the intake gasket, PCV hoses and valve, brake booster hose, and every vacuum line.
Pinch or unplug the purge line during the test. If the leak rate drops, the purge valve may be passing air when it should be closed. Mark each leak you find, repair it, and recheck trims before moving on.
Check the MAF Sensor and Fuel Supply
If the smoke test comes back clean and trims are high at all speeds, test the MAF and fuel system. Compare MAF grams per second at idle to the manufacturer’s specification. Clean the sensor with MAF cleaner only, then retest.
Check fuel pressure and volume under load. A weak pump or clogged filter may hold pressure at idle and drop under acceleration. On a V-type engine, if trims are high on Bank 1 only, check for restricted injectors or an intake leak on that side.
Test the Purge Valve
Most purge valves are normally closed, so a quick bench test confirms whether the valve seals. Disconnect the valve, apply vacuum to the engine side with a hand pump, and confirm it holds. Then power the valve and confirm it opens.
A valve that leaks down with no power needs replacement. Many scan tools can also command the purge valve and show EVAP pressure changes, which helps confirm the result.
Smoke Test the EVAP System for P0442
With the purge valve confirmed good or replaced, move to the rest of the EVAP system. Connect the smoke machine to the EVAP service port or filler neck and command the vent valve closed.
Inspect the gas cap and filler neck, the canister, the vent valve, the tank sending unit seal, and every hose connection. Small leaks may only show faint smoke, so work in good light and check each connection twice.
Common Mistakes to Avoid
Replacing the oxygen sensor is the most common wrong fix for a lean code. The sensor is reporting a real lean condition, not causing one. Another mistake is fixing the vacuum leak and skipping the EVAP test, which sends the vehicle back with the EVAP code still pending. Test both systems on the same visit while the smoke machine is already connected.
Verify Both Repairs
Clear the codes and confirm fuel trims now sit near zero at idle and at cruise. Then let the EVAP monitor complete. Some monitors need a cold soak and a specific fuel level, so tell the customer the check engine light may take a few drive cycles to confirm the fix.
Start With Known Fixes
P0171 and P0442 have dozens of possible causes, but most vehicles follow a pattern. Identifix Direct-Hit shows the confirmed fixes other technicians used for these codes on the same make, model, and engine. Look up the vehicle in Direct-Hit before you connect the smoke machine, and you will know which hose, valve, or gasket to check first.