P0158 BMW: Diagnose Bank 2 Sensor 2 and Fix High Voltage
17 min read · by Nicole Bennett · Last updated: November 25, 2026
The P0158 BMW trouble code means the Bank 2 Sensor 2 oxygen sensor circuit is reporting higher-than-expected voltage, indicating a possible sensor failure, wiring problem, or rich-running engine. This sensor sits downstream of the catalytic converter. Its signal helps the engine computer monitor exhaust oxygen levels and catalytic converter operation. When the reading stays above the permitted range, the engine control module (DME) can store a fault and illuminate the Check Engine light.
On BMW models, P0158 can correspond to manufacturer-specific diagnostic faults such as 2C74 or 272B, depending on the engine and vehicle. BMW service information for the N52-powered 2006 330i associates P0158 with 2C74 and specifies a voltage above 4.6 volts as a fault-entry condition. The S65-powered M3 uses a different monitoring strategy. These differences make model-specific diagnostic information important.
Do not automatically replace the oxygen sensor when this code appears. A damaged connector, a signal wire shorted to voltage, or an excessively rich exhaust mixture can produce a similar result. The correct repair starts with identifying the affected sensor, reviewing scan data, and testing the electrical circuit before installing replacement parts.
What P0158 Means on a BMW
P0158 is the generic SAE definition for O2 Sensor Circuit High Voltage (Bank 2 Sensor 2). It identifies an abnormal signal from the downstream oxygen sensor on the second cylinder bank. BMW uses additional manufacturer-specific fault information to describe how its DME detects the problem.
The code contains three useful pieces of information. The letter P identifies a powertrain fault. The first numeric character, 0, identifies a standardized generic diagnostic code. The remaining digits identify the oxygen sensor circuit and the high-voltage condition. BMW’s published SAE P-code list confirms that P0158 refers to Bank 2 Sensor 2, not the upstream sensor.
Understanding Bank 2 and Sensor 2
Bank 2 is the cylinder bank that does not contain cylinder 1. This distinction matters because BMW engines can have different cylinder arrangements depending on whether they use an inline-six, V8, V10, or another configuration. An inline-six engine normally has only one cylinder bank, so a generic Bank 2 description should not be assumed to identify a physically separate bank on every BMW application. Confirm the vehicle’s actual engine configuration and BMW-specific fault information before ordering a sensor.
Sensor 2 means the downstream sensor, positioned after the catalytic converter. Sensor 1 is the upstream sensor, positioned before the converter. The upstream sensor helps the engine control its air-fuel mixture. The downstream sensor primarily monitors exhaust conditions after the converter and helps evaluate catalyst operation.
| Code or term | Meaning |
|---|---|
| P0158 | O2 Sensor Circuit High Voltage, Bank 2 Sensor 2 |
| P0157 | O2 Sensor Circuit Low Voltage, Bank 2 Sensor 2 |
| P0159 | O2 Sensor Circuit Slow Response, Bank 2 Sensor 2 |
| P0156 | O2 Sensor Circuit, Bank 2 Sensor 2 |
| 2C74 | BMW-specific fault associated with P0158 on the referenced N52 application |
| 272B | BMW-specific fault associated with P0158 on the referenced S65 application |
The BMW-specific codes are particularly useful because they provide additional information about the DME’s monitoring strategy. A generic scanner may display P0158 without showing the corresponding BMW fault description or the manufacturer’s diagnostic conditions. A BMW-capable scanner can provide more detailed information, including manufacturer-specific fault records and live sensor parameters. Compare the causes listed here with P0158 Nissan Code to rule out make-specific issues.
BMW Symptoms and Warning Signs
A BMW with P0158 may show only an illuminated Check Engine light, particularly when the problem is an isolated downstream sensor circuit fault. More noticeable symptoms can develop if the engine is also running rich or the oxygen sensor signal affects emissions monitoring.

