This article was updated in June 8, 2026 with new products and information by Mark S. Taylor

Your check engine light is on. You scan the codes and see P0340 — camshaft position sensor. Or P0335 — crankshaft position sensor. Or both. Or neither, but the car stalls, misfires, and won’t always start.

These two sensors work as a pair. The engine management system needs both signals simultaneously to run correctly. When either fails — or when both disagree with each other — the symptoms overlap enough to cause real diagnostic confusion. Replacing the wrong one wastes money and leaves the problem unsolved.

This guide explains what each sensor does, what symptoms each produces, how the symptoms differ, how to test both at home, and what the codes are actually telling you — including when the code points to a timing chain problem rather than either sensor.

Camshaft and Crankshaft Sensor Symptoms

Contents

Understanding the function of each sensor is the foundation for everything in this guide.

The Crankshaft Position Sensor (CKP)

The CKP sensor monitors the exact rotational position and speed of the crankshaft by reading a toothed reluctor wheel mounted on the crankshaft. It generates a signal that tells the ECU two things in real time:

  • Where each piston is in its stroke at every moment
  • How fast the crankshaft is rotating (engine RPM)

The ECU uses this data to calculate both fuel injection timing and ignition timing. It is the primary timing reference — the foundational signal that the entire engine management strategy is built around. Without a CKP signal, the ECU cannot time fuel delivery or spark at all.

Camshaft Position Sensor Left & Right - Compatible

The Camshaft Position Sensor (CMP)

The CMP sensor monitors the position of the camshaft — specifically where each camshaft is in its rotation cycle. It reads a tone wheel or reluctor mounted on the camshaft sprocket.

The ECU uses this signal for:

  • Cylinder identification — determining which cylinder is approaching TDC on the compression stroke (vs exhaust stroke)
  • Sequential fuel injection — injecting fuel in the correct firing order sequence for each cylinder
  • Variable valve timing control — on engines with VVT, the CMP signal allows the ECU to monitor and adjust cam timing in real time

Why Both Signals Are Required

Here is the critical insight that explains the symptom differences between the two sensors.

The CKP signal tells the ECU where the pistons are. The CMP signal tells the ECU which cylinders are on the compression stroke vs the exhaust stroke. Without both, the ECU cannot correctly sequence fuel injection — it knows a piston is at the top of its stroke but not whether that cylinder is firing or exhausting.

What happens when the CKP signal is lost: The ECU has no position reference at all. It cannot time fuel injection or ignition. The engine stops immediately or will not start.

What happens when the CMP signal is lost: The ECU loses cylinder identification. On most vehicles it falls back to a non-sequential injection mode — injecting fuel into all cylinders simultaneously rather than in sequence. The engine typically still runs — but less efficiently. Starting may be harder and performance may degrade.

This functional difference explains the most important symptom distinction: A completely failed CKP sensor causes a no-start or immediate stall. A completely failed CMP sensor on most vehicles allows the engine to still run — badly.

Camshaft Position Sensor Is Bad

A failing camshaft position sensor produces symptoms that are often subtler and more varied than CKP failure — particularly on modern engines with variable valve timing.

Rough or Unstable Idle

Without accurate camshaft position data, the ECU’s sequential injection timing becomes imprecise. The engine receives slightly mistimed fuel pulses — causing a rough, irregular idle quality. Unlike the rhythmic miss of a single misfiring cylinder, CMP-related roughness tends to be irregular and variable.

Hard Starting — Especially Cold

On a cold start, the ECU relies on CMP data to correctly sequence the first injection events. A failing CMP sensor forces the ECU into batch injection mode, which is less efficient for cold starts — requiring more cranking attempts before the engine fires. Cold morning hard starts that improve once the engine is warm are a common early CMP failure symptom.

Engine Misfires

An inaccurate CMP signal causes slightly incorrect injection timing for individual cylinders — particularly noticeable at idle and low load. P0300 random misfire codes may appear. These misfires are often misattributed to spark plugs or ignition coils, especially if the misfires are intermittent.

Poor Fuel Economy and Reduced Performance

