P0345 Code — Camshaft Position Sensor A Circuit Malfunction (Bank 2) – Causes, Diagnosis & Repair
Step‑by‑step guide for OBD‑II DTC P0345. Learn how to test the camshaft‑position sensor, wiring, and timing on bank 2, plus cost estimates and emissions impact.
What Does DTC P0345 Mean?
P0345 on your Powertrain Ignition system means: The ECM does not receive a valid voltage signal from Camshaft Position Sensor A on bank 2, preventing accurate fuel‑injection and spark timing.
How to Diagnose and Fix P0345 — Step by Step
- 1
Visual inspection of connectors and wiring
Open the hood, locate the CMP sensor A on bank 2 (usually near the camshaft gear). Pull the electrical plug, look for corrosion, cracked insulation, or loose pins. Wiggle the harness; any intermittent contact points to a wiring problem.
- 2
Scan live data for sensor voltage
Connect an OBD‑II scanner that shows live data. Select the Camshaft Position Sensor A (Bank 2) voltage PID. At idle the voltage should swing smoothly between about 0.5 V and 4.5 V. A flat line or constant 5 V means the sensor or its circuit is faulty.
- 3
Resistance test of the sensor
Turn the ignition OFF and disconnect the negative battery terminal. Remove the sensor, set a digital multimeter to Ω, and measure between the signal wire and ground. A healthy sensor reads roughly 500 Ω – 2 kΩ. Values outside this window indicate an internal short or an open coil.
- 4
Check camshaft timing alignment
If the sensor checks out, verify that the timing belt or chain aligns with the factory marks. Use a timing‑mark tool or the service manual for your model. Even a one‑tooth slip can cause erratic sensor voltage and trigger P0345.
- 5
Replace Camshaft Position Sensor A (Bank 2)
Install the new sensor, torque the mounting bolt to the manufacturer’s spec (usually 8‑12 Nm). Re‑seat the connector, double‑check the harness, and reconnect the battery.
- 6
Clear the code and verify
Use the scanner to erase P0345. Start the engine, watch live voltage for a few minutes, then take a short test drive. If the waveform stays normal and no new codes appear, the repair is complete.
When to Call a Professional Mechanic
If the sensor and wiring test good but the code returns after replacement, a full ECM diagnostic or timing‑component inspection by a qualified technician is required.
Diagnostic Flowchart
Follow this visual guide to systematically diagnose P0345:
Your check‑engine light just lit up and the scanner shows P0345 – Camshaft Position Sensor A Circuit Malfunction (Bank 2)
Drivers of Toyota, Honda, Ford, Chevrolet, Nissan and many other makes see this code when the engine’s computer cannot read a clean signal from the camshaft‑position sensor on the second bank of cylinders. The following guide walks you through the most common reasons, how to confirm each one, and what it will cost to fix.
Typical Symptoms While Driving
| Symptom | Why it Happens |
|---|---|
| Rough idle or engine shake | The ECM cannot time spark correctly, so cylinders fire out of sync. |
| Misfire on one side of the engine | Bank 2 loses cam‑shaft timing data, causing a cylinder‑specific misfire. |
| Loss of power during acceleration | Fuel‑injection timing is retarded to protect the engine. |
| Check‑engine light stays on | The fault remains stored until the code is cleared. |
| Possible emissions‑test failure | Incomplete combustion raises HC and CO levels. |
If you notice any of these, P0345 is a strong suspect, but you still need to verify it with proper diagnostics.
What Usually Triggers P0345?
The ECM watches the voltage from Camshaft Position Sensor A on bank 2. Anything that blocks a clean, varying signal will set the code. The most frequent culprits are:
- Corroded or loose connector – water or vibration can break the plug.
- Damaged wiring harness – chafed insulation or a short to ground.
- Failed sensor – worn coil or magnet stops voltage generation.
- Incorrect camshaft timing – a slipped belt or chain makes the sensor read out‑of‑range.
- Rare ECM software glitch – a reflash may be needed.
Quick 60‑Second Check
- Pull the connector from the CMP sensor on bank 2. Look for moisture, bent pins, or broken clips.
- Wiggle the harness while the key is ON; if the check‑engine light flickers, you have a wiring issue.
- Scan live data (see Step 2 below). A flat voltage reading is an instant red flag.
If any of these three checks fail, you can often correct the problem without deeper investigation.
Safety Checklist Before You Begin
- Disconnect the negative battery terminal to avoid accidental shorts.
- Allow the engine to cool at least 15 minutes; hot exhaust components can cause burns.
- Use jack stands if you must lift the vehicle; never rely on a jack alone.
- Avoid fuel‑system spray – keep open flames and sparks away from the fuel rail and injectors.
Step‑by‑Step Diagnosis & Repair
1. Visual Inspection of Connectors and Wiring
Good: Clean pins, snug clip, intact insulation. Bad: Corrosion, cracked wires, loose pins.
Tools: Flashlight, 10 mm socket, wire brush.
2. Scan Live Data for Sensor Voltage
Good: Voltage swings smoothly between ~0.5 V and 4.5 V as the engine revs. Bad: Constant 0 V, constant 5 V, or erratic spikes.
Tools: OBD‑II scanner with live‑data (e.g., BlueDriver, Autel MaxiCOM).
3. Resistance Test of the Sensor
Good: 500 Ω – 2 kΩ measured between signal wire and ground. Bad: Open circuit (∞ Ω) or very low resistance (<100 Ω) indicating a short.
Tools: Digital multimeter, battery disconnect tool.
4. Verify Camshaft Timing Alignment
Good: Timing marks line up exactly as the service manual specifies. Bad: Marks are off by even one tooth, showing a slipped belt/chain.
Tools: Timing light (if applicable), socket set, service manual.
5. Replace Camshaft Position Sensor A (Bank 2)
Good: New sensor installed, mounting bolt torqued to 8‑12 Nm, connector seated firmly. Bad: Sensor installed crooked, torque too high (may crack the housing).
Tools: New CMP sensor A (OEM or high‑quality aftermarket), torque wrench, 10 mm socket.
6. Clear the Code and Verify
Good: No P0345 after a 2‑minute drive, live data shows normal voltage pattern. Bad: Code returns, or voltage remains abnormal.
Tools: OBD‑II scanner.
If the code persists after sensor replacement, the problem may lie in the timing components or the ECM itself. At that point, a professional diagnostic is advisable.
Advanced Diagnostics (When Basic Steps Fail)
| Test | Purpose | Typical Result |
|---|---|---|
| Oscilloscope waveform | Shows exact voltage shape and frequency. | Clean, regular waveform → sensor OK; jagged or missing pulses → wiring or timing issue. |
| Fuel‑trim analysis | Determines if the ECM is compensating for a weak sensor. | Large short‑term fuel trim (>10 %) suggests sensor signal loss. |
| PCM reflash | Clears rare software bugs that misinterpret sensor data. | Reflash followed by a test drive; code should not return. |
These tests require specialized equipment, so consider a shop that offers them if you reach this stage.
Cost Breakdown (DIY vs. Professional)
| Item | DIY Parts Cost | DIY Labor (time) | Shop Labor (hourly) | Dealership Estimate |
|---|---|---|---|---|
| Camshaft Position Sensor A (Bank 2) | $20‑$80 (OEM or quality aftermarket) | 30‑45 min | $80‑$130 per hour | $120‑$250 |
| Wiring harness repair (connector, tape) | $10‑$30 | 15‑30 min | $80‑$130 per hour | $150‑$300 |
| Timing belt or chain (if slipped) | $50‑$150 (belt) / $120‑$250 (chain) | 1‑2 hrs | $100‑$150 per hour | $300‑$600 |
| Diagnostic scan (if you lack a scanner) | $0 (free at many auto‑parts stores) | — | $50‑$100 | $100‑$150 |
| Total DIY | $30‑$260 | ≈1 hour | — | $300‑$800 |
Note: Prices vary by region, vehicle model, and whether you choose OEM or aftermarket parts. The sensor itself is the most common expense; most owners resolve P0345 for under $150 total.
Vehicle‑Specific Notes
| Brand | Typical Sensor Location (Bank 2) | Torque Spec |
|---|---|---|
| Toyota | Behind the valve cover on the right side; accessible after removing the cover. | 9 Nm |
| Honda | Mounted on the front of the cylinder head, near the camshaft gear. | 8 Nm |
| Ford | On the intake side of the head, behind the spark‑plug wires. | 10 Nm |
| Chevrolet | Near the rear of the head, often hidden by the fuel rail. | 9 Nm |
| Nissan | On the side of the head, directly above the camshaft sprocket. | 8 Nm |
Consult the specific service manual for exact bolt locations and any required cam‑shaft‑cover removal steps.
Emissions Impact & Test Failure
A malfunctioning camshaft‑position sensor causes uneven combustion, which raises hydrocarbon (HC) and carbon‑monoxide (CO) emissions. Many state smog programs will reject a vehicle that shows:
- HC > 300 ppm at idle
- CO > 2.0 %
Fixing P0345 usually brings emissions back within legal limits, especially after the sensor is replaced and the engine runs a short warm‑up cycle.
Fuel‑Economy Consequences
When the ECM cannot time spark correctly, it often retards ignition and enriches the fuel mixture to protect the engine. Expect:
- 2‑5 % drop in MPG on highway driving.
- Higher exhaust‑gas temperature, which can stress the catalytic converter over time.
Resolving the code restores normal fuel mapping and improves mileage.
Preventive Maintenance Checklist
- Inspect the sensor harness every 30 000 mi – heat and oil can degrade insulation.
- Replace the timing belt at the manufacturer’s interval (usually 60‑100 000 mi).
- Clean connector pins with electrical contact cleaner during regular service.
- Run a live‑data scan after any major repair to catch early sensor drift.
Can You Still Drive With P0345?
Yes, the vehicle will continue to run, but you should:
- Keep trips short (under 30 minutes) until the fault is cleared.
- Avoid heavy loads or towing, which demand full engine power.
- Monitor fuel consumption; a sudden rise signals the fault is still active.
Driving with a persistent P0345 can also cause the catalytic converter to overheat, potentially leading to a costly replacement.
Related DTC Pages (Internal Links)
- P0402 – Exhaust Gas Recirculation (EGR) Flow Insufficient
- P0411 – Secondary Air Injection (SAI) Pump Circuit Malfunction
- P0336 – Crankshaft Position Sensor A Circuit Malfunction
- P0341 – Camshaft Position Sensor A Circuit Range/Performance
- P0340 – Camshaft Position Sensor A Circuit
Frequently Asked Questions
Can I drive with a P0345 code? You can, but the engine will idle rough, lose power, and may fail an emissions test. Limit driving until the issue is fixed.
What is the first thing I should check? Start with a visual inspection of the connector and wiring, then scan live voltage. Those two steps resolve most cases.
How do I replace the sensor on a 2010 Ford F‑150? Remove the valve cover, locate the sensor on the front of the cylinder head, disconnect the plug, unbolt the sensor, install the new unit, torque to 9 Nm, reconnect the plug, and reinstall the cover.
What does a resistance reading of 300 Ω mean? It is below the typical 500 Ω‑2 kΩ range, indicating the sensor coil may be shorted. Replace the sensor.
Will fixing P0345 improve my fuel economy? Yes. Restoring proper cam‑shaft timing lets the ECM run the optimal spark and fuel map, usually returning the lost 2‑5 % MPG.
Bottom Line
P0345 is a medium‑severity fault that most DIY‑savvy owners can resolve with a few basic tools and a reliable OBD‑II scanner. Follow the six‑step process—visual inspection, live‑data check, resistance test, timing verification, sensor replacement, and code clearance—to either fix the problem yourself or identify a deeper issue that warrants professional attention. Prompt repair restores smooth idle, full power, and keeps your car passing emissions tests. Happy troubleshooting!
Related Articles
- P0400 Code — Exhaust Gas Recirculation (EGR) Flow Malfunction (Causes & How
- P0401 Code — EGR Flow Insufficient Detected (Causes & How to Fix)
- P0402 Code: Fix Excessive EGR Flow (DIY Guide)
- P0410 Code — Secondary Air Injection System Malfunction (Causes, Diagnosis
- P0411 Code: Fix Secondary Air Injection Flow Issue
Related Powertrain Ignition DTC Codes
Related Diagnostic Guides
These guides cover similar issues you might find helpful:
- Powertrain Ignition P0300 — The engine control module has detected that one or more cylinders are misfiring,…
- Powertrain Ignition P0301 — The engine control module sensed that cylinder 1 failed to fire at the proper ti…
- Powertrain Ignition P0302 — The engine control module has measured a drop in combustion pressure in cylinder…
- Powertrain Ignition P0303 — The engine control module has sensed that cylinder 3 is not completing its combu…
- Powertrain Ignition P0304 — The engine control module has sensed that cylinder 4 is not completing its combu…
- Powertrain Ignition P0305 — The powertrain control module has recorded that cylinder 5 fails to complete its…
Published: · Updated: · By Dave Morrison · 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.