What does code P0335 mean on a Mercedes-Benz and is it safe to drive?

P0335: Crankshaft Position Sensor A Circuit Malfunction. Here's what it means on your Mercedes-Benz, what usually causes it, what repairs typically cost, and how safe it is to keep driving.

PowertrainHigh urgency

What this code means

The PCM is not receiving the expected signal from the crankshaft position sensor (CKP). This sensor tells the ECM the exact position and speed of the crankshaft. Without it, the engine may not start or will stall and run poorly.

Common causes for your Mercedes-Benz

  • Failed crankshaft position sensor
  • Damaged or corroded sensor wiring/connector
  • Tone ring (reluctor wheel) damage or debris
  • Failed PCM (rare)

Symptoms

  • Engine won't start or stalls unexpectedly
  • Check Engine Light on
  • Engine cranks but will not fire
  • Intermittent stalling at speed

Typical fixes

  • Replace crankshaft position sensor
  • Inspect and repair wiring harness and connector
  • Check tone ring for damage or packed debris

Repair cost range

For a Mercedes-Benz, repairs for P0335 often fall between $100 and $350, depending on the cause and whether you use OEM or aftermarket parts. Labor rates vary by location.

Known issues on Mercedes-Benz

Mercedes P0335 crankshaft position sensor fault often means a failed sensor or connector corrosion. On M271 engines, the crank sensor is positioned near the front of the block and can be contaminated by oil from a leaking front crankshaft seal—inspect the seal before sensor replacement.

Most commonly affected models

C-Class M271 2004–2011E-Class M272 2006–2012ML-Class M272 2006–2011

Is it safe to keep driving your Mercedes-Benz with this code?

For driving-safety guidance—how far you can go, when to tow, and what's urgent—see these checklists:

Browse P0335 on your Mercedes-Benz by model year

Year-specific guides include Mercedes-Benz-tailored causes and repair costs.

More codes for Mercedes-Benz

View all OBD2 code guides for Mercedes-Benz