Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🧭 Diagnostic Flowchart 🎬 Helpful Videos 🛍️ Shop This Part

P0345 on 2003-2008 Audi S4: Camshaft Sensor 'A' Bank 2 Causes and Fixes

P0345 on an Audi S4 4.2L V8 points to the driver's side (Bank 2) camshaft position sensor. The most common fix is replacing the sensor itself, which costs about $30-$185 for the part. However, this code can also be a critical early warning of failing timing chain guides, a very serious and expensive engine-out repair. A rattling noise from the rear of the engine on cold starts is a major red flag for the timing issue.

17 minutes to read 2003-2008 Audi S4
Most Likely Cause
Failed Camshaft Position Sensor (Bank 2)
Difficulty
2/5
Est. Time
1 hrs
DIY Doable?
✅ Yes
Shop Labor
$100 – $400
Parts Price
$30 – $185
⚠️ Drivable, but... — Driving is not recommended as the engine may be difficult to start, stall unexpectedly, or run with reduced power, posing a safety risk. If the root cause is a timing chain issue, continued driving can lead to catastrophic engine failure.
Key Takeaways
  • P0345 refers to the camshaft position sensor on the driver's side (Bank 2) of the engine.
  • The easiest first step is to swap the driver's side and passenger's side sensors to see if the fault code moves to the other bank (P0340).
  • Be alert for any rattling noises from the engine, especially on cold starts. This could mean the P0345 code is a symptom of a much more serious timing chain failure.
  • If the code returns after a sensor swap, a mechanical timing issue is highly likely and requires professional diagnosis, likely with VCDS to check camshaft phase angles.
The trouble code P0345 signifies that the Engine Control Module (ECM) has detected a malfunction in the circuit for the Camshaft Position Sensor 'A' on Bank 2. On the Audi S4's 4.2L V8 engine, Bank 2 is the driver's side (left side in the US). This sensor, also known as a Hall Sender, provides the ECM with the precise rotational position of the camshaft, which is essential for controlling ignition timing and fuel injector operation. A fault in this sensor's signal can lead to significant drivability issues, such as difficulty starting, stalling, and reduced power.

What's Unique About the 2003-2008 Audi S4

The 2003-2008 Audi S4 (B6 and B7 generations) uses the 4.2L V8 BBK engine, which is notorious for timing chain issues. The timing components, including plastic guides and tensioners, are located at the rear of the engine against the firewall, making service an engine-out procedure. While P0345 is often just a failed sensor, it can be the first and only warning sign that the timing chain system is failing. A stretched chain or broken guide can cause the camshaft timing to deviate, triggering a sensor fault code long before the catastrophic 'death rattle' is heard. This makes it crucial to investigate beyond just replacing the sensor, especially if any startup noise is present.

Generation note: This guide covers the B6 (2003-2005) and B7 (2005.5-2008) generations of the Audi S4, both of which used the 4.2L V8 BBK engine. The causes, symptoms, and fixes for P0345 are identical across these generations as the core engine is the same. However, some early 2004 models used a specific timing guide that was later superseded.

Symptoms You May Notice

  • Check Engine Light is on
  • Difficulty starting the engine, requiring long cranking times
  • Engine stalling or running rough
  • Reduced engine power and sluggish acceleration
  • Increased fuel consumption
  • Engine misfires
  • Rattling noise from the rear of the engine on cold start, lasting 1-3 seconds (indicates potential timing chain tensioner issue)
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the camshaft position sensor without considering the possibility of a mechanical timing issue. If the code returns after sensor replacement, a deeper mechanical issue is likely.
  • Mistaking a clogged catalytic converter for a timing or ignition issue. A clogged cat on Bank 2 can cause misfires and poor performance on that bank, mimicking other problems.

