DOBD DashX ☰ Browse all codes Blog For business
P0331

Knock/Combustion Vibration Sensor B Circuit Range/Performance

Ignition / knock sensor Generic OBD-II Medium

What it means

P0331 means the second knock sensor's signal is outside the expected range. The knock sensor lets the computer detect engine "knock" and pull ignition timing to protect the engine. Contrary to some templated descriptions, this code does not cause a no-start — it usually just costs a little power and economy until repaired.

Medium

Can I keep driving? Safe to drive short-term; the engine may retard timing for protection, giving slightly less power and economy, but it won't stall or fail to start from this code.

What this part does

The knock sensor is a small vibration sensor mounted on the engine block that listens for the metallic pinging sound of abnormal combustion. The engine control module uses the signal to delay ignition timing when knock is detected, protecting the engine. A fault can cause reduced power, poorer fuel economy, a check engine light or, in some cases, audible pinging.

Real-world scan data

Seen in
23
scans in the past year
Found in
<0.1%
of scans

Appears alongside · share of P0331 scans

P0326in 56.5% of scans

Codes often seen with P0331. Of the 23 scans on our apps that reported P0331 in the past year, 56.5% also showed P0326 (Knock/Combustion Vibration Sensor A Circuit Range/Performance). If your scan shows any of these too, read their pages as well, because one fault can trigger another.

Read & clear P0331 yourself

Scan your car, confirm the code, and clear it once it's fixed — with OBD DashX on your phone.

▶ Get it on Google Play
Point your phone camera here

Need a scanner that reads ABS, airbag and more? GaragePro OBD scan tools ship worldwide. Claim deal →

Common symptoms

What you'll notice

Common causes

Most likely first

  1. Faulty knock sensor B
  2. Open, shorted, or chafed wiring in the sensor circuit
  3. Loose or corroded electrical connector
  4. Failed engine control module (rare)

Repair

Likely repair

How to diagnose & fix

Work through it in order

  1. Read freeze-frame data and confirm the code is knock sensor B (bank 2).
  2. Inspect the knock sensor connector and wiring for damage or corrosion.
  3. Check the sensor's resistance and signal against manufacturer spec; ensure the mounting bolt is torqued (a loose sensor gives false readings).
  4. Replace the knock sensor if it's out of spec with good wiring. Clear and re-test.

FAQ

Quick answers

Is it safe to drive with P0331?+
Yes, short-term. The engine may run slightly softer because timing is retarded for protection, but this code alone won't leave you stranded. Fix it to restore full power and economy.
Can I just clear P0331?+
It will clear, but returns until the knock sensor or its wiring is repaired.

Related codes

✓ Verified name — SAE J2012 / ISO 15031-6Guidance reviewed by OBD DashX

About this page

Scan figures come only from diagnostic scans recorded through our own apps and tools. Cars are usually scanned because a symptom or warning light prompted it, so these figures describe our scan records, not how often a fault occurs in any make or model.

Notes about specific manufacturers summarise public records (NHTSA owner complaints, recalls and manufacturer service bulletins), cited under each note. They report what those records say, not our measurements, and they do not suggest that any manufacturer or vehicle is better or worse than another.

Repair time and cost estimates come from a public repair dataset and are typical ranges, not quotes.

OBD DashX is not affiliated with, sponsored by or endorsed by any vehicle manufacturer. Manufacturer and model names and trademarks belong to their owners and are used only to identify vehicles.

This page is general information, not professional advice. Have safety-critical faults (brakes, steering, airbags, high-voltage systems) checked by a qualified technician. To the extent the law allows, we accept no liability for repairs or decisions made from this page.

Businesses: this content is available through our API. For business →