OBD-II Code P0345: Camshaft Position Sensor 'A' Circuit Malfunction (Bank 2)
The ultimate guide to what P0345 means, why it triggers, and how to fix it for good.
- P0345 indicates a total loss or corruption of the Bank 2 camshaft position signal, instantly disabling the engine's variable valve timing.
- Driving with P0345 carries a 100% risk of sudden engine stalling in traffic, making immediate diagnosis mandatory for safety.
- Always test the alternator for AC ripple voltage exceeding 500mV before replacing parts, as failing diodes frequently trigger false P0345 codes on Ford vehicles.
- Never install generic aftermarket camshaft sensors; spend the extra $40-$80 for genuine OEM parts (like Hitachi or Denso) to prevent immediate repeat failures.
What Does P0345 Mean?

Code P0345 means the Powertrain Control Module (PCM) detects an electrical circuit failure for the camshaft position sensor 'A' on engine bank 2. This sensor tracks the exact rotational position of the camshaft to dictate ignition timing and fuel injector sequencing. Bank 2 is the side of a V-type or boxer engine that does not contain cylinder #1. Without this signal, the PCM cannot time combustion events, causing immediate drivability failures.
Technical definition: Camshaft Position Sensor 'A' Circuit Malfunction (Bank 2). The PCM sets this DTC when it receives no signal, or an implausible, intermittent, or incorrect signal from the bank 2 camshaft position sensor.
Can I Drive With P0345?

No — Do Not Drive. Do not drive with an active P0345 code. The engine stalls without warning at any speed, creating a severe accident risk in traffic. Continuing to drive with active misfires dumps unburnt fuel into the exhaust, destroying the catalytic converter and adding $800-$2,500 to your repair bill. Tow the vehicle or repair it immediately.
Common Causes

