Mazda Error Code P1345: How to Fix It

Medium 1-2 hours High Severity Verified June 2026
Error Code
P1345
Brand
Mazda
Product Type
automotive
Severity
High
DIY Difficulty
Medium
Estimated Fix Time
1-2 hours
Mazda error code P1345 indicates that your engine control module (ECM) is not receiving a signal from the camshaft position sensor. This sensor is critical for proper engine timing and fuel injection, so this error can cause rough idling, poor performance, or prevent your vehicle from starting.
Ad

Tools You'll Need

How to Fix Error Code P1345

  1. Turn off engine and ensure safety

    Always disconnect the battery before working on electrical components to prevent injury or damage to the ECM.
  2. Connect OBD2 scanner and verify code

  3. Locate the camshaft position sensor

  4. Inspect wiring and connector

  5. Test sensor with multimeter

    Be careful around moving engine parts when testing with engine running.
  6. Remove and replace sensor if faulty

  7. Clear codes and test drive

Parts You May Need

Camshaft position sensor
Check Price on Amazon
OBD2 code reader
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
OBD2 code reader
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
OBD2 code reader
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
OBD2 code reader
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
OBD2 code reader
Check Price on Amazon
Electrical contact cleaner
Check Price on Amazon
Camshaft position sensor
Check Price on Amazon
OBD2 code reader
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 around the engine, if multiple codes are present indicating broader timing issues, if the problem persists after sensor replacement, or if you suspect timing chain or belt problems. Internal engine timing issues require specialized tools and expertise.

Frequently Asked Questions

Can I drive with Mazda error code P1345?
It's not recommended to drive with P1345 as it can cause engine misfires, poor performance, and potential engine damage. The vehicle may run rough or stall unexpectedly, creating safety risks.
How much does it cost to fix P1345 on a Mazda?
DIY repair typically costs $50-150 for a new camshaft position sensor. Professional repair can range from $200-400 including parts and labor, depending on sensor location and accessibility.
What causes Mazda P1345 error code?
P1345 is usually caused by a faulty camshaft position sensor, damaged wiring harness, corroded electrical connections, or rarely, timing chain/belt issues affecting the camshaft's relationship to the crankshaft.
How do I know if my camshaft position sensor is bad?
Common symptoms include rough idling, engine misfires, difficulty starting, reduced power, poor fuel economy, and the check engine light. You can confirm with an OBD2 scanner and multimeter testing.
Will P1345 clear itself on Mazda vehicles?
No, P1345 will not clear itself. The underlying problem must be fixed and the code manually cleared with an OBD2 scanner. The error will return if the root cause isn't addressed.