Batch injection — all injectors firing simultaneously rather than sequentially — is less fuel-efficient than sequential injection. A vehicle running in fallback batch injection mode from a failed CMP sensor uses slightly more fuel and produces slightly less power than normal.

Variable Valve Timing Problems (Modern Engines)

This is where modern CMP sensor failure becomes significantly more complex than older vehicles.

On engines with variable valve timing — virtually all engines manufactured after 2010 — the ECU uses the CMP signal to actively monitor and control cam phasing. The cam actuator (often oil-pressure driven) adjusts the camshaft timing in real time for performance and efficiency.

When the CMP sensor fails on a VVT engine, the ECU loses its ability to monitor actual cam position relative to commanded position. Symptoms include:

  • Engine that runs normally at idle but feels significantly underpowered at mid-range RPM where VVT is most active
  • Rough running that comes and goes as the ECU attempts VVT adjustments it cannot verify
  • Specific VVT-related codes alongside CMP codes — P0011, P0012, P0021, P0022 (cam timing over-advanced or over-retarded)
  • Reduced fuel economy as VVT optimization is disabled

Check Engine Light With P0340–P0344 Codes

The ECU logs CMP-specific codes when it detects the sensor signal is absent or outside expected parameters. These codes do not always appear early in the failure process.

Stalling (Less Common Than CKP)

On most vehicles a completely failed CMP sensor does not cause a stall or no-start — the ECU switches to fallback mode and keeps the engine running. However, on some vehicles — particularly those without a fallback injection mode — complete CMP failure does cause a no-start. This varies by manufacturer and model year.

Crankshaft Position Sensor Symptoms

CKP sensor failure tends to produce more dramatic and safety-critical symptoms than CMP sensor failure — because the CKP signal is the primary timing reference that the engine cannot function without.

Engine Stalls While Driving and Restarts After Waiting

The single most distinctive CKP symptom. The engine cuts out suddenly while driving — as if the ignition was switched off. The engine cannot be restarted immediately. After 20–30 minutes of cooling, the car starts and runs normally.

This pattern is caused by heat soak failure — the sensor’s internal components malfunction above a certain temperature and recover when cool. Almost no other single component failure replicates this exact pattern with such consistency.

Engine Cranks But Will Not Start

A completely failed CKP sensor provides no position signal. The ECU cannot time fuel injection or ignition at all. The engine cranks normally at correct speed — the starter is working, the battery is fine — but the engine never fires.

Intermittent Hard Starting

Before complete failure, the CKP sensor may produce a degraded but present signal during some start attempts and no signal during others. Starting becomes unreliable — sometimes first crank, sometimes extended cranking, sometimes no-start. The failure events become more frequent over time.

Random Misfires Across Multiple Cylinders

A degraded CKP signal causes mistimed ignition and fuel injection across all cylinders simultaneously. P0300 random misfire codes appear, sometimes alongside individual cylinder codes. These misfires are commonly misdiagnosed as spark plug or ignition coil failure.

Engine Hesitation Under Hard Acceleration

The CKP signal frequency increases with RPM. A sensor that produces adequate signal at low RPM may fail at higher frequencies encountered during hard acceleration — causing a stumble that closely resembles a fuel delivery or ignition coil fault.

Reduced Fuel Economy

Timing variations from a degraded CKP signal cause combustion inefficiency across all cylinders — wasting fuel. Often one of the earlier subtle signs before dramatic symptoms develop.

For a complete treatment of all CKP sensor symptoms and the heat soak failure pattern, see our detailed guide on crankshaft position sensor symptoms.

MAF sensor vs MAP sensor
SymptomCMP Sensor (Cam)CKP Sensor (Crank)
Complete no-startUncommon — most vehicles have fallback modeVery common — no signal = no start
Stalls while drivingUncommonVery common — especially heat soak pattern
Stalls and restarts after 20–30 minRareClassic CKP heat soak pattern
Hard cold startCommonCommon
Hard hot startLess commonVery common — heat soak
Rough idleCommonCommon
Random misfiresCommonCommon
Hesitation under accelerationModerateStrong
VVT-related issuesYes — on modern enginesNot directly
Poor fuel economyYesYes
Check engine codesP0340–P0344P0335–P0339
Severity of failureModerate — engine usually still runsSevere — engine often cannot run
Symptom onsetOften gradualCan be sudden
Heat sensitivityLess commonVery common

