P0138 BMW: Diagnose the Rear Oxygen Sensor Fault
19 min read · by Nicole Bennett · Last updated: November 25, 2026
P0138 BMW means the engine computer has detected excessively high voltage from the Bank 1 Sensor 2 downstream oxygen sensor circuit. This sensor sits behind the catalytic converter and monitors exhaust oxygen levels. A faulty sensor, damaged wiring, a short to battery voltage, or an electrical problem involving the Digital Motor Electronics (DME) can trigger the code.
The check engine light is the most common warning. Some BMWs continue to drive normally, while others may experience increased fuel consumption, unusual exhaust behavior, or reduced engine performance. The actual symptoms depend on the engine management system and the underlying electrical fault.
Do not replace the oxygen sensor immediately just because this code appears. BMW service information recommends inspecting the downstream sensor wiring and connector and checking its signal before installing a replacement. A systematic diagnosis can prevent unnecessary parts replacement and help identify problems inside the electrical circuit.
What P0138 Means on a BMW
P0138 is a generic SAE powertrain diagnostic trouble code describing an oxygen sensor circuit with excessively high voltage on Bank 1 Sensor 2. On BMW vehicles, the DME monitors the rear oxygen sensor signal to determine whether the electrical reading is within the expected operating range.
The important distinction is that P0138 describes an electrical signal problem, not automatically a failed catalytic converter or an engine running too rich. The computer may be receiving an incorrectly high signal because of the sensor itself or because voltage is entering a circuit where it should not.
Understanding Bank 1 Sensor 2
The code contains three useful pieces of information:
- Bank 1: The side of the engine containing cylinder number 1. On an inline-six BMW engine, all cylinders belong to the same bank. On a V-engine, Bank 1 must be identified using the cylinder numbering for that particular engine.
- Sensor 2: The downstream oxygen sensor, positioned after the relevant catalytic converter. It is also called the rear oxygen sensor or post-catalyst lambda sensor.
- High voltage: The DME detects a signal that exceeds its programmed electrical threshold or remains abnormally high under specified operating conditions.
This distinction matters because Bank 1 Sensor 2 is not interchangeable diagnostically with Bank 1 Sensor 1. Sensor 1 is upstream of the catalytic converter and is primarily involved in mixture control. Sensor 2 provides information about exhaust conditions after the converter and helps monitor emissions performance.
BMW-Specific Fault Code Examples
BMW service documentation shows that the generic P0138 code can correspond to different internal DME fault numbers depending on the engine management system and vehicle application. For example, BMW documentation identifies 2C73 on certain E90 and E60 applications, while N55 documentation identifies 12A701 for an electrical short-to-positive condition.
| BMW application | BMW fault reference | Description |
|---|---|---|
| 2006 BMW 330i, N52 | 2C73 | Bank 1 downstream oxygen sensor high voltage |
| 2010 BMW 535xi, N54 | 2C73 | Bank 1 rear oxygen sensor signal fault |
| 2011 BMW 335xi, N55 | 12A701 | Rear oxygen sensor electrical short to positive |
These examples demonstrate why a BMW-capable diagnostic scanner is useful. It can retrieve the manufacturer-specific fault description and additional DME information instead of relying only on the generic P0138 label. Fault numbers and diagnostic thresholds should not be assumed to apply to every BMW engine. Shops often compare notes across makes for this code, and P0138 Chrysler is a good reference.
Common Causes of BMW P0138
The most common causes involve the rear oxygen sensor circuit, particularly the sensor, wiring, and electrical connections. BMW service information for several engine applications directs technicians to inspect the harness and connector before replacing the downstream sensor.

