What does the P0158 code mean?
The P0158 is a generic powertrain diagnostic trouble code. Its official definition is “O2 Sensor Circuit High Voltage (Bank 2 Sensor 2)“.
When you connect an obd2 scanner to the vehicle’s OBD-II port, this code indicates that the downstream oxygen sensor on Bank 2 (the side of the engine opposite cylinder #1) is sending a voltage signal that remains abnormally high. A properly functioning downstream O2 sensor normally fluctuates between 0.1V and 0.9V, with a steady state around 0.45V. If the voltage stays above 0.9V for an extended time (often over 1.0V), the PCM sets the P0158 code. This sensor is located after the catalytic converter on Bank 2 and monitors catalyst efficiency. A high voltage usually means the sensor is seeing a rich exhaust stream, but it can also result from a shorted sensor, contaminated tip, or wiring issues. Using a reliable car code scanner to view live sensor data is essential before replacing any parts.
Symptoms of Error Code P0158
- Check Engine Light (MIL) illuminated on the dashboard
- Slight decrease in fuel economy (typically 1–3 MPG lower than normal)
- No noticeable drivability problems in many cases (downstream sensor primarily monitors catalyst)
- Failed emissions test due to incorrect catalyst monitoring
- Rotten egg smell from the exhaust if the catalytic converter is failing
- Occasional rough idle or hesitation if the engine is truly running rich
- Black smoke or soot from the tailpipe in severe rich conditions
- Fuel odor near the rear of the vehicle
Main Causes of Error Code P0158
- Failed downstream O2 sensor (Bank 2 Sensor 2): Internal short or degradation causing a constant high voltage output. Responsible for approximately 70% of P0158 occurrences.
- Short to power in the sensor signal wire: The signal wire is chafed against a 12V source, artificially forcing the voltage high. Accounts for about 20% of cases.
- Contaminated sensor element: Oil ash, coolant residue (white deposits), or silicone from RTV sealant coating the sensing element leads to false high readings.
- Genuine rich condition on Bank 2: Leaking fuel injectors, excessive fuel pressure, or a stuck-closed fuel pressure regulator causing a true rich exhaust that the sensor correctly detects.
- Exhaust leak upstream of the sensor: A leak between the catalytic converter and the sensor can skew readings, though this more often causes low voltage codes.
- Corroded or damaged connector: Moisture ingress or terminal corrosion in the B2S2 connector disrupts signal integrity.
- Degraded catalytic converter: A failing cat can shed debris onto the sensor or fail to store oxygen, altering sensor response.
- PCM/ECM fault or outdated software: Rare, but an internal PCM issue can cause incorrect reference voltage or misinterpretation of sensor signals.
How to Diagnose Error Code P0158?
- Connect a car scanner to the vehicle’s OBD-II port and retrieve the P0158 code along with freeze frame data. Record engine temperature (should be above 176°F) and fuel system status (closed loop).
- Check for related codes. If P0172 (System Too Rich Bank 2) or P0175 is present, suspect a genuine rich condition rather than a sensor fault.
- Use a vehicle code reader to display live data for “O2 Sensor B2S2” or “HO2S22”. Observe the voltage while idling and during a quick snap throttle to 2500–3000 RPM. A healthy downstream sensor hovers around 0.5–0.8V with slow changes. A stuck high reading above 0.9V confirms the fault.
- Perform a thorough visual inspection of the B2S2 sensor and its wiring harness. Look for melted insulation near the exhaust manifold, chafed wires, crushed sections, and signs of oil or coolant contamination on the sensor body.
- With the engine OFF and cool, disconnect the B2S2 electrical connector. Turn the ignition ON (engine off). Measure the voltage on the signal wire at the PCM side of the harness using a digital multimeter (DVOM). If you see near 0V, the wiring is likely okay. If you see battery voltage (~12V), there is a short to power in the harness.
- Test the heater circuit: Measure resistance across the two heater pins on the sensor side of the connector. Typical specification is 3–14 ohms at room temperature (68°F). An open circuit or reading far outside spec indicates a failed heater element.
- Reconnect the sensor, start the engine, and warm it to operating temperature (around 190–210°F). Back-probe the signal wire while watching your vehicle diagnostics tool. If the voltage stays pinned above 0.9V and does not drop, turn off the engine.
- Disconnect the sensor again with KOEO (Key On Engine Off). If the high voltage disappears from the PCM side when the sensor is unplugged, the sensor itself is faulty. If the high voltage persists on the harness side, there is a short to power in the wiring.
- Inspect the connector terminals for corrosion, bent pins, or moisture. Clean with electrical contact cleaner and apply dielectric grease if necessary.
Possible Causes and Diagnostic Methods
| Possible Cause | How to Check? |
| Failed B2S2 O2 sensor | Monitor live voltage with a scan tool; if pinned above 0.9V and remains after revving, sensor is suspect. Confirm by disconnecting: voltage drops to near 0V on PCM side = bad sensor. |
| Short to power in wiring | Disconnect sensor, KOEO, measure signal wire at harness. If ~12V present, trace harness for chafing against power wires or exhaust heat damage. |
| Contaminated sensor | Remove sensor and visually inspect the tip. White powdery deposits = coolant contamination; black oily soot = oil burning; shiny deposits = silicone poisoning. |
| Rich running condition | Check for P0172/P0175 codes. Test fuel pressure (should be 40–60 PSI for most port-injected engines). Perform injector leak-down test on Bank 2. |
| Exhaust leak before sensor | Visually inspect exhaust manifold, gaskets, and pipes between cat and B2S2. Listen for ticking/clicking at idle. Smoke-test the exhaust if needed. |
| Failing catalytic converter | Compare B2S1 vs B2S2 waveform switching rates with a professional vehicle diagnostics tool. If B2S2 mirrors B2S1 closely, the cat is not storing oxygen properly. Also look for P0430 (Catalyst Efficiency Below Threshold Bank 2). |
| PCM/ECM fault | Rare. Verify all other possibilities first. Check PCM ground connections and reference voltage supply. Flash/update PCM software if available. |
Tools needed: obd2 scanner with live data streaming capability, digital multimeter (DVOM), O2 sensor socket (typically 7/8″ or 22mm), jack and jack stands, basic hand tools, electrical contact cleaner, dielectric grease, service manual for vehicle-specific resistance and voltage specifications.
How do I fix error code P0158? (Solutions to the Problem)
Simple Fixes
- Clean the B2S2 connector: Disconnect, spray with electrical contact cleaner, check for bent or corroded pins, reconnect with a dab of dielectric grease. This resolves minor signal interference issues.
- Reset the code and perform a drive cycle: Use your car code scanner to clear the code, then drive 50–100 miles under varied conditions to see if it returns. Sometimes a transient glitch sets the code.
- Inspect and reroute wiring: If you find the B2S2 harness touching the exhaust manifold or chafing against a sharp edge, reroute and secure it with zip ties or protective loom. Repair any damaged insulation with heat-shrink butt connectors.
- Replace the B2S2 oxygen sensor: For most vehicles this is the single most effective fix. OEM or high-quality aftermarket sensors (Denso, NTK, Bosch, Motorcraft) typically cost $60–$200. Labor is 30–45 minutes for a DIYer.
In-depth Diagnosis and Repair Solutions
- Diagnose and repair a genuine rich condition: If P0172 or P0175 accompanies P0158, the sensor is telling the truth. Test fuel pressure (should be 40–60 PSI for port injection, 55–75 PSI for many direct injection systems). Perform a fuel injector leak-down test on Bank 2. Replace leaking injectors or adjust fuel pressure regulator as needed.
- Repair a short-to-power in the wiring harness: Locate the damaged section (often near the exhaust manifold or where the harness passes over sharp brackets). Cut out the damaged portion, splice in a new length of 18–20 AWG automotive-grade wire using solder and heat shrink, or use weatherproof butt connectors. Secure the repaired harness away from heat sources.
- Replace a contaminated or physically damaged sensor: If the sensor tip shows white coolant deposits, black oil soot, or shiny silicone glaze, replace the sensor AND address the root cause (coolant leak, oil consumption, or improper sealant usage).
- Replace a failing catalytic converter: If P0430 is present alongside P0158 and the B2S2 waveform mimics B2S1, the catalytic converter is no longer storing oxygen efficiently. Replacement of the Bank 2 catalytic converter is required. Expect costs between $400 and $1200 depending on vehicle.
- Update PCM software: In rare cases, a manufacturer releases a software update to correct sensor interpretation logic. Check with the dealer or use a professional-level vehicle diagnostics tool to flash the latest calibration.
Fix faults based on symptoms
| Symptom / Observation | Likely Fault | Recommended Action |
| Voltage stuck >0.9V, drops to 0V when sensor disconnected | Bad O2 sensor | Replace B2S2 oxygen sensor |
| Voltage stuck >0.9V, remains high when sensor disconnected | Short to power in wiring | Repair or replace damaged harness section |
| White deposits on sensor tip | Coolant contamination | Repair coolant leak (head gasket, intake manifold gasket) and replace sensor |
| Black oily soot on sensor tip | Oil burning / rich condition | Address oil consumption (valve seals, piston rings) or rich fuel trim |
| Sensor voltage mirrors B2S1 waveform | Failing catalytic converter | Replace catalytic converter on Bank 2 |
| Accompanied by P0172 or P0175 | Genuine rich condition | Diagnose fuel system (injectors, pressure, regulator) |
Common Error Code P0158 in Vehicles
Toyota / Lexus: Common in Camry, Corolla, RAV4, and Lexus ES350 models with 2.4L or 3.5L engines. The B2S2 sensor is often located behind the firewall on the passenger side. Wiring harness chafing against the transmission bellhousing is a known issue. Always use OEM Denso sensors for best results.
Honda / Acura: Frequently seen on Accord, Civic, CR-V, and Acura TL with V6 engines. The downstream sensor on Bank 2 is prone to contamination from oil leaks at the valve cover gasket. Check for oil dripping onto the sensor connector. Honda recommends NTK sensors.
Ford / Lincoln / Mercury: Common on Ford F-150, Explorer, Mustang, and Lincoln Navigator with V8 engines. The B2S2 sensor on modular engines often fails due to heat cycling. Wiring shorts near the exhaust manifold are common. Use Motorcraft sensors for reliability.
Chevrolet / GMC: Seen on Silverado, Tahoe, Suburban, and GMC Sierra with V8 engines. The sensor on Bank 2 (driver side on most models) is exposed to road salt and moisture, leading to connector corrosion. Dielectric grease application during replacement prevents recurrence.
BMW: Common on 3 Series, 5 Series, X3, and X5 with inline-6 or V8 engines. The B2S2 sensor is often integrated into the exhaust pipe and requires special removal tools. Silicone contamination from aftermarket sealants is a known cause. Always use BMW-approved sensors.
Mercedes-Benz: Seen on C-Class, E-Class, S-Class, and ML-Class with V6 or V8 engines. The downstream sensor on Bank 2 is frequently contaminated by oil from turbocharger seals on turbocharged models. Genuine Bosch sensors are recommended.
Nissan / Infiniti: Common on Altima, Maxima, Pathfinder, and Infiniti G35/Q50 with V6 engines. The B2S2 sensor is located near the rear of the engine bay and is susceptible to water intrusion from windshield drains. NGK/NTK sensors are preferred.
Hyundai / Kia: Frequently seen on Sonata, Elantra, Santa Fe, Optima, and Sportage with 2.4L or 3.3L engines. The sensor wiring harness can rub against the subframe. Use OEM Hyundai/Kia sensors for proper fitment.
P0158 Frequently Asked Questions
Can I drive my car with a P0158 code?
Yes, in most cases you can drive short distances. The code indicates a sensor reading issue, not an immediate mechanical failure. However, prolonged driving may reduce fuel economy and could mask a developing rich condition that damages the catalytic converter over time.
Will a P0158 code clear itself?
If the underlying cause is intermittent (e.g., temporary moisture in the connector), the code may clear after several successful drive cycles without the fault recurring. However, most causes require active repair. Simply clearing the code without fixing the issue will result in it returning.
Is P0158 the same as P0157?
No. P0157 indicates “O2 Sensor Circuit Low Voltage (Bank 2 Sensor 2)” – the opposite condition where voltage stays below 0.1V. Both affect the same sensor but have different root causes.
How much does it cost to fix P0158?
Cost varies widely. Replacing the O2 sensor yourself costs $60–$200 for the part plus $10–$30 for tools. Professional labor adds $100–$200. If wiring repair is needed, add $50–$150. Catalytic converter replacement can cost $400–$1200.
Do I need to replace both Bank 2 sensors?
Only if both are showing faults. P0158 specifically points to the downstream sensor (Sensor 2). Replacing the upstream sensor (B2S1) unnecessarily will not fix the code.
Can a bad catalytic converter cause P0158?
Yes, but indirectly. A failing catalytic converter can contaminate the sensor with debris or cause the sensor to read a false high voltage if the converter cannot store oxygen. However, a bad converter more commonly triggers P0420/P0430 codes.
Should I use a universal or direct-fit O2 sensor?
A direct-fit sensor with the correct connector is strongly recommended. Universal sensors require splicing wires, which can introduce resistance and future failures. Direct-fit sensors are plug-and-play and more reliable.
How long does it take to replace a B2S2 sensor?
Typically 30–60 minutes for an experienced DIYer. Access can be tight on some vehicles, especially those with the sensor mounted behind the engine. Penetrating oil applied 15 minutes beforehand helps loosen rusted threads.
Can a vacuum leak cause P0158?
Not directly. Vacuum leaks usually cause lean conditions (low voltage codes like P0171/P0174). A large vacuum leak on Bank 2 could theoretically cause the PCM to overcorrect and create a rich condition, but this is uncommon.
P0158 Related OBD2 Errors
- P0136 – O2 Sensor Circuit Malfunction (Bank 1 Sensor 2)
- P0137 – O2 Sensor Circuit Low Voltage (Bank 1 Sensor 2)
- P0138 – O2 Sensor Circuit High Voltage (Bank 1 Sensor 2)
- P0140 – O2 Sensor Circuit No Activity Detected (Bank 1 Sensor 2)
- P0156 – O2 Sensor Circuit Malfunction (Bank 2 Sensor 2)
- P0157 – O2 Sensor Circuit Low Voltage (Bank 2 Sensor 2)
- P0159 – O2 Sensor Circuit Slow Response (Bank 2 Sensor 2)
- P0160 – O2 Sensor Circuit No Activity Detected (Bank 2 Sensor 2)
- P0172 – System Too Rich (Bank 1)
- P0175 – System Too Rich (Bank 2)
- P0420 – Catalyst System Efficiency Below Threshold (Bank 1)
- P0430 – Catalyst System Efficiency Below Threshold (Bank 2)
Important! Do not simply clear the P0158 code and hope it goes away. A persistently high voltage from the downstream O2 sensor can indicate a serious rich condition that may damage the catalytic converter, leading to costly repairs. Always diagnose the root cause before replacing any parts. If you are unsure about any step, consult a qualified mechanic or refer to your vehicle’s factory service manual.


