Skip to content
MotorFiable

Timing and crank/cam sensorsGeneric OBD-II codeUrgency: As soon as possible

Code P0340: camshaft sensor circuit fault

P0340 means: camshaft position sensor "A" circuit (bank 1 or single sensor).[1][2][3] The ECU has detected a fault in the camshaft position sensor "A" circuit (bank 1 or single sensor): it is not receiving a valid signal telling it where the camshaft is. It uses that data to coordinate ignition timing and fuel injection.[1][2][4]

System
Timing and crank/cam sensors
Urgency
As soon as possible
Stop the car as soon as it is safe to do so
Possible causes
7
sorted from most to least likely
Type
Generic
The same on all makes

9 sourcesHow we work

What code P0340 means

The ECU has detected a fault in the camshaft position sensor "A" circuit (bank 1 or single sensor): it is not receiving a valid signal telling it where the camshaft is. It uses that data to coordinate ignition timing and fuel injection.[1][2][4]

P0340 and P0341 look alike, but they are not the same. P0340 indicates a circuit fault, meaning the sensor signal is missing or faulty. P0341 indicates that the signal arrives but is inconsistent: it is outside the expected range or out of phase with the crankshaft signal.[1][2][5][6][7]

It is a generic OBD-II code (it starts with P0), so it means the same on any make; what changes from one engine to another is the most likely cause.[8]

Original definition (SAE J2012): Camshaft Position Sensor "A" Circuit (Bank 1 or Single Sensor)[1][2][3]

Causes of P0340

From most to least likely, according to the sources.

  1. 1Faulty or failing camshaft sensor. Carista considers it the most common cause: over time, the internal Hall element degrades from heat.[1][2][4]
  2. 2Damaged wiring or connector: grounded, short-circuited or worn wires, or a corroded or oil-soaked connector. Carista points out that this is common at the connector next to the timing cover on high-mileage engines.[1][2][3][4]
  3. 3Dirty or damaged camshaft reluctor ring (tone wheel), producing missing pulses.[2][4]
  4. 4Worn timing chain or belt (a stretched chain, or one that has jumped a tooth).[2][4]
  5. 5Faulty or failing crankshaft position sensor.[1]
  6. 6Engine ECU fault (MechanicBase notes that sometimes it only needs an update).[1][4]
  7. 7An electrical problem in the starter motor, according to Autodoc Club.[1]

Symptoms

How to diagnose P0340

In order: from the most likely and cheapest to check to the most expensive.

  1. 1Read all the codes with a diagnostic tool and see whether there are others (P0335, P0341, P0016, misfires). Then clear the code and check whether it comes back.[4]
  2. 2Inspect the sensor connector and its wiring: oil, corrosion, broken, chafed or grounded wires.[1][2][3][4]
  3. 3With the diagnostic tool, compare the camshaft position with the crankshaft position in live data: they should stay in phase.[2]
  4. 4Test the sensor following the procedure in the service manual (resistance and signal) and check that it is properly secured. Replace it only if the signal is erratic or absent.[2][3][4]
  5. 5Check the crankshaft position sensor circuit.[1]
  6. 6If replacing the sensor does not fix it and the wiring is fine, check the camshaft reluctor ring and the condition of the timing chain or belt.[2][4]
  7. 7Leave the ECU until last: diagnose it and, if necessary, update or replace it.[1][4]

Can I keep driving with P0340?

As soon as possible

The sources agree that this is not a fault to ignore. Autodoc Club considers it a safety hazard, because the car may not start or may start with great difficulty, and urges fixing it immediately to avoid serious engine damage; MechanicBase rates it as serious and advises against driving with it, mainly because of the risk of losing power in the middle of traffic; and Carista gives it a high severity and cites sudden stalling while driving, followed by long cranking before the engine restarts.[1][2][4]

Documented faults related to P0340

Known faults of specific engines and cars, with their repair cost, the affected years and their sources.

Engine sensors: the most serious faults by engine and car

