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 code | P0340 |
|---|---|
| Meaning | Camshaft Position Sensor Circuit Malfunction |
| System | Powertrain (Engine & Transmission) |
| Vehicles | Generic OBD2 |
| Severity | High |
| 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.Faulty camshaft position sensor
Most likely2.Damaged wiring, open circuit or corroded connector
3.Damaged or misaligned trigger wheel on the camshaft
4.Timing belt or chain jumped, stretched or fitted incorrectly
5.Faulty ECU (rare)
Step-by-step diagnostic guide
- 1
Read all codes and freeze-frame data – note any crank/cam correlation codes (P0016–P0019).
- 2
Inspect the sensor and connector for seating, oil ingress, corrosion and bent pins.
- 3
Check power, ground and signal wires against the wiring diagram.
- 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
If the signal is present but out of sync with the crankshaft, check the valve timing according to the service procedure.
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
- P0335Crankshaft Position Sensor A Circuit Malfunction
- P0011Intake Camshaft Position Timing – Over-Advanced (Bank 1)
- P0341Camshaft Position Sensor Circuit Range/Performance
- P0342Camshaft Position Sensor Circuit Low Input
- P0343Camshaft Position Sensor Circuit High Input
- P0344Camshaft Position Sensor Circuit Intermittent
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.