P0335 Code — Crankshaft Position Sensor A Circuit Malfunction (Causes & How to Fix)

Fix OBD-II code P0335: Crankshaft Position Sensor A Circuit Malfunction. Step-by-step diagnosis and repair guide.

⏱️ Time30-60 minutes
📋 Severitymedium
🚗 Applies ToToyota, Honda, Ford, Chevrolet
⚠️ DTC CodeP0335
P0335 — Powertrain Ignition diagnostic guide

What Does DTC P0335 Mean?

P0335 on your Powertrain Ignition system means: The engine control module (ECM) has detected an abnormal signal from the crankshaft position sensor (CKP) circuit labeled “A.” In plain English, the computer isn’t getting a reliable reading of crankshaft speed or position, so it can’t time spark and fuel correctly.

How to Diagnose and Fix P0335 — Step by Step

  1. 1

    Visual Inspection – Loose Connections & Damaged Wiring

    Check the CKP sensor connector for corrosion, bent pins, or loose bolts. Verify that the wiring harness isn’t cracked or chafed near the engine bay.

  2. 2

    Check for Faulty Sensor Power Supply

    Using a digital multimeter, measure voltage at the sensor’s power wire with the ignition ON (engine off). Compare the reading to the service manual’s specification.

  3. 3

    Read Live Data – Crankshaft Position Signal

    Connect a scan tool, go to live data, and watch the CKP sensor’s RPM or angle signal while cranking. A flat line or erratic spikes indicate a bad sensor or wiring.

  4. 4

    Test Sensor Resistance

    Disconnect the sensor connector, set the multimeter to ohms, and measure resistance between the signal and ground terminals. Compare to the range listed in the repair manual.

  5. 5

    Replace Crankshaft Position Sensor A

    If the previous tests point to a faulty sensor, remove the old unit, install the new one, and re‑torque the mounting bolt to the specified value.

When to Call a Professional Mechanic

If the sensor tests good but the live data still shows no signal, or if you find internal wiring damage that requires soldering, have a professional diagnose the ECM or timing‑chain position.

Diagnostic Flowchart

Follow this visual guide to systematically diagnose P0335:

Quick Check – 60‑Second Diagnosis

A flashing check‑engine light paired with a rough idle is often the first clue. With a P0335 code, you can perform a rapid sanity check before pulling out tools:

  1. Turn the key to “ON” (engine off). Listen for a faint “click” from the CKP sensor—many sensors generate a small audible pulse when powered.
  2. Look at the OBD‑II scanner for any additional codes such as P0325 (CKP sensor B circuit) or P0306 (cylinder‑6 misfire). Multiple codes may point to a wiring harness problem rather than a single sensor.
  3. Visually inspect the connector for loose pins or obvious corrosion. If the plug wiggles or the pins are bent, tighten or clean it and clear the code. If the light stays on, move on to the full diagnosis.

Safety Note: Always disconnect the negative battery terminal before removing the sensor to avoid accidental short circuits or shocking the ECM.

Symptoms You’ll Notice While Driving

Understanding the real‑world impact of a bad crankshaft position sensor helps you decide how urgently to act.

SymptomWhy It Happens
Engine stalls at idleThe ECM loses the timing reference and cuts fuel to protect the engine.
Hard start or no‑start conditionWithout a CKP signal, the computer cannot fire spark; the engine may crank but never fire.
Rough idle / engine shakingErratic timing causes cylinders to fire out of sequence, producing a “shaking” sensation.
Loss of power under loadThe ECM may revert to a limp‑home mode, limiting RPMs to protect the engine.
Check‑engine light flashingA flashing CEL indicates a misfire condition, which the P0335 often triggers.
Failed emissions testIncomplete combustion from misfires can raise hydrocarbon readings, causing a fail.

If you experience any of the above, especially a stall while driving, it’s safest to pull over and have the vehicle inspected before you continue.

Root Causes – What Triggers This Code

While the sensor itself is a frequent culprit, the underlying reasons span several systems.

1. Faulty Crankshaft Position Sensor A

The sensor’s Hall‑effect or magnetic pickup can wear out, especially on high‑mileage engines (>100 k miles). Heat soak from the exhaust can also degrade the internal electronics.

2. Wiring Harness Damage

The sensor’s signal wire runs close to the engine block, the exhaust manifold, and the timing cover. Scrapes, oil leaks, or heat‑induced brittleness can cause intermittent shorts or opens.

3. Bad Connector or Corrosion

Moisture intrusion, especially in climates with heavy rain or road salt, creates corrosion on the connector pins, leading to a poor electrical path.

