If your VW, Audi, SEAT or Skoda is throwing a P1338 fault code, it’s an electrical fault on the camshaft position sensor circuit on Bank 1 – specifically an open circuit or a short to battery voltage (B+). The verified VAG definition is “Camshaft Position Sensor (G40), Bank 1: Open Circuit or Short to Plus (B+)” (Ross-Tech 17746). P1338 is the mirror failure of P1337 (which is short-to-ground): same sensor, opposite electrical failure mode.

This guide explains what P1338 actually means on a VAG vehicle, the symptoms drivers notice, the realistic causes, and how a workshop properly diagnoses and repairs it. If you’d prefer a professional VAG-level diagnostic check at our Worthing workshop, we use VAG-specific scan software and oscilloscope test gear so the cam sensor circuit can be properly isolated.

What P1338 actually means on a VAG vehicle

P1338 is a VAG manufacturer-specific Diagnostic Trouble Code (its VAG-internal number is 17746). The “P1” prefix tells you it’s manufacturer-defined rather than a generic SAE J2012 code. On Volkswagen, Audi, SEAT and Skoda vehicles, P1338 is defined as “Camshaft Position Sensor (G40), Bank 1: Open Circuit or Short to Plus (B+)”.

The camshaft position sensor (component code G40 in VAG terminology) is a Hall-effect sensor. It detects the rotation of a reluctor wheel on the camshaft and sends a pulsing signal to the engine control unit. The ECU uses that signal alongside the crankshaft position sensor (G28) to know exactly where each piston is in its stroke, which determines ignition and injection timing.

P1338 is logged when the ECU sees the cam sensor signal either disappear completely (open circuit – a broken wire or failed sensor element) or jump to battery voltage (short to B+ – a damaged wire touching a 12V supply or a sensor failed to that condition). Either way, the expected pulsing signal is gone and the ECU can no longer trust the cam timing data. P1338 is an electrical-fault code on the sensor circuit – it doesn’t say anything about combustion, ignition coils or fuelling.

P1338 in the cam sensor code family

P1338 sits in a small family of VAG-specific cam sensor codes that describe different electrical failure modes of the same G40 sensor on Bank 1:

  • P1337 – G40 cam sensor Bank 1: Short to Ground (signal stuck at 0V)
  • P1338 – G40 cam sensor Bank 1: Open Circuit or Short to Plus (B+) – the opposite electrical failure
  • P1340 – G40 cam sensor and G28 engine speed sensor: Incorrect Correlation (signals present but out of sync – often caused by timing-chain stretch on EA888 engines)

Working out which one you’ve got matters because the diagnostic approach differs slightly for each.

Common symptoms of P1338

Engine management light

The MIL is the most reliable sign. P1338 is normally a hard-fault code that stays on once the sensor or wiring has failed – though intermittent broken cores in the loom can produce a code that comes and goes.

Long cranking or no-start

Without a usable cam signal the ECU has to fall back on the crankshaft sensor alone to synchronise ignition and fuelling. On many VAG engines this means longer-than-normal cranking before the engine fires, and on some it means the engine won’t start at all. Hot starts can be particularly affected.

Rough idle and hesitation

When the engine does run, the lack of accurate cam timing data tends to produce a rough or hunting idle and hesitation when accelerating. The car may feel flat under load and unresponsive to throttle inputs.

Limp mode

Some VAG engines drop into limp mode when P1338 is active to protect the engine from running on poor timing data. Power and revs are limited until the fault is fixed.

Worse fuel economy

Running on default ignition and fuelling maps usually costs noticeable mpg.

What causes P1338 on VAG vehicles

1. Failed G40 cam position sensor

The most common cause is the sensor itself failing internally in an open-circuit condition. G40 sensors are wear items and tend to fail at higher mileage or after long-term heat exposure.

2. Broken signal wire in the loom

The G40 wiring runs across the top of the engine and is exposed to heat, vibration and the occasional touch from a service job. A broken core inside the signal wire (often where the loom flexes near the valve cover) produces the same open-circuit symptom as a failed sensor. Broken cores can be intermittent at first and only show up as P1338 at certain engine temperatures.

3. Connector contamination or damage

Oil contamination inside the G40 connector – usually from a leaking valve cover or rocker cover gasket – is a classic VAG failure point. The connector pins can also corrode, become pushed back during a previous service, or develop poor contact. Any of these can produce an open-circuit reading at the ECU.

