P0138 Hyundai: Diagnose the Oxygen Sensor Circuit Problem
20 min read · by Nicole Bennett · Last updated: November 25, 2026
P0138 Hyundai means the engine computer has detected excessively high voltage in the Bank 1 Sensor 2 oxygen sensor circuit. This sensor is normally located downstream of the catalytic converter. The problem can involve a defective rear oxygen sensor, damaged wiring, a short to battery voltage, poor electrical connections, or an unusually rich exhaust condition.
A Hyundai with P0138 may have a check engine light without noticeable driving problems. However, ignoring the code can allow an emissions problem to continue and may conceal other engine faults. The correct repair depends on the vehicle’s model, engine, sensor design, and diagnostic results.
Before replacing an oxygen sensor, check the stored codes, freeze-frame information, live sensor voltage, and electrical connections. Hyundai service information for the 2009 Veracruz 3.8L specifically identifies poor connections, a short to battery voltage, the rear oxygen sensor, and the PCM as possible causes. Other Hyundai models can use different detection thresholds and diagnostic procedures.
What P0138 Means on a Hyundai
P0138 is a generic SAE powertrain diagnostic trouble code. Its definition is Oxygen Sensor Circuit High Voltage (Bank 1, Sensor 2). It indicates that the engine control module has detected an oxygen sensor signal above its permitted range for the required monitoring conditions and duration.

The code identifies a particular sensor circuit, not automatically a failed sensor. The computer evaluates electrical signals from the exhaust oxygen monitoring system. If the downstream signal stays excessively high, the computer can interpret the condition as an electrical or sensor malfunction.
Understanding Bank 1 Sensor 2
The code’s terminology identifies the sensor’s position:
- Bank 1: The cylinder bank containing cylinder number 1. On an inline-four Hyundai engine, there is only one cylinder bank.
- Sensor 2: The downstream oxygen sensor positioned after the catalytic converter.
- High voltage: The computer detects a signal that exceeds the expected electrical operating range.
The upstream oxygen sensor generally helps the engine computer regulate the air-fuel mixture. The downstream sensor primarily monitors catalytic converter performance and exhaust oxygen conditions. Its signal should generally be more stable than the upstream signal when the catalytic converter is working correctly.
Hyundai-Specific Diagnostic Information
Hyundai service information provides useful examples of how this code is monitored. On the 2009 Veracruz 3.8L, the diagnostic threshold is above 1.3 volts. The monitor operates after the engine has been running for at least 60 seconds, the engine has warmed up, and battery voltage has reached at least 10 volts. The fault must persist for more than 12.5 seconds during a 15-second test period.
That same service procedure specifies that the malfunction indicator lamp turns on after the fault occurs during two driving cycles. These figures apply to the referenced Veracruz configuration. They should not be treated as universal specifications for every Hyundai Elantra, Sonata, Tucson, Santa Fe, Accent, or other model. The precise threshold and monitoring strategy can differ by engine and model year. The Hyundai Veracruz P0138 diagnostic procedure provides the vehicle-specific examples and testing sequence.
The generic code definition remains the same, but the manufacturer’s diagnostic procedure determines how to test the individual vehicle. Use the correct Hyundai wiring diagram and service specifications before checking connector terminals or measuring circuit voltage. Compare the causes listed here with P0138 Dodge Code to rule out make-specific issues.
Common Symptoms and Driving Severity
A Hyundai with P0138 may continue to run normally because the downstream oxygen sensor is not usually the primary sensor responsible for continuous fuel mixture correction. Nevertheless, the fault can affect emissions monitoring and may accompany other problems that deserve attention.

