Engine — camshaft position sensor (Bank 1)
P0340 Code: Camshaft Position Sensor Circuit (Bank 1)
P0340 stands for "Camshaft Position Sensor Circuit (Bank 1)." The camshaft position sensor tells the computer exactly where the camshaft is in its rotation so it can time fuel injection and spark precisely. P0340 means the computer is not getting a usable signal from that sensor on Bank 1 (the side with cylinder #1).
Because the code is about the circuit — the signal path — the cause can be the sensor itself, the wiring and connector, or (less often) a mechanical problem like a stretched timing chain that throws the cam signal out of sync. The code is a starting point, not a guaranteed bad sensor.
P0340 can cause stalling, hard starting, and sometimes a no-start. A car that stalls in traffic is a safety concern, and a no-start means you cannot drive at all. It should be diagnosed promptly rather than put off.
If the engine starts and runs steadily you can drive gently to a shop. If it stalls, is hard to start, or will not start at all, do not drive — have it towed. A stall in traffic is unsafe.
P0340 symptoms you might notice
- Check engine light on
- Long cranking or hard starting — the engine takes longer to fire
- Stalling, especially at idle or when slowing down
- Rough idle or hesitation
- Sometimes a no-start condition
- Possible reduced power or limp mode on some vehicles
Common causes of P0340
Failed camshaft position sensor
The sensor itself can fail internally and stop producing a signal. This is a common cause but should be confirmed before replacing.
Damaged wiring or connector
Corroded, chafed, melted, or loose wiring between the sensor and the computer is just as common as a bad sensor and is often overlooked.
Oil or coolant in the sensor connector
Oil leaking into the connector (often from a valve cover) corrodes the pins and causes an intermittent or lost signal.
Stretched timing chain or jumped timing
On higher-mileage engines, a stretched chain can move the cam signal out of the expected range and set P0340 without the sensor being bad.
Failed reluctor wheel or tone ring
The toothed wheel the sensor reads can crack, slip, or collect debris, causing a weak or erratic signal.
Rarely, an ECM problem
A fault inside the engine computer is uncommon but can cause a missing sensor signal.
Before you buy parts
P0340 does not always mean the camshaft sensor is bad. The code is about the sensor circuit, and the cause is just as often damaged wiring, an oil-filled connector, or (on high-mileage engines) a stretched timing chain. Replacing the sensor without checking the wiring and the cam-crank sync often leads to the code coming right back.
What to check for P0340
- Inspect the camshaft position sensor wiring and connector for corrosion, chafing, melted insulation, or loose pins. Look for oil inside the connector.
- Check for oil leaks near the sensor — a leaking valve cover gasket can fill the connector with oil and cause the code.
- View the camshaft sensor signal on a scan tool. A flat or erratic signal when cranking points to the sensor or its wiring.
- Compare the cam and crank signals on a scope or scan tool. If they are out of sync, suspect a stretched timing chain or jumped timing rather than the sensor.
- If the wiring and connector are good and the signal is missing, the sensor itself is the likely cause.
Possible repairs for P0340
Replace the camshaft position sensor
A failed sensor is replaced once the wiring and connector are confirmed good. Use an OEM-quality part.
Repair wiring or connector
Fixing chafed, corroded, or melted wiring — or replacing an oil-filled connector — restores the signal without a new sensor.
Fix an oil leak
Replacing a leaking valve cover gasket stops oil from entering the connector and causing the code to return.
Repair timing
If the cam and crank signals are out of sync, a stretched timing chain or jumped timing must be repaired — replacing the sensor will not fix it.
Replace the reluctor wheel
A damaged or slipped tone ring is repaired if it is the source of the bad signal.
Parts and tools that may help
Enter your year, make and model on the store's site to see parts that fit your car.
GarageGuide may earn a commission if you buy through these links, at no extra cost to you. Always check that a part fits your exact vehicle before buying.
P0340 frequently asked questions
Does P0340 mean the camshaft sensor is bad?
It can, but not always. The code covers the whole sensor circuit, so damaged wiring, an oil-filled connector, or a stretched timing chain can all set it. The wiring should be checked before replacing the sensor.
Can I drive with a P0340 code?
Only if the engine starts and runs reliably. If it stalls, is hard to start, or will not start, have it towed. A stall in traffic is unsafe.
Why does my car take longer to start with P0340?
Without a cam signal, the computer has to figure out cam position by cranking longer before it can time the fuel and spark correctly, so you get long cranking before the engine fires.
Could P0340 be the timing chain?
Yes, on higher-mileage engines a stretched timing chain can move the cam signal out of its expected range and set P0340. If the cam and crank signals are out of sync, the timing should be checked before replacing the sensor.
How much does it cost to fix P0340?
It depends on the cause. A sensor or wiring repair is moderate; a timing chain job is much higher. Diagnosing the actual cause first — wiring, sensor, or timing — keeps the repair cost down.