Skip to content

P0340 – Camshaft Position Sensor Circuit Malfunction (OBD2)

Fault code P0340 means "Camshaft Position Sensor Circuit Malfunction". Below are the real-world causes, step-by-step tests and OEM part numbers.

Last updated

P0340 quick summary

Fault codeP0340
MeaningCamshaft Position Sensor Circuit Malfunction
SystemPowertrain (Engine & Transmission)
VehiclesGeneric OBD2
SeverityHigh
Can I drive?Often yes, but the engine may start poorly, run rough or stall. Repair it soon, especially if the timing chain or belt could be the cause.
Repair cost€20 – €600

Symptoms of P0340

  • Long cranking or engine does not start
  • Rough running, misfires or loss of power
  • Engine stalls
  • Higher fuel consumption
  • Check Engine light on

Most common causes of P0340 (most likely first)

Mechanic's Pro Tip

P0340 says the signal is missing or unusable – not that the sensor is dead. Check the wiring and connector first. If the signal is there but cam and crank do not match (often with P0016 or P0017 as well), the timing belt or chain may have jumped or stretched. Do not keep driving in that case: a jumped belt can damage the valves.

  1. 1.Faulty camshaft position sensor

    Most likely
  2. 2.Damaged wiring, open circuit or corroded connector

  3. 3.Damaged or misaligned trigger wheel on the camshaft

  4. 4.Timing belt or chain jumped, stretched or fitted incorrectly

  5. 5.Faulty ECU (rare)

Step-by-step diagnostic guide

  1. 1

    Read all codes and freeze-frame data – note any crank/cam correlation codes (P0016–P0019).

  2. 2

    Inspect the sensor and connector for seating, oil ingress, corrosion and bent pins.

  3. 3

    Check power, ground and signal wires against the wiring diagram.

  4. 4

    Check the sensor signal while cranking or running (live data or oscilloscope). With good power and ground but no signal, test the sensor and its trigger wheel.

  5. 5

    If the signal is present but out of sync with the crankshaft, check the valve timing according to the service procedure.

How do I read fault codes? →Where the OBD2 port is, which scanner to use and how to read and clear codes step by step.

Frequently asked questions

Can I drive with P0340?

Sometimes, because many engines can run on the crankshaft signal alone. But starting may be poor and the engine can stall. If timing is the cause, driving can cause serious engine damage.

How much does it cost to fix P0340?

A camshaft sensor costs about 20–200 € for the part; fitted in a workshop the total is usually 200–600 €. Timing belt or chain repairs cost considerably more.

Related fault codes

This guide is for information only. Working on vehicles can be dangerous — if you are unsure, have the car checked by a qualified mechanic. Values can differ between model years; always check the manufacturer's repair information.