P0170 Code: Fuel Trim Malfunction (Bank 1)
Bank 1 fuel correction is far outside its normal window, lean or rich, and the ECU won't say which.
Safety first · Consult a professional
- Fuel vapor is flammable. No smoking or open flames; work outdoors and fix fuel leaks before driving.
At a glance
Severity: Moderate
- Meaning
- Fuel Trim Malfunction (Bank 1)
- System
- Fuel & Air Metering · Powertrain
- Safe to drive?
- With caution
- Typical repair cost
- $10–$420
- DIY difficulty
- Moderate
The PCM keeps two correction values for each bank: a fast short-term fuel trim and a learned long-term trim. P0170 sets when the total correction on bank 1 leaves the window the manufacturer considers healthy, without the PCM committing to a direction. Some controllers use it instead of P0171 and P0172. Others set it when the trims are unstable, for example lean at idle but rich under load, or when the short-term and long-term values keep pulling against each other. So unlike the lean and rich codes, this one does not tell you what the mixture is doing. Your first job is to find the direction and the operating range where the correction goes wrong, then follow the lean or rich path from there.
Can I keep driving? You can normally drive to a shop, but keep loads light and avoid long highway runs until you know whether the engine is running lean or rich. A flashing check engine light or a strong fuel smell means stop and have it towed.
How to read P0170
- P Powertrain
- 0 Generic (SAE)
- 1 Fuel & air metering
- 70 Specific fault
Symptoms
- Check engine light on, sometimes together with P0171 or P0172
- Idle that hunts or surges instead of holding steady
- Hesitation when you first touch the throttle
- Fuel economy noticeably worse
- Occasional stall when coasting to a stop
- Exhaust smell or dark soot at the tailpipe during rich phases
Possible causes
Ranked by how often each cause is behind this code (editorial estimate).
- MAF sensor with a contaminated hot film giving a skewed curve: under-reads at idle, over-reads at high flow
- Air or breather leak that opens and closes with temperature or engine movement (intake boot, PCV diaphragm, breather hose)
- Purge valve stuck open or purging far too much, pushing the trim rich and then lean
- Unstable fuel pressure: regulator hunting, weak pump under load or a restricted filter
- Aged upstream O2 or air-fuel sensor that has gone slow or biased
- Exhaust leak ahead of the sensor (lean signal) combined with a dripping injector (rich mixture)
- Learned values not reset after a repair, or an ECU calibration that needs updating
Diagnosis step by step
Log the trims at three operating points
With the engine warm, write down short-term and long-term trim for bank 1 at idle, at a steady 2,500 rpm in park, and at a 45 mph cruise. Long-term trim beyond roughly +10% or -10% at any point is abnormal on most engines. The sign tells you lean (positive) or rich (negative), and the operating point tells you where to look.
Tools: OBD-II scanner
Read the freeze frame
The freeze frame stored with P0170 shows engine load, rpm, coolant temperature and the trim values at the moment the code set. A cold engine at idle points to leaks and breather faults; high load points to fuel delivery or the MAF.
Tools: OBD-II scanner
Check the MAF curve, not just the idle value
A dirty hot film is the classic cause of a trim that flips direction. Compare grams per second at warm idle, roughly one gram per second per liter of displacement, with the reading during a full-throttle pull, which should climb smoothly with rpm. A sensor that looks fine at idle but stalls out at high flow is skewed. Clean it and repeat.
Tools: OBD-II scanner, Screwdriver
Smoke-test the intake and crankcase breather
Fill the intake with smoke and watch the intake boot, throttle body gasket, PCV valve and the breather hoses under the manifold. Leaks that only open when the engine rocks or heats up are why the trim swings, so wiggle hoses while the smoke is flowing.
Tools: Smoke machine, Flashlight
Isolate the purge valve
Pinch the purge line at idle and watch short-term trim for a minute. If it settles near zero, the purge valve is passing vapor when it should be closed. Remember that a purge valve that is commanded correctly but flows too much has the same effect.
Tools: Pliers, OBD-II scanner
Test fuel pressure under load
Connect a gauge and watch it at idle, during a snap throttle and on a road test. Pressure that drifts by more than a few psi, or drops when the pump is asked for volume, explains a trim that is rich at idle and lean at speed. Relieve pressure first and keep sparks and heat away from the rail.
Tools: Fuel pressure gauge
Judge the upstream sensor and reset the adaptation
Snap the throttle and watch the sensor respond within about a second. A slow or offset sensor drags the trim with it. After any repair, clear the learned values with the scan tool and drive a mixed cycle so the ECU relearns from a clean baseline.
Tools: OBD-II scanner
Where the parts are
- 1Gas cap
- 2Charcoal canister
- 3Purge valve
- 4Vent valve
- 5Fuel pump
- 6Intake manifold
Repair options & costs
| Repair | DIY? | Estimated cost |
|---|---|---|
| Clean MAF sensor and inspect the intake boot | Yes | $10–$25 |
| Replace MAF sensor | Yes | $120–$400 |
| Replace breather hose or PCV valve | Yes | $40–$220 |
| Replace EVAP purge valve | Yes | $90–$250 |
| Replace upstream air-fuel sensor | Yes | $150–$420 |
Rough US estimates for parts and labor; shop rates vary by region. Not a quote.
Notes by brand
Mercedes-Benz
Mercedes-Benz gasoline engines of the M112 V6 and M113 V8 families are well known for P0170 and P0173 when the hot-film MAF sensor degrades or the breather hoses under the intake crack. A cheap aftermarket MAF often makes the trim worse, so use an original-quality sensor.
Emissions / smog test impact
Will fail
A stored P0170 with the check engine light on fails the OBD-II portion of a smog check. Clearing the code also wipes the learned trims and resets the readiness monitors, so drive several days after the repair before testing.
Frequently asked questions
What is the difference between P0170 and P0171?
P0171 says bank 1 is lean and P0172 says it is rich. P0170 only says the correction is out of range or unstable. Some ECUs use it as their only fuel trim code, others set it when the trim keeps changing direction, so you have to read the live data to know which problem you actually have.
Why do I have P0170 and P0171 at the same time?
The controller has seen both a general trim problem and a clear lean condition. Treat it as a lean code: look for leaks, a MAF that under-reads and low fuel pressure. Once the lean cause is fixed, both codes normally stay away.
Is P0170 an oxygen sensor code?
Not usually. The sensor reports the mixture and the trim is the ECU's reaction to it. A tired sensor can cause it, but a skewed MAF, leaks and purge faults are more common, and they are cheaper to check first.
Does clearing the code reset the fuel trims?
On most vehicles yes, and that is why the code can seem to disappear for a while. The ECU starts learning from zero and needs some driving before the correction drifts back out of range. A code that returns after a few tanks is the same fault, not a new one.
Can a diesel set P0170?
Fuel trim in this sense is a closed-loop gasoline concept, so P0170 is a gasoline code. If a scan tool shows it on a diesel, check the manufacturer's own definition for that code, because a few diesel controllers reuse the number for fuel quantity adaptation.