Crankshaft Position Sensor Codes

CodeMeaning
P0335CKP sensor A circuit malfunction
P0336CKP sensor A circuit range/performance
P0337CKP sensor A circuit low input
P0338CKP sensor A circuit high input
P0339CKP sensor A circuit intermittent

Camshaft Position Sensor Codes

CodeMeaning
P0340CMP sensor A circuit malfunction — Bank 1
P0341CMP sensor A circuit range/performance — Bank 1
P0342CMP sensor A circuit low input — Bank 1
P0343CMP sensor A circuit high input — Bank 1
P0344CMP sensor A circuit intermittent — Bank 1
P0345CMP sensor A circuit malfunction — Bank 2
P0365CMP sensor B circuit malfunction — Bank 1

Variable Valve Timing Codes (When CMP Fails on VVT Engine)

CodeMeaning
P0011Cam timing over-advanced Bank 1
P0012Cam timing over-retarded Bank 1
P0021Cam timing over-advanced Bank 2
P0022Cam timing over-retarded Bank 2

The Correlation Code

CodeMeaning
P0016Crankshaft-camshaft position correlation — Bank 1 Intake
P0017Crankshaft-camshaft position correlation — Bank 1 Exhaust
P0018Crankshaft-camshaft position correlation — Bank 2 Intake
P0019Crankshaft-camshaft position correlation — Bank 2 Exhaust
bad o2 sensor

This is the most important section in this guide for drivers who have been told both sensors need replacing.

P0016 — and its siblings P0017, P0018, P0019 — are correlation codes. They mean the ECU is receiving signals from both the cam sensor AND the crank sensor, but the two signals are not in the relationship they should be. The cam position and crank position don’t agree with each other.

What causes a correlation code:

The relationship between cam and crank position is fixed by the timing chain or belt. If a P0016 appears with both sensors testing electrically sound — the sensors are actually doing their jobs correctly. They’re accurately reporting positions that are genuinely out of sync. The timing chain is the cause.

Timing chain stretch: As a timing chain wears over miles, it stretches and sags. This allows the camshaft to slip slightly behind its correct timing relationship with the crankshaft. The CMP signal shows the cam is slightly retarded relative to what the CKP signal reports it should be. P0016 appears.

What happens if P0016 is misdiagnosed as a sensor problem: A mechanic or driver replaces both the cam sensor and the crank sensor. Both sensors test perfectly electrically. Both sensors are replaced. P0016 returns immediately — because the sensors were never the problem. The timing chain is stretched and needs replacement.

How to distinguish timing chain stretch from sensor failure:

  • P0016 with both sensors reading electrically normal = timing chain problem
  • P0016 with one or both sensors reading out of specification = sensor may be at fault
  • P0016 that is accompanied by a rattling sound from the engine on startup = timing chain rattle — strong confirmation
  • P0016 on a vehicle with over 100,000–150,000 miles without a timing chain service = high probability of chain stretch

The consequence of missing this: A stretched timing chain is a significant repair — $800–$2,500 on most vehicles. But driving with significant timing chain stretch risks catastrophic engine damage if the chain jumps a tooth or breaks. A P0016 that points to chain stretch should not be dismissed or patched with sensor replacement.

Use this decision guide before replacing anything.

ObservationMost Likely CauseFirst Step
Engine cranks normally, won’t start at allCKP sensorCheck CKP live data during cranking
Engine starts but runs very rough, eventually starts after crankingCMP sensorCheck CMP code and live data
Engine stalls while driving, restarts after 20–30 minCKP heat soakHot restart test, CKP replacement
Engine stalls while driving, restarts immediatelyCould be either — or fuelScan for codes first
Rough idle, hard cold start, fuel economy downCMP sensor likelyCheck CMP codes, VVT codes
P0335 code onlyCKP sensorTest CKP circuit
P0340 code onlyCMP sensorTest CMP circuit
P0335 AND P0340 both presentCould be wiring, could be both sensorsCheck common ground and wiring first
P0016 present, sensors test electrically normalTiming chain stretchDo not replace sensors — inspect chain
P0016 AND P0011/P0012 presentVVT and timing issueTiming chain inspection priority
VVT performance symptoms, no misfire codesCMP sensor on VVT systemCheck CMP and VVT actuator

