P0171 means the engine computer is adding a lot of extra fuel on bank 1 to make up for what it sees as too much air. The most common causes are vacuum leaks, a dirty or failing mass airflow sensor, a stuck PCV valve and weak fuel delivery. P0174 is the same condition on bank 2. Seeing both together points to a shared cause like a MAF sensor or a large vacuum leak.
What "lean" means
Your engine wants a precise ratio of air to fuel. The computer measures incoming air, adds fuel to match, then checks the result with the upstream oxygen sensor. If the exhaust shows extra oxygen, the computer adds more fuel. That adjustment is called fuel trim.
When the computer has to add a lot of fuel, typically more than about 20–25% correction, it decides something is wrong and sets P0171 (bank 1) or P0174 (bank 2).
Common causes
| Cause | Typical clue |
|---|---|
| Vacuum leak: cracked hose, intake boot, gasket | Trims high at idle, improve at higher RPM |
| Dirty or failing MAF sensor | Trims high across the board, sometimes worse under load |
| Stuck PCV valve or torn PCV diaphragm | Whistling, rough idle, oil consumption |
| Weak fuel pump or clogged filter | Trims worse under load, possibly hesitation |
| Leaking or clogged injectors | Often paired with misfire codes |
| Exhaust leak before the O2 sensor | Outside air fools the sensor |
Symptoms you might notice
- Check engine light, solid
- Rough or hunting idle
- Hesitation when accelerating
- Lower fuel economy
- Sometimes no symptoms at all
How we diagnose it
- Read short- and long-term fuel trims at idle and at 2,500 RPM. Trims that improve at higher RPM point to a vacuum leak. Trims that stay high or get worse point to fuel delivery or the MAF sensor.
- Smoke test the intake. We push visible smoke into the intake system to find leaks you can't see by eye.
- Check MAF readings against expected airflow for the engine size.
- Test fuel pressure and volume if trims get worse under load.
- Inspect the PCV system.
Don't start with the MAF sensor
A lot of people buy a new mass airflow sensor first. Sometimes cleaning it with MAF-specific cleaner helps, and sometimes it really is bad, but vacuum leaks are more common and far cheaper to fix. A smoke test is often the fastest path to the answer.
Is it safe to drive?
Short-term, usually yes. Long-term, a lean engine can run hotter, misfire and stress the catalytic converter. Don't let it ride for months.
Frequently asked questions
Can a dirty air filter cause P0171?
Rarely. A clogged filter reduces airflow, and the MAF sensor measures that. It's worth replacing if it's dirty, but it's not usually the cause.
What's the difference between P0171 and P0174?
They're the same condition on different sides of a V-engine. Both together suggest a shared cause like the MAF sensor, a large vacuum leak or fuel pressure.
Can a bad O2 sensor cause a lean code?
It can, but it's less common than vacuum leaks or MAF issues. We test the sensor's response before blaming it.
Can P0171 be fixed at my home?
Most causes, like vacuum leaks, PCV valves, MAF sensors and many fuel issues, can be diagnosed and repaired on-site.
Want a mechanic to confirm it?
We come to you in Lexington, Irmo, Chapin, Cayce, West Columbia and Columbia, and we test before we replace anything.


