Au7o mascotAu7o
Known IssuesDiagnose my car
  1. Au7o
  2. /
  3. Known Issues
  4. /
  5. P0340
P0340CriticalEngine

P0340: How to Diagnose & Fix — Camshaft Position Sensor Circuit Malfunction

57 vehicles · 21 makes · $30-$8,000 repair

Share:@au7o.io

How to diagnose and fix P0340: most-reported vehicles

Ranked by owner reports. Each card gives the symptoms, how to confirm the cause, the fix, parts and sources for that vehicle.

Ford Expedition · 2004–2014

Community reported
2,140 owners
Link to this issueError Codes:P0011P0012P0014P0016P0017P0340P0341P0344P0345P0346P0349P0018P0019

The 5.4L 3-valve (3V) Triton V8 in 2004-2014 Ford Expedition is notorious for cam phaser failures and timing chain stretch, representing one of the most common and expensive repairs on these trucks. The VCT (Variable Camshaft Timing) system uses oil pressure to actuate the cam phasers - when phasers wear out or chains stretch, the engine sets multiple camshaft correlation codes and rattles on startup. The factory oil pump also wears out at similar intervals, compounding the problem. Running low on oil or using the wrong viscosity dramatically accelerates failure. Left unrepaired, a failed phaser can cause a chain to jump timing, resulting in bent valves and catastrophic engine damage. Repair typically requires complete timing system replacement including both cam phasers, all four timing chains, guides, and tensioners - a 12-16 hour job.

Common Symptoms

  • Loud rattling/knocking from engine on cold start (top-end rattle)
  • Check engine light with codes P0340, P0341, P0344, P0345, P0346, P0349 (cam sensor/phaser codes)
  • Codes P0016, P0017, P0018, P0019 (camshaft-crankshaft timing correlation)
  • Rough idle, especially when cold
  • Engine surging at idle
  • Loss of power and poor fuel economy
  • Rattle that worsens on acceleration at low RPM
  • Multiple misfire codes accompanying timing codes

How to Fix

Complete timing system overhaul: replace both VCT cam phasers, timing chains (primary and secondary), all chain guides, and tensioners as a complete kit. Motorcraft timing chain and phaser kit (TKIT-2004A-MGA or dealer equivalent) is recommended. Also replace the oil pump if over 80,000 miles - worn pump cannot supply adequate oil pressure for VCT system. Use 5W-20 full synthetic oil only. Change oil every 5,000 miles maximum. Labor: 12-16 hours on Expedition due to 4WD and engine mounts.

Typical repair cost:$1,800 - $4,500
Sources for this issue (1)
  • NHTSA Manufacturer Communications Data Corpusnhtsa

Research This Issue

Based on 2,140 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High Confidence2,140 owner reportsLast reported by owners Nov 2025Reviewed Feb 2026

Acura MDX · 2001–2006

Community reported
1,900 owners
Link to this issueError Codes:P0340P0341

First-generation MDX models with the J35 V6 are prone to timing belt tensioner bearing failure and simultaneous water pump leaks when the timing belt service is neglected past 105,000 miles. The hydraulic tensioner loses pressure, allowing the belt to skip teeth and potentially bend valves on this interference engine.

Common Symptoms

  • Ticking or rattling noise from front of engine on startup
  • Coolant leak from water pump weep hole
  • Engine runs rough after high-mileage
  • Squealing noise from belt area
  • Engine misfires at high RPM

How to Fix

Replace the timing belt, tensioner, water pump, and all idler pulleys as a complete kit at 105,000 miles or 7 years, whichever comes first. Use genuine Honda/Acura components or the verified AISIN kit matched to the year split: TKH-001 for 2001–2002 and TKH-002 for 2003–2006. Never reuse the old tensioner even if it appears functional. This is a critical interference engine — a broken belt destroys the valves.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • 2001–2002 AISIN TKH-001
    Fits 2001-2002

    Verified repair component. Approved replacement: 2001–2002 AISIN TKH-001.

    Partsgeek
  • 2003–2006 AISIN TKH-002
    Fits 2003-2006

    Verified repair component. Approved replacement: 2003–2006 AISIN TKH-002.

    Partsgeek

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Owner tips & cautions

  • WarningThis is an INTERFERENCE engine. If the timing belt breaks, the pistons hit the valves and you are looking at a $3,000-5,000 head repair. Do the belt, tensioner, and water pump together at 100k miles — it is the single most important maintenance item on these engines.
Typical repair cost:$800 - $1,500
Sources for this issue (2)
  • MDXers.org: Timing belt tensioner failure (P0300, P0301, P0302, P0303)forum
  • MDXers.org: DIY 01-06 Acura MDX Timing belt & waterpump Replacement tutorialforum

