Mercedes-Benz P0170 Error Code: How to Fix It

Medium 1-3 hours Medium Severity Verified June 2026
Error Code
P0170 MB
Brand
Mercedes-Benz
Product Type
automotive
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
1-3 hours
The P0170 error code in your Mercedes-Benz indicates a fuel trim malfunction in bank 1, which means your engine's computer is struggling to maintain the correct air-fuel mixture. This is typically caused by a vacuum leak or a faulty Mass Air Flow (MAF) sensor affecting how much air enters the engine.
Ad

Tools You'll Need

How to Fix Error Code P0170 MB

  1. Scan for additional codes

    Ensure the engine is off and cooled down before connecting the scanner.
  2. Inspect the MAF sensor

    Never use compressed air or other cleaners on the MAF sensor as this can damage the sensitive components.
  3. Check for vacuum leaks

    Keep hands and tools away from moving parts while the engine is running.
  4. Perform smoke test

  5. Check air filter condition

  6. Test fuel pressure

    Relieve fuel system pressure before disconnecting any fuel lines to prevent fuel spray.
  7. Clear codes and test drive

Parts You May Need

Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Mass Air Flow sensor
Check Price on Amazon
Engine air filter
Check Price on Amazon
Intake manifold gaskets
Check Price on Amazon
Ad

When to Call a Professional

Contact a Mercedes-Benz technician if the code persists after checking the MAF sensor and obvious vacuum leaks, if you're uncomfortable working with fuel systems, or if multiple related codes appear indicating a more complex engine management issue.

Frequently Asked Questions

What causes P0170 code in Mercedes-Benz vehicles?
P0170 is typically caused by vacuum leaks in the intake system, a dirty or faulty MAF sensor, clogged air filter, fuel delivery problems, or exhaust leaks before the oxygen sensors.
Can I drive my Mercedes with P0170 code?
You can drive short distances, but the vehicle may experience poor fuel economy, rough idle, or reduced performance. Address the issue promptly to prevent potential engine damage from running too lean.
How much does it cost to fix P0170 in a Mercedes?
Costs vary widely depending on the root cause. MAF sensor cleaning is free, a new MAF sensor costs $200-400, vacuum hose replacement costs $50-150, while intake manifold gasket replacement can cost $500-1200.
Will P0170 clear itself in Mercedes vehicles?
The code may temporarily clear if the condition stops occurring, but it will return if the underlying problem isn't fixed. It's best to diagnose and repair the root cause rather than just clearing the code.
What's the difference between P0170 and P0173 in Mercedes?
P0170 affects fuel trim in bank 1 (cylinder bank with cylinder #1), while P0173 affects bank 2. Both indicate similar air-fuel mixture problems but on different sides of V-engines.