OBD codes / P0171 / Hyundai Elantra
P0171 on a Hyundai Elantra
System Too Lean (Bank 1)
Nu 1.8L and 2.0L fours and the Gamma 1.6L
What P0171 usually means on a Elantra
P0171 means the Elantra's PCM is adding fuel because the engine keeps reading lean. The usual causes are unmetered air, a cracked intake hose, a leaking PCV path, or a dirty air-flow or pressure sensor, rather than a fuel shortage on a healthy system. A stuck-open purge valve, which Hyundais are known to have trouble with, can also lean the mixture and set this code. A smoke test plus a sensor check is the efficient way to find it.
Most likely causes on this model
- Vacuum or intake leak
Cracked hoses or a leaking gasket let in unmetered air and drive the mixture lean.
- Stuck-open EVAP purge valve
A leaking purge valve, a known Hyundai weak point, adds unmetered vapor and air and leans the engine.
- Dirty or failing air-flow sensor
A sensor under-reporting airflow makes the PCM under-fuel.
- Weak fuel delivery
A tired pump or dirty injectors produce the same lean trims and warrant a pressure check.
What it costs on a Elantra
A smoke test and sensor cleaning are cheap, and most fixes, a hose, a purge valve, or a gasket, land in the low hundreds. If fuel delivery is implicated, the pump or injector work costs more. Because the purge valve is a common Hyundai culprit, it is worth including in the diagnosis early.
Year, engine and mileage change the answer. Get a diagnosis for your Elantra — it weighs these causes against your exact configuration and real complaint data.
Diagnose my Elantra free →Other codes we cover on the Hyundai Elantra
Related symptoms
Hyundai Elantra problems & recalls by year
Based on widely reported patterns for this model; individual causes vary by year, engine and history. Generic P0171 behavior is covered on the main P0171 page. Confirm with a scan tool before buying parts.