P0331: Knock Sensor (Sensor 2 / Bank 2): Circuit Range/Performance
ModerateQuick answer
P0331 means the knock sensor 2’s signal exists but doesn’t make sense for the operating conditions: the sensor is talking, just not telling a believable story. Same story as sensor 1: the computer retards timing defensively, costing power and economy, while real knock on that bank goes unguarded. Diagnose with live data before buying parts.
What it means
The knock sensor (sensor 2 / bank 2) tells the engine computer detonation on the second bank of a V engine (or a second location on long engines), protecting that side from knock damage. P0331 sets when the signal exists but doesn’t make sense for the operating conditions: the sensor is talking, just not telling a believable story for long enough that the computer stops trusting it.
Range/performance codes are the thinking-person’s variant: the circuit is electrically alive, but the value disagrees with what other sensors imply. That means the cause can be the sensor drifting, or the engine genuinely operating outside what the sensor should ever see (a real mechanical or vacuum problem).
While the signal is untrusted, the computer substitutes a safe default value. The engine runs, but on assumptions instead of measurements: that’s the drivability change you feel.
P0331 symptoms: what you'll notice
- Often nothing dramatic to feel: the check engine light is frequently the first and only sign.
- Reduced power and a flatter, lazier feel under acceleration.
- Worse fuel economy from the defensive ignition timing.
- A pinging or rattling under load if knock on that bank goes undetected.
Common causes
Ordered from most to least likely.
- 1.
Failed or drifting knock sensor 2
Age and heat cycles take these out.
- 2.
Wiring or connector damage
Always inspected before parts are bought.
- 3.
Harness damage under the intake manifold
Frequently traced to a previous repair that disturbed the valley harness.
- 4.
Lost 5V reference or sensor ground (where applicable)
If several sensors fault together, suspect a shared reference circuit rather than coincidence.
How to fix it: diagnosis, step by step
Cheapest and most likely checks first.
-
1 Read the freeze frame
Note when P0331 sets: cold start, warm idle, under load, over bumps. The conditions narrow the cause dramatically, especially for intermittent faults.
-
2 Inspect connector and harness
Unplug the sensor; check for corrosion, bent or spread pins, and chafed insulation along the harness run. Re-seat firmly. This free step resolves a remarkable share of circuit codes.
-
3 Watch it in live data
Test by response: with a capable scanner watching knock activity, a light tap on the block near sensor 2 should register. Compare behavior against sensor 1.
-
4 Check torque, condition, and the harness run
On many V engines these sensors live under the intake manifold: wiring damaged during unrelated intake work is a classic cause. Reinstall to exact torque spec.
-
5 Wiggle-test if intermittent
Engine running, data live: gently flex the harness and tap the sensor while watching the reading. A glitch you can provoke is a fault you can find.
-
6 Replace with a quality part
If measurements condemn the sensor, buy OEM or a reputable brand: bargain sensors re-set these codes often enough to cost more in time than they save in money.
Known P0331 patterns by make
Brand-specific failure patterns from the field: find your make before parts-shopping.
GM 1999–2007 4.8L/5.3L/6.0L trucks and SUVs YOUR VEHICLE
Both knock sensors sit in wells in the engine valley under the intake, covered by a foam mat that traps water. The rear well floods first, corroding the sensor and its sub-harness until knock codes appear. The fix that lasts: both sensors, the valley sub-harness, and sealing the wells so water stays out.
Toyota 1995–2004 3.4L V6 and 4.7L V8 (Tacoma, 4Runner, Tundra, Land Cruiser) YOUR VEHICLE
The knock sensors and their harness live under the intake plenum, and the harness insulation hardens and cracks with age; knock codes on these engines are wiring problems more often than sensor problems. The labor is the whole job, so most owners replace sensors and harness together in one pass.
Parts & tools you may need
- OBDLink MX+ (Bluetooth OBD-II scanner) ↗
- Autel MaxiCOM MK808S (full-system scan tool) ↗
- Fluke 88V (automotive multimeter) ↗
- Power Probe IV (power/ground circuit tester) ↗
- OBD-II scanner (code reader with freeze frame / live data) ↗
- Digital multimeter ↗
- Electrical contact cleaner ↗
- Replacement knock sensor 2 (exact part for your engine) ↗
Disclosure: some links are affiliate links (including the Amazon Associates program). If you buy through them, we may earn a commission at no extra cost to you.
Related codes
Frequently asked questions
- What does code P0331 mean?
- P0331 means the knock sensor 2’s signal exists but doesn’t make sense for the operating conditions: the sensor is talking, just not telling a believable story. It’s moderately serious: you can usually keep driving gently, but diagnose it soon.
- Can I drive with P0331?
- Yes, gently, on good fuel: same conservative-timing caveats as any knock sensor fault.
- Is it the sensor or the wiring?
- Even odds, which is why the connector inspection and live-data check come before the parts counter. Ten minutes of looking routinely saves a misdiagnosed part.
- Why did the code return after a new sensor?
- Because the circuit, not the sensor, was the fault, or the replacement was low quality. Re-do the wiring inspection the first repair skipped.
- What does the computer do meanwhile?
- It substitutes a default value and keeps the engine running on assumptions. Functional, but you pay in drivability and fuel until the real measurement comes back.
- How much does knock sensor 2 cost to replace?
- The sensor is the cheap part: usually $25 to $120. Labor decides the bill. On engines where the sensor sits under the intake manifold, common on V6 and V8 trucks, the book time runs three hours or more and shops quote accordingly; with the sensor accessible on the outside of the block it is under an hour. Test before you buy, and if the manifold has to come off anyway, do both sensors and the harness in the same pass.