The following symptoms can help establish whether the problem is limited to an electrical signal or involves a broader engine-management issue. Not every vehicle will show all of them.
- Check Engine light: The most common indication is an illuminated malfunction indicator lamp. The DME has detected a sensor signal that exceeds its permitted operating range.
- Reduced fuel economy: A genuine rich-running condition can increase fuel consumption. However, an isolated downstream circuit fault does not automatically mean the engine is injecting too much fuel.
- Rough idle: An unstable idle may occur if the fault is accompanied by mixture-control problems, injector leakage, or another engine-management issue.
- Fuel smell: A strong gasoline odor from the exhaust can indicate incomplete combustion or excessive fuel delivery. This deserves prompt investigation.
- Failed emissions inspection: A stored emissions-related trouble code can prevent a vehicle from passing an applicable inspection, even if it appears to drive normally.
- Additional diagnostic codes: Rich-mixture, misfire, or catalytic converter codes may appear alongside P0158. These additional codes can help identify the underlying cause.
When Symptoms Suggest a Rich Mixture
Pay particular attention to fuel odor, black exhaust smoke, poor mileage, and negative fuel trims. These signs can indicate that the engine is receiving more fuel than it can burn efficiently. Potential causes include leaking fuel injectors, excessive fuel pressure, or inaccurate engine air-measurement information.
Compare Bank 1 and Bank 2 fuel trims when the engine supports separate bank monitoring. If Bank 2 shows substantially more negative correction than Bank 1, investigate the affected bank’s fuel delivery and air-fuel control. Short-term and long-term fuel trims combined beyond approximately plus or minus 10 percent deserve attention. Readings beyond approximately 25 percent can contribute to lean or rich trouble codes.
A normal-feeling BMW can still have a genuine P0158 fault. The downstream oxygen sensor does not necessarily produce an obvious drivability complaint when its circuit develops an electrical problem. That is why scanner readings and electrical testing are more useful than symptoms alone. The same code can behave differently on other vehicles, so it helps to compare it with P0158 Dodge Code.
Common Causes of P0158 on BMW Vehicles
P0158 can result from a defective downstream oxygen sensor, an electrical fault in its signal circuit, or an exhaust mixture that is genuinely too rich. BMW diagnostic information specifically recommends checking the wiring and connector before replacing the affected sensor.
1. Failed Downstream Oxygen Sensor
The Bank 2 Sensor 2 oxygen sensor operates in a hot exhaust environment. Repeated heating and cooling cycles, contamination, and internal electronic deterioration can affect its signal. A defective sensor may report an unusually high voltage even when the exhaust mixture is not excessively rich.
A sensor should not be condemned solely because the scanner displays P0158. Compare the actual signal with the expected behavior, check the connector, and verify the signal circuit. If the wiring and operating conditions are correct but the sensor continues producing an abnormal reading, replacement becomes more likely.
2. Damaged Wiring or a Short to Voltage
A signal wire shorted to a power supply can create an abnormally high reading. This is an important possibility because replacing the oxygen sensor will not correct a wiring fault. Exhaust heat, abrasion, previous repairs, and contact with nearby components can damage the harness.
Inspect the accessible wiring for melted insulation, exposed conductors, crushed sections, and incorrect routing. Pay attention to areas near the exhaust system, where high temperatures can damage protective coverings. A damaged harness may also create an intermittent problem that appears only when the engine moves or reaches operating temperature.
3. Corroded or Loose Sensor Connector
Moisture, road contamination, damaged locking tabs, and terminal corrosion can interfere with the sensor connection. A loose connector may cause intermittent readings, while corrosion can increase electrical resistance or create unintended electrical paths.
A visual inspection should include the connector body, terminal condition, locking mechanism, and wiring strain relief. Do not assume that a connector is electrically sound simply because its housing appears intact. Electrical testing may be necessary to identify a poor terminal connection.
4. Excessively Rich Exhaust Mixture
An oxygen sensor detects the oxygen content of the exhaust. A genuinely rich mixture contains more fuel relative to available air, which can produce a high oxygen sensor signal. Potential causes include leaking injectors, incorrect fuel pressure, and inaccurate engine air-measurement information.
Other faults may accompany the rich condition. Check for fuel-trim codes, misfires, and relevant air-metering faults. The presence of P0158 does not identify a specific defective injector or fuel-system component. Additional tests are required before replacing parts.
5. Exhaust or Engine Management Problems
An exhaust leak near the sensor can affect oxygen measurements and should be considered during diagnosis. Other engine-management problems may also produce abnormal exhaust conditions. A damaged catalytic converter, however, should not be assumed to be the cause simply because the code identifies a downstream sensor.
A DME fault is another possibility, but it should be considered only after the sensor, wiring, connector, power supply, ground, and relevant mixture conditions have been checked. Control-module replacement without supporting test results is an expensive and unreliable diagnostic approach.
Tip: Never replace the catalytic converter solely because P0158 appears. BMW identifies this as a downstream oxygen sensor high-voltage fault. Diagnose the sensor signal and wiring first, then investigate fuel-mixture problems if the evidence supports them.
How to Diagnose P0158 With an OBD2 Scanner
A reliable diagnosis combines fault-code information, freeze-frame records, live oxygen sensor readings, and electrical inspections. A basic OBD2 scanner can identify the generic code, but a BMW-capable diagnostic tool is preferable when manufacturer-specific DME information is available.

