Skip to the page

Trouble codes › P0340

Ignition and misfires

P0340: Camshaft position sensor A circuit (bank 1 or single sensor)

The engine computer has a problem with the signal from camshaft position sensor A. This sensor tells the computer where the camshaft is, so it can time fuel injection and spark. Bank 1 is the side of the engine with cylinder 1.

Common causes

  • Damaged, corroded or loose camshaft position sensor wiring or connector
  • A faulty camshaft position sensor
  • A damaged reluctor (the target the sensor reads on the camshaft)
  • A stretched or slipped timing belt or chain
  • A problem with the engine computer (rare)

What to do

  1. Check the engine oil level and condition, since low or dirty oil can affect camshaft timing on many engines.
  2. Look for damaged or unplugged wiring at the camshaft position sensor if you can see it.
  3. Have a mechanic test the sensor and its wiring, and compare camshaft and crankshaft signals.
  4. If the signals are out of step, have the timing belt or chain checked, then reset the codes after the repair.

How urgent is it?

Faults of this kind usually need a repair before long: they can raise fuel use or emissions, or get worse.

This is a general guide from the type of code, not an inspection of your car. When in doubt, have a mechanic look. Stop and have it checked if the car drives, sounds or smells wrong, or the check engine light is flashing.

Can I keep driving?

Drive gently, fix soon. Usually drivable, but drive gently and get it fixed soon: this kind of fault can get worse or harm other parts.

A general guide for this code, not a diagnosis of your car. When in doubt, have a mechanic look.

What does it cost to fix?

About $150 to $350, for the camshaft position sensor or its wiring.

A rough US guide for parts and labor at an independent shop. Your car, area and shop can make it cost more or less.

Will it fail an emissions test?

Usually, yes. In most states that have an emissions test (smog check), a check engine light that's on fails it, whatever the code, and P0340 keeps the light on. After the repair, reset the codes and drive normally for a few days, in town and on the highway, so the car's self-tests finish before you go. How your state tests.

Your state's test

Arizona · California · Colorado · Connecticut · Delaware · District of Columbia · Georgia · Illinois · Indiana · Louisiana · Maine · Maryland · Massachusetts · Missouri · Nevada · New Jersey · New Mexico · New York · North Carolina · Ohio · Oregon · Pennsylvania · Rhode Island · Texas · Utah · Vermont · Virginia · Wisconsin

Can I just reset the code?

You can, but it comes back, with the check engine light, if the problem isn't fixed. Resetting also restarts the car's self-tests, so right after a reset the car isn't ready for an emissions test.

Read your own codes, free

The Athena OBD app reads your car's engine and gearbox codes and tells you what each one means and how urgent it usually is, whether you can keep driving and roughly what a fix costs. Reading codes is free. It needs an adapter in the car's diagnostic socket: ours is tested by AutoLingo with the app. Other Bluetooth and Wi-Fi ELM327 adapters may work, but we can't guarantee compatibility. Unplug it when you're done.

Download on the App Store Get it on Google Play