- Failed Camshaft Position Sensor (Bank 2) (Very Common) — Internal electronic components fail due to prolonged heat and vibration, causing a complete loss of signal.
- Low or Dirty Engine Oil (VVT Systems) (Common) — Engines with Variable Valve Timing (VVT) use oil pressure to adjust cam timing. Low oil or sludge prevents phasers from adjusting, creating a timing discrepancy that triggers P0345.
- Wiring Harness or Connector Damage (Common) — Wires fray from abrasion, melt from exhaust heat, or suffer rodent damage. Connector pins corrode, causing an open circuit or intermittent connection.
- Faulty/Cheap Aftermarket Sensor (Common) — Generic aftermarket sensors frequently fail shortly after installation or are dead-on-arrival. Always use OEM parts.
- Stretched Timing Chain or Failed Phasers (Less Common) — A worn timing chain, failed tensioner, or broken guides push the camshaft out of sync with the crankshaft. The PCM detects this correlation error.
- Alternator AC Ripple (Electrical Noise) (Rare) — A failing alternator diode introduces AC ripple into the DC electrical system. This noise disrupts the sensitive cam sensor signal. (Common on Ford 4.6L/5.4L per TSB 06-19-12).
- Damaged Reluctor Ring (Rare) — The toothed wheel the sensor reads is physically damaged, covered in sludge, or has slipped, generating an incorrect signal.
- Weak Battery or Failing Starter (Rare) — A weak battery causes a massive voltage drop during cranking, disrupting the cam sensor's signal long enough to set a code during startup.
- Faulty Powertrain Control Module (PCM) (Very Rare) — The internal PCM driver circuit that processes the cam signal fails. Rule out all other possibilities before replacing the PCM.
Symptoms
- Check Engine Light is On — Illuminates immediately when the PCM detects the circuit malfunction.
- Engine is Hard to Start or Won't Start — The engine cranks for an extended period because the PCM lacks the camshaft data needed to time spark and fuel for startup.
- Rough Idle, Stalling, and Misfiring — The engine shakes at idle, misfires on Bank 2 cylinders, and stalls unexpectedly in traffic.
- Worse Fuel Economy — Incorrect timing leads to inefficient combustion, noticeably decreasing fuel mileage.
- Smell of Unburnt Fuel from Exhaust — Incorrect injection timing dumps raw fuel into the exhaust system, creating a strong fuel odor.
- Reduced Engine Power (Limp Mode) (also visible on scanner) — The engine defaults to a safe mode, resulting in sluggish acceleration and a severe lack of power.
Diagnostic Flowchart
Tap your situation to follow the diagnostic path that matches what you're seeing on this code.
Common Fixes & Costs
- Replace Camshaft Position Sensor (Bank 2) — Parts: $40-$150, Labor: $70-$200, ~0.9 hr book time (DIY)
- Top Off or Change Engine Oil — Parts: $30-$60, Labor: $20-$40, ~0.5 hr book time (DIY)
- Repair Wiring or Connector — Parts: $10-$60, Labor: $100-$300, ~2.5 hr book time (Intermediate)
- Replace Alternator — Parts: $250-$600, Labor: $150-$300, ~1.5 hr book time (Intermediate)
- Replace Timing Chain, Phasers, and Guides — Parts: $400-$1000+, Labor: $1000-$2500+, ~11.5 hr book time (Professional)
Used vs. New Parts: Buying Guide
When a used part is worth it: Never buy a used camshaft position sensor. The minimal savings do not justify the high risk of installing a degraded electronic component.
Donor-vehicle mileage cap: roughly under 40000 miles for the part to have meaningful remaining life.
Donor quality checklist:
- Verify the part is genuine OEM.
- Inspect the plastic connector for cracks.
- Ensure the metal sensor tip lacks physical damage.
Decision logic:
- If The cost of a new OEM sensor is under $150. → Always buy new. The warranty and reliability outweigh the $20 savings of a used part.
- If The part has a known high failure rate (Nissan/Infiniti VQ engines). → Buy a brand-new OEM part (Hitachi/Denso) to avoid immediate repeat failures.
Warranty tradeoff: Salvage yard parts offer 30-day warranties. New OEM sensors include 12-month/12,000-mile warranties.
Worst-case if a used part fails: $150-$400 for repeat labor and a second replacement part.
What Happens If You Wait — Timeline
- 0-2 weeks: Check Engine Light illuminates. The engine experiences a longer crank time but runs normally as the PCM uses default timing values. (MPG impact: 0-5%% · Added cost: $0)
- 2 weeks - 2 months: The engine develops a rough idle, hesitates during acceleration, and stalls intermittently at stops. Fuel economy drops. (MPG impact: 10-15%% · Added cost: $50-$150 in wasted fuel)
- 2-4 months: The engine frequently stalls and runs in 'limp' mode. Persistent misfires send unburnt fuel into the exhaust, damaging the catalytic converter. (MPG impact: 15-25%% · Added cost: $800-$2500 (Catalytic converter failure))
- 4+ months: If caused by a stretched timing chain, the chain jumps teeth or breaks, causing pistons to hit valves and destroying the engine. (MPG impact: 25%+% · Added cost: $3000-$8000+ (Engine replacement))
Cost of Not Fixing It
- Immediate: Engine fails to start or stalls in traffic, creating a safety hazard and requiring a tow. (Added cost: $100-$300 (Towing))
- 1-3 months: Persistent misfires dump unburnt fuel into the exhaust, overheating and melting the catalytic converter. (Added cost: $1200-$2800)
- 3+ months: If caused by a stretched timing chain, continued operation causes the chain to jump teeth, resulting in pistons striking valves. (Added cost: $3000-$8000+ (Engine replacement))
Diagnosis Steps