Step 1: Read All Stored and Pending Codes
Connect the scanner to the BMW’s 16-pin OBD2 diagnostic port, normally located beneath the driver-side dashboard. Read all available engine codes before clearing anything. Record confirmed, pending, and permanent codes separately.
Look for related oxygen sensor codes, fuel-trim faults, misfires, and catalytic converter efficiency codes. For example, P0172 indicates a rich condition on Bank 1, while P0175 indicates a rich condition on Bank 2. These additional codes can help establish whether P0158 is part of a broader mixture problem.
Step 2: Review Freeze-Frame Data
Freeze-frame data records engine operating conditions when the fault was detected. Depending on the vehicle and scanner, it may include engine speed, coolant temperature, vehicle speed, calculated load, and fuel-system status.
Check whether the code appeared at idle, during acceleration, or under steady cruising conditions. A fault that repeatedly appears after the engine reaches operating temperature may suggest a heat-related electrical problem. A fault associated with high engine load and negative fuel trims deserves further fuel-system investigation.
Step 3: Examine Bank 2 Sensor 2 Live Data
Warm the engine under appropriate operating conditions and monitor the downstream oxygen sensor signal. Use the correct BMW data parameter rather than assuming that every scanner labels the sensor identically. Compare the signal with the applicable manufacturer specification.
For conventional narrowband oxygen sensors, a typical signal range is approximately 0.1 to 0.9 volts. The downstream sensor generally produces a steadier signal than the upstream sensor when the catalytic converter is functioning properly. However, BMW applications can use different sensor technologies and diagnostic strategies. Some BMW systems report wideband or other sensor parameters that cannot be interpreted using conventional narrowband voltage expectations.
The 2006 BMW 330i N52 service information identifies a voltage above 4.6 volts as a P0158 fault-entry condition. That is a specific BMW diagnostic threshold for the referenced application, not a universal value for every BMW. The 2010 M3 S65 documentation instead describes a threshold above 1,099 millivolts for at least 10 seconds. These differences demonstrate why engine-specific specifications matter. For the original diagnostic conditions and recommended checks, consult the BMW N52 P0158 diagnostic service information.
Step 4: Compare Fuel Trims
Monitor short-term fuel trim (STFT) and long-term fuel trim (LTFT) for the relevant bank. Fuel trims show how the DME adjusts fuel delivery to maintain its target mixture. Strongly negative readings indicate that the control system is removing fuel, which can support a rich-mixture diagnosis.
Combined fuel trims beyond approximately plus or minus 10 percent deserve investigation. Readings approaching or exceeding approximately 25 percent may be associated with mixture-related trouble codes. These are general diagnostic guidelines rather than fixed BMW P0158 setting thresholds.
Step 5: Inspect Wiring and Connector Condition
With the ignition switched off and the appropriate safety precautions observed, inspect the downstream sensor harness and connector. Look for heat damage, corrosion, exposed wiring, moisture, and loose terminals. Confirm that the harness has not been trapped against exhaust components or damaged by previous repairs.
If visual inspection does not reveal a problem, use the correct wiring diagram and manufacturer test procedure to check the signal circuit for shorts to voltage, continuity problems, and ground faults. Do not randomly apply battery voltage or ground to oxygen sensor terminals. Incorrect probing can damage the sensor or DME.
Step 6: Check Mode $06 and Confirm the Repair
Where supported, Mode $06 can provide onboard monitor test results. Review relevant oxygen sensor and catalyst monitor information to determine whether a test is passing, failing, or has not completed. Some generic scanners display these results in manufacturer-specific formats, so interpretation may require BMW diagnostic documentation.
After completing the repair, clear codes only when appropriate and run the required drive cycle. Monitor the oxygen sensor signal and confirm that the fault does not return. Permanent diagnostic codes may remain visible until the vehicle completes the applicable monitor successfully. A related problem on the same vehicle is explained in P0118 BMW.
BMW P0158 Repair Options and Cost Factors
The correct repair depends on whether the fault comes from the oxygen sensor, wiring, connector, or an underlying mixture problem. Repair complexity varies considerably between BMW models because sensor access, exhaust layout, engine configuration, and diagnostic procedures are not identical.
Replacing the Downstream Oxygen Sensor
If electrical testing confirms that the Bank 2 Sensor 2 unit is defective, replacement may resolve the fault. The replacement must match the vehicle’s engine, exhaust configuration, connector, and sensor technology. A physically similar oxygen sensor is not necessarily electrically compatible with the BMW DME.
Sensor access can require additional labor depending on the vehicle. Some installations provide relatively direct access, while others have restricted clearance around the exhaust system. Corrosion and heat exposure can also make removal more difficult. Follow the correct BMW repair procedure and use the specified installation requirements.
Repairing the Wiring or Connector
If the signal wire is damaged or shorted to voltage, the affected harness section must be repaired correctly. This may involve replacing damaged wiring, restoring terminal connections, or addressing incorrect harness routing. Repairs should preserve the original electrical characteristics and environmental protection of the circuit.
A damaged connector may require replacement rather than simply cleaning the visible terminals. The repair should also address the reason the connector deteriorated, such as moisture intrusion or excessive heat exposure.
Correcting a Rich-Running Condition
If fuel-trim readings and additional tests confirm an excessively rich mixture, diagnose the fuel-delivery and air-measurement systems. Depending on the evidence, the repair may involve an injector, fuel-pressure component, air-metering sensor, or another engine-management part.
Do not replace several fuel-system components simply because negative fuel trims are present. Verify fuel pressure against the correct engine specification and investigate whether an injector is leaking or delivering excessive fuel. A mixture problem may require more diagnostic time than an isolated sensor replacement.
What Determines the Repair Cost?
Repair costs depend on parts, labor, access, and the time required to identify the actual failure. A straightforward sensor replacement generally involves less diagnostic work than repairing a damaged harness or tracing an intermittent DME circuit fault.
- Parts: The required oxygen sensor, connector, wiring, or other confirmed defective component determines material expenses.
- Labor hours: Restricted exhaust access, corrosion, and difficult connector locations can increase installation time.
- Diagnostic equipment: BMW-specific scanning, electrical measurements, and manufacturer wiring information may require specialist equipment.
- Shop versus DIY: Professional repair includes diagnostic and labor charges. DIY repair may reduce labor expenses but requires appropriate tools, technical knowledge, and safe access.
- Additional faults: A rich-running condition, injector problem, or harness fault can require repairs beyond the original oxygen sensor circuit.
Before approving a repair, ask the technician whether the sensor signal and wiring were tested. A useful estimate should identify the confirmed failure, the parts required, the expected labor, and whether additional diagnostic work may be necessary.
Tip: If a BMW repair estimate recommends both a downstream oxygen sensor and a catalytic converter, request the diagnostic evidence supporting each replacement. P0158 alone does not prove that the catalytic converter has failed. Owners of this model also ask about P0102 BMW Code.
Is It Safe to Drive a BMW With P0158?
A BMW with an isolated P0158 fault may remain drivable for a short period if the engine runs normally and there are no other warning signs. However, continued driving is not recommended as a substitute for diagnosis. A genuine rich-running condition can increase fuel consumption and damage emissions components over time.
The distinction between an electrical fault and a mixture problem is important. If the downstream sensor signal is incorrect because of a damaged wire, the engine may otherwise operate normally. If excessive fuel is entering the exhaust, the problem can become more serious and may affect the catalytic converter.
When Limited Driving May Be Possible
A short trip to a repair facility may be reasonable if the Check Engine light is steady, the engine runs smoothly, there is no strong fuel smell, and there are no signs of overheating or other serious mechanical problems. Avoid heavy acceleration, high engine loads, and unnecessary long-distance driving until the fault is diagnosed.
When to Stop Driving
Stop driving and arrange professional assistance if the vehicle develops severe rough running, a strong gasoline smell, substantial smoke, or significant loss of power. A flashing Check Engine light indicates an active misfire that can quickly damage the catalytic converter. Reduce engine load and have the vehicle checked promptly.
Do not ignore additional warnings involving engine temperature, oil pressure, or other critical systems. P0158 may be one part of a larger engine-management problem. The safest decision depends on the complete set of symptoms and fault information, not the P0158 code alone.
A professional inspection is especially important if the engine runs rich. Unburned fuel can overheat the catalytic converter and cause expensive exhaust-system damage. Correcting the underlying fault early can prevent a relatively simple electrical or fuel-system issue from becoming a larger repair. The test is only as good as the tool, so compare options in Best Diagnostic Scanner For Smog Check.
Frequently Asked Questions
Can P0158 appear without turning on the Check Engine light?
Yes. A pending P0158 may be recorded after an initial failed monitor without immediately illuminating the malfunction indicator lamp. If the fault meets the vehicle’s confirmation criteria, the DME may store a confirmed fault and activate the light.
Does a permanent P0158 code disappear after clearing the scanner memory?
No. A permanent OBD2 diagnostic code cannot normally be erased with a scanner command or battery disconnection. It clears after the underlying problem is corrected and the relevant onboard monitor completes successfully.
Does P0158 mean Bank 2 is always the passenger side?
No. Bank identification depends on the engine’s cylinder numbering and configuration. Bank 2 is the bank that does not contain cylinder 1. Passenger-side and driver-side assumptions should never replace the engine-specific BMW cylinder identification.
Can a BMW have P0158 and P0430 at the same time?
Yes. P0430 indicates catalyst system efficiency below threshold on Bank 2. The two codes can occur together, but P0158 does not automatically establish that the catalyst has failed. Diagnose the oxygen sensor circuit and catalyst-monitor results separately.
Will replacing the oxygen sensor automatically reset BMW adaptations?
Not necessarily. Replacing a downstream sensor does not automatically require resetting every engine adaptation. Follow the applicable BMW service procedure, and perform adaptation resets only when the repair instructions or diagnostic findings specifically require them.
P0158 on a BMW identifies a high-voltage signal from the Bank 2 downstream oxygen sensor circuit, but it does not automatically mean the sensor or catalytic converter needs replacement. Check BMW-specific fault information, freeze-frame data, live oxygen sensor readings, fuel trims, and wiring before choosing a repair. Confirm that the relevant monitor passes after the repair to ensure the fault has been resolved.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0101 BMW: Diagnose Airflow Problems Before Replacing Parts
LearnP0113 BMW Code: Intake Air Temperature Sensor Causes and Checks
LearnP0172 BMW Code: Too Rich Bank 1 Causes and Checks
LearnP0159 BMW: Diagnose the Bank 2 Oxygen Sensor Fault
LearnP0154 BMW: Diagnose the Bank 2 Oxygen Sensor Fault
LearnP1804 Code: Identify the Fault Before Replacing Parts