P0331 OBD-II Trouble Code: Knock Sensor 2 Circuit Range/Performance (Bank 2)

Our certified mechanics come to you · Get a fair and transparent estimate upfront

EXCELLENT RATING ON

Cost of diagnosing the P0331 code

P0331 is a diagnostic trouble code (DTC) for "Knock Sensor 2 Circuit Range/Performance (Bank 2)". This can happen for multiple reasons and a mechanic needs to diagnose the specific cause for this code to be triggered in your situation. Our certified mobile mechanics can come to your home or office to perform the Check Engine Light diagnostic for $154.99 . Once we are able to diagnose the problem, you will be provided with an upfront quote for the recommended fix and receive $50.0 off as a credit towards the repair. All our repairs are backed by our 12-month / 12,000-mile warranty.

Cars Estimate* Credit towards follow-up repair Earliest Availability
Ford $154.99 $50.0
Toyota $154.99 $50.0
BMW $164.99 $50.0

*Estimates may vary by market

SCHEDULE P0331 DIAGNOSTIC Get a fair and transparent estimate upfront

P0331 OBD-II: Knock Sensor 2 Circuit Range/Performance (Bank 2)

Diagnostic Trouble Code (DTC): P0331

P0331 code definition

A P0331 code is stored when the powertrain control module (PCM) determines that an engine pre-detonation (knock or ping) has an abnormally high noise level or that it is out of the ordinary in some other way.

What the P0331 code means

Knock sensor 2, on engine bank 2, is designed to detect engine knocks or pings. This two-wire sensor sends a signal to the PCM to inform it of any instances of knocks or pings and how severe they may be. This input on normal knocks and pings allows the PCM to predict engine pre-detonation and account for it to predict knock trends and slow spark timing as necessary. If a knock or ping is too loud or too far out of the ordinary, the P0331 code will be saved, and the Check Engine light or MIL (Malfunction Indicator Light) will be illuminated.

What causes the P0331 code?

There are a few different causes for a P0331 code to be stored, including:

  • Using the incorrect fuel octane
  • A damaged knock sensor connector
  • An open circuit to the knock sensor
  • A knock sensor circuit that’s shorted to ground or voltage
  • A faulty knock sensor
  • Moisture in the knock sensor’s connectors
  • A faulty PCM (rare)

What are the symptoms of the P0331 code?

Noticeable symptoms when a vehicle has a stored P0331 code include:

  • An illuminated Check Engine Light or MIL
  • A pinging from the engine upon acceleration
  • An audible knocking coming from the engine

How does a mechanic diagnose the P0331 code?

When a mechanic diagnoses the problem causing a P0331 code to be stored, they will first listen to the engine while it’s running to determine if there is a knock or if the problem is more likely an issue with the sensor. After listening to the engine and visually inspecting it, they’ll address the issue causing the knock, clear the code, and retest to ensure that the sensor is not malfunctioning and there aren’t any other problems.

If there is no audible knock or the code is stored again after fixing the knock, the mechanic will unplug the knock sensor to inspect for corrosion or moisture in the connector. They will then take the proper diagnostic steps to address any issues with the knock sensor and retest the code again.

How serious is the P0331 code?

A knocking engine is at risk of leaving you stranded on the side of the road. If you hear a deep knocking in your vehicle, it could be an indication that the rod bearings are worn and in danger of seizing. If your vehicle has stored a P0331 code because it has a malfunctioning knock sensor, the PCM will not be able to adjust for engine knock, and further engine damage can occur.

What repairs can fix the P0331 code?

A P0331 code may be fixed by simply cleaning corrosion from the knock sensor’s connectors and ensuring that there is no moisture in the connectors. Other possible repairs include:

  • Using the proper octane for the vehicle and/or using an octane booster
  • Cleaning out carbon deposits in the engine’s cylinders
  • Replacing the spark plugs
  • Repairing or replacing the rod bearings
  • Repairing or replacing the knock sensor
  • Repairing or replacing the wiring and connectors for the knock sensor’s circuit

Additional comments for consideration regarding the P0331 code

