Task Guide

Camshaft Position Sensor Replacement (M57)

Skill
1/5
Time
30m
This guide covers replacing the camshaft position sensor (also called the Hall sensor or cam sensor) on the BMW M57 inline-six diesel engine, fitted across E46, E39, E60/E61, E90/E91/E92, E83, E53, and E70 chassis from 1998 to 2013. The sensor tells the DME (engine control unit) where the camshaft is in its rotation cycle, enabling precise fuel injection timing. When it fails, you'll typically see fault codes stored in the DME, hard cold-starts, rough idling, or occasional misfires. The job itself is straightforward — one bolt, one connector — and requires no special tools beyond a basic socket set.

Why it matters

The M57's camshaft position sensor feeds real-time cam timing data to the DME so it knows exactly when each cylinder's intake stroke begins. Without accurate signal, the DME cannot correctly time pilot injection or main injection events — the hallmark of the M57's common-rail system. On an intermittently failing sensor the engine may start and run but store faults, run roughly at idle, or surge under load. A fully dead sensor on some M57 variants prevents the engine from starting entirely, as the DME cannot establish synchronisation between the crankshaft and camshaft signals on initial crank.

If you delay

  • Green — 0 to ~2,000 km after first fault code

    Intermittent fault codes (e.g. 2A63, 2A64 on ISTA) stored but cleared by the DME. Engine starts and runs normally most of the time. No drivability impact yet. Easy to overlook.

  • Amber — ~2,000 to ~8,000 km or worsening over weeks

    Hard cold-starts become frequent. Idle quality deteriorates. The DME may enter limp-home or switch to crank-sensor-only mode, retarding injection timing and increasing smoke. Fuel consumption rises noticeably.

  • Red — beyond ~8,000 km or complete sensor failure

    Engine cranks but will not fire, or fires and immediately stalls. Towing required. Continued cranking attempts stress the starter motor and drain the battery. At this stage you risk a stranded vehicle.

  • Black — if misdiagnosis leads to replacement of injectors or pump

    Fault codes from a dead cam sensor can mirror injector or high-pressure pump faults. Misdiagnosed vehicles sometimes receive expensive unnecessary repairs (injectors: €800–2,000+) before the €25 sensor is identified as the root cause.

What you'll encounter

  • When you pull the old sensor out, the O-ring will almost certainly be flattened, cracked, or missing entirely — especially on anything over 100,000 km. A good-quality replacement sensor includes a new O-ring; confirm it is on the sensor body before installation. If you buy a budget sensor and the O-ring feels thin or waxy, discard it and use the OEM one from the old sensor if it is still supple.
  • The connector tab is brittle on high-mileage cars. The plastic locking tab that holds the wiring connector onto the sensor body is subjected to years of heat cycling and vibrates constantly. Press the release tab with a small flat-blade screwdriver rather than your fingernail — it will often feel as though it is not releasing before it suddenly clicks free. Do not force the connector off by pulling the wires; you will snap the tab clean off and then face a wiring repair job on top of a sensor job.
  • The sensor bore in the cylinder head cover almost always has a ring of baked-on oil and grime around it. After removing the old sensor, use a clean lint-free rag to wipe the bore before inserting the new sensor. Any debris on the O-ring seat will cause a slow oil seep that looks like a failed job.
  • The M6 retaining bolt is very short (roughly 20–22 mm) and sits in a partially blind recess. First-timers often drop it during removal — it falls directly downward into the valley of the engine and can end up on top of the intake manifold or behind wiring looms. Hold the socket firmly against the bolt head throughout removal and use a magnetic socket or a piece of electrical tape across the socket opening to capture the bolt as it comes free.
  • After clearing the fault codes and test-driving, some vehicles briefly re-store the fault on the first key cycle because the DME requires one full drive cycle with confirmed cam signal before it clears the adaptive values it accumulated while running without a valid signal. This is normal — clear codes once more after the test drive and they will not return.

Known engine weaknesses

  • M57 cam sensor O-ring hardens and shrinks with age and heat cycles, causing an oil seep at the sensor bore that is often mistaken for a valve cover or rocker cover leak. On high-mileage M57 engines (150,000 km+) the O-ring may have already been weeping for some time, leaving a dark oily residue around the sensor body — expect to clean this area before and after replacement.
  • The M57TU and M57TU2 variants (post-2003, fitted in E60 530d, E90 330d, E70 X5 3.0d) use a revised sensor with a slightly different connector body compared to the original M57 (E39 530d, E46 330d). Both sensors are physically similar and sit in the same location, but the connectors differ. Ordering by engine code and build date is essential — ordering by model alone causes the most common mis-order on this job.
  • The single M6 retaining bolt frequently corrodes into the aluminium cylinder head cover on high-mileage or salty-road examples from NL/DE northern regions. Applying heat or penetrating oil before attempting removal is often necessary on any vehicle over 120,000 km or more than eight years old.
  • On E53 X5 3.0d and early E83 X3 3.0d, engine bay access to the cam sensor is partially restricted by the air intake resonator box. Removing one air intake hose clip significantly improves access and prevents knuckle injuries — this is rarely mentioned in basic guides but every experienced tech does it.