Step 1 — Scan for all codes

Pull every code present — not just the active ones. Pending codes and stored codes matter. Note whether codes are CKP-specific, CMP-specific, correlation codes, or VVT codes. This map guides the entire diagnosis.

Step 2 — Check live data during cranking

Connect a scan tool with live data capability. Monitor both the CKP RPM signal and the CMP signal simultaneously during a cranking event:

  • CKP should show RPM rising and falling with the starter
  • CMP should show a signal pattern synchronized with the CKP signal
  • A completely absent CKP reading during normal cranking = CKP sensor or wiring failure
  • A present CKP signal with absent or erratic CMP signal = CMP sensor or wiring

Step 3 — Resistance test — CKP sensor

Disconnect the CKP connector. Set multimeter to ohms. Test between signal terminals:

  • Magnetic pickup type: 500–1,500 ohms — zero or infinite = failed
  • Hall effect type: test for supply voltage (5V or 12V) at power terminal instead

Step 4 — Resistance test — CMP sensor

Disconnect the CMP connector. Set multimeter to ohms. Test between signal terminals:

  • Magnetic pickup type: 200–900 ohms — varies by manufacturer, confirm with service data
  • Hall effect type: check supply voltage at power terminal; signal output should toggle between low voltage and supply voltage as engine cranks

Step 5 — Wiring harness flex test — both sensors

With each connector disconnected and the multimeter monitoring resistance, flex and move each wiring harness along its full length. Any change in resistance reading during movement indicates a broken wire inside the insulation — causing symptoms identical to sensor failure. This test is critical for CKP sensors, which are mounted in the hottest area of the engine bay and have harnesses subject to heat cycling.

Step 6 — The hot restart test (CKP specific)

After a full warm-up drive, turn the engine off and immediately attempt a restart. If the engine won’t start hot but starts fine after 20–30 minutes of cooling — CKP heat soak is confirmed. If the engine restarts immediately after being switched off hot — CKP heat soak is not the issue for that symptom.

Step 7 — Monitor simultaneous live data during a drive

The most comprehensive home test: drive with a Bluetooth OBD adapter and live data app active. During any symptom event — rough running, hesitation, stumble — review what the CKP and CMP channels showed at the exact moment of the event. A dropout in the CKP channel during a stumble is definitive. A CMP channel anomaly during a VVT symptom event pinpoints that sensor.

Car Electrical Problems

This is a legitimate practical question — and the answer depends on the situation.

Cases where replacing both makes sense:

  • Both P0335 and P0340 are present and both sensors test at the edge of specification
  • The vehicle has over 150,000 miles and neither sensor has been replaced
  • One sensor has been confirmed failed and the other shows borderline resistance
  • The labor to access one sensor also requires removing the other — the additional parts cost is minimal compared to returning to the shop for the second replacement

Cases where replacing both is unnecessary:

  • Only one sensor has a confirmed fault and the other tests within specification
  • P0016 is present — replacing sensors won’t fix the correlation code if the timing chain is stretched
  • The failed sensor was clearly caused by a specific event (wiring damage, oil contamination) that doesn’t apply to the other sensor

Cost consideration: Sensors themselves are relatively inexpensive — $20–$100 each for most vehicles. If replacing both sensors requires the same labor access, the incremental cost of adding the second sensor is often less than $50 in additional parts. In that scenario, replacing both simultaneously is reasonable insurance.