In addition to other problems that may occur due to a persistent abnormal engine knock and/or a faulty knock sensor, failing to diagnose and clear a P0331 code will make it impossible to pass an OBD-II emissions test, as the MIL or Check Engine light will be illuminated until the problem is resolved.

Need help with a P0331 code?

YourMechanic offers certified mobile mechanics who will come to your home or office to diagnose and repair your vehicle. Get a quote and book an appointment online or speak to a service advisor at 1-800-701-6230.

Check Engine Light
trouble codes
P0331

No more waiting rooms! Our mechanics will come to you to diagnose and fix the P0331 code.

SCHEDULE P0331 DIAGNOSTIC
Get a $50 credit for the follow-up repair

Recent Check Engine Light is on Inspection reviews

Excellent Rating

(8600)

Rating Summary
8017
273
65
46
199
8017
273
65
46
199
 at YourMechanic

Brandon

9 years of experience
133 reviews
Brandon
9 years of experience
Ford Escort L4-2.0L - Check Engine Light is on - Nashville, Tennessee
Brandon showed up ahead of schedule, was very personable and diagnosed my problems. He also scheduled my next appointments which will be with him.
 at YourMechanic

William

23 years of experience
33 reviews
William
23 years of experience
Lexus IS250 V6-2.5L - Check Engine Light is on - Mableton, Georgia
Arrived early which was great. William was courteous, and attentive to the issue. Even though it took several attempts I'm so happy he was determined to fix it and he did!
 at YourMechanic

Dan

40 years of experience
1080 reviews
Dan
40 years of experience
Plymouth Grand Voyager - Check Engine Light is on - Lawrenceville, Georgia
Mr. Dan Barber was quite patient, courteous and quite knowledgeable. From my observation, Mr. Barber appears to be quite professional.
 at YourMechanic

Christopher

9 years of experience
120 reviews
Christopher
9 years of experience
Ford Fiesta L4-1.6L - Check Engine Light is on - Smyrna, Georgia
Chris communicated with us each step of the way up until his arrival. He listened well, was knowledgeable, and was prepared. He took the time to diagnose the problem, explained the what, why and how and provided a solution. I would definitely recommend him and will use him again.


More related articles

P2506 OBD-II Trouble Code: ECM/PCM Power Input Signal Range/Performance
P2506 P2506 code definition ECM/PCM Power Input Signal Range/Performance What the P2506 code means P2506 is an OBD-II generic code for the Engine Control Module (ECM) detecting if the power input signal is not within range or when its performance...
P0804 OBD-II Trouble Code: Upshift (Skip Shift) Lamp Control Circuit Malfunction
What What the P0804 code means Your vehicle’s powertrain control module (PCM) has detected a malfunction in the one through four skip shift solenoid lamp control circuit. The one through four skip shift solenoid control circuit is also known as...
P0774 OBD-II Trouble Code: Shift Solenoid E Intermittent
P0774 means the PCM registered a problem in shift solenoid E, caused by low ATF level, failed shift solenoid, or blocked transmission passages.

Related questions

Engine idles rough and jumps between 500 and 1200RPM when shift from Drive to Reverse; Check engine light on
You may have a couple of separate issues: The flashing Check Engine Light under heavy load is most likely an ignition system misfire (https://www.yourmechanic.com/article/how-can-problems-with-the-ignition-system-cause-misfiring_2). This could be something like a coil pack or worn spark plugs. These engines are known...
How is P0340 and P0328 addressed and how can any of them be affected by overheating
Excessive heat from the vehicle overheating damaged multiple sensors on the vehicle. A Check Engine Light is the only way for your vehicle to communicate that there is a problem. It is great that you have taken initiative in purchasing...
My Check Engine Light turns on and off, and the Service Traction Light is on
There are several components that can cause these types of symptoms. Issues that cause poor performance and shaking can be fuel, air, spark, electronic, or mechanical problems. The good news is that the Check Engine Light has come on. This...

How can we help?

Our service team is available 7 days a week, Monday - Friday from 6 AM to 5 PM PST, Saturday - Sunday 7 AM - 4 PM PST.

1 (855) 347-2779 · hi@yourmechanic.com