Engine and cooling
Camshaft position sensor faults: signs and codes
Published: 2 Nov 2026 · Last updated: 17 Nov 20264 min read
Written with AI assistance. Responsible editor: Andrius Valaitis. How our guides are made
In this guide
A camshaft position sensor tells the engine control unit where the camshaft is in its cycle, so fuel and spark reach the right cylinder at the right moment. When its signal is weak or missing, most engines can still run on the crankshaft sensor, so the usual result is a car that starts after a long crank and then drives, not one that refuses to start. A cam sensor code is not always a cam sensor fault, so check in order.
Parts for this job
Example parts related to this guide. Check the part number against your car before you order.
Find your part by number
Not sure of the number?Check by VIN
The usual signs
- Long cranking, often worse with a warm engine, then it fires and runs normally.
- Stalling at idle or when slowing to a stop, with an easy restart.
- Rough idle, hesitation or jerking at low revs that feels like a misfire.
- Check engine light with a code from P0340 to P0344 (sensor A, bank 1), P0345 to P0349 (sensor A, bank 2), P0365 to P0369 (sensor B, bank 1) or P0390 to P0394 (sensor B, bank 2).
A crankshaft sensor fault looks similar but is usually worse: the engine cranks and never fires, or cuts out and only restarts once it has cooled.
One sensor or four
Older engines have one cam sensor on the cylinder head. Engines with variable valve timing have one for the intake camshaft and one for the exhaust camshaft, and a V6 or V8 has that on each bank. The code names the position: sensor A is normally the intake side, sensor B the exhaust side, and bank 1 is the bank with cylinder 1. Two sensors on one engine can look identical and still carry different part numbers, so note which one the code names before you order.
What to check, in order
- Read all the codes, not just the first. A cam sensor code next to P0016 or P0017 (cam and crank correlation) points away from the sensor and towards the timing chain, tensioner or camshaft adjuster. The timing chain rattle guide explains that pattern.
- Look at the connector. Unplug it and check for corrosion, bent pins and oil. On some engines oil wicks through the sensor into the plug and along the loom; oil inside the connector means the sensor is leaking.
- Follow the wiring back to the main loom. Chafed insulation on a bracket or heat damage near the exhaust manifold gives the same code as a dead sensor.
- Check for oil around the sensor. A leaking valve cover gasket or camshaft seal can soak the sensor tip; fix the leak first or the new sensor goes the same way. The oil drip guide helps trace it.
- Swap test when the engine has two identical sensors: exchange intake and exhaust and see whether the code follows. If it moves, the sensor is at fault; if it stays, suspect wiring, the trigger wheel or timing.
If the car stalls in traffic, do these checks soon; an intermittent stall is unpredictable.
When it is not the sensor
- Correlation codes P0016 to P0019 alongside the sensor code: a stretched chain, worn tensioner or stuck camshaft adjuster.
- A variable valve timing solenoid stuck or blocked with sludge, often with a low oil level or overdue oil changes.
- A damaged or loose trigger wheel on the camshaft.
Jerking under load with a flashing warning light is more often ignition or fuelling: see misfire under load.
The parts usually involved
- The camshaft position sensor for the position the code names: intake or exhaust, bank 1 or bank 2.
- Its O-ring or seal. Some sensors come with one, others list it separately; the part page says what is in the box.
- A connector or repair harness when the plug is corroded or soaked in oil.
Hall-effect sensors sit at a fixed gap from the trigger wheel, so fit the new one on a clean seat with a new seal and never force it. Clear the codes afterwards; some makes need a cam and crank adaptation with a diagnostic tool, which differs by make and engine.
Ordering the right part
The number is printed or moulded on the sensor body, often under an oil film; the guide to the number on your old part shows where to look. One model year can use different sensors by engine code, so confirm it with the VIN and engine code guide or find the position in the factory diagrams. Send your VIN from the part page and we check the sensor and its position against your car before you order. Fit questions are in the FAQ. Browse Sensors & modules by number.
This guide helps you decide what to check and order. It is not a substitute for a workshop inspection.
Related guides
Crankshaft sensor faults: stalling and no start
A failing crankshaft position sensor stalls the engine when hot or stops it starting. The signs, codes, checks in order and part to order.
Auxiliary electric water pump: signs of failure
The small electric coolant pump: what it does, how it fails, what to check first and how to find the right one by engine code.
Coolant temperature sensor faults: signs, checks
Coolant temperature sensor faults: a fan that never stops, a cold gauge, hard starts and codes. What to check first and which part to order.