Symptoms depend on whether the fault is electrical, sensor-related, or associated with an actual rich-running condition. Some drivers notice only the warning light, while others experience additional symptoms from an underlying engine problem.
Common Warning Signs
- Check engine light: This is the most common sign. The light may remain illuminated after the computer confirms the fault.
- Reduced fuel economy: An unusually rich mixture or related engine problem can increase fuel consumption. A defective downstream sensor alone does not always cause a noticeable mileage change.
- Rough idle: Rough running can occur when the underlying problem involves fuel delivery, mixture control, or another engine fault.
- Fuel smell: A rich-running engine may produce a stronger gasoline smell from the exhaust.
- Failed emissions inspection: An illuminated malfunction indicator lamp or incomplete emissions readiness monitors can prevent an OBD-based inspection from passing.
- Other trouble codes: Oxygen sensor, fuel mixture, catalytic converter, or heater circuit codes may appear alongside P0138.
Can You Keep Driving?
P0138 alone is generally not an immediate breakdown warning. If the check engine light is steady, the engine runs smoothly, and there are no signs of overheating or fuel leakage, a short, cautious trip to a repair facility is usually reasonable. Arrange diagnosis promptly rather than continuing to drive indefinitely.
The situation changes if the engine runs poorly, loses power, produces heavy smoke, or smells strongly of gasoline. Stop driving if there is a suspected fuel leak or another condition that makes the vehicle unsafe. A persistent rich condition can damage the catalytic converter and increase exhaust emissions.
Tip: If the check engine light starts flashing, reduce engine load and stop driving as soon as it is safe. A flashing light usually indicates an active misfire that can overheat and damage the catalytic converter. Have the vehicle checked promptly. Do not assume that P0138 is the only problem simply because it is the first code displayed.
Severity is best judged using the complete fault-code list and the vehicle’s actual behavior. A steady light with normal performance suggests a less urgent situation than a flashing light accompanied by severe misfiring, fuel odor, or substantial power loss.
Common Causes of Hyundai P0138
The most common causes involve the downstream oxygen sensor and its electrical circuit. However, the engine computer can also report an unexpectedly high signal when the exhaust mixture or sensor operating conditions are abnormal.
Hyundai’s Veracruz diagnostic procedure specifically identifies four potential problem areas: poor connections, a short to battery voltage, the heated oxygen sensor, and the PCM. The following causes provide a practical starting point for diagnosis, not a parts-replacement checklist.
1. Defective Downstream Oxygen Sensor
The rear heated oxygen sensor can develop an internal electrical fault or produce an incorrect signal as it ages. Contamination can also interfere with its operation. Oil, coolant, and fuel-related deposits may indicate an underlying engine problem that should be corrected before fitting a replacement sensor.
A sensor that remains at an unusually high voltage after the engine warms up deserves further testing. However, a high scan-tool reading does not prove that the sensing element itself has failed. Wiring and circuit faults can create similar results.
2. Short to Battery Voltage
A damaged signal wire can contact a power wire and send an abnormally high voltage to the engine computer. This is one of the specific possibilities identified in Hyundai’s Veracruz service procedure.
Look for damaged insulation, melted wiring, previous repair work, pinched harness sections, and contact with hot exhaust components. A wiring fault may be intermittent, especially when the engine moves under acceleration or when the exhaust system heats up.
3. Poor Electrical Connections
Corrosion, loose connector locks, bent terminals, moisture, and damaged wiring can interfere with oxygen sensor signals. Hyundai’s diagnostic instructions specifically recommend inspecting connectors for looseness, corrosion, contamination, deterioration, and physical damage.
Previous exhaust repairs can also create connector problems. An incorrectly routed harness may become stretched, rubbed, or exposed to excessive heat. Even if the sensor is new, a damaged connector can prevent the circuit from operating correctly.
4. Rich Air-Fuel Mixture
A rich exhaust condition contains less oxygen than a lean exhaust condition. It can cause an oxygen sensor to produce a high signal. Possible underlying causes include excessive fuel pressure, leaking injectors, or an incorrect engine management input.
Check for related fuel mixture codes such as P0172 or P0175. Also inspect short-term and long-term fuel trims. Combined fuel trim corrections substantially outside approximately plus or minus 10 percent deserve investigation. Readings beyond approximately 25 percent are particularly significant and can be associated with mixture-related trouble codes.
These fuel trim figures are diagnostic guidelines rather than Hyundai-specific P0138 setting thresholds. A downstream oxygen sensor reading should not be interpreted as a direct measurement of fuel trim without considering the vehicle’s control strategy.
5. Catalytic Converter or Engine-Related Problems
The catalytic converter stores oxygen and smooths exhaust oxygen fluctuations. Hyundai’s service information explains that an aged, poisoned, or misfire-affected catalyst can allow downstream oxygen fluctuations to become more similar to those of the upstream sensor.
This does not mean that every P0138 requires a catalytic converter. A converter problem should be evaluated separately using the applicable catalyst monitoring results and other diagnostic evidence.
The engine itself can also contaminate the sensor. Bosch identifies dark-brown deposits with rich operation, oily contamination with excessive oil consumption, and greenish grainy deposits with possible coolant contamination. These observations can help identify an underlying problem rather than simply replacing the affected sensor.
6. PCM Fault
The powertrain control module receives and evaluates the oxygen sensor signal. Hyundai includes PCM malfunction among the possible causes of P0138. However, PCM failure should be considered only after the sensor, wiring, connectors, grounds, and circuit measurements have been checked against the correct service specifications. If you want to see how the same fault shows up on another make, read our guide to P0138 VW.
| Possible cause | Evidence to investigate | Recommended diagnostic direction |
|---|---|---|
| Failed rear oxygen sensor | Abnormal or implausible sensor waveform | Check sensor operation and contamination |
| Short to battery voltage | Unexpected voltage in the signal harness | Perform the specified circuit isolation test |
| Poor connector contact | Corrosion, bent pins, loose terminals | Inspect and repair the connection |
| Rich fuel mixture | Negative fuel trims, rich-related codes | Check fuel pressure and injector operation |
| Engine contamination | Oil, coolant, or fuel deposits on sensor | Investigate the underlying engine condition |
| PCM malfunction | Circuit passes other specified tests | Verify PCM power, grounds, and input circuit |
How to Diagnose P0138 with an OBD2 Scanner
An OBD2 scanner can help identify whether the problem involves the rear oxygen sensor signal, the wiring, or a related engine condition. A scanner that displays live data is much more useful than a basic code reader because it allows you to compare sensor readings and review operating conditions.
Hyundai’s diagnostic procedure uses a scan tool to check DTC status and monitor the heated oxygen sensor waveform after warming the engine. A systematic approach helps avoid replacing an expensive component unnecessarily.
Step 1: Read All Diagnostic Trouble Codes
Connect the scanner to the 16-pin OBD2 port, usually located beneath the driver’s dashboard. Turn the ignition on and communicate with the engine control module.
Record all available codes before clearing anything. Look for P0138 and related codes, including oxygen sensor circuit faults, heater faults, fuel mixture problems, and catalytic converter efficiency faults.
Pay attention to code status. A pending code indicates that the computer has detected a fault but has not yet confirmed it. A stored or confirmed code indicates that the required detection conditions have been met. A permanent code may remain in memory even after the repair until the vehicle completes the appropriate monitor successfully.
Step 2: Review Freeze-Frame Data
Freeze-frame data records selected engine operating conditions when an emissions-related fault occurs. It can reveal whether P0138 appeared at idle, during acceleration, or under a particular engine load.
Review the available information, including:
- Engine speed in RPM.
- Engine coolant temperature.
- Vehicle speed.
- Calculated engine load.
- Fuel system operating status.
- Available oxygen sensor voltage and fuel trim information.
For example, a fault recorded after the engine reaches operating temperature may point toward a problem that appears only after the oxygen sensor heater and exhaust system have warmed up. A fault associated with acceleration may justify checking wiring movement, exhaust conditions, and fuel delivery.
Step 3: Check Live Oxygen Sensor Data
Select the Bank 1 Sensor 2 voltage or oxygen sensor parameter in the scanner’s live data menu. Start the engine and allow it to reach normal operating temperature, following the applicable Hyundai test conditions.
A conventional narrowband upstream oxygen sensor generally switches between approximately 0.1 and 0.9 volts as the mixture changes. The downstream sensor normally shows less fluctuation because the catalytic converter smooths the exhaust oxygen changes.
For the 2009 Veracruz 3.8L, Hyundai specifies a P0138 threshold above 1.3 volts under its monitoring conditions. Do not apply that threshold automatically to every Hyundai engine. Some other Hyundai service procedures use different thresholds or sensor operating specifications.
Watch whether the downstream reading remains unusually high, changes with engine operation, or responds normally to changing exhaust conditions. Compare the reading with the upstream sensor and the specifications for the exact vehicle.
Step 4: Evaluate Fuel Trims
Short-term fuel trim (STFT) and long-term fuel trim (LTFT) provide useful information about engine mixture corrections. Although the downstream sensor is not necessarily the primary fuel-control input, fuel trim data can help reveal a related rich-running condition.
Combined corrections outside approximately plus or minus 10 percent deserve attention. Corrections approaching or exceeding 25 percent are especially significant. Negative corrections generally indicate that the computer is removing fuel, while positive corrections indicate that it is adding fuel.
If the scanner also shows P0172 or P0175, investigate excessive fuel delivery, injector leakage, fuel pressure, and other mixture-related possibilities. Avoid treating the oxygen sensor as the cause of every unusual fuel trim reading.
Step 5: Inspect the Wiring and Connector
Switch off the ignition before inspecting or disconnecting electrical connectors unless the vehicle manufacturer’s test procedure specifically instructs otherwise. Examine the rear oxygen sensor harness and connector for heat damage, broken insulation, loose connections, corrosion, and bent terminals.
A qualified technician can use the Hyundai wiring diagram and a digital multimeter to check for shorts to battery voltage, opens, and incorrect circuit resistance. Use the correct terminal identification and electrical specifications. Do not apply battery voltage directly to sensor signal or heater terminals.
The Hyundai Veracruz procedure provides an example of a circuit test that disconnects the rear oxygen sensor, switches the ignition on with the engine off, and checks the signal terminal voltage. It specifies approximately 0.45 volts with pumping current off and approximately 3.5 volts with pumping current on. These readings belong to that specific diagnostic arrangement and should not be substituted for another model’s wiring specifications.
Step 6: Review Oxygen Sensor Monitor Results
A capable scanner may support Mode $05 oxygen sensor monitoring results or the applicable oxygen sensor test information provided by the vehicle. These results can help evaluate sensor voltage and response characteristics.
Mode $06 provides on-board monitoring test results for supported non-continuous monitors. Depending on the vehicle and scan tool, the information may include test values, minimum limits, maximum limits, and pass or fail information.
Not every Hyundai exposes the same test identifiers or data through a generic scanner. Some newer vehicles also use enhanced manufacturer-specific diagnostic information. If a result is unavailable, do not assume the sensor has failed.
Step 7: Confirm the Repair
After correcting the verified fault, clear the codes using the appropriate scan tool and follow the vehicle’s prescribed verification procedure. Recheck the live oxygen sensor data and confirm that the fault does not return.
The relevant oxygen sensor and catalyst readiness monitors may require a suitable drive cycle to complete. A permanent trouble code does not necessarily disappear immediately after a successful repair. The computer must confirm that the relevant monitoring test passes. Before you clear the codes, check whether P0159 Hyundai applies to your vehicle too.
How to Fix P0138 on a Hyundai
The correct repair depends on the diagnostic findings. Replacing the rear oxygen sensor is appropriate when testing confirms that the sensor itself is defective, but wiring and engine problems must be ruled out first.
A repair should address the cause of the excessive signal rather than simply remove the warning light. Use the correct replacement specifications and follow Hyundai’s procedures for the particular engine and exhaust configuration.
Repair Damaged Wiring or Connectors
If the signal wire is shorted to battery voltage, the affected wiring section needs proper repair or replacement. Damaged insulation, overheated connectors, loose terminals, and corrosion must be corrected.
The replacement harness must be routed away from hot exhaust components and moving parts. Connector seals and terminal retention must also be correct. Poorly routed wiring can create another intermittent fault shortly after the repair.
Replace a Confirmed Faulty Oxygen Sensor
If the circuit passes its electrical tests and the downstream sensor fails the manufacturer’s component inspection, replacement may be necessary. Select a sensor compatible with the exact Hyundai model, engine, emissions configuration, and connector arrangement.
Sensor installation requires care because the exhaust can remain extremely hot after the engine is switched off. The connector and harness must be protected against damage, and the sensor must be installed using the specified procedure and tightening specification.
Bosch also emphasizes that certain oxygen sensors rely on clean reference air through their connector and wiring harness. Damaged wiring or inappropriate dielectric grease in those connectors can interfere with sensor operation. Follow the sensor manufacturer’s installation instructions rather than applying extra grease or modifying the connector. See Bosch’s oxygen sensor technical tips for its reference-air and contamination guidance.
Correct the Underlying Rich Condition
If testing reveals excessive fuel delivery, repair the underlying fuel system fault. Depending on the evidence, this may involve correcting fuel pressure, addressing a leaking injector, or investigating an engine management input that causes excessive fueling.
If the oxygen sensor is contaminated with oil or coolant-related deposits, investigate the source of the contamination. Installing a new sensor without correcting the engine problem may lead to another sensor failure.
Evaluate the Catalytic Converter and PCM Only When Necessary
A catalytic converter should not be replaced solely because P0138 appears. Confirm a converter problem through appropriate catalyst monitoring results, exhaust measurements, and other relevant diagnostic evidence.
PCM replacement is also a last-resort decision. Before considering it, verify circuit continuity, power supply, grounds, connector condition, and sensor signal behavior. Module programming or configuration procedures may be required after replacement, depending on the Hyundai vehicle.
Repair Cost Factors
The total repair cost depends on the failed component, parts availability, labor time, exhaust accessibility, and whether additional engine problems are present. A straightforward sensor replacement generally involves less diagnostic and repair work than tracing an intermittent wiring short or investigating a rich-running engine.
- Oxygen sensor: The replacement part’s design, compatibility, and availability influence the parts cost.
- Labor: Labor hours depend on sensor accessibility, corrosion, exhaust configuration, and the time required to complete electrical tests.
- Wiring repair: Damaged harness sections or connectors may require additional tracing, repair materials, and verification.
- Fuel system diagnosis: Testing fuel pressure and injector operation adds diagnostic time when a rich condition is suspected.
- PCM-related work: Module diagnosis, programming, and configuration can make this a more involved repair.
- DIY versus professional repair: An experienced DIY owner may save labor costs, while a professional shop can provide manufacturer-specific testing equipment and wiring information.
Ask for a diagnosis that identifies the failed circuit or component before authorizing parts replacement. A repair estimate should distinguish diagnostic labor from the cost of parts and installation.
Tip: Oxygen sensor and exhaust repairs involve hot components and electrical circuits. Allow the exhaust to cool completely before any inspection. Do not work beneath an unsupported vehicle, probe unidentified connector terminals, or disconnect electrical components with the ignition on unless the manufacturer’s procedure specifically requires it. Refer complex circuit testing to a qualified technician.
Preventing Repeat Oxygen Sensor Problems
Preventing another P0138 requires keeping the oxygen sensor circuit in good condition and addressing engine problems that can damage the sensor. Regular maintenance cannot prevent every electrical failure, but it can reduce contamination and wiring-related problems.
A new oxygen sensor will not remain reliable if the engine continues to burn oil, consume coolant, or operate with excessive fuel delivery. Correcting these underlying conditions is an important part of a lasting repair.
Maintain the Engine and Fuel System
- Follow the Hyundai maintenance schedule for engine oil and other required service items.
- Investigate unexplained coolant loss instead of repeatedly topping up the cooling system.
- Address excessive oil consumption and visible exhaust smoke.
- Investigate fuel mixture codes and rough running promptly.
- Avoid unapproved fuel additives that may contaminate exhaust sensors.
Protect the Oxygen Sensor Harness
The oxygen sensor harness operates close to the exhaust system, where heat and vibration can cause deterioration. During routine service, technicians should look for damaged insulation, loose clips, connector contamination, and signs of contact with exhaust components.
After exhaust repairs, verify that the sensor wiring has been returned to its correct routing and is not stretched or pinched. A properly secured harness reduces the risk of intermittent electrical faults.
Keep Emissions Monitors Working Correctly
The OBD2 system monitors oxygen sensor performance because these components affect emissions control. Federal OBD requirements specifically address oxygen sensor output, activity, and response-rate monitoring, including secondary sensors.
Do not repeatedly erase trouble codes simply to switch off the check engine light. Clearing diagnostic information can also reset emissions readiness monitors, making it harder to confirm whether the original problem has been corrected.
After a genuine repair, complete the appropriate drive cycle and confirm that the relevant monitors have passed. If P0138 returns, investigate the remaining fault rather than replacing another sensor without additional testing. It is also worth reading P0122 hyundai for the same vehicle.
Frequently Asked Questions
1. Is P0138 a generic code or a Hyundai-specific code?
P0138 is a generic SAE powertrain code, not a Hyundai-exclusive definition. The basic meaning is Oxygen Sensor Circuit High Voltage (Bank 1, Sensor 2). Hyundai-specific service information determines the exact voltage threshold, monitoring conditions, and electrical testing procedure for each engine configuration.
2. Can a new oxygen sensor still produce P0138?
Yes. A new sensor can still be associated with P0138 if the signal wire is shorted to battery voltage, the connector has poor terminal contact, or the engine computer detects another electrical problem. Incorrect sensor compatibility or installation damage can also create problems. Check the circuit before replacing a second sensor.
3. Does P0138 automatically mean the catalytic converter is bad?
No. P0138 identifies an excessively high downstream oxygen sensor circuit signal. It does not directly establish that the catalytic converter has failed. A converter efficiency problem requires separate diagnostic evidence, such as relevant catalyst monitoring results and additional exhaust system testing.
4. Can disconnecting the Hyundai battery permanently clear P0138?
Disconnecting the battery is not a reliable repair or permanent clearing method. The fault can return when the engine computer runs the oxygen sensor monitor again. Disconnecting the battery can also erase useful diagnostic information and reset emissions readiness monitors. Permanent codes require the underlying problem to be fixed and the relevant monitor to pass.
5. Will a basic OBD2 code reader diagnose every P0138 problem?
No. A basic reader may display the trouble code but cannot necessarily show oxygen sensor waveforms, enhanced Hyundai parameters, or manufacturer-specific test results. A scanner with live data, freeze-frame access, and supported Mode $05 or Mode $06 functions provides more useful diagnostic information. Electrical circuit testing may still require a multimeter and the correct Hyundai wiring diagram.
P0138 on a Hyundai indicates an excessively high Bank 1 Sensor 2 oxygen sensor circuit signal, but the sensor itself is not automatically defective. Check the wiring, connector, live voltage, fuel mixture, and related codes before choosing a repair. Confirm the fix with a scan tool and a completed emissions monitor rather than relying only on a cleared warning light.
-
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
LearnP0130 Hyundai Code: Meaning, Related Codes and Checks
LearnP0191 Hyundai Code: Fuel Rail Pressure Sensor Fault Explained
LearnP0153 Hyundai: Find the Slow Oxygen Sensor Response and Fix the Cause
LearnP0150 Hyundai: Diagnose the Oxygen Sensor Circuit
LearnP0131 Hyundai: Diagnose the Oxygen Sensor Fault and Avoid Unneeded Repairs
LearnP1663 Code: Find the Correct Vehicle-Specific Meaning