SymptomSafe to Drive?Action
CMP code only, engine runs normallyYes, short termDiagnose within a week
Rough idle from CMP failureCautionDiagnose within a few days
VVT symptoms from CMP failureYes, short termDiagnose within 2 weeks
CKP code only, starts reliablyCaution — progressiveReplace within a week
CKP intermittent hard startNo — will worsenFix promptly
CKP stall event occurredNo — safety riskFix before next significant drive
P0016 with timing chain symptomsNo — chain damage riskDiagnose immediately
Both sensors failingNoFix immediately
Engine cranks but won’t startNoTow to shop
ServiceDIY Friendly?Average Cost
OBD scan (both sensors)Yes$0–$25
CKP sensor replacement — partsYes — intermediate$20–$100
CKP sensor replacement — shopN/A$150–$350
CMP sensor replacement — partsYes — intermediate$20–$80
CMP sensor replacement — shopN/A$100–$300
Both sensors replaced — shopN/A$200–$550
CKP relearn procedureMechanic sometimes$0–$100
CMP/VVT relearn procedureMechanic sometimes$0–$100
Wiring harness repairMechanic recommended$100–$350
Timing chain replacement (P0016)Mechanic only$800–$2,500

The key difference is severity. A completely failed crankshaft position sensor causes the engine to stop running entirely or prevents starting — the CKP signal is required for both fuel injection and ignition timing. A completely failed camshaft position sensor on most vehicles allows the engine to still run because the ECU falls back to batch injection mode. CKP failure tends to be more dramatic and safety-critical. CMP failure tends to produce subtler symptoms like rough idle, hard cold starting, and VVT issues.

On most modern vehicles with fallback injection modes, a completely failed CMP sensor does not prevent starting — the ECU switches to batch injection. However, on some vehicles without a fallback mode, particularly some European and older vehicles, complete CMP failure can cause a no-start. When a no-start occurs with a P0340 code present, testing whether the vehicle has a fallback mode is an important diagnostic step.

P0016 is a cam-crank correlation code — it means the ECU is receiving signals from both sensors but the cam position and crank position are not in the correct relationship. On most vehicles the cause is timing chain stretch rather than sensor failure. If both sensors test electrically normal but P0016 is present, do not replace the sensors — have the timing chain inspected.

The 20–30 minute restart window is the most distinctive diagnostic clue. If the engine stalls while driving and restarts normally after 20–30 minutes of cooling, the crankshaft position sensor heat soak is the cause. If the engine stalls but restarts immediately or within seconds, the CMP sensor or another cause is more likely. Scanning live data during a stall event to check which sensor’s signal dropped out provides the definitive answer.

If both sensors are original on a high-mileage vehicle, if both show borderline resistance readings, or if the labor to access one requires access to the other anyway — replacing both simultaneously is reasonable. If only one sensor has confirmed fault and the other tests within specification, replacing both is not necessary. Never replace both sensors when P0016 is the primary code — that code points to the timing chain, not the sensors.

Individual sensor replacement typically costs $100–$350 at a shop depending on the vehicle and sensor accessibility. Replacing both sensors at the same visit typically costs $200–$550. The sensors themselves cost $20–$100 each — the majority of the cost is labor, which varies significantly based on how accessible each sensor is on the specific vehicle.

Camshaft and crankshaft sensors work as a team — the ECU needs both to run the engine correctly. When either fails, the symptoms overlap enough to create diagnostic confusion. The key to avoiding expensive misdiagnosis is understanding what each sensor is actually responsible for.

The CKP sensor is more critical — it’s the primary timing reference, and its failure tends to be more dramatic. The CMP sensor failure tends to be subtler — the engine usually still runs, just not as well. And when you see P0016, stop before replacing either sensor and investigate the timing chain first.

Quick Summary:

  • CKP failure = dramatic symptoms — complete no-start, stall while driving, heat soak pattern
  • CMP failure = subtler symptoms — rough idle, hard cold start, poor fuel economy, VVT issues
  • The 20–30 minute stall-and-restart pattern = CKP heat soak, almost definitively
  • P0016 correlation code usually points to timing chain stretch — not sensor failure
  • VVT-related codes alongside CMP codes indicate modern engine VVT system issues
  • Live data monitoring during a symptom event provides the most definitive diagnosis
  • Both codes present simultaneously — check the wiring and common grounds before replacing both sensors
  • Always check whether the specific vehicle has a CMP fallback mode before concluding a no-start is CMP-related