Severity Medium
P0331

Knock Sensor 2 Circuit Range/Performance (Bank 2)

📅 Last reviewed: July 2026
What does the P0331 code mean?

The P0331 code indicates that the Engine Control Module (ECM) has detected a malfunction in the knock sensor 2 circuit on bank 2 (the side of the engine opposite cylinder #1). The knock sensor detects engine knocking or pinging and sends a signal to the ECM to adjust ignition timing. This code is set when the sensor's signal is out of the expected range or the circuit performance is compromised, often due to sensor failure, wiring issues, or engine mechanical problems.

Medium
Severity
$50-$150
Typical Cost
High
Frequency

1. Most Common Causes

2. Symptoms You Will Notice

3. Step-by-Step Diagnosis

1

Step 1: Scan for codes and record freeze frame data. Clear codes and test drive to see if P0331 returns.

2

Step 2: Visually inspect knock sensor 2 and its wiring for damage, corrosion, or loose connections.

3

Step 3: Use a multimeter to test sensor resistance and compare to manufacturer specs (typically 100k-200k ohms).

4

Step 4: Check for engine mechanical issues like low oil level, incorrect timing, or excessive carbon deposits.

5

Step 5: If sensor and wiring are good, suspect ECM fault; perform ECM software update or replacement if necessary.

4. Frequently Asked Questions

Is it safe to drive with this code?

It is not recommended to drive long distances with P0331 as it can lead to engine damage from uncontrolled knocking. You may notice reduced performance and fuel economy. Have it diagnosed and repaired promptly.

How much does it cost to fix?

The cost to fix P0331 typically ranges from $50 to $150 for a knock sensor replacement, plus diagnostic fees. Labor costs vary by vehicle and shop, but total repair can be $150-$400.

5. Commonly Affected Makes

This is a generic OBD2 code, potentially applicable to any manufacturer using this diagnostic standard.

6. Related Codes

Need an OBD2 Scanner for the P0331? Compare the best scanners compatible with all vehicles
🛒 View OBD2 Scanners →