P0340 — Camshaft Position Sensor Circuit Fault
P0340 is set when the engine control module cannot interpret the camshaft position sensor signal on the primary cam (or the single cam on engines with one sensor). The signal might be missing entirely, out of phase with the crankshaft signal, or showing electrical noise. Because the ECM uses cam position to time fuel injection and ignition, a P0340 will typically cause a hard start, a no-start, or a stall.
P0340 means camshaft position sensor circuit fault. A vehicle usually stays drivable short-term with this code, but it should be diagnosed promptly. The most common cause is failed camshaft position sensor (most common after 100k miles) (typically $100–$400). Causes and cost vary by make and model; confirm the root cause before replacing parts.
What does P0340 mean?
P0340 is set when the engine control module cannot interpret the camshaft position sensor signal on the primary cam (or the single cam on engines with one sensor). The signal might be missing entirely, out of phase with the crankshaft signal, or showing electrical noise. Because the ECM uses cam position to time fuel injection and ignition, a P0340 will typically cause a hard start, a no-start, or a stall.
What are the symptoms of P0340?
- Check Engine Light is illuminated
- Hard cranking or extended crank time before the engine starts
- Intermittent stalling, especially when the engine is hot
- Engine cuts out and restarts after a short delay
- Possible complete no-start condition
- Rough running and reduced power if the engine does run
What causes P0340?
| Cause | Likelihood | Estimated repair (USD) |
|---|---|---|
| Failed camshaft position sensor (most common after 100k miles) | Most common | $100–$400 |
| Damaged or corroded sensor connector | Common | $50–$250 |
| Chafed or broken sensor wiring | Common | $80–$350 |
| Loose, slipped, or worn camshaft sensor reluctor wheel | Occasional | $300–$1,200 |
| Timing chain stretch causing cam-crank correlation drift | Occasional | $800–$3,000 |
| Failed PCM driver for the cam sensor input (rare) | Rare | $400–$1,500 |
Repair costs are typical US ranges and vary by make, model, model year, and labor rate. A diagnostic trouble code is a symptom, not a guaranteed failed part — confirm the root cause before replacing anything.
Is it safe to drive with P0340?
In most cases a vehicle stays drivable for short trips with P0340 active, but you should diagnose and repair it promptly. This is a high-severity code — ignoring it can lead to further damage or a failed emissions test. Exact tolerance depends on your specific make and model.
How to diagnose P0340
-
Inspect the connector and wiring at the cam sensor
Locate the cam sensor (usually near the front of the cylinder head, threaded into the head or timing cover). Disconnect the sensor and inspect the connector for corrosion, bent pins, or water intrusion. Inspect the harness for chafing against engine mounts or accessory brackets.
Tools: Connector unlock tool, Flashlight, Electrical contact cleaner
-
Test the sensor signal with a scope or scan tool
With the engine cranking or running, the cam sensor should produce a square-wave or sine-wave signal that the scan tool can graph. No signal or a noisy signal indicates the sensor or its wiring is bad. A clean signal that the ECM does not respond to suggests an ECM input fault.
Tools: Scan tool with cam sensor PID, or oscilloscope, Multimeter
-
Verify cam-crank correlation in live data
Watch the cam and crank position signals together while cranking. They should maintain a fixed timing relationship. If the cam signal drifts relative to the crank signal over time, suspect timing chain stretch or a slipped reluctor wheel.
Tools: Scan tool with dual-PID graphing
-
Check sensor power and ground at the connector
With the connector unplugged and the key on, verify battery voltage on the power wire and continuity from the ground wire to a known good chassis ground. Missing power or poor ground will produce P0340 with a perfectly good sensor.
Tools: Multimeter, Wiring diagram
-
Inspect the reluctor / target wheel on the camshaft
If the wiring tests good and the sensor is new but P0340 persists, remove the sensor and shine a light at the reluctor wheel through the sensor port. Damaged or oil-fouled teeth will not generate a clean signal. On some engines the reluctor is a separate pressed-on piece that can slip.
Tools: Inspection mirror, Bright flashlight
How do I fix P0340?
- Replace the camshaft position sensor with an OEM part
- Repair the sensor connector or harness
- Replace the slipped or damaged reluctor wheel
- Replace stretched timing chains and guides (if cam-crank correlation drifts)
Pick your vehicle for a P0340 diagnosis
Select your exact year, make, and model below to get a diagnostic guide tuned to your vehicle's known failure patterns and TSBs.
2010-2014
- 2010-2014 Ford F-150
- 2010-2014 Chevrolet Silverado 1500
- 2010-2014 Ram 1500
- 2010-2014 Toyota RAV4
- 2010-2014 Honda CR-V
- 2010-2014 Chevrolet Equinox
- 2010-2014 Toyota Camry
- 2010-2014 Honda Civic
- 2010-2014 Toyota Corolla
- 2010-2014 Honda Accord
- 2010-2014 Nissan Altima
- 2010-2014 Nissan Sentra
- 2010-2014 Nissan Rogue
- 2010-2014 Ford Escape
- 2010-2014 Ford Explorer
- 2010-2014 Chevrolet Tahoe
- 2010-2014 Jeep Wrangler
- 2010-2014 Jeep Grand Cherokee
- 2010-2014 Toyota Tacoma
- 2010-2014 Toyota 4Runner
- 2010-2014 GMC Sierra 1500
- 2010-2014 Chevrolet Malibu
- 2010-2014 Chevrolet Traverse
- 2010-2014 Chevrolet Trax
- 2010-2014 Toyota Highlander
- 2010-2014 Toyota Sienna
- 2010-2014 Honda Pilot
- 2010-2014 Honda HR-V
- 2010-2014 Honda Odyssey
- 2010-2014 Subaru Outback
- 2010-2014 Subaru Forester
- 2010-2014 Mazda CX-5
- 2010-2014 Hyundai Elantra
- 2010-2014 Hyundai Tucson
- 2010-2014 Hyundai Santa Fe
- 2010-2014 Kia Sportage
- 2010-2014 Kia Forte
- 2010-2014 Kia Sorento
- 2010-2014 Ford Bronco
- 2010-2014 Ford Mustang
2015-2019
- 2015-2019 Ford F-150
- 2015-2019 Chevrolet Silverado 1500
- 2015-2019 Ram 1500
- 2015-2019 Toyota RAV4
- 2015-2019 Honda CR-V
- 2015-2019 Chevrolet Equinox
- 2015-2019 Toyota Camry
- 2015-2019 Honda Civic
- 2015-2019 Toyota Corolla
- 2015-2019 Honda Accord
- 2015-2019 Nissan Altima
- 2015-2019 Nissan Sentra
- 2015-2019 Nissan Rogue
- 2015-2019 Ford Escape
- 2015-2019 Ford Explorer
- 2015-2019 Chevrolet Tahoe
- 2015-2019 Jeep Wrangler
- 2015-2019 Jeep Grand Cherokee
- 2015-2019 Toyota Tacoma
- 2015-2019 Toyota 4Runner
- 2015-2019 GMC Sierra 1500
- 2015-2019 Chevrolet Malibu
- 2015-2019 Chevrolet Traverse
- 2015-2019 Chevrolet Trax
- 2015-2019 Toyota Highlander
- 2015-2019 Toyota Sienna
- 2015-2019 Honda Pilot
- 2015-2019 Honda HR-V
- 2015-2019 Honda Odyssey
- 2015-2019 Subaru Outback
- 2015-2019 Subaru Forester
- 2015-2019 Mazda CX-5
- 2015-2019 Hyundai Elantra
- 2015-2019 Hyundai Tucson
- 2015-2019 Hyundai Santa Fe
- 2015-2019 Kia Sportage
- 2015-2019 Kia Forte
- 2015-2019 Kia Sorento
- 2015-2019 Ford Bronco
- 2015-2019 Ford Mustang
2020-2024
- 2020-2024 Ford F-150
- 2020-2024 Chevrolet Silverado 1500
- 2020-2024 Ram 1500
- 2020-2024 Toyota RAV4
- 2020-2024 Honda CR-V
- 2020-2024 Chevrolet Equinox
- 2020-2024 Toyota Camry
- 2020-2024 Honda Civic
- 2020-2024 Toyota Corolla
- 2020-2024 Honda Accord
- 2020-2024 Nissan Altima
- 2020-2024 Nissan Sentra
- 2020-2024 Nissan Rogue
- 2020-2024 Ford Escape
- 2020-2024 Ford Explorer
- 2020-2024 Chevrolet Tahoe
- 2020-2024 Jeep Wrangler
- 2020-2024 Jeep Grand Cherokee
- 2020-2024 Toyota Tacoma
- 2020-2024 Toyota 4Runner
- 2020-2024 GMC Sierra 1500
- 2020-2024 Chevrolet Malibu
- 2020-2024 Chevrolet Traverse
- 2020-2024 Chevrolet Trax
- 2020-2024 Toyota Highlander
- 2020-2024 Toyota Sienna
- 2020-2024 Honda Pilot
- 2020-2024 Honda HR-V
- 2020-2024 Honda Odyssey
- 2020-2024 Subaru Outback
- 2020-2024 Subaru Forester
- 2020-2024 Mazda CX-5
- 2020-2024 Hyundai Elantra
- 2020-2024 Hyundai Tucson
- 2020-2024 Hyundai Santa Fe
- 2020-2024 Kia Sportage
- 2020-2024 Kia Forte
- 2020-2024 Kia Sorento
- 2020-2024 Ford Bronco
- 2020-2024 Ford Mustang
Related diagnostic codes
P0340: frequently asked questions
What does diagnostic trouble code P0340 mean?
P0340 is set when the engine control module cannot interpret the camshaft position sensor signal on the primary cam (or the single cam on engines with one sensor). The signal might be missing entirely, out of phase with the crankshaft signal, or showing electrical noise. Because the ECM uses cam position to time fuel injection and ignition, a P0340 will typically cause a hard start, a no-start, or a stall.
What are the symptoms of P0340?
Check Engine Light is illuminated. Hard cranking or extended crank time before the engine starts. Intermittent stalling, especially when the engine is hot. Engine cuts out and restarts after a short delay. Possible complete no-start condition. Rough running and reduced power if the engine does run
What causes P0340?
Failed camshaft position sensor (most common after 100k miles) (most-common). Damaged or corroded sensor connector (common). Chafed or broken sensor wiring (common). Loose, slipped, or worn camshaft sensor reluctor wheel (occasional). Timing chain stretch causing cam-crank correlation drift (occasional). Failed PCM driver for the cam sensor input (rare) (rare)
Is it safe to drive with P0340?
In most cases a vehicle stays drivable for short trips with P0340 active, but it should be diagnosed and repaired promptly — this is a high-severity code. Ignoring it can lead to further damage or a failed emissions test. Specific tolerance varies by make and model.