4. Short between signal wire and a 12V supply

Less common than the open-circuit failure modes but still possible: a chafed harness touching a power feed somewhere in the engine bay produces the “short to B+” failure mode the code description references.

5. ECU internal fault (rare)

A failure in the ECU’s input circuit for the cam sensor can also produce P1338, but this is very rare and should only be diagnosed after the sensor and wiring have been confirmed good.

Diagnostic process for P1338

Step 1 – VAG-level scan

A dealer-level scan tool (VCDS, ODIS or equivalent) reads the exact P1338 wording and the freeze-frame data: engine load, speed, coolant temperature and battery voltage at the moment the fault was logged. This often points the diagnosis. If P1337 is also present, suspect a shared wiring or connector issue affecting both failure modes.

Step 2 – Inspect the G40 connector and loom

The G40 connector is unplugged and inspected for oil contamination (a tell-tale sign of a leaking valve cover gasket), corroded pins, pushed-back terminals and heat damage. The wiring back along the loom is traced for broken cores, chafed insulation, and any places where the harness may have touched a 12V feed.

Step 3 – Multimeter checks

With the wiring diagram on hand and the connector unplugged, the technician checks the supply at the connector (key on, engine off), the ground continuity, and signal-wire continuity from the connector back to the ECU. Any break in the signal wire confirms an open circuit; voltage where there should be none confirms a short to B+.

Step 4 – Live data + oscilloscope where needed

With everything reconnected and the engine cranking, live cam sensor data shows whether the sensor is producing any output at all. For intermittent faults that don’t show statically, an oscilloscope on the signal wire reveals the pulse pattern (or absence of it) and isolates whether the fault is at the sensor or in the wiring.

Step 5 – Sensor substitution

If wiring and connector are confirmed good and the live data still shows no usable signal, the sensor itself is replaced with an OE-spec or recognised aftermarket equivalent (typical brands: Bosch, VDO/Continental). Generic universal sensors are not recommended for VAG cam timing applications.

Repair solutions

G40 sensor replacement

If the diagnosis confirmed a failed sensor, replacement is normally straightforward on most VAG engines. Always use OE-spec or recognised aftermarket parts – the cam timing function is critical and cheap aftermarket sensors are a known cause of repeat faults.

Wiring or connector repair

If wiring or connector damage is at fault, the correct repair is to splice in a new section of correctly-rated wire, fit a new connector body if the pins are damaged, and protect the harness with proper sheathing. Heat-shrink tubing and loom tape used together is the standard.

Address the root cause if oil contamination is found

If the connector was full of oil, the underlying cause is a failing valve cover or rocker cover gasket. Replacing the gasket properly stops oil migrating back into the new connector and prevents the next sensor from failing prematurely. Particularly common on the 1.4 TSI and 2.0 TFSI EA888.

Clear the code and verify

Once fixed, the code is cleared and the car is driven through a full drive cycle so the OBD readiness monitors complete. The technician confirms P1338 doesn’t return, no related cam/crank codes log, and the engine cranks and idles cleanly.

Is it safe to drive with a P1338 code?

Short trips are usually possible, but the car may refuse to restart hot, may stall unexpectedly, or may run in limp mode. Stalling at junctions or on faster roads is a genuine safety risk, so it’s not a fault to leave for any length of time. If the engine is hot-stalling or has refused to start at any point, book a diagnostic check before relying on the car for longer journeys – our Worthing diagnostics team can identify whether it’s the sensor, wiring or connector in a single visit.

Will P1338 fail the MOT?

Yes. Under current DVSA MOT rules an engine management light that stays on with the engine running is an automatic fail under the malfunction indicator lamp check. A no-start or stalling caused by P1338 will also stop the tester completing the emissions portion of the test. Repair the cam sensor or wiring fault, clear the code, complete a short drive so the OBD readiness monitors set, then present the car for MOT.

VAG models most affected by P1338

P1338 appears across the VAG range, particularly on Audi A3/A4/A6, VW Golf, Passat and Polo, SEAT Leon and Skoda Octavia fitted with the 1.8T, 2.0 TFSI EA888, 1.4 TSI, and older 1.6 and 2.0 FSI engines. The G40 sensor is a well-known wear item on these platforms and the loom running close to engine bay heat is a frequent failure point. Our Volkswagen specialist team and Audi specialist team diagnose the G40 sensor family routinely.