1. Failed Downstream Oxygen Sensor
A deteriorated rear oxygen sensor can produce an incorrect electrical signal. Its internal sensing element may become contaminated, damaged, or electrically defective. Heat exposure and normal aging can also affect the sensor’s ability to provide reliable readings.
A sensor that produces an abnormally high output can trigger P0138 even when the actual exhaust mixture is not excessively rich. The DME is evaluating the electrical signal, so a faulty sensing element can make the computer interpret exhaust conditions incorrectly.
A sensor becomes more suspect when the wiring and connector are in good condition, the relevant electrical circuits pass testing, and the scan-tool signal remains abnormal under the correct operating conditions.
2. Wiring Shorted to Battery Voltage
A short to positive voltage is an important cause of P0138 on BMW vehicles. The oxygen sensor signal wire may contact a powered wire because of damaged insulation, incorrect previous repairs, or heat-related deterioration.
The exhaust system operates at high temperatures. Wiring routed too close to exhaust components can become brittle or damaged. Vibration and movement can also cause insulation to wear through where the harness contacts a bracket or another component.
BMW’s N55 diagnostic documentation specifically identifies a short circuit to positive as a P0138-related electrical fault. It also lists a defective wiring harness among the possible causes. This makes circuit inspection an essential diagnostic step rather than an optional check.
3. Damaged or Corroded Electrical Connector
The oxygen sensor connector provides the electrical connection between the sensor and the DME. Water intrusion, corrosion, loose terminals, damaged locking tabs, or contamination can interfere with the signal.
A connector may appear attached while an internal terminal has lost proper contact. A previous repair can also leave a connector incorrectly seated or wiring connected improperly. These problems can produce intermittent faults that are difficult to identify from the warning light alone.
Check the connector for moisture, damaged pins, corrosion, and signs of overheating. Compare its condition with the correct BMW wiring diagram before performing electrical measurements.
4. Ground or Signal Circuit Problems
The sensor signal depends on the integrity of its electrical circuit. An open signal wire, damaged reference connection, or defective ground path can create an implausible reading at the DME.
A ground-related problem does not always produce a low-voltage fault. Depending on the sensor design and electrical circuit, an open or incorrectly referenced signal can cause the computer to interpret an unexpectedly high voltage.
BMW-specific wiring diagrams are important because oxygen sensor circuits vary between engine management systems. Do not assume that every sensor uses the same pin arrangement, reference voltage, or measurement procedure.
5. DME Electrical Fault
The DME is responsible for monitoring the oxygen sensor signal and controlling engine operation. An internal control-module fault can therefore trigger an electrical diagnostic code even when the sensor and external wiring are functioning correctly.
However, a defective DME should be considered only after the sensor, connector, signal wiring, and relevant electrical connections have been tested. BMW service information identifies DME failure as a potential cause in certain applications, but that does not make it the first component to replace.
Replacing or programming a DME is a substantially more involved repair than replacing a sensor. Proper circuit testing and confirmation of the control-module fault are essential before approving this work. Owners of other makes can check the matching guide: P0138 Nissan Code.
Symptoms and Driving Risks
A BMW with P0138 may show only a check engine light, especially when the fault is limited to the rear oxygen sensor electrical circuit. More noticeable symptoms can appear if the problem interferes with emissions monitoring or accompanies another engine-management fault.