Research This Issue

Based on 1,900 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High Confidence1,900 owner reportsLast reported by owners Jun 2025Reviewed Mar 2026

GMC Envoy · 2002–2009

Community reported
540 owners
Link to this issueError Codes:P0335P0340P0345P0336

The 4.2L LL8 inline-6 engine in the 2002-2009 GMC Envoy is notorious for crankshaft position sensor failures that cause intermittent stalling and no-start conditions. The sensor is located on the side of the engine block and is exposed to heat soak from the exhaust manifold, accelerating its failure. A failing sensor causes the PCM to lose track of crank position, resulting in the engine cutting out without warning — often at highway speed. The issue tends to be intermittent at first, making diagnosis challenging. Replacement is straightforward and the part is inexpensive.

Common Symptoms

  • Engine stalls without warning at any speed
  • Hard start or no-start after hot soak
  • Check engine light with code P0335 or P0336
  • Engine cranks but won't fire when hot
  • Intermittent stall that restarts after cooling down
  • Rough idle followed by stall

How to Fix

Replace crankshaft position sensor (ACDelco 213-3521 or Delphi SS11378). Clear codes and test. If stalling continues, inspect camshaft position sensor (ACDelco 213-3522) as secondary cause. Verify PCM software is current — older PCM calibrations make the engine overly sensitive to sensor signal dropout.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Engine Crankshaft Position Sensor
    Cross-ref235-1078

    Fitment confirmed against the ShowMeTheParts catalog for this vehicle's year and engine.

    eBayAmazon

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Typical repair cost:$80 - $300
Sources for this issue (1)
  • NHTSA Campaign 01V126 - Envoy Control-Arm Bracketsrecall

Research This Issue

Based on 540 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High Confidence540 owner reportsLast reported by owners Feb 2026Reviewed Feb 2026

Hyundai Elantra · 2011–2017

Community reported
456 owners
Link to this issueError Codes:P0335P0340P0345

The crankshaft position sensor fails, causing intermittent stalling, hard starting, and no-start conditions. The problem often worsens when the engine is hot and may not trigger check engine codes initially. Sensor harness corrosion is a common contributing factor.

Common Symptoms

  • Engine stalls randomly, especially at stop lights
  • Hard starting or extended cranking time
  • No-start condition for 5-10 minutes after stall
  • Tachometer intermittently stops working
  • Engine cuts out when hot

How to Fix

Replace crankshaft position sensor (use OEM part). Inspect and clean sensor connector for corrosion. Check wiring harness for breaks or shorts near engine block. Clear codes and test drive to verify repair.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Walker Products 235-1456 crankshaft position sensor
    OEMWalker Products 235-1456

    aftermarket crankshaft-position sensor after signal/circuit diagnosis confirms replacement Fitment/availability: Walker catalog: 2011-2016 Elantra 1.8L and 2014-2017 Elantra 2.0L. Exclude the 2017 1.4L turbo and confirm engine/VIN/connec…

    eBay
  • Walker Products 235-1456 crankshaft position sensor
    OEMWalker Products 235-1456

    Exclude the 2017 1.4L turbo and confirm engine/VIN/connector.

    Amazon
  • Genuine Hyundai/Kia 39180-2B000 crankshaft position sensor
    OEMHyundai/Kia 39180-2B000

    OE sensor path after diagnosis confirms the crank-sensor branch Fitment/availability: Cataloged Hyundai/Kia GDI/MPI applications including the relevant Elantra years; use VIN confirmation because 2011-2017 contains multiple engines and t…

    AutoPartsPrime

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Owner tips & cautions

  • TipConsider OEM parts for critical components like sensors and electrical parts - aftermarket can be unreliable
  • TipGet a proper diagnosis before replacing parts - similar symptoms can have different causes
Typical repair cost:$150 - $400

Research This Issue

Based on 456 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High Confidence456 owner reportsLast reported by owners Feb 2024Reviewed Feb 2026

Jeep Commander · 2006–2010

Community reported
312 owners
Link to this issueError Codes:P0087P0230P0231P0232P0335P0340

The Commander can stall or lose engine power without warning at any speed. The problem is linked to multiple causes: faulty crankshaft position sensor, failing fuel pump, PCM software bugs, and throttle body issues. Over 173 engine complaints were filed for the 2006 model year. Some owners report engine compartment fires linked to electrical shorts in the PCM area.

Common Symptoms

  • Engine stalls without warning
  • Loss of power during acceleration
  • No-start condition (cranks but no start)
  • Check engine light with P0335/P0340 codes
  • Intermittent rough idle
  • Engine cuts out at highway speed