Most Likely Causes

  1. Failed Camshaft Position Sensor (Bank 2) 🔴 High Probability → Shop Engine Camshaft Position Sensor Sensors fail over time due to extreme heat cycles in the V8 engine bay and exposure to oil. It's a common failure point on many modern engines.
    How to confirm: Swap the Bank 2 (driver's side) sensor with the Bank 1 (passenger's side) sensor. Clear the codes and drive the vehicle. If the code changes to P0340 (Camshaft Position Sensor 'A' Circuit - Bank 1), the sensor is faulty. This is a widely accepted diagnostic step in owner forums.
    Typical fix: Replace the Bank 2 camshaft position sensor. The sensor is located on the rear of the driver's side cylinder head/valve cover, held by a single T30 Torx bolt. 🎬 Watch this step-by-step guide to replacing the camshaft position sensor.
    Est. part cost: $30-$185
  2. Failing Timing Chain, Guides, or Tensioners 🟡 Medium Probability → Shop Engine Timing Chain The BBK 4.2L V8 is infamous for its plastic timing chain guides becoming brittle and breaking, and hydraulic tensioners failing to maintain pressure on startup. This is a well-documented, major design flaw, often accelerated by infrequent oil changes.
    How to confirm: Listen for a 'rattle' noise from the back of the engine on cold starts, which sounds like a chain dragging for 1-3 seconds. 🎬 Listen to an example of the infamous timing chain rattle. A professional diagnosis can be done with a scan tool like VCDS by checking engine measuring value block 093 for camshaft adjustment phase angles. Values exceeding -8° to -10° often indicate excessive chain stretch. 🎬 See how to use VCDS to check for timing chain stretch. The ultimate confirmation is visual inspection, which requires engine removal.
    Typical fix: This is a major, engine-out service to replace all timing chains, tensioners, and guides. It is extremely labor-intensive and expensive, often costing thousands of dollars.
    Est. part cost: $1000-$2500
  3. Damaged Wiring or Connector ⚪ Low Probability The engine bay heat can make wiring and plastic connectors brittle over time, leading to cracks or loose connections. Oil from leaking valve cover gaskets can also contaminate the connector pins.
    How to confirm: Visually inspect the wiring harness and connector for the Bank 2 camshaft position sensor. Check for frayed wires, corrosion on the pins, or a loose-fitting connector. Use a multimeter to test for continuity, proper ground, and the 5V reference signal at the connector.
    Typical fix: Repair the damaged section of wiring or replace the connector pigtail.
    Est. part cost: $15-$50

Rare But Worth Checking

  • Faulty Engine Control Module (ECM): This is extremely rare. The ECM should only be considered after all other possibilities, including sensors, wiring, and mechanical timing, have been exhaustively ruled out.