Parts verification

"Before starting, lay the new sensor next to the old one (if you removed it first as a compare step) or compare to reference images. Check: (1) The sensor body length and diameter must match — the M57 cam sensor is typically ~50–55 mm long with a 22 mm hex body and a single bolt flange. (2) The electrical connector must match your harness — M57 (pre-2003) uses a 3-pin square connector body; M57TU/TU2 (post-2003) uses a slightly narrower 3-pin connector with a different locking tab profile. If your connector does not click positively onto the new sensor in a dry-fit test, you have the wrong part — do not proceed. (3) Confirm an O-ring is present on the sensor body and is seated in its groove. (4) Check the box: it should contain the sensor, one O-ring (sometimes pre-installed), and in some OEM packs a new retaining bolt — if the bolt is included, use it. Common mis-order errors: ordering for the petrol M54 engine (different sensor, different location), ordering the crankshaft position sensor instead of the camshaft sensor (longer body, different connector), or ordering the exhaust cam sensor on engines with variable valve timing (not applicable to base M57 but applicable to some M57TU2 variants with Double VANOS-equivalent cam phasing — verify with your parts supplier if your car is a post-2007 E70 X5 3.0d or E90 330d with N57-adjacent spec)."

Tools required

  • Ratchet handle, 3/8" drive
    Standard 3/8" ratchet
    Use a short ratchet or a stubby ratchet on E53/E83 where clearance above the sensor is limited. A long-bar ratchet risks catching on wiring looms.
  • Socket, 8 mm, 6-point
    6-point preferred
    6-point socket grips the M6 bolt head fully and prevents rounding on a corroded fastener. A 12-point socket is acceptable only if the bolt is in good condition. Magnetic socket strongly preferred to capture the bolt on removal.
  • Extension bar, 100 mm (4 inch)
    3/8" drive, 100 mm
    Required to reach past the wiring harness without fouling the connector. Do not use a long extension — it reduces torque feel and risks over-torquing the small M6 bolt.
  • Flat-blade screwdriver, small
    3–4 mm blade width
    Used to release the connector locking tab. Insert gently under the tab and lever — do not use a large screwdriver as you will crack the connector housing.
  • Torque wrench, 3/8" drive
    Capable of 8–10 Nm range
    An in-lb torque wrench (inch-pounds) is ideal for this range. If using a Nm wrench, confirm it reads accurately at the low end of its scale — cheap wrenches are often inaccurate below 20 Nm.
  • Lint-free cloth / blue roll
    Any clean, non-shedding cloth
  • Penetrating oil (e.g. WD-40, Caramba, Brunox)
    Aerosol spray
    Apply 10–15 minutes before attempting bolt removal on any car over 100,000 km or 8 years old. Do not spray onto the electrical connector.
  • OBD-II diagnostic scanner with BMW fault code reading
    BMW-compatible: ISTA, INPA, Carly, or equivalent
    Required to read and clear DME fault codes before and after replacement. Generic OBD-II readers may not access BMW DME-specific codes.
  • Magnetic parts tray or small bowl
    Any
    Place the retaining bolt here immediately on removal — the engine bay floor is not a safe resting place for a 20 mm M6 bolt.

Parts required

  • Camshaft Position Sensor (Hall Sensor)
    • OEM / OE-supplier Sourced from Hella, Febi Bilstein OE-line, or Delphi — these are the actual OE suppliers to BMW for M57-era sensors. Expect €18–30 from NL/DE online suppliers (e.g. Autodoc, Motordoktor). Connector quality and O-ring material are noticeably better than budget alternatives.
    • Quality aftermarket Herth+Buss Elparts, Vemo V20-series — acceptable quality for a sensor of this criticality. Approximately €12–20. Verify the O-ring is included and feels like rubber, not hard plastic.
    • Budget / unbranded Avoid on this application. Connector tab integrity and O-ring quality are frequently poor. A failed cam sensor that was replaced six months ago is a frustrating and entirely avoidable situation.
  • Camshaft Sensor O-ring (if not pre-installed on sensor)
    • OEM BMW / OE rubber If the new sensor does not include an O-ring, purchase separately. Specify the bore diameter from your old sensor (typically ~21–22 mm OD). Costs under €2 from any BMW parts counter or specialist.

