P0340Powertrain · Timing, cam & crankGeneric (SAE) code

P0340: Camshaft Position Sensor "A" Circuit (Bank 1 or Single Sensor)

The camshaft position (CMP) sensor signal is missing or implausible. The ECU uses CMP together with CKP to identify cylinder phase for sequential injection and coil-on-plug ignition; without CMP the engine may run on group injection or fail to start.

Typical labor cost
$65–$500 est.
30 min–4 h at an assumed $125/hr · parts extra · use your rate
Most common fix
Sensor failed
DIY difficulty: Moderate · DIY-friendly
01 —What it means

What P0340 means

P0340 is a generic OBD-II powertrain code in the timing, cam & crank group. In plain English: the computer found an electrical fault in that circuit: an open, short or bad connection, or a failed component. Bank 1 is the side of the engine with cylinder 1 (inline engines only have bank 1).

P
Powertrain
0
Generic (SAE)
3
Subsystem group
40
Specific fault
How to read P0340. We group it under Timing, cam & crank.
Check engine light
Usually on
Emissions-related
Yes — can fail inspection
Limp mode possible
Not typical
Drive cycle to clear
Required
Code data: OBDex (CC0)

Get it fixed

Post this code once and get quotes from local mechanics. Free to post.

Your car Optional

Makes the repair and parts links below specific to your car. Kept in this browser only.

Get quotes on findmechanic.ai (opens in a new tab)
02 —Symptoms

Symptoms

What drivers typically notice
  • Check engine light on
  • Power loss especially in mid-rpm range
  • Possible rough idle or stalling
  • Increased fuel consumption
Code data: OBDex (CC0)
03 —Causes

Common causes

Ranked from most to least likely
  1. 01Sensor failedMost likely
  2. 02Timing chain stretched, throwing off sensor timingPossible
  3. 03Wiring faultLess likely
Code data: OBDex (CC0)
04 —Severity

Can I drive with P0340?

Moderate

Usually yes, for a short time.

The car will often drive normally, but get it diagnosed soon. Left alone it can raise fuel use and emissions and will fail an OBD inspection. If you notice rough running, warning lights flashing, overheating or a burning smell, stop driving.

Why we rate it moderate

  • Turns on the check engine light
  • Emissions-related: will usually fail an OBD inspection
  • Needs a drive cycle to confirm a repair

Severity is our rule-based rating from the code’s flags in OBDex and the system it affects, not an inspection of your car. If the check engine light is flashing, or you notice overheating, low oil pressure, or brake or steering problems, stop driving and get help.

Code data: OBDex (CC0)
05 —Diagnosis

How to diagnose P0340

General procedure — follow the service manual for your vehicle
  1. 1

    Confirm the code and save freeze-frame data

    Read the codes with an OBD-II scan tool and note every code, not just P0340. Save the freeze-frame data (speed, load, temperature when the fault set) before clearing anything; it tells you when the fault happens.

  2. 2

    Fix other faults first

    If other codes are stored, start with power-supply, sensor-circuit and communication codes. They can cause this code as a side effect.

  3. 3

    Test the circuit

    Inspect the wiring and connector at the camshaft position sensor and timing chain for damage, corrosion or chafing. With a multimeter, check supply voltage, ground and signal against the specifications in the service manual for your vehicle.

  4. 4

    Test the likely causes in order

    Start with the most likely cause and work down: Sensor failed; timing chain stretched, throwing off sensor timing; wiring fault. Test before replacing parts.

  5. 5

    Check for recalls and service bulletins

    Look up recalls for your exact vehicle with its VIN, and ask a dealer about technical service bulletins (TSBs). Manufacturers sometimes issue software updates or extended warranties for known faults.

  6. 6

    Clear the code and verify the repair

    After the repair, clear the code and complete a full drive cycle (cold start, idle, steady highway cruise, deceleration). The code is fixed when the related readiness monitor completes without it returning.

Code data: OBDex (CC0)
06 —Cost

P0340 repair cost estimate

Labor only — set your local shop rate
Labor estimate for P0340
$65–$500
30 min–4 h of labor × $125/hr (assumed rate) · parts extra

Estimate, not a quote. Labor times are typical ranges for this code from OBDex, and $125/hr is an assumed rate. Shop rates and labor times vary by vehicle and region. Diagnosis time may be billed separately.

DIY difficulty
Moderate
Good DIY job?
Yes, with a scan tool

Needs a scan tool and some experience with testing.

Code data: OBDex (CC0)
07 —Components

Parts and systems involved

  • Camshaft position sensor
  • Timing chain
  • Timing belt
Code data: OBDex (CC0)
09 —FAQ

P0340 FAQ

What does P0340 mean?

P0340 means “Camshaft Position Sensor A Circuit (Bank 1 or Single Sensor)”. The camshaft position (CMP) sensor signal is missing or implausible. The ECU uses CMP together with CKP to identify cylinder phase for sequential injection and coil-on-plug ignition; without CMP the engine may run on group injection or fail to start.

Is P0340 serious? Can I keep driving?

We rate P0340 as moderate severity. Usually yes, for a short time. The car will often drive normally, but get it diagnosed soon. Left alone it can raise fuel use and emissions and will fail an OBD inspection. If you notice rough running, warning lights flashing, overheating or a burning smell, stop driving.

What causes P0340?

The most common causes, from most to least likely: Sensor failed; Timing chain stretched, throwing off sensor timing; Wiring fault. Test before replacing parts, because several causes can set the same code.

How much does it cost to fix P0340?

Typical labor is about $65–$500 at an assumed $125/hour shop rate, plus parts. That is an estimate, not a quote: labor times and rates vary by vehicle and region, and diagnosis may be billed separately.

Can I fix P0340 myself?

DIY difficulty is moderate. Many owners can handle it with a scan tool, a multimeter and basic hand tools. Always confirm the cause before buying parts.

Will P0340 clear itself?

Once the fault is fixed, the check engine light usually goes off by itself after the system passes its self-test over several drive cycles. Clearing the code with a scan tool resets readiness monitors, so an inspection station may turn you away until a full drive cycle is completed.

Code data: OBDex (CC0)