- Scan for Codes and Review Freeze Frame Data
Confirm P0345 is present. Note related codes: P0349 indicates an intermittent fault, P0340 points to Bank 1, and P0018 confirms a mechanical timing correlation issue. Review freeze frame data to see engine conditions when the fault triggered.
Tools: OBD-II Scanner (Beginner) - Check Engine Oil Level and Condition
Low or dirty oil starves VVT systems, causing timing codes. Verify the oil level is at the maximum mark and the oil is clean. Top off or change the oil before proceeding.
Tools: Dipstick, Engine Oil, Rag (Beginner) - Perform a Thorough Visual Inspection
Inspect the Bank 2 sensor, connector, and wiring harness. Look for melted plastic, frayed wires, oil contamination, and corroded connector pins. Ensure the connector is fully seated.
Tools: Flashlight, Inspection Mirror (Beginner) - Swap Sensors (If Applicable)
If Bank 1 and Bank 2 sensors are identical and accessible, swap them. Clear the codes and drive. If P0345 becomes P0340, the sensor is definitively faulty.
Tools: Socket/Wrench Set (Intermediate) - Test the Sensor's Circuit with a Multimeter
Disconnect the sensor and turn the ignition 'ON'. Test the connector for a reference voltage (5V or 12V) and a solid ground (<0.1 ohms). Consult your service manual for exact pinouts.
Tools: Multimeter, Service Manual (Intermediate) - [PRO TIP] Test for Alternator AC Ripple Voltage
Set the multimeter to AC voltage. With the engine running and headlights/blower on, test across the battery terminals. A reading above 500mV (0.5V) AC indicates failing alternator diodes are creating electrical noise, triggering a false P0345.
Tools: Multimeter (with AC Volts) (Advanced) - [PRO TIP] Analyze the Sensor Signal with an Oscilloscope
Connect an oscilloscope to the sensor's signal wire. A healthy sensor produces a clean 0V to 5V square wave. A flat line or erratic pattern confirms a dead sensor or wiring short.
Tools: Oscilloscope, Back-probe Pins (Advanced) - Inspect the Reluctor Ring
Remove the sensor and use a flashlight to inspect the toothed reluctor ring inside the engine. Look for broken teeth, heavy sludge, or physical damage.
Tools: Flashlight, Socket/Wrench Set (Intermediate) - Inspect Mechanical Timing Components
If all electrical tests pass, remove the valve/timing covers. Inspect the timing chain for slack, check guides for breakage, and verify cam/crank timing marks align perfectly.
Tools: Advanced Hand Tools, Service Manual (Professional)
When This Code Triggers (Freeze-Frame Conditions)
- Engine Coolant Temp: 175-210°F (Engine at full operating temperature.)
- RPM: 600-800 RPM (Fault detected at idle or during initial startup.)
- Engine Load: 15-40% (During idle or light throttle application.)
- Vehicle Speed: 0 mph (Vehicle is stationary or cranking.)
Related Codes
- P0340 — Identical fault for Bank 1. Swapping sensors between banks is a definitive diagnostic test; if P0345 becomes P0340, the sensor is bad.
- P0349 — Indicates an intermittent circuit fault on Bank 2. Points strongly to a loose connection, frayed wire, or a failing alternator.
- P0018 — Crankshaft/Camshaft Correlation Error. Seeing P0345 with P0018 confirms a mechanical timing problem (stretched chain, failed phaser), not an electrical fault.
- P0300, P0302, P0304, P0306 — Misfire codes. A bad cam sensor signal causes the PCM to mistime spark, resulting directly in misfires. Fixing P0345 resolves these.
Climate & Environmental Factors
- Extreme Heat: Accelerates the degradation of the sensor's internal electronics and melts wiring harness insulation, causing shorts.
- High Humidity / Road Salt: Accelerates corrosion on connector pins, leading to high resistance and intermittent signal drops.
How to Talk to a Mechanic About This Code
Say this: "I have a P0345 code and the car is stalling. I'd like to schedule a diagnostic. Please test the camshaft position sensor, its wiring, and the alternator's AC ripple voltage before looking at mechanical timing."
This signals you understand the common causes and want a logical diagnostic path, preventing shops from immediately quoting a $2,500 timing chain job.
Avoid saying:
- 'My check engine light is on, can you just fix it?'
- 'I think I need a new timing chain.'
- 'Just replace the sensor.'
Questions to ask before authorizing the repair:
- What specific tests did you perform to conclude that [part] is the cause?
- Did you test the wiring for power, ground, and signal?
- If you suspect a timing chain, what were the cam/crank correlation readings?
- Are you installing a genuine OEM sensor or an aftermarket brand?
Where to Take It: Dealer vs Independent vs Chain
- Dealer:
Best for: Vehicles under powertrain warranty., Complex, manufacturer-specific issues (Ford cam phasers, Subaru air gap TSBs).
Downsides: Highest labor rates., May recommend complete assembly replacement when only a component failed. (Typical cost: +50% vs. baseline) - Independent Shop:
Best fit. A reputable independent shop handles the majority of causes, from electrical to mechanical, at a fair price.
Best for: Out-of-warranty vehicles., Common P0345 causes like sensor replacement, wiring repair, or alternator replacement.
Downsides: Diagnostic capabilities vary. Vet shops based on ASE certifications. (Typical cost: +0% vs. baseline) - Chain Shop:
Avoid for initial diagnosis or suspected mechanical timing issues. Acceptable only for a confirmed bad sensor swap.
Best for: Simple, straightforward sensor replacement if access is easy.
Downsides: Technician skill varies dramatically; lacks experience for in-depth electrical diagnosis., High pressure to upsell services. (Typical cost: -10% vs. baseline)
When to Walk Away From the Repair
If the estimated repair cost exceeds 40-50% of the car's private-party value, sell or trade it in.
- Car worth $4000, fix is $2500: Walk away. A $2,500 timing chain job on a $4,000 car is a poor financial decision.
- Car worth $12000, fix is $1800: Fix it. The repair cost is well below the threshold.
- Car worth $3000, fix is $250: Fix it. A simple sensor replacement is a minor cost.
What Scan Tool You Need for This Code
Minimum: A code reader that displays live sensor data to verify if the cam sensor produces any signal.
A $20 basic reader only shows 'P0345'. It cannot show live data to distinguish a dead sensor from a wiring issue.
Budget: BlueDriver Pro or XTOOL A30 (~$100) — Connects to a smartphone and provides live data graphing for the camshaft position sensor, allowing you to see the signal in real-time.
Mid-range: Innova 5610 or Foxwell NT604 Elite (~$250) — Offers bidirectional controls to test VVT solenoids and performs 'Camshaft Position Variation Relearns' if required.
Professional: Autel MaxiCOM MK808/MK906BT (~$500-1200+) — Provides OEM-level diagnostics and oscilloscope capabilities to definitively diagnose noisy signals (alternator ripple) versus a lack of signal.
Rent vs buy: For a one-time diagnosis, borrow a scanner from AutoZone's Loan-A-Tool program. For intermittent issues, buy a $100 budget pick.
How to Clear the Code After You Fix It
- Use an OBD-II scan tool to clear the P0345 code.
- Ensure the fuel tank is between 1/4 and 3/4 full.
- Perform a complete drive cycle to run readiness monitors.
Drive cycle (~30 minutes): Start with a cold engine (sit for 8+ hours). Idle for 3 minutes with A/C and defroster on. Drive at a steady 55 mph for 10 minutes. Perform 15 minutes of mixed city driving with stop-and-go traffic. Allow the vehicle to cool completely.
Readiness monitors affected: Catalyst Monitor, Evaporative System (EVAP) Monitor, Oxygen (O2) Sensor Monitor
Before emissions retest: drive at least 50 miles to fully set monitors.
Watch out for:
- Clearing the code with a scanner does not reset readiness monitors; a full drive cycle is mandatory.
- If the root cause (e.g., bad wiring, stretched chain) remains, the code returns immediately upon startup.
Will This Fail Emissions / State Inspection?
Yes — this code typically fails an OBD-II emissions inspection.
- California: An active P0345 is an automatic failure. All readiness monitors must read 'Ready' before a re-test, requiring 50-100 miles of driving post-repair.
- New York: NYS DMV inspections include an OBD-II scan. P0345 causes an automatic emissions failure.
- Texas: In emissions-testing counties (Harris, Dallas, Tarrant), an illuminated Check Engine Light from P0345 results in an automatic failure.
Most Commonly Affected Vehicles
- Ford F-150, Mustang, Expedition, Explorer (2004-2010) — Extremely common on 4.6L and 5.4L 3V Triton engines. Often a symptom of failing cam phasers or a bad alternator (TSB 06-19-12).
- Nissan Altima, Murano, Maxima, Frontier, 350Z (2002-2018) — VQ-series V6 engines (VQ35DE) are notorious for cam sensor failures. Bank 2 is on the front; Bank 1 is against the firewall. Recall R3022 covers some 2000-2003 models.
- Infiniti G35, FX35, QX56, M35 (2003-2008) — Shares the VQ engines with Nissan and suffers identical high failure rates. Bank 2 is on the driver's side.
- Subaru Forester, WRX, Impreza, Outback (2004-2016) — TSB 11-122-12R notes an incorrect air gap triggers the code, requiring a shim rather than a new sensor.
- Dodge/Chrysler/Jeep Various with 3.6L Pentastar & 5.7L Hemi (2005-2015) — Typically caused by sensor failure or oil contamination of the sensor connector.
- Honda Accord, Odyssey, Pilot (V6 models) (2003-2017) — Indicates a failing sensor on the front bank (Bank 2) of J-series V6 engines.
Manufacturer-Specific Notes