Common Warning Signs
- Check engine light: The malfunction indicator lamp may illuminate after the DME confirms the fault. Some BMW diagnostic systems can also store the fault before the warning light appears.
- Increased fuel consumption: A faulty oxygen sensor signal can affect emissions-related control strategies. The effect on fuel consumption depends on the engine management system and whether other faults are present.
- Unusual exhaust emissions: Incorrect sensor information can interfere with accurate emissions monitoring. A separate mixture or combustion problem may also contribute to poor exhaust quality.
- Failed emissions inspection: An active emissions-related diagnostic trouble code or incomplete readiness monitors can prevent a vehicle from passing an applicable inspection.
- Intermittent warning light: A damaged wire or loose connector may create a fault that appears under certain temperature, vibration, or operating conditions.
- Reduced performance: Some BMW applications may display additional warnings or alter engine operation if the DME detects related faults. P0138 alone does not guarantee noticeable power loss.
Can You Drive With P0138?
In many cases, a BMW with an isolated P0138 fault can be driven a short distance to a repair facility if the engine runs normally, the check engine light is steady, and there are no other warning signs. The fault is generally less immediately dangerous than a brake-system or steering-system malfunction.
However, continued driving without diagnosis is not recommended. A malfunctioning downstream oxygen sensor can prevent accurate emissions monitoring. If the electrical problem is accompanied by a rich-running engine, misfire, or another fuel-control fault, the risks can increase significantly.
Pay attention to the check engine light. A flashing light indicates an active misfire that can damage the catalytic converter. Reduce engine load and arrange prompt professional diagnosis. Stop driving if the vehicle develops severe misfires, overheating, strong fuel odors, smoke, or significant loss of power.
Tip: Do not confuse P0138 with a catalytic converter efficiency code such as P0420. P0138 identifies a high-voltage oxygen sensor circuit condition. Diagnose the sensor and its wiring before assuming the catalytic converter needs replacement. If the check engine light flashes or the engine runs severely rough, reduce load and stop driving when it is safe to do so.
How to Diagnose P0138 on a BMW
Accurate diagnosis requires more than reading and clearing the fault code. Start with a complete DME scan, review the conditions under which the code appeared, and compare the rear oxygen sensor signal with the expected behavior for the specific BMW engine.
Step 1: Read All DME Fault Codes
Connect an OBD2 scanner to the 16-pin diagnostic connector, usually located beneath the driver’s side dashboard. Use a scanner that supports BMW-specific DME fault information when possible.
Record the generic P0138 code and any corresponding BMW fault number. Check for additional oxygen sensor, heater circuit, fuel mixture, battery voltage, and communication faults. Multiple related codes can help identify whether the problem affects one sensor or a larger electrical circuit.
Do not erase the fault memory before recording the available information. Clearing codes removes useful diagnostic evidence and may reset emissions readiness information.
Step 2: Examine Freeze-Frame Data
Freeze-frame data records engine operating conditions when the DME detected a fault. It can help determine whether the problem appeared during cold startup, warm operation, acceleration, or steady cruising.
Review the available parameters, including:
- Engine speed in RPM.
- Engine coolant temperature.
- Vehicle speed.
- Calculated engine load.
- Battery or control-module voltage.
- Available upstream and downstream oxygen sensor readings.
- Short-term and long-term fuel trim values, if supported.
For example, a fault that appears repeatedly after the engine warms up may suggest a temperature-related wiring or sensor problem. A fault that appears immediately after startup may point toward a persistent electrical issue. These are diagnostic clues rather than definitive proof of a failed component.
Step 3: Monitor Live Oxygen Sensor Data
With the engine at the appropriate operating temperature, examine the live data for Bank 1 Sensor 2. Compare its signal with the upstream oxygen sensor and any available manufacturer-specific parameters.
On a conventional narrowband oxygen sensor, the upstream signal typically switches between approximately 0.1 and 0.9 volts during closed-loop operation. The downstream signal should generally be more stable when the catalytic converter is functioning properly. However, these values are general reference points, not universal BMW specifications.
Some BMW applications use different sensor technologies, including wideband systems. Their readings may be displayed as current, lambda values, or other manufacturer-specific parameters rather than a conventional narrowband voltage. Always use the correct interpretation for the installed sensor.
A rear sensor signal that remains unusually high or becomes implausible should prompt further electrical testing. Do not conclude that the sensor is defective based only on a single live-data reading.
Step 4: Inspect the Sensor and Wiring
Locate Bank 1 Sensor 2 using the correct service information for the vehicle’s engine and exhaust configuration. Inspect the sensor harness and connector for damage, heat exposure, corrosion, water intrusion, loose terminals, and previous repairs.
Pay particular attention to the wiring near the exhaust system. Heat damage can cause insulation to crack and expose conductors. A wire touching another powered circuit can create the high signal associated with P0138.
BMW service documentation for the N52 and N54 applications specifically recommends checking the downstream oxygen sensor wiring and connector. This inspection should take place before installing another sensor.
Step 5: Test the Electrical Circuit
If the visual inspection does not identify the fault, a qualified technician can use the correct BMW wiring diagram and a digital multimeter to test the sensor circuit. The purpose is to determine whether the abnormal signal originates from the sensor, harness, connector, or DME.
The electrical checks should include:
- Checking the signal wire for an unintended connection to battery positive.
- Checking for open circuits and excessive resistance where the BMW procedure specifies these tests.
- Inspecting the sensor ground or reference circuit as applicable to the sensor design.
- Verifying connector terminal condition and electrical contact.
- Checking relevant DME connections and power supplies when the preceding tests do not identify the fault.
Do not apply battery voltage directly to an oxygen sensor signal terminal. Incorrect probing or electrical connections can damage the sensor or DME. The pin assignments and expected measurements must come from the correct wiring diagram and BMW testing procedure.
Step 6: Review Fuel Trims and Additional Diagnostic Results
Fuel trim readings provide useful supporting information, especially when the BMW has additional mixture-related codes. Short-term fuel trim reflects immediate fuel corrections, while long-term fuel trim reflects learned adjustments over time.
Combined short-term and long-term fuel trim values beyond roughly plus or minus 10 percent can indicate a mixture problem. Readings approaching or exceeding approximately 25 percent may contribute to lean or rich fault codes, depending on operating conditions and the manufacturer’s diagnostic strategy.
Remember that P0138 is primarily an electrical high-voltage code. Abnormal fuel trims may indicate another problem that should be diagnosed separately rather than automatically being treated as the cause of P0138.
Where supported, review Mode $06 oxygen sensor monitor results. These results can provide additional information about completed emissions-monitor tests, but the test identifiers and limits may be manufacturer-specific. A generic scanner may not interpret every BMW result correctly.
Bosch diagnostic documentation explains that oxygen sensor monitor tests are not on-demand tests. They run only when the vehicle meets the required operating conditions. An unavailable or incomplete monitor result therefore does not automatically mean that the sensor has failed. A related problem on the same vehicle is explained in P0155 BMW.
For additional background, see the Bosch OBD diagnostic guide, which explains oxygen sensor monitor testing and the conditions required for completed results.
Repair Options and Cost Factors
The correct repair depends on which part of the Bank 1 Sensor 2 circuit has failed. A sensor replacement may solve the problem when the sensing element is defective, but wiring and connector faults require electrical repairs instead.
The following table summarizes common repair possibilities and the factors that affect the work involved.
| Confirmed problem | Typical repair | Main cost factors |
|---|---|---|
| Defective rear oxygen sensor | Replace Bank 1 Sensor 2 | Sensor type, access, labor time |
| Damaged signal wiring | Repair or replace affected harness section | Damage location, wiring access, testing time |
| Corroded connector | Repair terminals or replace connector as specified | Connector condition, parts availability, labor |
| Short to positive voltage | Locate and repair the electrical short | Diagnostic time, harness accessibility, extent of damage |
| Confirmed DME fault | Repair or replace the control module as appropriate | Module type, programming, coding, labor |
Replacing the Downstream Oxygen Sensor
If testing confirms a defective Bank 1 Sensor 2, replacement is usually the appropriate repair. The replacement must match the BMW’s engine, exhaust configuration, connector, and sensor technology.
A sensor that physically fits is not necessarily electrically compatible. Differences in wiring, signal characteristics, heater configuration, and connector design can cause additional diagnostic problems. Verify the correct application through BMW service information before ordering parts.
Access also varies by BMW model. Some vehicles provide relatively straightforward access, while others require additional underbody access or removal of surrounding components. A seized sensor can increase labor time because exhaust components are exposed to repeated heat cycles and corrosion.
Repairing Wiring and Connectors
When the fault comes from damaged wiring, replacing the oxygen sensor will not solve the underlying problem. The affected conductor, insulation, terminal, or connector must be repaired using the appropriate automotive electrical repair procedure.
The repair should restore the original electrical characteristics and protect the harness from exhaust heat, moisture, and vibration. Incorrect splicing or unsuitable replacement connectors can create recurring problems.
DME Repair or Replacement
DME replacement should be considered only after the external sensor circuit has passed the required diagnostic checks. BMW control modules may require programming, coding, and vehicle-specific configuration after installation.
This work generally requires BMW-capable diagnostic equipment and appropriate technical information. A control-module replacement is not a reasonable first response to an isolated P0138 code.
What Determines the Overall Repair Cost?
There is no reliable universal repair price for P0138 across the BMW range. The final cost depends on the vehicle, engine, fault location, required parts, and amount of diagnostic work.
- Parts: The cost depends on whether the repair requires an oxygen sensor, connector, wiring section, or control module.
- Labor hours: Sensor accessibility, corrosion, underbody access, and the amount of electrical troubleshooting affect labor requirements.
- Shop versus DIY: A repair facility charges for diagnostic equipment, labor, and parts. A capable DIY owner may reduce labor expenses but still needs the correct tools and technical information.
- Programming: Certain control-module repairs require additional coding or programming work.
- Additional faults: Related oxygen sensor, emissions, or engine-management problems can require separate repairs.
Ask the repair facility to identify the confirmed failure and explain why the proposed component needs replacement. A diagnostic report showing the BMW fault number, sensor readings, wiring inspection, and electrical test results is more useful than an estimate based only on the generic P0138 code. P0118 BMW covers another issue owners of this vehicle run into.
For a BMW-specific example of oxygen sensor fault diagnosis and repair procedures, the BMW technical service bulletin published through NHTSA describes rear oxygen sensor electrical faults, possible moisture-related sensor damage, and the required repair and programming considerations for specified S55 vehicles. Its instructions apply to the listed applications, not every BMW.
Preventing Recurring Oxygen Sensor Faults
Preventing another P0138 fault starts with protecting the sensor wiring and addressing engine problems that can damage emissions components. Oxygen sensors operate in a demanding environment, with repeated temperature changes and exposure to exhaust contaminants.
Protect the Exhaust Wiring
Make sure the sensor harness is routed and secured according to BMW specifications. Wiring should not contact hot exhaust components, sharp edges, or moving parts. A harness that has become loose after previous repair work may eventually suffer insulation damage.
During routine service, inspect visible wiring for cracks, abrasion, damaged clips, and signs of heat exposure. Pay attention to areas where the harness passes close to exhaust pipes, catalytic converters, and underbody brackets.
Address Other Engine Problems
Persistent misfires, oil consumption, coolant entering the combustion chamber, and incorrect fuel delivery can contribute to oxygen sensor contamination or catalytic converter problems. These issues should be diagnosed rather than ignored when an oxygen sensor code appears.
A sensor replacement may temporarily remove the warning light without addressing the underlying engine condition. If another fault caused contamination or abnormal exhaust conditions, the replacement sensor may also develop problems.
Verify the Repair Properly
After the repair, clear the stored code using an appropriate scanner and allow the vehicle to complete the required diagnostic monitor conditions. Check the DME again for pending and confirmed faults.
A permanent diagnostic trouble code may remain stored after the repair. This is normal for OBD-II systems because permanent codes cannot simply be erased with a scan tool. The vehicle must correct the problem and successfully complete the relevant emissions monitor before the permanent code clears automatically.
Also review the live rear oxygen sensor signal after the repair. The reading should behave appropriately for the installed sensor type and operating conditions. A completed monitor and the absence of returning faults provide stronger confirmation than switching off the check engine light alone. For tools that help with this kind of work, check Best Bidirectional Scanners with Big Screen.
Frequently Asked Questions
1. Does P0138 mean my BMW catalytic converter is bad?
No. P0138 identifies a high-voltage downstream oxygen sensor circuit condition, not a confirmed catalytic converter failure. The DME uses the rear sensor to monitor exhaust conditions after the converter. Test the sensor and its wiring before considering catalytic converter replacement.
2. Can I clear P0138 without repairing anything?
You can clear a stored or confirmed code with a compatible scanner, but clearing it does not repair the electrical problem. If the fault remains, the DME can detect it again when the relevant diagnostic conditions are met. A permanent code also requires successful monitor completion before it disappears.
3. Is P0138 the same as P0158?
No. P0138 refers to the Bank 1 Sensor 2 oxygen sensor circuit high-voltage condition. P0158 refers to the corresponding high-voltage condition on Bank 2 Sensor 2. A BMW with an inline-six engine has only one cylinder bank, while a V-engine may have two.
4. Can a generic OBD2 scanner read BMW P0138?
Yes. A standard OBD-II scanner can generally retrieve the generic P0138 powertrain code from a compatible BMW. However, access to BMW-specific DME fault numbers, detailed freeze-frame information, and manufacturer-specific live data depends on the scanner’s capabilities.
5. Will a BMW pass an emissions test with P0138?
An active P0138 fault can cause a BMW to fail an applicable emissions inspection because the malfunction indicator lamp may be illuminated and emissions readiness requirements may not be satisfied. Clearing the code immediately before inspection is not a reliable solution because the required monitors may become incomplete.
P0138 on a BMW indicates an excessively high electrical signal from the Bank 1 downstream oxygen sensor circuit. The sensor may be defective, but damaged wiring, a short to positive, connector problems, and DME faults must also be considered. Start with a BMW-capable scan, inspect the wiring and connector, and verify the electrical readings before replacing parts. A confirmed diagnosis is the best way to restore proper emissions monitoring and prevent the same warning from returning.
-
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
LearnP0150 BMW: Diagnose the Bank 2 Oxygen Sensor Fault
LearnP0139 BMW: Diagnose the Downstream Oxygen Sensor Fault
LearnP0137 BMW: Diagnose the Downstream Oxygen Sensor Fault
LearnP0131 BMW: Diagnose Oxygen Sensor Faults and Restore Engine Performance
LearnP0130 BMW: Diagnose Oxygen Sensor Circuit Faults Before Replacing Parts
LearnP1037 Code: Find the Correct Fault Before Replacing Parts