All faults with the engine sensors (22)

Wiring, connectors and short circuits: the most serious faults by engine and car

All faults with the electrical wiring (150)

Timing chain: the most serious faults by engine and car

All faults with the timing chain (47)

Timing belt: the most serious faults by engine and car

All faults with the timing belt (29)

Alternator and starter motor: the most serious faults by engine and car

All faults with the alternator and starter motor (70)

P0340 by make

Documented faults that can trigger P0340 in each make's engines and cars.

Frequently asked questions

Can I drive with code P0340?

The sources advise against it: the car may start badly or stall while driving, and the lack of power when accelerating is dangerous in traffic. Autodoc Club calls it a safety hazard and urges fixing it immediately; MechanicBase recommends not driving with this code.[1][4]

What is the difference between P0340 and P0341?

Both refer to camshaft sensor "A" on bank 1, but they describe different faults. P0340 is a circuit fault: the ECU cannot see the camshaft position because the signal is missing or faulty, and it points mainly to the sensor, the connector or the wiring. P0341 indicates that the signal exists but is not consistent: it is out of range or out of phase with the crankshaft signal, and it means looking at mechanical causes too, such as the reluctor ring or a stretched or jumped timing chain or belt.[1][2][5][6][7]

Do you have to replace the camshaft sensor when P0340 appears?

Not necessarily. MechanicBase warns that many technicians and DIYers replace the sensor straight away, but that there are other causes that do not require it; the first step is to check the connector and the wiring. Carista adds that if replacing the sensor does not solve the problem, you need to check the reluctor ring and timing chain stretch.[2][4]

Can P0340 leave the car unable to start?

Yes. According to Autodoc Club and MechanicBase, it can cause hard starting or prevent starting altogether; Carista cites sudden stalling with long cranking to get it going again, and Saab's workshop documentation lists stalling and failure to start as symptoms of this code.[1][2][3][4]

Does P0340 mean the same on all makes?

Yes. Codes that start with P0 are generic OBD-II codes and have the same definition across all manufacturers.[8]

Will I pass the MOT with code P0340?

If the code has switched on the engine warning light, no: with that light on, the inspection records a serious defect, and on Euro 5 and Euro 6 cars the ITV (Spain's roadworthiness inspection, similar to the MOT) also reads the OBD diagnostic system. Repair the fault before you go; clearing the code just before the inspection does not help either, because it counts as a serious defect.[9]

Not sure what is wrong with your car? Describe what you notice in the symptom diagnosis or see all fault codes.

Sources

Every fact on this page links to its source. If you find an error, let us know.

  1. Código OBD2 P0340: causas, síntomas y cómo corregirloAutodoc Club · Technical documentation · consulted 2 October 2026 · in Spanish
  2. P0340: OBD-II code P0340 flags a fault in the camshaft position sensor circuitCarista · Technical documentation · consulted 2 October 2026
  3. DTC P0340 Camshaft position sensor "A" circuit (bank 1 or single sensor), Saab 9-2X (9346) 2005, 2.5iSaab WIS Online (Saab Workshop Information System) · Technical documentation · consulted 2 October 2026
  4. What Does The P0340 Code Mean?Mechanic Base · Technical documentation · consulted 2 October 2026
  5. Código OBD2 P0341: causas, síntomas y cómo corregirloAutodoc Club · Technical documentation · consulted 2 October 2026 · in Spanish
  6. P0341: OBD-II code P0341 means the camshaft position sensor signal is present but implausibleCarista · Technical documentation · consulted 2 October 2026
  7. P0341 - Camshaft Position Sensor Circuit Range/PerformanceSamarins.com · Technical documentation · consulted 2 October 2026
  8. On-board diagnosticsWikipedia · Other source · consulted 2 October 2026
  9. Desmontando mitos: ¿puede pasar mi coche la ITV con el testigo de «avería motor» encendido?Diariomotor · Motoring press · published 8 March 2021 · consulted 2 October 2026 · in Spanish