P0170
Fuel Trim Malfunction (Bank 1)P0170 is a generic OBD-II powertrain diagnostic trouble code: Fuel Trim Malfunction (Bank 1). It is logged by the engine control unit when the o2/lambda monitor detects that a specific fault threshold has been exceeded — typically resulting in the malfunction-indicator lamp (MIL / check-engine light) being illuminated.
What P0170 means
P0170 is set when the PCM determines that the short-term and/or long-term fuel trim corrections for Bank 1 have exceeded a calibrated threshold in either the rich or lean direction. Fuel trim is the ECM's continuous mechanism for correcting the commanded air-fuel ratio in response to upstream oxygen sensor feedback. Short-term fuel trim (STFT) represents immediate corrections; long-term fuel trim (LTFT) accumulates those corrections over time to build a persistent correction map. When the ECM cannot bring the mixture within specification even after maximising trim authority — typically ±25% on most platforms — it logs P0170.
The code itself does not indicate whether the engine is running rich or lean; the direction of the trim values at the time of the fault is critical diagnostic information. Positive trim values mean the ECM is adding fuel to compensate for a lean condition (vacuum leak, low fuel pressure, failing MAF). Negative trim values mean it is removing fuel to compensate for a rich condition (leaking injectors, high fuel pressure, evaporative emission purge fault).
P0170 is particularly prevalent on turbocharged petrol engines — notably VAG TSI/TFSI, BMW N-series, and Mercedes M-series — where ageing crankcase ventilation membranes develop tears that introduce unmetered blow-by gases downstream of the MAF sensor, forcing a persistent lean correction. A faulty or contaminated MAF sensor is another leading cause, as even a small measurement error in airflow accumulates into a large fuel trim offset at idle and part load.
Because P0170 is a symptom code rather than a direct component failure code, thorough diagnosis requires reading live STFT and LTFT values across multiple engine load points and cross-referencing them with the relevant sensor data. Do not replace components without identifying which input is driving the trim excursion.
Common causes
Most-frequently reported root causes when P0170 is logged.
-
1
Vacuum or intake air leak downstream of MAF sensor (unmetered air causes lean trim)
-
2
Faulty or contaminated mass air flow (MAF) sensor
-
3
Failing or slow upstream oxygen sensor (B1S1) providing incorrect feedback
-
4
Torn crankcase ventilation (CCV/PCV) membrane or hose — common on turbocharged engines
-
5
Clogged or leaking fuel injectors (lean or rich accordingly)
-
6
Low fuel pressure (weak fuel pump, blocked filter, failing pressure regulator)
-
7
Faulty evaporative emission (EVAP) purge valve stuck open (rich condition)
-
8
Exhaust leak upstream of the upstream O2 sensor (falsely lean reading)
-
9
MAP sensor out of calibration on speed-density calibrated engines
-
10
ECM software fault or corrupted fuel trim learned values
Symptoms drivers notice
How to diagnose P0170
A typical diagnostic flow when this code is present.
-
1
Connect a scan tool and read live STFT and LTFT values at idle and at 2,500 RPM; note whether trims are positive (lean) or negative (rich) and by how much
-
2
If trims are positive (lean condition): inspect all intake hoses, crankcase ventilation lines, and throttle body gasket for cracks or loose clamps using a smoke machine or propane/carb cleaner test
-
3
Check the MAF sensor: inspect for contamination or oil fouling; compare live MAF g/s reading against expected values for the engine displacement at idle; clean or replace if out of specification
-
4
Inspect the upstream oxygen sensor (B1S1) live waveform — it should toggle between 0.1 V and 0.9 V rapidly at warm idle; a slow or biased sensor will cause incorrect fuel trim corrections
-
5
Check fuel pressure at idle and under load using a fuel pressure gauge; compare against manufacturer specification
-
6
If trims are negative (rich condition): inspect for leaking injectors (fuel smell at idle, fouled plugs), check EVAP purge valve operation, and look for oil leaks into the intake
-
7
Check for exhaust leaks near the upstream O2 sensor that could introduce oxygen and cause the sensor to read lean
-
8
Clear adaptive trim values (if the procedure is supported for the platform), perform a full drive cycle, and recheck; if P0170 does not return, a temporary contamination event may have been the cause
Related powertrain codes
- P0040 — Upstream Oxygen Sensors Swapped From Bank To Bank
- P0041 — Downstream Oxygen Sensors Swapped From Bank To Bank
- P0130 — O2 Sensor Circuit Malfunction (Bank 1 Sensor 1)
- P0131 — O2 Sensor Circuit Low Voltage (Bank 1 Sensor I)
- P0132 — O2 Sensor Circuit High Voltage (Bank 1 Sensor 1)
- P0133 — O2 Sensor Circuit Slow Response (Bank 1 Sensor 1)
Frequently asked questions
Does P0170 always mean a rich or lean condition?
P0170 indicates the ECM could not achieve the target air-fuel ratio but does not specify the direction. Read the STFT and LTFT values from the scan tool at the time of the fault: positive percentages indicate a lean correction (fuel being added), negative percentages indicate a rich correction (fuel being removed).
Why is P0170 so common on turbocharged European cars?
Turbocharged engines — particularly VAG TSI/TFSI, BMW N-series, and Mercedes M-series — have crankcase ventilation membranes that degrade over time. A torn membrane allows unmetered blow-by gases to enter the intake downstream of the MAF sensor, causing a persistent lean condition and large positive fuel trim corrections.
Can a dirty MAF sensor cause P0170 without any MAF-specific codes?
Yes. A contaminated MAF sensor can underreport airflow just enough to push fuel trims beyond the threshold without triggering a dedicated MAF range/performance code. Cleaning the MAF sensor with MAF-specific cleaner is a low-cost early step in lean-trim diagnosis.
Will clearing the fault code reset the fuel trims?
Clearing codes typically resets short-term and long-term fuel trims to zero. If an underlying fault is still present, the trims will build back up and the code will return within one or two drive cycles. Monitoring how quickly the trims climb after a clear can help pinpoint the severity of the leak or sensor error.
Can an ECU remap make P0170 worse?
A remap that does not correctly account for fuel trim offsets, or that is installed on an engine with an existing vacuum leak or MAF fault, can result in the ECM hitting its trim authority limits more quickly. It is best practice to resolve any fuel trim fault codes before and after ECU calibration work.
Disabling P0170 in software
RaceTune can permanently disable P0170 — and any other OBD-II diagnostic trouble code — on every ECU family we support. The monitor is disabled inside the ECU itself, so the fault stops being logged: the warning light stays off and the engine never enters limp mode for this code. The change is tied to your exact software version.
Software modifications affect emissions compliance and are not road-legal in many jurisdictions. RaceTune service files are intended for motorsport, off-road, and export use.
Got P0170 in your scan?
Upload your ECU file — we'll identify the exact software version and confirm whether a disable is available for your car.
Upload your file