- Ford: Per TSB 06-19-12, a failing alternator producing AC ripple causes P0345 on 4.6L/5.4L 3V engines. Always test the alternator before replacing timing components.
- Nissan/Infiniti: VQ series V6 engines have massive sensor failure rates. Replace both Bank 1 and Bank 2 sensors simultaneously using genuine Hitachi parts.
- Subaru: TSB 11-122-12R states some models set cam sensor codes due to an incorrect air gap. The fix is installing a specific shim, not replacing the sensor.
- General Motors (Chevy/GMC): On V8 engines with VVT, low oil pressure from a failing oil pump or clogged filter screen impedes cam phaser operation, triggering this code.
Real Owner Stories
2005 Ford F-150 5.4L with P0345 & P0349
Truck vibrated at startup, triggering P0345 and P0349. Battery and alternator tested fine.
What they tried:
- Checked engine oil, found it at the halfway mark.
- Topped off oil to the maximum line.
Outcome: Topping off the synthetic oil and clearing the codes permanently resolved the issue.
Lesson: Always check engine oil first. Low oil pressure starves the VVT system, triggering false timing codes. Start with the cheapest solution.
Infiniti G35 with returning P0345 after sensor replacement
Car died while driving. Owner replaced the Bank 2 sensor with a cheap aftermarket part.
What they tried:
- Replaced Bank 2 sensor.
- Reset ECU.
Outcome: The long crank persisted and P0345 returned immediately. Replacing the aftermarket sensor with a genuine OEM Hitachi sensor fixed the car.
Lesson: Never use cheap aftermarket cam sensors on Nissan/Infiniti engines. They are frequently dead-on-arrival or send incorrect signals.
2007 Mustang with P0345 & P0349 caused by alternator
Car threw P0345 and P0349. Owner suspected electrical interference.
What they tried:
- Tested AC ripple voltage at the battery terminals.
Outcome: A failing alternator diode created electrical noise that disrupted the cam sensor signal. Replacing the alternator resolved the codes.
Lesson: On Ford vehicles, a failing alternator creates electrical 'noise' that triggers false cam sensor codes. Test AC ripple voltage before replacing timing components.
How to Prevent This Code From Triggering
- Change engine oil every 5,000 miles using manufacturer-spec synthetic oil. (Every 5,000 miles) — Clean oil is critical for hydraulic timing chain tensioners and VVT phasers. Sludge causes these components to fail, creating chain slack and triggering P0345.
- Use only OEM or reputable OEM-supplier sensors (Hitachi, Denso). (At time of repair) — Low-quality aftermarket sensors have a massive premature failure rate. Spending more upfront prevents repeat breakdowns.
- Secure wiring harnesses away from exhaust manifolds. (During under-hood maintenance) — Heat melts wire insulation, causing shorts. Securing the harness prevents the electrical failures that trigger P0345.
Frequently Asked Questions
I replaced the sensor, but the P0345 code came back. What now?
The replacement sensor was likely a cheap aftermarket part that failed immediately. Alternatively, you have a wiring issue, a failing alternator (common on Fords), or a stretched timing chain. Stop replacing parts and test the circuit with a multimeter.
Can I just replace the sensor to fix P0345?
Replacing the sensor without diagnosis wastes money. The issue is frequently damaged wiring, low engine oil, or a mechanical timing failure. Inspect the wiring and check your oil level before buying parts.
Does the new camshaft sensor need a 'relearn' procedure?
Many cars require no special procedure. However, some GM and Ford models require a 'Camshaft Position Variation Relearn' using an advanced scan tool to sync the PCM with the new sensor. Check your specific vehicle's service manual.
Is it safe to drive my car with a P0345 code?
No. The engine stalls without warning, creating a severe accident risk in traffic.
What's the difference between Bank 1 and Bank 2?
On a V6 or V8 engine, Bank 1 is the side containing the #1 cylinder. Bank 2 is the opposite side. Inline engines only have one bank, so they only trigger P0340.
How much does it cost to fix P0345?
A professional sensor replacement costs $150-$350. If the cause is a stretched timing chain, the repair costs $1,500-$3,500+.
My car seems to run fine, but the P0345 code is on. Why?
The PCM uses default values and crankshaft data to keep the engine running in the early stages of failure. However, the fault is real and leads to sudden stalling. Do not ignore it.
Will my car fail an emissions or smog test with a P0345 code?
Yes. An active P0345 code is an automatic failure for any emissions inspection.
Key Takeaways
- P0345 indicates a total loss or corruption of the Bank 2 camshaft position signal, instantly disabling the engine's variable valve timing.
- Driving with P0345 carries a 100% risk of sudden engine stalling in traffic, making immediate diagnosis mandatory for safety.
- Always test the alternator for AC ripple voltage exceeding 500mV before replacing parts, as failing diodes frequently trigger false P0345 codes on Ford vehicles.
- Never install generic aftermarket camshaft sensors; spend the extra $40-$80 for genuine OEM parts (like Hitachi or Denso) to prevent immediate repeat failures.
Helpful Videos
The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.
- 🎬 Helpful Videos
- What Does P0345 Mean?
- Can I Drive With P0345?
- Common Causes
- Symptoms
- Diagnostic Flowchart
- Common Fixes & Costs
- Used vs. New Parts: Buying Guide
- What Happens If You Wait — Timeline
- Cost of Not Fixing It
- Diagnosis Steps
- When This Code Triggers (Freeze-Frame Conditions)
- Related Codes
- Climate & Environmental Factors
- How to Talk to a Mechanic About This Code
- Where to Take It: Dealer vs Independent vs Chain
- When to Walk Away From the Repair
- What Scan Tool You Need for This Code
- How to Clear the Code After You Fix It
- Will This Fail Emissions / State Inspection?
- Most Commonly Affected Vehicles
- Manufacturer-Specific Notes
- Real Owner Stories
- 2005 Ford F-150 5.4L with P0345 & P0349
- Infiniti G35 with returning P0345 after sensor replacement
- 2007 Mustang with P0345 & P0349 caused by alternator
- How to Prevent This Code From Triggering
- Frequently Asked Questions
- I replaced the sensor, but the P0345 code came back. What now?
- Can I just replace the sensor to fix P0345?
- Does the new camshaft sensor need a 'relearn' procedure?
- Is it safe to drive my car with a P0345 code?
- What's the difference between Bank 1 and Bank 2?
- How much does it cost to fix P0345?
- My car seems to run fine, but the P0345 code is on. Why?
- Will my car fail an emissions or smog test with a P0345 code?
- Key Takeaways
- 🎟️ Get 5% Off