Skip to content

P0338 – Crankshaft Position Sensor A Circuit High Input (OBD2)

P0338 means "Crankshaft Position Sensor A Circuit High Input". The voltage in the crankshaft position sensor circuit is above the permitted maximum. For most sensors this points to an open signal or ground wire – the signal "floats" up to the reference voltage – or to a short to voltage.

Last updated

P0338 quick summary

Fault codeP0338
MeaningCrankshaft Position Sensor A Circuit High Input
SystemPowertrain (Engine & Transmission)
VehiclesGeneric OBD2
SeverityHigh
Can I drive?Not recommended. A failing crankshaft sensor can make the engine stall without warning – including in traffic – and it may not restart.
Repair cost€30 – €400

How the crankshaft position sensor works

The crankshaft position sensor tells the engine control unit how fast the engine turns and exactly where the pistons are – without it, most engines cannot start.

The sensor reads a toothed reluctor ring on the crankshaft or flywheel. A gap of one or two missing teeth marks a reference position. Older sensors are inductive (they generate an AC voltage), newer ones are Hall sensors with a 5 V or 12 V supply and a square-wave signal.

The engine control unit uses the signal for ignition and injection timing, engine speed, misfire detection and, together with the camshaft sensor, to identify which cylinder is on its compression stroke. Some systems use a second crankshaft signal (sensor B) or a high-resolution timing signal (P0370–P0379).

A failing crankshaft sensor often causes the engine to cut out when warm and restart after cooling down, or prevents starting altogether. Damaged reluctor rings, metal debris on the sensor tip and wiring damage are common causes besides a failed sensor.

On VAG vehicles (VW, Audi, Škoda, Seat, Cupra), VCDS and older VAG testers can show this code as the five-digit VAG code 16722 (P0338). Both numbers mean the same fault.

Symptoms of P0338

  • Engine cranks but does not start
  • Engine cuts out, often when warm, and restarts after cooling down
  • No rev counter movement while cranking
  • Misfires or jerking
  • Check Engine light on

Most common causes of P0338 (most likely first)

Mechanic's Pro Tip

If the engine cuts out only when hot, check the crankshaft sensor first – and test it while it is hot. A heat gun on the sensor or a test drive with live data often reproduces the fault that disappears once the engine cools down.

  1. 1.Open circuit in the signal or ground wire

    Most likely

    A loose ground connection is a very common cause.

  2. 2.Signal wire shorted to the 5 V reference or battery voltage

  3. 3.Faulty crankshaft position sensor

  4. 4.Metal debris on the sensor tip

    Magnetic sensors attract particles from wear, which distort the signal.

  5. 5.Damaged reluctor ring or wrong air gap

    Bent, cracked or loose tone rings and an incorrectly seated sensor.

  6. 6.Wiring or connector fault

    Oil-soaked connectors and chafed wires near the flywheel or pulley.

  7. 7.Electrical interference

    Damaged shielding or a poor ground on the sensor cable.

Step-by-step diagnostic guide

  1. 1

    Read codes and check rpm while cranking

    Read all codes. While cranking, check whether the scan tool or rev counter shows engine speed – no rpm while cranking points strongly to the crankshaft signal.

  2. 2

    Check signal and ground

    With the ignition on and the crankshaft position sensor plugged in, back-probe the signal and ground wires. A signal stuck at reference or battery voltage points to an open ground/signal wire or a short to voltage.

    Multimeter: Ground wire to battery negative: below about 0.1 V. Signal stuck at about 5 V (or 12 V) = open or short to voltage.

  3. 3

    Inspect the sensor and tip

    Remove the sensor and look for debris, damage or oil in the connector. Clean the tip and check that it sits correctly.

  4. 4

    Measure the sensor

    Check supply and ground on Hall sensors; measure resistance and AC output on inductive sensors.

    Multimeter: Inductive sensors: often a few hundred to about 1,000 Ω and an AC voltage of roughly 0.5 V or more while cranking. Hall sensors: 5 V or 12 V supply and a switching square-wave signal.

  5. 5

    Check signal quality

    With an oscilloscope, look for missing, distorted or irregular teeth. A damaged reluctor ring shows as a repeating error at the same position.

  6. 6

    Replace and relearn

    Replace the sensor or repair wiring. Some engines need a crankshaft variation relearn (see P0315) after replacement.

How do I read fault codes? →Where the OBD2 port is, which scanner to use and how to read and clear codes step by step.

Frequently asked questions

Can I keep driving with P0338?

Not recommended. A failing crankshaft sensor can make the engine stall without warning – including in traffic – and it may not restart.

How much does it cost to fix P0338?

Typical repair costs are 30 € – 400 €, depending on the cause and the vehicle. The most common fixes are: open circuit in the signal or ground wire; signal wire shorted to the 5 V reference or battery voltage; faulty crankshaft position sensor. Always confirm the cause with the tests above before buying parts.

Can a car start with a bad crankshaft sensor?

Usually not. Some engines can use the camshaft signal as a backup and start after long cranking, but most will not run without a crankshaft signal.

What is the difference between crankshaft and camshaft sensors?

The crankshaft sensor gives engine speed and piston position; the camshaft sensor tells which stroke the cylinder is on. The engine needs both for precise injection and ignition, but the crankshaft signal is the more critical.

What is the difference between P0338 and similar codes?

P0338 belongs to a group of codes for the same component that differ in the type or location of the fault: P0335 – Crankshaft Position Sensor A Circuit Malfunction; P0336 – Crankshaft Position Sensor A Circuit Range/Performance; P0337 – Crankshaft Position Sensor A Circuit Low Input; P0339 – Crankshaft Position Sensor A Circuit Intermittent; P0370 – Timing Reference High Resolution Signal A Malfunction; P0371 – Timing Reference High Resolution Signal A Too Many Pulses. The tests on this page apply to the whole group; the type of fault tells you where to start.

Related fault codes

This guide is for information only. Working on vehicles can be dangerous — if you are unsure, have the car checked by a qualified mechanic. Values can differ between model years; always check the manufacturer's repair information.