4. Timing‑Chain or Timing‑Belt Issues

If the mechanical timing is off (e.g., a stretched chain), the sensor will generate a signal that doesn’t match the actual crank position, prompting the ECM to flag a fault.

5. ECM Power or Ground Problems

A weak ground strap or a failing ECM power supply can make the CKP circuit appear “malfunctioning” even when the sensor is healthy.

Step‑by‑Step Diagnosis & Repair

Below is a logical progression from the simplest visual checks to the more involved sensor replacement. Follow the order; each step builds on the previous one.

Step 1 – Visual Inspection – Loose Connections & Damaged Wiring

What to do:

  • Open the hood and locate the CKP sensor (usually on the engine block near the crank pulley).
  • Disconnect the electrical connector. Look for bent pins, corrosion, or broken plastic clips.
  • Trace the wiring harness for any cracks, chafed sections, or oil stains.

Good vs. Bad:

  • Good: Connector seats firmly, pins are straight, harness is intact.
  • Bad: Loose pins, visible corrosion, or exposed wires.

Tools: Flashlight, 10 mm socket (to remove any retaining bolts), wire brush (to clean corrosion).

Why it matters: A loose connector can produce the exact “circuit malfunction” the ECM reports. Fixing this alone may clear the code.

Step 2 – Check for Faulty Sensor Power Supply

What to do:

  1. Re‑connect the sensor plug.
  2. Turn the ignition to the “ON” position (engine still off).
  3. Using a digital multimeter set to DC volts, probe the sensor’s power wire (usually a pink or red wire).
  4. Verify that you see the voltage specified by the service manual (typically battery voltage, ~12 V, when the key is on).

Good vs. Bad:

  • Good: Voltage present and stable at the specified level.
  • Bad: No voltage, or voltage drops dramatically when the engine is cranked.

Tools: Digital multimeter, OBD‑II scanner (to confirm the code is still present after this test).

Why it matters: No power means the ECM can’t read the sensor, resulting in a P0335 regardless of sensor condition.

Step 3 – Read Live Data – Crankshaft Position Signal

What to do:

  • Plug an OBD‑II scan tool into the vehicle’s data link connector.
  • Navigate to “Live Data” → “Crankshaft Position Sensor A” (often displayed as “CKP A” or “Engine RPM”).
  • Have an assistant crank the engine while you watch the graph.

Good vs. Bad:

  • Good: A smooth, steady waveform that rises proportionally with engine speed.
  • Bad: Flat line (no signal) or erratic spikes (intermittent signal).

Tools: OBD‑II scanner capable of live data (e.g., Autel MaxiCOM, BlueDriver).

Why it matters: This step tells you whether the sensor is actually sending data to the ECM. A missing signal points to sensor or wiring failure.

Step 4 – Test Sensor Resistance

What to do:

  1. With the engine off, disconnect the sensor connector again.
  2. Set the multimeter to the ohms (Ω) range.
  3. Measure resistance between the signal terminal and ground.
  4. Compare the reading to the range listed in the repair manual (often a few hundred ohms for Hall‑effect sensors).

Good vs. Bad:

  • Good: Resistance falls within the manufacturer’s specified window.
  • Bad: Open circuit (∞ Ω) or resistance far outside the spec.

Tools: Digital multimeter, 10 mm socket (to remove sensor if needed).

Why it matters: Even if the wiring looks fine, an internally failed sensor will show abnormal resistance.

Step 5 – Replace Crankshaft Position Sensor A

When to replace:

  • Resistance test fails, or
  • Live data shows no signal despite proper voltage, or
  • Visual inspection reveals physical damage to the sensor housing.

What to do:

  1. Disconnect the negative battery terminal (minimum 10 seconds).
  2. Remove any bolts or brackets holding the sensor (usually one 10 mm bolt).
  3. Pull the sensor out gently; some models have a rubber boot that may need a slight twist.
  4. Install the new sensor, torque the mounting bolt to the specification (commonly 8–12 Nm).
  5. Re‑connect the electrical plug, re‑attach the battery, and clear the code with the scanner.
  6. Start the engine and watch live data to confirm a clean, steady CKP signal.

Good vs. Bad:

  • Good: Sensor is securely mounted, torque is correct, and the live data shows a clean waveform.
  • Bad: Sensor wobbles, bolt is under‑torqued, or the code returns after a short drive.

Tools: 10 mm socket, torque wrench, OBD‑II scanner, digital multimeter (for final verification).

Can You Still Drive With This Code?

