P0340 means the camshaft position sensor signal is missing or invalid. Check the connector and wiring, then replace the cam sensor; if the code returns, have the cam timing checked.
Also written as PO340 or P340 or P 0340.
Save P0340 to your vehicle and get a repair reminder - create a free account
P0340 means the engine computer is not getting a valid signal from the camshaft position sensor. The computer uses it to know which cylinder is on compression so it can time injectors and coils. Many engines still run on the crank sensor alone but may start slowly or run rough. Wiring, a connector, or cam timing can cause it as well as the sensor itself.
Usually for a short distance. Many engines keep running on the crankshaft sensor with a cam sensor fault, but starting may be slow and some go into reduced power. If the engine stalls, will not restart, or rattles from the timing area, stop driving and have it checked, since timing trouble can cause engine damage.
| Fix | DIY parts | At a shop |
|---|---|---|
| Replace the camshaft position sensor | $20 - $120 | $120 - $400 |
| Repair the sensor connector and wiring | $10 - $50 | $100 - $300 |
| Correct cam timing (timing belt or chain) | $100 - $400 | $500 - $1,200 |
Ranges are rounded and for the US market only - actual price depends on region, shop labor rates, and the exact make and model.
Most of these open an Amazon search - add your year, make and model, because most of these parts are fitment-specific. A few link straight to the exact tool or part we have verified, because it fits any vehicle.
Affiliate Disclosure: ServiceSage Auto participates in the Amazon Services LLC Associates Program. We earn a small commission from qualifying purchases at no extra cost to you. This helps us keep our content free and up-to-date.
P0340 means the engine computer is not getting a valid signal from the camshaft position sensor, circuit A, bank 1 or single-sensor. The computer uses the cam sensor to know which cylinder is on its compression stroke, so it can fire the right injector and coil at the right moment. Many engines will still run on the crankshaft sensor alone, but they may start slowly, run rough, or go into a reduced-power mode. P0340 is an electrical circuit code, so the cause is often wiring or a connector, not only the sensor - and on engines with a timing belt or chain, a timing problem can trigger it too.
The P0340 mistake is replacing the cam sensor two or three times when the real fault is oil in the connector, a broken wire, or cam timing that has shifted. If a good-quality sensor does not cure it, stop buying sensors and test the circuit and the timing.
Affiliate Disclosure: ServiceSage Auto participates in the Amazon Services LLC Associates Program. We earn a small commission from qualifying purchases at no extra cost to you. This helps us keep our content free and up-to-date.
Difficulty: Easy. Time: 0.3 - 1.5 hours. DIY parts: $20 - $120. Shop total: $120 - $400.
Most camshaft position sensors are held by one bolt on top of or at the front of the engine, and replacing one is among the simpler sensor jobs. It becomes a shop job only when the code survives a new sensor and the timing belt or chain needs checking - that is not a driveway diagnosis for most owners.
Change oil on schedule and replace the timing belt on time. Clean oil keeps timing chains and tensioners healthy, and a timing belt replaced on its interval cannot jump a tooth. Both protect the cam timing that the camshaft position sensor reports on. ServiceSage tracks oil changes and the timing belt interval for your vehicle and reminds you before either is due. Track this maintenance free.
Related trouble codes: P0335 - Crankshaft Position Sensor A Circuit Malfunction, P0016 - Crankshaft / Camshaft Position Correlation (Bank 1 Sensor A), P0011 - Camshaft Position - Timing Over-Advanced (Bank 1), P0325 - Knock Sensor 1 Circuit Malfunction (Bank 1 or Single Sensor)