Diagnosis Steps

  1. Read the fault codes with an OBD-II scanner.
  2. Note the specific code (P0345) and any other codes present, especially correlation codes (P0018) or misfire codes.
  3. Listen carefully to the rear of the engine during a cold start. Any rattling noise lasting more than a second is a strong indicator of a timing chain guide/tensioner issue.
  4. Visually inspect the Bank 2 (driver's side) camshaft position sensor and its electrical connector for any obvious damage, oil contamination, corrosion, or loose connections.
  5. As a primary diagnostic step, swap the Bank 2 (driver's side) sensor with the Bank 1 (passenger's side) sensor. They are identical parts and easily accessible.
  6. Clear the codes and drive the vehicle. If the fault code changes to P0340 (Bank 1), the sensor you moved is faulty and needs to be replaced.
  7. If the P0345 code returns after the swap, the problem is not the sensor. The issue lies in the wiring to the Bank 2 sensor or, more likely, a mechanical timing problem on Bank 2.
  8. If a timing issue is suspected, use an advanced scan tool (like VCDS) to check camshaft phase deviation in measuring blocks 091-093. If values are significantly out of spec (e.g., beyond -8 degrees), it confirms a timing problem.
  9. If wiring is suspected, use a multimeter to check for 5V reference, ground, and a fluctuating signal voltage at the Bank 2 connector while cranking the engine.

Parts You'll Likely Need

  • Camshaft Position Sensor (Hall Sender) (OEM #06E905163 (Bank 2, Driver Side), 058905161B (Often used for Bank 1)) — This is the most common cause of a P0345 code when there are no underlying mechanical timing issues.
    Trusted brands: Bosch (OEM), HELLA, Dorman, URO Parts
    OEM price range: $100-$185
    Aftermarket price range: $30-$90

Related Codes That Often Appear With This One

  • P0340 — If you swap the Bank 1 and Bank 2 sensors for diagnosis, you will trigger this code for Bank 1 if the original Bank 2 sensor was faulty.
  • P0018 — This code indicates Crankshaft Position - Camshaft Position Correlation (Bank 2, Sensor A), which strongly points towards a mechanical timing issue (stretched chain/failed guide) rather than just a sensor failure.
  • P0346 — This code relates to the other camshaft sensor ('B') on Bank 2. Seeing them together can indicate a broader timing issue on that bank or a wiring problem affecting multiple components.
  • Multiple Misfire Codes (P0305, P0306, P0307, P0308) — If the cam timing on Bank 2 is incorrect, it can lead to misfires across all cylinders on that bank (Cylinders 5, 6, 7, and 8).

Technical Service Bulletins (TSBs) & Recalls

  • TSB 2039995/1 (also cited as 15-15-26): Addresses a 1-3 second rattling noise from the timing chain area on cold starts. It identifies the cause as the upper chain tensioners and recommends replacing them with an optimized part. While it states the noise does not lead to damage, it's a documented symptom related to the system that triggers P0345 when wear becomes excessive.

Platform-Specific Known Issues

  • The most critical issue for the BBK 4.2L V8 is the failure of the timing chain guides. A P0345 code can be an early symptom of this impending, catastrophic failure. Owners should be extremely vigilant for any rattling noises on startup.
  • Due to the rear-mounted timing system, what would be a moderate repair on another engine becomes an engine-out service on the S4, drastically increasing labor costs for timing issues.

Mechanic-Grade Diagnostic Values

  • Camshaft Phase Position (VCDS Measuring Block 093) — expected: 0 to -4 degrees at warm idle. Some sources state a tolerance of +/- 6 or up to 8 degrees total deviation per bank.. Failure: Consistent readings more negative than -8 degrees indicate significant timing chain stretch. Values of -10 or -11 are definitive indicators of a required timing service.
  • Camshaft Position Sensor Connector Voltage — expected: With key on, engine off: One pin should have ~5V (reference voltage), one should have continuity to ground, and the third is the signal wire.. Failure: Absence of 5V reference, poor ground, or a signal wire that is stuck at 0V or battery voltage indicates a wiring or ECM issue, not a sensor failure.

Hidden / Shadow Codes Worth Checking

  • 16729: This is the VAG-specific fault code that corresponds directly to the generic OBD-II code P0345. (see via Ross-Tech VCDS or other VAG-specific diagnostic tools.)

Wiring & Ground Locations

  • G26 — Under the power steering fluid reservoir in the engine bay.. This ground point serves the cooling fan control module, and poor grounds in the engine bay can introduce electrical noise that may affect sensitive sensor readings.
  • G32 / G44 — Located on the lower left A-pillar, near the driver's side pedals or behind the kick panel.. These are primary chassis ground points for the instrument panel and various modules. A corroded or loose connection here can cause widespread, intermittent electrical issues.
  • Bank 2 CPS Connector — Rear of the driver's side (Bank 2) cylinder head. The connector has 3 pins.. This is the direct connection point for the sensor. Test for 5V reference, ground, and signal here to isolate a faulty sensor from a wiring problem.

Real Owner Repair Stories

  • Reddit user in r/Audi (Audi B7 S4, mileage not specified) — Not specified, but undertook the full timing chain service, known as 'the job' for this car.
    ❌ Tried (didn't work) The user went straight for the full timing service, implying diagnosis pointed to mechanical timing failure.
    ✅ What actually fixed it A complete timing chain service. The user sourced a timing kit from an independent supplier and other parts from FCPEuro and ECSTuning, with performance cam adjusters from JHM. Notably, after the massive job was completed, the alternator failed, requiring further significant disassembly to replace.

OEM Part Supersession History

  • 079109469AC079109469AD — Part optimization for the upper timing chain guide.
    Heads up: The original part had a non-functional nub for assembly line purposes that the new part omits. The new part is the correct replacement.

Model Year Variations Within This Range

  • 2003-2005 (B6) vs 2005.5-2008 (B7): While the core BBK engine and P0345 causes are the same, there are minor mechanical differences. For example, when performing major service, it's recommended to update the B6-style flywheel to the more robust B7 version if the transmission is removed.

Diagnostic Flowchart

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Timing Chain Guide & Tensioner Failure 🔴 High → Shop Engine Timing Chain — Very common, especially on vehicles over 80,000-100,000 miles. Poor oil change history accelerates wear. (Ref: TSB 2039995/1 (15-15-26) addresses a 1-3 second rattle on cold start, recommending replacement of upper chain tensioners.)
  • Excessive Oil Consumption 🟠 Medium — Common across the platform. Audi considers consumption of up to 0.5 quarts per 600 miles to be within spec, though owners find it excessive. Caused by worn piston rings, valve seals, or PCV system issues.
  • Intake Manifold Flap / Linkage Arm Failure 🟠 Medium → Shop Engine Intake Manifold — The plastic linkage arms for the variable intake manifold can break, or the internal flaps can get stuck due to carbon buildup and a seized bearing. This results in a loss of low-end torque and potential fault codes.
  • Clogged or Failed Catalytic Converters 🟠 Medium — With age and heat, the catalytic converters can become restricted or fail, leading to significant power loss and misfires isolated to one bank. This is often misdiagnosed as an ignition or timing issue.
  • Leaking Auxiliary Radiators 🟡 Low — The two small radiators located on the sides of the main radiator are prone to corrosion at the bottom, causing them to bulge and leak coolant. This is a bumper-off job to replace.
  • Valve Cover Gasket Leaks 🟡 Low → Shop Engine Valve Cover — Gaskets become brittle with age and heat, leading to oil leaks, often noticeable by a burning oil smell as it drips onto the exhaust manifolds.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For a camshaft position sensor, buying used is not recommended as the cost savings are minimal and the part's remaining lifespan is unknown. A used sensor could be considered for temporary diagnostic purposes (e.g., to confirm a wiring fault) but should not be a permanent repair.

Donor-vehicle mileage cap: roughly under 50000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • For a sensor, check for physical damage, cracks in the plastic housing, or corrosion on the pins.
  • For any major engine component, verify the donor vehicle did not suffer from the 'death rattle' or have known timing issues.

OEM-only on this vehicle (don't cheap out):

  • Timing Chain Tensioners
  • Timing Chain Guides

Aftermarket brands forum-validated for this vehicle:

  • For the camshaft position sensor: Bosch (OEM supplier).
  • For a complete timing service kit: JHM (JH Motorsports) is a highly regarded performance aftermarket supplier offering comprehensive kits with upgraded components like mechanical adjusters.

Brands owners have reported issues with on this vehicle:

  • Unnamed, low-cost timing chain kits from eBay or Amazon. Forum and mechanic consensus is that these kits use inferior quality guides and chains that can fail prematurely, leading to catastrophic engine damage.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2005 Audi S4 4.2L V8 — ~100000 miles

Symptoms: Rattling noise from the rear of the engine on cold start, lasting 1-3 seconds.

What fixed it: Replacement of upper chain tensioners with optimized parts as recommended per TSB 2039995/1.

Source hint: TSB 2039995/1 (also cited as 15-15-26)

2004 Audi S4 4.2L V8

Symptoms: Startup rattle and fault codes; discussion regarding the relation between oil pressure and the duration of the rattle.

What fixed it: The source discusses the progression of the rattle to fault codes and the necessity of monitoring timing chain tensioner health.

Source hint: AudiSRS.com - 'S4 Chain Tensioner or Cold Start Up Rattle'

2006 Audi S4 4.2L V8

Symptoms: Rattle during semi-warm start and cold start.

What fixed it: Owners on the forum discuss the duration of the rattle as an indicator of timing component wear.

Source hint: Reddit r/AudiS4 - 'Getting the rattle during semi warm start and cold start...'

Frequently Asked Questions

My 2004 S4 has a 1-3 second rattle on cold starts; does TSB 2039995/1 mean my timing chains are failing?
TSB 2039995/1 (15-15-26) specifically addresses this 1-3 second rattle, attributing it to the upper chain tensioners. While the TSB suggests the noise itself may not lead to damage, in the context of a P0345 code, it can indicate wear that has progressed to the point of affecting timing synchronization.
Can I test if the Bank 2 sensor is actually bad without buying a new part?
Yes. A widely accepted diagnostic step for the BBK 4.2L V8 is to swap the Bank 2 (driver's side) sensor with the Bank 1 (passenger's side) sensor. If the fault code changes from P0345 to P0340, the sensor is confirmed faulty.
Is it true that fixing a timing issue on the BBK 4.2L V8 requires pulling the whole engine?
Yes. Because the BBK engine utilizes a rear-mounted timing chain system, any major service to the chains, guides, or tensioners is an engine-out procedure, which significantly increases labor costs.
What are the specific VCDS measuring blocks I should check for timing stretch on my S4?
You should check engine measuring value blocks 091 through 093. Specifically, block 093 shows camshaft adjustment phase angles; values exceeding -8° to -10° typically indicate excessive timing chain stretch.
Could my P0345 code be caused by a simple wiring issue instead of the timing chains?
It is possible. The extreme heat of the V8 engine bay can make wiring brittle, and oil from leaking valve cover gaskets can contaminate the connector pins. You should check for a 5V reference signal and ground at the connector using a multimeter.
Does the Audi A6 with the 4.2L V8 share this same P0345 risk?
Yes, the 2004-2006 Audi A6 (C6) with the BNK engine shares the same rear-mounted timing chain architecture and is prone to the same guide failures and sensor issues.
How to Replace Right Camshaft Position Sensor 2006-2009 Audi S4 4.2L V8
How to Replace Right Camshaft Position Sensor 2006-2009 Audi S4 4.2L V8
Audi S4 B7 cold start | timing chain check with VCDS | service (eng sub)
Audi S4 B7 cold start | timing chain check with VCDS | service (eng sub)
How to See your Timing Chain or Belt Stretch with VCDS
How to See your Timing Chain or Belt Stretch with VCDS
Audi S4 15 Second Rule - B6 B7 - 2003 2008 - TOTAL TECHNIK
Audi S4 15 Second Rule - B6 B7 - 2003 2008 - TOTAL TECHNIK
Audi S4 4.2L V8 2005 B6 cold start after fixing timing chain & guides
Audi S4 4.2L V8 2005 B6 cold start after fixing timing chain & guides
S4 4.2 V8 Chain Rattle
S4 4.2 V8 Chain Rattle
Audi S4 B6 Avant V8 4.2 (P1347 fault) - Timing Chains Replacement / Camshaft Adjusters
Audi S4 B6 Avant V8 4.2 (P1347 fault) - Timing Chains Replacement / Camshaft Adjusters
Major timing service on the NEW Audi S4 4.2 Long block V8
Major timing service on the NEW Audi S4 4.2 Long block V8
What exactly you need for the job?Manual how to install timing chain kit on Audi S4 V8 BBK .
What exactly you need for the job?Manual how to install timing chain kit on Audi S4 V8 BBK .
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated May 30, 2026

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.

Year Coverage
This article covers the OBD-II Code P0345 (Deep Dive) for:
  • Audi S4: 200320042005200620072008
In this article
🧭 Diagnostic Flowchart
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part