Porsche Error Code P0345: How to Fix It

Medium 45-90 minutes Medium Severity Verified June 2026
Error Code
P0345
Brand
Porsche
Product Type
automotive
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
45-90 minutes
The P0345 error code in your Porsche indicates a problem with the camshaft position sensor on bank 2 of your engine. This sensor helps the engine control unit monitor camshaft timing, and when it malfunctions, you may experience rough idling, poor acceleration, or difficulty starting your vehicle.
Ad

Tools You'll Need

How to Fix Error Code P0345

  1. Connect OBD2 scanner and verify the code

    Ensure the engine is completely cool before beginning any diagnostic work.
  2. Locate the camshaft position sensor on bank 2

    Never work on the engine while it's running or hot. Allow at least 30 minutes for cooling after driving.
  3. Inspect the sensor wiring and connector

  4. Test sensor resistance with multimeter

    Disconnect the battery negative terminal before testing electrical components to prevent damage.
  5. Check sensor mounting and timing wheel

    Be careful not to drop the mounting bolt into the engine bay.
  6. Clean or replace the sensor

    Only use OEM or high-quality aftermarket sensors to ensure proper engine timing detection.
  7. Reinstall and test

  8. Clear codes and road test

    If the code returns immediately or the engine runs poorly, stop driving and consult a professional.

Parts You May Need

Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
Ad

When to Call a Professional

Contact a qualified Porsche technician if the error code returns after sensor replacement, if you discover timing chain issues, if the engine has severe performance problems, or if you're uncomfortable working with engine timing components. Professional diagnosis may be needed for internal engine timing problems.

Frequently Asked Questions

What causes Porsche P0345 error code?
P0345 is typically caused by a faulty camshaft position sensor, damaged sensor wiring, timing chain stretch, or issues with the camshaft reluctor wheel. Oil contamination on the sensor is also a common cause in Porsche engines.
Can I drive my Porsche with P0345 code?
You can drive short distances with P0345, but avoid extended driving. The engine may experience rough idling, reduced power, and poor fuel economy. Continuing to drive may cause additional engine damage or leave you stranded.
How much does it cost to fix P0345 on a Porsche?
DIY repair costs $50-150 for a new camshaft position sensor. Professional repair typically costs $200-500 depending on labor rates and whether additional timing components need replacement.
Is P0345 the same as P0340 on Porsche?
No, P0340 refers to camshaft position sensor issues on bank 1, while P0345 specifically indicates problems with the bank 2 camshaft position sensor. The diagnostic and repair procedures are similar but involve different sensor locations.
How often should I replace Porsche camshaft position sensors?
Camshaft position sensors don't have a specific replacement interval but typically last 80,000-120,000 miles. Replace them when they fail or show signs of oil contamination during regular maintenance.