Home › Repair Guides › Replace a Cam or Crank Position Sensor
Medium
Replace a Cam or Crank Position Sensor
Stalling, no-start or codes P0335 / P0340 often point to one of these sensors.
⏱ Time: 30 min–2 hrs💰 Save $100–300 vs. a shop🧰 3 tools
▶ Watch the video
⚠️ Safety first
Disconnect the negative battery cable. Crank sensors are often low near the transmission; support the car on jack stands if you go underneath.
Tools you'll need
Parts
Step by step
- Confirm the code and which sensor it names (cam sensors may be numbered by bank).
- Disconnect the negative battery cable.
- Find the sensor. Cam sensors are usually on the cylinder head or timing cover; crank sensors are near the front pulley or where the engine meets the transmission.
- Unplug the connector, remove the bolt and twist the sensor out gently.
- Lightly oil the new sensor's O-ring, install it, and torque the bolt to spec.
- Reconnect the connector and battery, clear the codes and test-drive.
- Some vehicles need a crank position relearn with a scan tool. Check your manual if a code returns.
Pro tip
Inspect the connector and wiring for oil or damage. A bad connection causes the same codes as a bad sensor.
Related check engine codes
P0335Crankshaft position sensor A circuitP0336Crankshaft position sensor A range/performanceP0340Camshaft position sensor A circuit (Bank 1)P0341Camshaft position sensor A range/performance (Bank 1)P0345Camshaft position sensor A circuit (Bank 2)
Want this guide printable?
The DIY Maintenance Pack has this checklist and 25 more, plus a maintenance schedule, seasonal checklists and a service log, in one 53-page PDF for $6.99.
Get the pack for $6.99More repair guides
Replace Front Brake Pads1–2 hrs · save $150–300Replace Spark Plugs1–2 hrs · save $100–250Replace Rear Brake Pads1–2 hrs · save $150–300Replace Brake Rotors1–2 hrs per axle · save $150–350Replace a Valve Cover Gasket1–3 hrs · save $150–350Replace an ABS Wheel Speed Sensor30–60 min · save $100–250
This guide is general information. Procedures, fluid types and torque specs vary by vehicle; check your owner's manual or a repair manual for your exact vehicle. If you're unsure about any step, see a certified mechanic.