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. P0340 alone cannot tell you whether it is safe to drive. Follow your owner's manual for the warning lights and symptoms you see, and arrange diagnosis. Compare symptoms, possible causes and repair estimates for a confirmed fault.

Severity: high powertrain Check warning lights

Maintained by MECH AI Editorial · Technical content updated

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?

What causes P0340?

Possible causes of P0340 depend on the equipment fitted. Confirm which parts and tests apply before pricing a repair.

Cause Estimated repair (USD)
Failed camshaft position sensor (most common after 100k miles) $100–$400
Damaged or corroded sensor connector $50–$250
Chafed or broken sensor wiring $80–$350
Loose, slipped, or worn camshaft sensor reluctor wheel $300–$1,200
Timing chain stretch causing cam-crank correlation drift $800–$3,000
Failed PCM driver for the cam sensor input (rare) $400–$1,500

These are editorial estimates in U.S. dollars. A shop can price a confirmed repair using the engine, parts and local labor rate.

Is it safe to drive with P0340?

P0340 alone cannot tell you whether it is safe to drive. Follow your owner's manual for the warning lights and symptoms you see, and arrange diagnosis.

How to diagnose P0340

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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?

P0340 by make and model

Select your exact year, make, and model below to get a P0340 diagnosis tuned to your vehicle's known failure patterns, recalls, and TSBs.

P0340 on Chevrolet

P0340 on Ford

P0340 on GMC

P0340 on Honda

P0340 on Hyundai

P0340 on Jeep

P0340 on Kia

P0340 on Mazda

P0340 on Nissan

P0340 on Ram

P0340 on Subaru

P0340 on Toyota

Related diagnostic codes

Common symptoms of P0340

P0340 often shows up as one of these symptoms. Start from what your car is actually doing:

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) (estimated U.S. repair cost $100–$400). Damaged or corroded sensor connector (estimated U.S. repair cost $50–$250). Chafed or broken sensor wiring (estimated U.S. repair cost $80–$350). Loose, slipped, or worn camshaft sensor reluctor wheel. Timing chain stretch causing cam-crank correlation drift. Failed PCM driver for the cam sensor input (rare)

Is it safe to drive with P0340?

P0340 alone cannot tell you whether it is safe to drive. Follow your owner's manual for the warning lights and symptoms you see, and arrange diagnosis.