How to Fix

Replace the crankshaft position sensor (Mopar 56028373AB, $20-40 part, $100-200 labor) as the most common fix. Clean or replace the throttle body ($150-300). Check fuel pump pressure (should be 49-55 PSI). Update PCM software to the latest calibration at the dealer. For fire risk concerns, inspect wiring harness in the engine bay for chafing or heat damage.

Owner tips & cautions

  • TipCarry a spare crankshaft position sensor in the glove box - they are known to fail without warning and the repair takes 15 minutes
  • WarningStalling at highway speed is extremely dangerous - address this issue immediately
Typical repair cost:$100 - $800
Sources for this issue (2)
  • CarComplaints.com - 2006 Commander Engine Problems (173 complaints)nhtsa
  • CarComplaints.com - 2006 Commander Engine Pagenhtsa

Research This Issue

Based on 312 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High ConfidenceVerified312 owner reportsLast reported by owners May 2023Reviewed Feb 2026

Find P0340 by make

Browse every documented model and issue for your make.

Acura · 1 issueCadillac · 1 issueChevrolet · 2 issuesChrysler · 1 issueDodge · 2 issuesFord · 15 issuesGMC · 1 issueHonda · 3 issuesHyundai · 2 issuesInfiniti · 8 issuesJeep · 4 issuesKia · 1 issueMazda · 4 issuesMitsubishi · 2 issuesNissan · 19 issuesOpel · 1 issueRAM · 1 issueRenault · 1 issueSaturn · 1 issueToyota · 1 issueVolvo · 2 issues

P0340 code reference

General diagnostic-code context. The code alone does not confirm a cause for your vehicle; use the applicable issue card and its sources.

Frequently asked questions

What does P0340 mean?

P0340 stands for "Camshaft Position Sensor Circuit Malfunction." This code means the engine computer lost or received an erratic signal from the camshaft position sensor. That sensor tells the computer the exact position and speed of the camshaft, which it uses together with the crankshaft sensor to time fuel injection and spark precisely. When the camshaft signal is missing, intermittent, or out of range, the computer sets P0340. Symptoms often include hard starting, stalling, rough running, or a no-start because the engine can't time itself correctly.

What are the most common causes of P0340?

The most common causes of P0340 are: Failed camshaft position sensor, Corroded or loose sensor connector, Damaged or shorted sensor wiring, Bad reluctor/tone ring on the camshaft, Loose timing chain/belt or jumped timing, Metal debris or oil contamination on the sensor tip, Poor sensor power or ground supply, Faulty PCM/ECM (rare). The specific cause varies by vehicle.

How much does it cost to fix P0340?

Repair costs for P0340 range from $30 to $8,000, depending on the vehicle and root cause.

Which vehicles are affected by P0340?

Au7o has documented P0340 across 57 vehicle models from 21 manufacturers: Acura, Cadillac, Chevrolet, Chrysler, Dodge, Ford, GMC, Honda, Hyundai, Infiniti, Jeep, Kia, Mazda, Mitsubishi, Nissan, Opel, RAM, Renault, Saturn, Toyota, Volvo.

Related codes

  • P0341 · Camshaft Position Sensor Circuit Range/Performance (Bank 1)
  • P0344 · Camshaft Position Sensor 'A' Circuit Intermittent (Bank 1 or Single Sensor)
  • P0345 · Camshaft Position Sensor Circuit Malfunction (Bank 2)
  • P0346 · Camshaft Position Sensor A Circuit Range/Performance (Bank 2)
  • 00522 · Engine Coolant Temperature Sensor (G62): Open Circuit / Short to Positive (B+)
  • 16500 · Engine Coolant Temp. Sensor (G62): Implausible Signal
  • 16502 · Engine Coolant Temperature Sensor (G62): Signal too High
  • 16566 · Mass Air Flow Sensor Signal Too Low (VAG)
🔧
A mechanic who knows YOUR exact car
Answers tuned to your year, make, model & trim — not generic advice. Save your garage so it always has the right context.
Get notified about P0340 fixes
We add new causes, fixes and affected vehicles for P0340 regularly — drop your email and we'll keep you posted. You can also diagnose your own car free.

Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.

Known IssuesMotorcycle IssuesDTC LookupDrivePricingAboutTermsPrivacyCookiesConsentData rightsCopyrightFeedback
Share:@au7o.io

Vehicle data and repair guidance on this site are compiled with AI assistance and may contain errors. Always verify with your service manual or a qualified mechanic.

Data protection representation

DataRep representative in the United KingdomDataRep representative in the European Union
Au7o · 2026
Built for DIY mechanics. Privacy-first.

© 2026 Au7o. All rights reserved.