Yes, you can drive a short distance—say, to a safe location or a nearby shop—but expect rough idle, possible stalling, and reduced power. Prolonged operation risks catalytic converter damage from unburned fuel and may cause the engine to enter “limp‑home” mode, which limits speed and RPM. If the engine stalls while you’re in traffic, you could create a hazardous situation, so treat the code as urgent.

Cost Breakdown – DIY vs. Shop Repair

ItemDIY Parts Cost (USD)DIY Labor (hours)Shop Labor (hrs)Dealership Labor (hrs)Total Shop Estimate
Crankshaft Position Sensor A (OEM)$45‑$1200.5‑11.0‑1.51.5‑2.0$150‑$300 (parts + labor)
Wiring harness repair (if needed)$20‑$80 (segment)0.5‑11.0‑2.02.0‑3.0$200‑$400
Diagnostic scan tool rental (if you don’t own one)$0 (use local auto parts store)0.50.5$50‑$80

DIY Savings: By doing the visual inspection and voltage check yourself, you can often avoid a shop visit entirely. The sensor itself is the most common expense, and most DIYers can replace it in under an hour with basic hand tools.

When to spend shop money: If the wiring harness is damaged deep within the engine bay, or if the ECM itself is suspect, a professional will have the proper pull‑tools and wiring diagrams to avoid creating new problems.

Preventive Maintenance Tips

  • Inspect the sensor boot every 30 000 mi. Cracks allow moisture in, which accelerates corrosion.
  • Keep the engine bay clean of oil and coolant splashes; contaminants can eat away at connectors.
  • Check battery voltage regularly. A weak battery can cause low‑voltage spikes that confuse the CKP circuit.
  • Replace timing belts/chains at the manufacturer’s interval. A stretched belt can cause the sensor to read the wrong angle, prompting a false P0335.
  • Use dielectric grease on the sensor connector to repel moisture and improve electrical contact.

Which Vehicles Are Most Affected?

Make & ModelTypical Mileage When Code AppearsNotable Observations
Toyota Camry (2005‑2012)90‑120 k milesSensor located near the crank pulley; heat soak is common.
Honda Accord (2003‑2008)80‑110 k milesWiring harness runs under the exhaust manifold—prone to chafing.
Ford F‑150 (2009‑2014)100‑130 k milesHeavy‑duty engines often have a dual‑sensor setup; P0335 refers to sensor “A.”
Chevrolet Silverado (2010‑2015)95‑125 k milesEarly‑model sensors are Hall‑effect; later models switched to magnetic pickup.

If you own one of the above, prioritize the visual and wiring checks early in the diagnostic process.

Frequently Asked Questions

Can I drive with P0335? Yes, but only for a short distance. Expect rough idle, possible stalling, and reduced power. Prolonged driving can damage the catalytic converter and may cause a failed emissions test.

How do I fix code P0335? Start with a visual inspection of the connector and wiring, verify sensor power voltage, read live CKP data, test sensor resistance, and replace the sensor if any test fails. Clear the code and re‑test.

How long can I drive with a P0335 code? Ideally no more than a few miles to a safe repair location. If the engine stalls repeatedly, stop driving immediately.

How much does it cost to fix a P0335 code? DIY sensor replacement typically costs $45‑$120 for the part plus a few dollars for tools. A shop will charge $150‑$300 total, while a dealership may bill $200‑$400.

How to fix a P0335 code? Follow the step‑by‑step guide above: inspect, test voltage, read live data, check resistance, then replace the sensor if needed.


By systematically working through the checks outlined here, you’ll either resolve the P0335 code yourself or have concrete evidence to give a professional technician, saving time and money. Remember: a healthy crankshaft position sensor keeps your engine’s timing tight, your power smooth, and your emissions clean. Safe repairs!

Related Powertrain Ignition DTC Codes

🚗 Is Your Check Engine Light Serious?

Use our free AutoDiag Pro tool to instantly check code severity, get fair repair pricing, and decide whether to fix or sell — no mechanic visit needed.

Check Code Severity Free →

Related Diagnostic Guides

These guides cover similar issues you might find helpful:

🚗 Is Your Check Engine Light Serious?

Use our free AutoDiag Pro tool to instantly check code severity, get fair repair pricing, and decide whether to fix or sell — no mechanic visit needed.

Check Code Severity Free →

Published: · Updated: · By Rachel Kim · Reviewed by Tom Kowalski

This guide is for informational purposes only. Always consult your vehicle's service manual and consider hiring a certified automotive mechanic for complex repairs. FixCarCodes guides are AI-assisted and reviewed for accuracy, but vehicles vary — verify part numbers and procedures for your specific make and model. Learn about our editorial process.