OBD-II trouble code · Powertrain (engine and transmission)

P0017 Crankshaft Position - Camshaft Position Correlation Bank 1 Sensor B

The engine computer noticed the crankshaft and the bank 1 'B' camshaft (often the exhaust cam) aren't lined up the way they should be. This can point to a sensor problem or to the timing chain or belt being stretched or slipped.

SeverityHigh
Safe to drive?Drive gently only as far as needed to get it diagnosed, because a jumped or stretched timing chain or belt can fail and cause serious engine damage; stop if you hear rattling, the engine runs badly, or the check-engine light flashes.

My crankshaft and my bank 1 'B' cam aren't keeping step anymore. That can be a cheap sensor or a tired timing chain, so let's find out before something slips for real.

— FRED, speaking as your car

What P0017 means

The PCM compares signals from the crankshaft position sensor and the camshaft position sensor to confirm the two shafts stay in a fixed relationship. P0017 sets when the bank 1 sensor B camshaft signal is out of its expected alignment with the crankshaft signal beyond a calibrated limit. Causes range from a faulty sensor or variable valve timing problem to a stretched timing chain, a jumped tooth, or a damaged reluctor ring. Which cam is 'B' and where bank 1 sits varies by make, so confirm with service information for your engine.

Common symptoms

  • Check-engine light on
  • Rattling or chain noise, especially at startup
  • Hard starting or long cranking
  • Rough idle or misfires
  • Reduced power
  • Stalling

Likely causes (most likely first)

  1. Stretched timing chain or worn guides and tensioner
  2. Timing belt or chain jumped a tooth
  3. Faulty camshaft position sensor B (bank 1)
  4. Variable valve timing phaser or solenoid fault
  5. Low or wrong-viscosity engine oil
  6. Damaged reluctor or tone ring on the cam or crank
  7. Faulty crankshaft position sensor

What you can check yourself

  1. Scan for other codes; cam or VVT codes alongside P0017 help narrow the cause
  2. Check oil level and condition and confirm the right viscosity
  3. Listen at cold start for chain rattle that fades as oil pressure builds
  4. Inspect the cam and crank sensor connectors and wiring for damage or oil contamination
  5. With a capable scanner, compare live cam/crank correlation or cam angle data if your adapter shows it
  6. If you have records, note mileage since the last timing belt service

FRED reads freeze frame and live data, so you can see what the engine was doing when P0017 set, before you buy any parts.

Typical repair costs

RepairTypical range
Oil change with correct-spec oil$50–$120
Replace camshaft position sensor$100–$300
Replace VVT solenoid or cam phaser$200–$1,500
Timing chain or belt replacement with guides and tensioner$800–$3,000

Typical US independent-shop ranges, parts and labor. Your price varies by vehicle, region and shop.

Get a second opinion from your own car. Plug a $15–30 OBD-II adapter into the port under your dash, open FRED and ask “Fred, what are my codes?” Get the free beta →
Which adapter?

P0017 FAQ

No. It can be a sensor, a VVT component, or oil related. But timing chain stretch is a common cause on higher-mileage engines, so it should be ruled in or out properly.
Only if the sensor is actually the problem. If timing is physically off, a new sensor will just report the same misalignment.

Related codes