The P0331 OBD-II trouble code means the Powertrain Control Module has detected a Knock Sensor 2 signal that is present but does not perform within its expected range.
The generic definition for P0331 is:
Knock Sensor 2 Circuit Range/Performance — Bank 2
Unlike P0330, which indicates a general Knock Sensor 2 circuit malfunction, P0331 usually means the PCM can detect a signal but considers its strength, frequency or response implausible.
Possible causes include:
- Incorrect knock-sensor mounting torque
- Corrosion beneath the sensor
- Wrong replacement sensor
- Damaged wiring or shielding
- Electrical interference
- Mechanical false knock
- Genuine detonation
- PCM calibration problems
P0331 does not automatically mean Knock Sensor 2 has failed. The sensor may be reporting exactly what it hears while a loose heat shield, timing-chain rattle or poor engine mount performs an unsolicited percussion solo nearby.
P0331 Quick Facts
| Item | Information |
|---|---|
| Trouble code | P0331 |
| Generic definition | Knock Sensor 2 Circuit Range/Performance |
| Sensor location | Bank 2 or manufacturer-designated Sensor 2 |
| System | Knock detection and ignition timing |
| Fault type | Signal performance or plausibility fault |
| Severity | Moderate |
| Safe to drive? | Usually short-term if no severe knocking or overheating is present |
| Common symptoms | Check Engine Light, reduced power and sluggish acceleration |
| Common causes | Sensor installation, wiring, false knock or sensor failure |
| Related codes | P0329, P0330, P0332, P0333 and P0334 |
What Does the P0331 Code Mean?
P0331 means Knock Sensor 2 is producing a signal, but that signal does not match the PCM’s expected pattern.
The PCM may compare the sensor response with:
- Engine RPM
- Calculated engine load
- Ignition timing
- Throttle position
- Cylinder firing events
- Coolant temperature
- Intake-air temperature
- Knock Sensor 1 activity
- Expected engine-noise frequencies
If the signal appears too weak, excessively active or inconsistent with operating conditions, the PCM may store P0331.
The circuit does not necessarily have a permanent open or short. This is a performance and plausibility fault rather than a simple missing-signal code.
What Does “Range/Performance” Mean?
“Range/performance” means the signal exists but does not behave correctly.
Possible examples include:
- Sensor output is weaker than expected.
- The signal does not change with engine speed or load.
- Knock activity appears during operating conditions that should not create detonation.
- Knock Sensor 2 responds very differently from Knock Sensor 1.
- The signal contains excessive electrical noise.
- The sensor reacts slowly.
- Knock-retard data remains excessive.
- The PCM cannot distinguish combustion knock from background vibration.
This differs from a consistently low or high electrical input:
- P0332: Knock Sensor 2 circuit low input
- P0333: Knock Sensor 2 circuit high input
- P0334: Knock Sensor 2 circuit intermittent
What Is Knock Sensor 2?
Knock Sensor 2 is the secondary sensor used to monitor engine-block vibration.
On many V-type engines, it monitors Bank 2. Bank 2 is the cylinder bank that does not contain cylinder number one.
Depending on the manufacturer, Sensor 2 may instead identify:
- A secondary sensor on an inline engine
- The rear knock sensor
- A sensor assigned to a particular cylinder group
- A wideband or resonant sensor in a multi-sensor system
Do not identify Bank 2 by assuming it is always the driver or passenger side. Cylinder numbering and sensor assignments vary.
Use the vehicle’s wiring diagram and service information before testing or replacing either sensor.
How a Knock Sensor Works
Most knock sensors contain a piezoelectric element that generates voltage when exposed to vibration.
The sensor behaves like a specialized microphone attached to the engine block. It detects a broad range of vibration, while the PCM filters the signal to identify frequencies associated with detonation.
The PCM evaluates the signal alongside:
- Engine speed
- Engine load
- Spark timing
- Firing order
- Temperature
- Fuel correction
- Cylinder position
When genuine knock is detected, the PCM can temporarily retard ignition timing. Once the knock stops, timing may gradually return.
This allows the engine to operate efficiently while maintaining protection against destructive combustion.
How the PCM Detects P0331
The exact monitoring strategy varies by manufacturer.
The PCM may store P0331 when:
- Knock Sensor 2 output remains outside its expected range.
- The signal does not respond during a diagnostic test window.
- Sensor 2 behaves differently from Sensor 1.
- Signal activity does not correspond with engine RPM or load.
- Excessive noise prevents reliable signal processing.
- Knock retard appears unreasonable.
- The sensor frequency does not match expected engine vibration.
- The sensor passes basic electrical testing but performs incorrectly.
Some vehicles require the fault to occur during multiple drive cycles before illuminating the Check Engine Light.
P0331 Versus Related Knock-Sensor Codes
| Code | Definition | Diagnostic distinction |
| P0329 | Knock Sensor 1 Circuit Intermittent | Sensor 1 signal drops out or returns |
| P0330 | Knock Sensor 2 Circuit Malfunction | General Sensor 2 circuit problem |
| P0331 | Knock Sensor 2 Range/Performance | Signal exists but behaves implausibly |
| P0332 | Knock Sensor 2 Circuit Low Input | Signal remains below its threshold |
| P0333 | Knock Sensor 2 Circuit High Input | Signal remains above its threshold |
| P0334 | Knock Sensor 2 Circuit Intermittent | Sensor 2 signal drops out or spikes |
The existing 2JZ P0330 knock-sensor guide covers vehicle-specific replacement. P0331 should remain focused on determining why Sensor 2’s signal does not make sense.
How Serious Is the P0331 Code?
P0331 is generally considered a moderate fault, but ignoring it can reduce engine protection.
If the PCM cannot trust Knock Sensor 2, it may:
- Retard ignition timing
- Reduce engine power
- Limit turbocharger boost
- Reduce throttle response
- Increase fuel consumption
- Enter a protective operating mode
The larger risk is genuine detonation occurring while knock detection is unreliable.
Stop driving if you notice:
- Loud metallic pinging
- Heavy mechanical knocking
- Severe rattling during acceleration
- Engine overheating
- Low oil pressure
- A flashing Check Engine Light
- Major power loss
For a noise-first diagnosis, see Engine Knocking Noise: What It Means.
Common Symptoms of P0331
Possible symptoms include:
- Check Engine Light
- Reduced engine power
- Sluggish acceleration
- Poor throttle response
- Retarded ignition timing
- Reduced turbocharger boost
- Hesitation
- Rough engine operation
- Lower fuel economy
- Engine pinging under load
- Excessive knock retard
- Limp mode
- Failed emissions inspection
- No noticeable drivability symptoms
Some vehicles may appear to run normally because the PCM substitutes conservative ignition timing.
Common Causes of the P0331 Code
Common P0331 causes include:
- Failed Knock Sensor 2
- Incorrect replacement sensor
- Low-quality aftermarket sensor
- Incorrect sensor mounting torque
- Loose knock sensor
- Over-tightened knock sensor
- Corrosion beneath the sensor
- Dirty mounting surface
- Cracked sensor housing
- Damaged sensor connector
- Excessive circuit resistance
- Open signal circuit
- Signal wire shorted to ground
- Signal wire shorted to voltage
- Loose connector terminals
- Damaged signal shielding
- Electrical interference
- Poor engine ground
- Poor PCM ground
- Genuine combustion knock
- Low-octane fuel
- Contaminated fuel
- Lean air-fuel mixture
- Excessive ignition advance
- Engine overheating
- High intake-air temperature
- Excessive turbocharger boost
- Incorrect spark plugs
- Carbon deposits
- Mechanical false knock
- Timing-chain noise
- Valvetrain noise
- Loose exhaust components
- Failed engine or transmission mount
- PCM software or calibration problem
- Internal PCM failure
Actual Detonation Versus False Knock
P0331 may result from a genuine combustion problem or vibration that merely resembles one.
Common Causes of Actual Detonation
- Fuel octane below the required rating
- Lean air-fuel mixture
- Excessive ignition timing
- Engine overheating
- High intake-air temperature
- Excessive boost pressure
- Incorrect spark-plug heat range
- Carbon deposits
- Incorrect engine calibration
- EGR system problems on applicable vehicles
Common Causes of False Knock
- Loose heat shield
- Exhaust contact
- Failed engine mount
- Timing-chain rattle
- Valvetrain noise
- Piston slap
- Accessory-bearing noise
- Loose flywheel or flexplate
- Incorrect sensor torque
- Electrical interference
The PCM responds to vibration. It does not know that a loose exhaust bracket costs $18 while an engine rebuild costs considerably more.
Why Comparing Sensor 1 and Sensor 2 Matters
On engines using two comparable knock sensors, the PCM may evaluate both signals under similar operating conditions.
If Knock Sensor 1 responds normally while Sensor 2 is:
- Significantly weaker
- Excessively noisy
- Slow to respond
- Flat
- Active under unrelated conditions
the difference can help isolate the affected bank, sensor or circuit.
The two signals may not be perfectly identical because:
- Sensor locations differ.
- Engine-block structure changes vibration transfer.
- Cylinder loading may vary.
- Exhaust and accessory noise may affect one side more than the other.
Use the comparison as diagnostic evidence, not as a universal pass/fail rule.
Common P0331 Scan-Tool Patterns
Bank 2 Knock Retard Remains at Zero
A lack of Bank 2 response may indicate:
- Weak sensor output
- Incorrect mounting
- Failed sensor
- Open or high-resistance circuit
- PCM input problem
Zero knock retard is not automatically abnormal. A healthy engine may not produce knock under normal operation.
Bank 2 Knock Retard Is Excessive
High knock retard during light-load operation may point toward:
- Actual detonation
- Mechanical false knock
- Incorrect sensor torque
- Wrong sensor
- Electrical interference
- Calibration problems
Compare the data with engine load, RPM, throttle position and ignition timing.
Bank 2 Data Spikes Randomly
Random activity may be caused by:
- Loose terminals
- Damaged shielding
- Harness movement
- Ignition interference
- Exhaust contact
- Mechanical noise
Graph both sensor channels alongside engine speed and vehicle speed.
Sensor 2 Does Not Respond With Engine Speed
A signal that remains unchanged as RPM and load increase may indicate:
- Weak sensor
- Poor mounting contact
- Incorrect sensor
- Excessive circuit resistance
- Signal-processing fault
Use manufacturer specifications or known-good waveform data.
Sensor 2 Differs Greatly From Sensor 1
If only Sensor 2 produces abnormal data, inspect:
- Sensor installation
- Sensor part number
- Bank 2 wiring
- Localized mechanical noise
- Bank-specific combustion problems
Do not replace both sensors merely because they arrived in the same box.
How to Diagnose the P0331 Code
Step 1: Scan All Modules
Record:
- Stored codes
- Pending codes
- Freeze-frame data
- Engine RPM
- Engine load
- Ignition timing
- Knock retard
- Sensor 1 and Sensor 2 data
- Fuel trims
- Coolant temperature
- Intake-air temperature
- Battery voltage
Check for related codes involving:
- Lean operation
- Misfires
- Engine temperature
- Knock Sensor 1
- Knock Sensor 2
- Mass airflow
- Fuel pressure
- System voltage
Freeze-frame data may show whether the code occurred under high load, excessive temperature or a specific RPM range.
Step 2: Confirm Bank 2 and Sensor 2
Use manufacturer information to identify:
- Cylinder number one
- Bank 1 and Bank 2
- Sensor 1 and Sensor 2
- Connector pinout
- PCM terminal
- Sensor torque
- Wiring route
- Signal shielding
Inline engines may use two knock sensors without two cylinder banks. Follow the manufacturer’s sensor numbering rather than applying a V-engine layout.
Step 3: Listen for Abnormal Engine Noise
Inspect the engine for:
- Combustion pinging
- Timing-chain rattle
- Valvetrain noise
- Piston slap
- Deep bearing knock
- Loose heat shields
- Exhaust contact
- Accessory-drive noise
Do not continue running an engine with heavy knocking or low oil pressure.
For a broader noise diagnosis, use the engine-knocking-noise cornerstone.
Step 4: Verify Fuel Quality
Confirm that the engine contains the manufacturer’s required fuel grade.
Investigate:
- Incorrect octane
- Contaminated fuel
- Old fuel
- Water contamination
- Excessive ethanol
- Recent refueling
Low-quality fuel can cause genuine detonation, but it does not automatically explain a Bank 2-specific performance code.
Step 5: Check Fuel Trims
Monitor short- and long-term fuel trims for both banks.
If Bank 2 shows significantly more positive correction, inspect for:
- Intake leaks
- Injector restrictions
- Low fuel delivery
- Exhaust leaks
- Airflow-distribution problems
A lean Bank 2 condition may cause actual knock and abnormal Sensor 2 activity.
Step 6: Check Engine and Intake Temperatures
Excessive temperature increases detonation risk.
Check:
- Coolant level
- Coolant-temperature data
- Cooling-fan operation
- Thermostat operation
- Radiator airflow
- Intake-air temperature
- Intercooler effectiveness
- Turbocharger heat management
Repair overheating before continuing knock-sensor diagnosis.
Step 7: Inspect Knock Sensor 2
Inspect the sensor and surrounding area for:
- Physical damage
- Loose mounting
- Corrosion
- Oil contamination
- Coolant contamination
- Water intrusion
- Damaged connector
- Incorrect wiring route
- Evidence of previous repairs
If the sensor is mounted beneath the intake manifold, inspect the complete sensor cavity or engine valley.
Step 8: Verify the Sensor Part Number
Knock sensors are calibrated to recognize specific frequency ranges.
An incorrect sensor may physically fit but produce:
- Weak output
- Excessive sensitivity
- Incorrect frequency response
- Delayed response
- False knock
Verify the original-equipment or approved replacement part number.
This is one area where “universal” often means “universally capable of wasting your Saturday.”
Step 9: Verify Mounting Torque
Correct sensor torque is critical because the sensor relies on physical contact with the engine block.
Check:
- Exact torque specification
- Mounting orientation
- Correct fastener
- Clean mounting surface
- Absence of corrosion
- Absence of prohibited thread sealant
An under-tightened sensor may respond weakly. An over-tightened sensor may become overly sensitive or suffer damage.
Never use a universal torque specification.
Step 10: Inspect the Wiring and Shielding
Inspect the circuit between Sensor 2 and the PCM.
Look for:
- Melted wiring
- Pinched insulation
- Loose connector terminals
- Corrosion
- Broken shielding
- Poor aftermarket splices
- Wiring routed near ignition coils
- Wiring routed near alternator cables
- Harness contact with the exhaust
- Wiring stretched by engine movement
Shielded sensor wiring should be repaired according to the manufacturer’s procedure.
Step 11: Test the Circuit
With the correct modules disconnected, test:
- Signal-wire continuity
- Resistance to ground
- Resistance to voltage
- Connector-terminal tension
- Ground condition
- Shield integrity when specified
A continuity beep alone does not prove signal quality. High resistance or electrical interference can distort a low-level knock-sensor signal while the circuit still shows continuity.
Step 12: Compare Both Sensors on Live Data
Graph Sensor 1 and Sensor 2 simultaneously.
Compare their response during:
- Idle
- Gradual acceleration
- Steady cruise
- Deceleration
- Moderate engine load
Do not deliberately create severe detonation.
Look for a repeatable difference that follows Sensor 2 rather than a general engine condition.
Step 13: Compare Oscilloscope Waveforms
An oscilloscope provides the best comparison of signal quality.
Inspect Sensor 2 for:
- Weak amplitude
- Excessive noise
- Slow response
- Signal clipping
- Unexplained spikes
- Frequency differences
- Intermittent dropout
Compare the waveform at:
- Sensor 2
- Intermediate connectors
- The PCM input
If the signal is correct at the sensor but distorted at the PCM, suspect the harness, terminals or shielding.
Step 14: Inspect for Mechanical False Knock
Check the Bank 2 or Sensor 2 area for:
- Loose heat shields
- Exhaust contact
- Failed engine mounts
- Timing-component noise
- Valvetrain noise
- Loose accessory brackets
- Flywheel or flexplate problems
Repair the mechanical noise and reevaluate the knock data.
Step 15: Review Tuning and PCM Calibration
Check for:
- Aftermarket tuning
- Aggressive ignition timing
- Increased boost
- Incorrect fuel mapping
- Piggyback controllers
- PCM software updates
- Manufacturer technical service bulletins
Modified calibration can create genuine knock or cause sensor behavior outside the factory monitor’s expected range.
Step 16: Evaluate the PCM Last
Consider PCM failure only after confirming:
- Correct sensor
- Proper sensor installation
- Correct mounting torque
- Wiring integrity
- Signal shielding
- Ground quality
- Fuel quality
- Fuel trims
- Engine temperature
- Mechanical condition
- Waveform quality
- Current PCM software
If a valid Sensor 2 signal reaches the PCM but the controller interprets it incorrectly, software or internal hardware may be responsible.
Common P0331 Diagnostic Mistakes
Avoid these mistakes:
- Replacing Sensor 2 without comparing Sensor 1
- Confusing P0331 with P0330
- Assuming Sensor 2 is always on a particular side
- Installing an incorrect aftermarket sensor
- Ignoring mounting torque
- Failing to clean the mounting surface
- Ignoring signal-wire shielding
- Treating all engine noise as detonation
- Ignoring Bank 2 fuel trims
- Using universal sensor specifications
- Replacing the PCM before checking calibration updates
P0331 describes poor signal performance. It does not provide a prepaid authorization to replace every knock sensor beneath the intake manifold.
How to Fix the P0331 Code
Possible repairs include:
- Installing the correct Knock Sensor 2
- Replacing a failed sensor
- Correcting mounting torque
- Cleaning the mounting surface
- Repairing the connector
- Replacing loose terminals
- Repairing signal wiring
- Restoring signal shielding
- Repairing engine or PCM grounds
- Correcting Bank 2 intake leaks
- Repairing a lean fuel condition
- Replacing contaminated fuel
- Correcting engine overheating
- Repairing mechanical false-knock sources
- Correcting ignition timing
- Restoring the proper engine calibration
- Updating PCM software
- Replacing and programming a proven defective PCM
After repairs:
- Clear the stored codes.
- Start the engine and monitor both knock-sensor channels.
- Allow the engine to reach operating temperature.
- Check fuel trims and ignition timing.
- Reproduce the freeze-frame conditions.
- Complete the appropriate drive cycle.
- Rescan for pending and stored codes.
Estimated P0331 Repair Costs
| Repair | Typical estimated cost |
| Professional diagnosis | $100–300 |
| Connector or minor wiring repair | $75–400 |
| Knock Sensor 2 replacement | $150–900 |
| Intake-manifold removal for access | $400–1,200+ |
| Lean-condition repair | $100–1,500+ |
| Cooling-system repair | $100–1,500+ |
| Mechanical false-knock repair | $100–3,000+ |
| PCM software update | $100–300 |
| PCM replacement and programming | $800–2,500+ |
Sensor location can greatly affect labor cost. A small sensor beneath the intake manifold may require several hours of disassembly.
Can You Drive With a P0331 Code?
Short-term driving may be possible when:
- The engine runs normally.
- No knocking is audible.
- Engine temperature remains normal.
- Oil pressure remains normal.
- The Check Engine Light is steady.
Do not continue driving if the vehicle has:
- Loud pinging or detonation
- Heavy mechanical knocking
- Overheating
- Low oil pressure
- Severe power loss
- A flashing Check Engine Light
If the PCM cannot trust Knock Sensor 2, engine protection on the monitored bank or cylinder group may be reduced.
Can Low-Octane Fuel Cause P0331?
Low-octane fuel may cause genuine detonation, particularly in engines requiring premium fuel.
However, a Sensor 2-specific range/performance code should also prompt comparison between both sensor circuits and cylinder banks.
Use the required fuel grade, then diagnose the code if it returns.
Can Incorrect Sensor Torque Cause P0331?
Yes.
Knock Sensor 2 must be properly coupled to the engine block.
Incorrect torque can cause:
- Weak sensor response
- Excessive sensitivity
- Distorted signal frequency
- Physical sensor damage
Use the manufacturer’s exact specification.
Can a Wrong Knock Sensor Cause P0331?
Yes.
An incorrect sensor may fit the connector and bolt to the engine while producing the wrong frequency response or signal amplitude.
Verify the part number before testing more complicated causes.
Can a Lean Bank 2 Condition Trigger P0331?
A lean condition can cause genuine combustion knock on Bank 2.
Check Bank 2 fuel trims, intake leaks, injector operation and fuel delivery. Repair the lean condition before condemning the sensor.
Does P0331 Mean Knock Sensor 2 Is Bad?
No.
A defective sensor is one possibility, but P0331 may also result from:
- Incorrect installation
- Wrong sensor
- Wiring interference
- Mechanical false knock
- Bank-specific detonation
- Lean operation
- Overheating
- PCM calibration
Test the sensor response and compare it with Sensor 1 before replacing components.
Related Pro Street Diagnostic Guides
Continue the diagnosis with these resources:
- Complete P-series OBD-II code list
- P0324 knock-control system error
- P0326 Knock Sensor 1 range/performance
- P0329 Knock Sensor 1 circuit intermittent
- P0330 2JZ Knock Sensor 2 replacement
- P0327 and P0328 knock-sensor guide
- Common engine-knock causes
- Engine knocking noise: causes and diagnosis
- LS1 sensor guide
Final Thoughts
The P0331 code means the PCM can detect a Knock Sensor 2 signal, but that signal does not behave within the expected range.
The sensor may respond too weakly, too aggressively or inconsistently with engine speed, load and the signal from Knock Sensor 1.
Begin by identifying Sensor 2 correctly. Verify its part number, mounting torque and mounting surface. Inspect the wiring and shielding, compare both sensor channels and evaluate Bank 2 fuel trims before replacing anything.
P0331 is not saying that Knock Sensor 2 is silent. It is saying the sensor’s story does not match the evidence—which is precisely when diagnosis should begin, not when the parts cannon should be loaded.
