Loading

What is the code for the crankshaft position sensor on a Ford?

In Ford vehicles, the most common OBD-II trouble code linked to the crankshaft position sensor is P0335 (Crankshaft Position Sensor A Circuit). Other related fault codes you might see include P0336, P0337, P0338, and P0339, depending on the fault condition and engine design. These codes point to issues with the sensor circuit or the signal rather than the sensor itself necessarily.


Common crankshaft position sensor codes


Ford and other manufacturers use a family of codes to indicate issues with the crankshaft position sensor circuit A and related sensing. The following codes are the most frequently reported for crankshaft position sensor faults.



  • P0335 — Crankshaft Position Sensor A Circuit

  • P0336 — Crankshaft Position Sensor A Circuit Range/Performance

  • P0337 — Crankshaft Position Sensor A Circuit Low Input

  • P0338 — Crankshaft Position Sensor A Circuit High Input

  • P0339 — Crankshaft Position Sensor A Circuit Intermittent


These codes cover a range of electrical and signal conditions—from a simple loose connector to a failing sensor or damaged wiring—that can affect how the engine computer reads the crankshaft position signal.


How to diagnose and what to check


Before you start replacing parts, use a structured diagnostic approach. The steps outlined here help distinguish sensor faults from wiring or ECM issues.



  1. Check for stored DTCs and freeze-frame data with an OBD-II scanner to confirm the specific code and engine conditions.

  2. Inspect the wiring harness and connectors at the crankshaft position sensor for corrosion, loose pins, or damaged insulation.

  3. Inspect the sensor grounding and the reluctor wheel/ring alignment for physical damage or debris.

  4. Test the sensor signal with a multimeter or oscilloscope if available, and verify the reference voltage (often 5V) and ground.

  5. Check for corresponding PCM/ECU updates or Ford service bulletins that relate to crankshaft sensing for your model year.

  6. Replace the sensor if the wiring tests pass but the fault persists, or if the sensor is physically damaged or providing inconsistent readings.


Note that intermittent codes or high-input/low-input codes can stem from a poor connector, a damaged harness, or a failing sensor. In some Ford engines, a failed sensor can cause misfires or a no-start condition, so addressing the root cause quickly is important.


Additional notes for Ford owners


Ford uses the same base OBD-II codes across many models, but exact symptoms, service bulletins, and part numbers can vary by engine family, model year, and region. If the code persists after basic wiring checks, consult Ford's factory service information or a dealer with access to Ford IDS for model-specific testing procedures and the correct replacement sensor part number.


Summary


The most common crankshaft position sensor code on Ford vehicles is P0335, with related codes P0336 through P0339 covering different circuit conditions. Diagnosing involves checking wiring, connectors, sensor health, and engine data, then replacing the sensor or repairing wiring as needed. Always verify codes with your exact model-year and engine family in Ford’s service literature or a capable scanner.

What code will a bad crankshaft sensor throw?


If you're getting trouble code P0335 P0336 P0337 P0338 P0339 p0385 P0386 P0387 P0388 P0389 it is a sign there is an issue with the crankshaft position sensor, circuit or other issues.



Is a P0336 code serious?


Also, when a problem with the crankshaft position sensor goes unaddressed for an extended period of time, it is possible to damage other engine components. For this reason, the P0336 trouble code is considered serious.



How serious is a P0335 code?


Driving with the P0335 error code is not recommended because it can cause your vehicle to stall unexpectedly or fail to start. A malfunctioning crankshaft position sensor can also lead to misfires or poor fuel economy, potentially damaging the engine over time.



How do I fix code P0335?


To fix a P0335 code, first inspect the crankshaft position sensor's wiring, connector, and the sensor itself for damage or loose connections. If the wiring is intact, the most likely fix is to replace the crankshaft position sensor, as this is a common failure point. If neither of those resolve the issue, check for other causes like a blown fuse, a contaminated sensor due to leaks, or an issue with the engine control unit (ECU). 
1. Inspect the sensor and wiring 

  • Locate the sensor: Find the crankshaft position sensor, which is usually at the bottom of the engine block near the crankshaft pulley. 
  • Check the connector: Ensure the connector is securely plugged in and that the locking tab is not broken. 
  • Inspect the wiring: Look for any signs of damage, such as cuts, fraying, or corrosion. 
  • Check for contamination: See if any engine oil has leaked onto the sensor or connector. 
  • Inspect the timing belt: A failing timing belt can shed debris that affects the sensor. 

2. Test and replace the sensor 
  • If the wiring and connector look good, replace the crankshaft position sensor. 
  • After replacement, you may need to perform a "relearn" procedure for the new sensor to be recognized by the vehicle's computer. This can sometimes be done by simply driving the vehicle or with a specific scan tool. 

3. Investigate other possible issues
  • Check for blown fuses: If the wiring is good, check for any blown fuses related to the sensor's circuit. 
  • Test the ECU: In rare cases, the issue could be with the engine control unit itself, especially if there is water damage to the ECU connector. 

This video demonstrates how to diagnose and fix the P0335 code by inspecting the sensor and wiring: 57sCarnivautoYouTube · Aug 13, 2025
4. Clear the code 
  • After performing the repair, use an OBD II scanner to clear the code.
  • Restart the car and take it for a test drive to confirm the code does not reappear. 


Kevin's Auto

Kevin Bennett

Company Owner

Kevin Bennet is the founder and owner of Kevin's Autos, a leading automotive service provider in Australia. With a deep commitment to customer satisfaction and years of industry expertise, Kevin uses his blog to answer the most common questions posed by his customers. From maintenance tips to troubleshooting advice, Kevin's articles are designed to empower drivers with the knowledge they need to keep their vehicles running smoothly and safely.