Related codes you may see alongside P1338

  • P1337 – G40 cam sensor Bank 1 Short to Ground (the opposite electrical failure to P1338).
  • P1340 – G40 cam sensor and G28 engine speed sensor incorrect correlation (often points to timing-chain stretch on EA888).
  • P0340 – Generic SAE cam sensor circuit code. May log alongside P1338.
  • P0341 – Generic SAE cam sensor range/performance. Often associated with timing-chain stretch on EA888 engines.
  • P0335 – Crankshaft position sensor circuit. If both cam and crank sensor codes appear together, suspect a shared wiring or supply fault.

Conclusion

P1338 on a VAG vehicle is the G40 camshaft position sensor on Bank 1 reporting an open-circuit or short-to-B+ electrical fault – the mirror of P1337 (short-to-ground). The dominant causes are a failed sensor, broken signal wire in the loom, and connector damage from oil contamination. Proper diagnosis takes about 30 minutes with VAG-level scan software and a multimeter and rules out most causes before any parts are bought.

If you’re local to West Sussex, you can book a VAG diagnostic check with our Worthing team and we’ll identify whether it’s the sensor, the loom or the connector in one visit. For a wider explanation of how VAG fault codes are structured, see our complete VAG error-code reference.

Frequently Asked Questions about P1338

What does P1338 mean on a VAG vehicle?

P1338 is a VAG manufacturer-specific code (VAG number 17746). On Volkswagen, Audi, SEAT and Skoda vehicles it is defined as ‘Camshaft Position Sensor (G40), Bank 1: Open Circuit or Short to Plus (B+)’. The ECU has detected that the cam sensor’s signal circuit is either broken (open circuit) or shorted to battery voltage, the opposite electrical failure mode to P1337 (which is short-to-ground).

What are the symptoms of P1338?

Typical symptoms include the engine management light, long cranking, an intermittent or persistent no-start, a rough idle, hesitation on acceleration, reduced power, and occasionally limp mode. The fault is often intermittent at first because broken cores in the cam sensor wiring don’t always stay open; the engine may run fine on some trips and refuse to start on others. The MIL will usually stay on once the fault has been logged.

Is it safe to drive with a P1338 code?

Short trips are usually possible but it’s not advisable for long. With an unreliable cam signal the ECU runs on a default ignition and fuelling map, raising the risk of misfires, catalyst damage from raw fuel, and on the EA888 family any underlying timing-chain wear becomes harder to detect. If the car has hot-stalled or refused to start at any point, book a diagnostic check before relying on it for a long journey: /car-diagnostics-in-worthing/.

What causes P1338?

The most common cause on VAG cars is a failed G40 cam position sensor whose internal element has gone open-circuit. Wiring faults are next: broken cores in the loom (often where it flexes near the valve cover), oil contamination inside the connector from a leaking valve cover gasket, corroded or pushed-back connector pins, and (less commonly) a short between the signal wire and battery voltage. ECU driver failure is possible but rare.

Can I clear P1338 myself?

You can clear it with a basic OBD-II scanner, but if the wiring is genuinely broken or the sensor has failed open, the code returns within seconds of the next key-on. Clearing also wipes the freeze-frame data a technician uses to diagnose the fault. Better to scan, identify the cause, fix it, then clear.

Will P1338 make my car fail the MOT?

Yes. Under DVSA MOT rules a permanently illuminated engine management light is an automatic fail under the malfunction indicator lamp check. A no-start or stalling caused by P1338 will also stop the tester completing the emissions portion of the test. Repair the cam sensor or wiring fault first, then book the MOT.

Which VAG models are most affected by P1338?

P1338 appears across the VAG range, particularly on 1.8T and 2.0 TFSI engines (Audi A3/A4, VW Golf GTI, SEAT Leon, Skoda Octavia) and older 1.6/2.0 FSI units, where the G40 sensor connector and loom are exposed to engine-bay heat and potential oil contamination. Our /makes/volkswagen-specialist/ and /makes/audi-specialist/ teams in Worthing diagnose this regularly.

How is P1338 different from P1337 and P1340?

All three are VAG-specific G40 camshaft sensor codes. P1337 means the cam sensor signal is shorted to ground (stuck at 0V). P1338 means the cam sensor signal is open-circuit or shorted to battery voltage (B+), the opposite electrical failure. /fault-codes/p1340-vag-code/ means the cam and crank sensor signals are present but out of correlation, usually caused by timing-chain stretch on EA888 engines. Same sensor family, different specific failure modes.