Procedure

  1. Connect your BMW-compatible OBD scanner to the OBD-II port (located under the dashboard on the driver's side) and read all stored DME fault codes. Record any codes related to the camshaft position sensor (commonly 2A63, 2A64, 29CD, or similar cam sensor correlation/signal faults). Do not clear them yet.
    WhyConfirming the fault code before touching anything establishes that the sensor is the correct diagnosis. Cam sensor codes can occasionally be caused by a wiring fault or a damaged reluctor ring on the camshaft — if the fault code description says 'open circuit' or 'wiring fault' rather than 'signal implausible' or 'no signal', inspect the wiring harness before ordering parts.
    Look forOBD-II port: a 16-pin trapezoid socket, usually mounted just under the lower edge of the dashboard on the driver's side, often with a small plastic cover. On RHD E46/E39 it is on the right side of the steering column; on LHD it is on the left.
    Stop ifIf the stored fault codes relate to the wiring harness (open circuit, short to ground) rather than signal quality, inspect the sensor wiring loom from the sensor plug back to the DME connector before purchasing a sensor. A broken wire causes identical symptoms and fault codes — replacing the sensor will not fix it.
  2. Allow the engine to cool fully if it has been running. The M57 cam sensor is located on the cylinder head cover (valve cover) at the rear of the engine, near the firewall. The engine does not need to be cold to the touch, but the area around the sensor should not be hot enough to cause a burn — allow at least 20–30 minutes after shutdown.
    WhyThe sensor body and its O-ring seat are plastic and aluminium. Working on a hot engine increases the risk of burning your hand in a confined space, and thermal expansion means the O-ring will compress differently when hot — installing a sensor on a very hot engine can give a false sense of a good seal that weeps once cool.
    Stop ifDo not work on a running engine or a hot turbo — the M57 turbocharger sits in close proximity to the rear of the engine on most chassis. The turbo housing retains heat for 30+ minutes after shutdown and causes serious burns on contact.
  3. Open the bonnet and identify the camshaft position sensor on the top of the engine. It is mounted in the rear section of the cylinder head cover (the large black plastic cover on top of the engine), towards the firewall side. It is a cylindrical sensor approximately the diameter of a finger, with a single wiring connector plugged into its top and one small bolt holding it in place.
    ⚙ Torque spec — refer to TIS
    WhyConfirming the exact location before picking up any tools prevents the common error of confusing the camshaft sensor with the crankshaft position sensor (which is mounted lower on the engine block, near the flywheel end) or an oil pressure sensor.
    Look forThe cylinder head cover is the large black plastic panel running the full length of the top of the engine. The cam sensor sits at the rear (firewall-facing) end, offset slightly to one side. It will have a wiring harness connector plugged into its top — a small square or rectangular plastic plug. On E60/E90 chassis it may be partially hidden under the engine cover plastic trim; remove the engine cover (2–4 push-clips or M6 nuts) first if present.

Verification protocol

  • Check
    Post-installation fault code scan (ignition on, engine off)
    Expected
    No new fault codes generated. The original cam sensor fault may still show as a stored/historic code — this is acceptable and will be cleared in the next step.
    If wrong
    If a new cam sensor fault code appears immediately (especially 'open circuit' or 'no signal'), the connector is not fully seated. Turn off ignition, remove and re-press the connector until it clicks firmly. Re-scan before starting the engine.
  • Check
    Live idle quality and DME signal monitoring at first start
    Expected
    Engine starts within 2–3 seconds of cranking (typical M57 cold start). Idle stabilises to 800–1100 RPM within 30 seconds. Scanner shows cam sensor signal as 'valid' or shows cam sensor signal RPM matching crank sensor RPM.
    If wrong
    If the engine starts but immediately stalls, or idles very roughly and the scanner shows an active cam signal fault, turn off the engine. Re-check connector seating. If connector is secure, the replacement sensor may be defective — remove and refit with a known-good unit.
  • Check
    Post-test-drive fault code re-scan
    Expected
    Zero active fault codes. Zero pending codes. The original cam sensor fault code should not have returned.
    If wrong
    If the original fault code has returned after the drive cycle, the sensor is not the root cause — the fault is in the wiring between the sensor and the DME. Check the harness from the sensor plug to the firewall bulkhead connector for chafing, corrosion at connectors, or pinched wires.
  • Check
    Visual oil seep check at sensor bore, 10–15 minutes after first post-repair start
    Expected
    Dry. No oil film or fresh oil residue visible around the base of the sensor where it enters the cylinder head cover.
    If wrong
    If oil is seeping around the sensor body, the O-ring has not seated correctly. Turn off engine, allow to cool 20 minutes, remove sensor, inspect O-ring condition and bore cleanliness, re-lubricate O-ring, refit.
BIMMERFIX · GUIDE