OBD-II Generic Error Code P0339: How to Fix It

Medium 1-2 hours High Severity Verified July 2026
Error Code
P0339
Brand
OBD-II Generic
Product Type
automotive
Severity
High
DIY Difficulty
Medium
Estimated Fix Time
1-2 hours
Error code P0339 indicates that your vehicle's crankshaft position sensor A is sending intermittent signals to the engine control module (ECM). This sensor is crucial for proper engine timing and fuel injection, and when it fails intermittently, you may experience engine stalling, rough idling, or difficulty starting your vehicle.
Ad

Tools You'll Need

How to Fix Error Code P0339

  1. Turn off engine and ensure safety

    Never work on a hot engine. Wait for it to cool completely to avoid burns.
  2. Connect OBD-II scanner and verify code

  3. Locate the crankshaft position sensor

  4. Inspect wiring and connections

  5. Clean the sensor and connections

    Disconnect the negative battery terminal before disconnecting any electrical connectors to prevent electrical damage.
  6. Test sensor resistance

  7. Check sensor gap and alignment

  8. Replace sensor if faulty

    Do not overtighten the sensor mounting bolt as this can damage the sensor housing.
  9. Clear codes and test drive

Parts You May Need

Crankshaft position sensor
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Crankshaft position sensor
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Crankshaft position sensor
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Crankshaft position sensor
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Crankshaft position sensor
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Crankshaft position sensor
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Ad

When to Call a Professional

Call a professional mechanic if you're uncomfortable working with electrical components, if the sensor is located in a difficult-to-reach area requiring engine component removal, if multiple related codes are present indicating a more complex issue, or if the problem persists after sensor replacement.

Frequently Asked Questions

What are the symptoms of a P0339 error code?
Common symptoms include engine stalling, rough idling, difficulty starting, reduced fuel economy, engine misfires, and intermittent loss of power. The check engine light will also be illuminated.
Can I drive with a P0339 code?
While you may be able to drive short distances, it's not recommended. The intermittent sensor signal can cause unpredictable engine behavior, including sudden stalling, which can be dangerous. Address the issue as soon as possible.
How much does it cost to fix a P0339 code?
If it's just the sensor, replacement typically costs $50-150 for the part plus 1-2 hours of labor. Total repair costs usually range from $150-400, depending on your vehicle and local labor rates.
What causes a crankshaft position sensor to fail intermittently?
Common causes include worn sensor windings that break down when heated, oil contamination on the sensor or connector, damaged wiring harness, loose connections, or debris interfering with the sensor's magnetic field.
How long do crankshaft position sensors typically last?
Crankshaft position sensors typically last 100,000-150,000 miles under normal conditions. However, exposure to heat, oil, and vibration can cause premature failure, especially in high-mileage vehicles.