Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🧭 Diagnostic Flowchart 🎬 Helpful Videos 🛍️ Shop This Part

P0138 on 2017-2020 Hyundai Elantra: O2 Sensor High Voltage Causes and Fixes

This code almost always means the downstream oxygen sensor (Bank 1, Sensor 2) has failed. Replacing the sensor is the most common fix. Expect to pay $45-$80 for an aftermarket sensor or $100-$150 for an OEM part. It is a DIY-friendly repair with basic tools. Before replacing, check for wiring damage near the exhaust.

18 minutes to read 2017-2020 Hyundai Elantra
Most Likely Cause
Failed Downstream Oxygen Sensor (Bank 1, Sensor 2)
Difficulty
2/5
Est. Time
0.8 hrs
DIY Doable?
✅ Yes
Shop Labor
$100 – $250
Parts Price
$45 – $150
⚠️ Drivable, but... — Yes, you can drive with this code, but it's best to get it fixed soon. Ignoring it will cause poor fuel economy, guaranteed failure of an emissions test, and could potentially mask other issues or lead to long-term damage to the expensive catalytic converter.
Key Takeaways
  • P0138 on a 2017-2020 Elantra almost always points to a bad downstream O2 sensor (Sensor 2).
  • Before buying parts, use a scanner to check the live voltage from the sensor; if it's stuck high (above 0.9V), the sensor is the likely culprit.
  • Always perform a quick visual inspection of the sensor's wiring for obvious damage like melting or fraying before replacing the part.
  • The repair is DIY-friendly, requiring basic hand tools and a special O2 sensor socket. The sensor is located under the car in the exhaust pipe.
  • If the vehicle uses excessive oil, investigate Hyundai Recall 203, as oil burning can destroy the new sensor over time.
The trouble code P0138 indicates that your Elantra's Engine Control Module (ECM) is detecting a continuously high voltage signal from the 'Bank 1, Sensor 2' oxygen sensor. 'Bank 1' on a four-cylinder engine like the Elantra's is the only bank of cylinders. 'Sensor 2' is the downstream oxygen sensor, located in the exhaust pipe after the catalytic converter. Its job is to monitor the efficiency of the converter. A high voltage reading (typically stuck above 0.9V or 1.1V) tells the ECM that the sensor's reading is out of the expected range, suggesting a problem with the sensor, its wiring, or the exhaust stream.

What's Unique About the 2017-2020 Hyundai Elantra

For the 2017-2020 (6th Generation 'AD') Elantra, particularly with the common 2.0L Nu engine, the P0138 code is a straightforward issue, typically pointing to sensor failure from age or contamination. While the problem is not unique, owners should be aware of Hyundai Recall 203 (NHTSA 21V301), which addresses potential excessive oil consumption due to faulty piston rings in some 2.0L engines. Over time, burning oil can foul and destroy oxygen sensors, leading to codes like P0138. If your vehicle consumes a lot of oil, this recall might address the root cause of recurring O2 sensor failures.

Symptoms You May Notice

  • Check Engine Light is on
  • Increased fuel consumption
  • Rough or unstable idle
  • Vehicle will fail an emissions test
  • Noticeable odor of gasoline from the exhaust due to a rich running condition
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the catalytic converter. P0138 points to a fault in the sensor circuit that *monitors* the converter, not a fault with the converter itself. Always diagnose the sensor and wiring first.
  • Replacing the wrong oxygen sensor. The Elantra has two O2 sensors. P0138 is for Sensor 2 (downstream), which is after the catalytic converter. Sensor 1 (upstream) is located on the exhaust manifold before the converter.

Most Likely Causes

  1. Failed Downstream Oxygen Sensor (Bank 1, Sensor 2) 🔴 High Probability → Shop Oxygen Sensor Oxygen sensors are wear-and-tear items that fail over time due to constant exposure to high heat and exhaust gases. Contamination from fuel additives, carbon, or burning oil (a known issue on this engine) can also cause failure.
    How to confirm: Use an OBD-II scanner to monitor the live data for 'O2 Bank 1 Sensor 2'. If the voltage is stuck high (e.g., 0.9V or higher) and does not fluctuate, the sensor has likely failed. A healthy downstream sensor should show a relatively stable voltage, typically between 0.5V and 0.8V, when the engine is at operating temperature and at a steady RPM.
    Typical fix: Replace the downstream oxygen sensor. This sensor is located underneath the vehicle, screwed into the exhaust pipe after 🎬 See this video to find the exact sensor location under your car. the catalytic converter.
    Est. part cost: $45-$150
  2. Wiring or Connector Damage 🟡 Medium Probability The sensor wiring runs underneath the car and is exposed to road debris, water, and extreme heat from the exhaust. Wires can become frayed, melted, or corroded, and the connector can become contaminated or loose. In some cases, the harness can rub through on the chassis, causing the signal wire to short to the heater circuit's power wire.
    How to confirm: Visually inspect the entire wiring harness from the O2 sensor to its connection point. Look for any signs of melting, chafing, or broken wires. Check that the connector is clean, dry, and securely fastened. Use a multimeter to check for a short to power in the signal wire.
    Typical fix: Repair the damaged section of wiring or clean the connector. If the damage is severe, a new connector pigtail may need to be spliced in.
    Est. part cost: $5-$30

Rare But Worth Checking

  • Exhaust Leak: An exhaust leak upstream of Sensor 2 can introduce oxygen into the exhaust stream, which can sometimes confuse the sensor and cause an incorrect high voltage reading. You would likely hear a ticking or hissing noise from the exhaust when the engine is running.
  • Rich Running Condition: If the engine is running excessively rich (too much fuel), it can cause a high voltage reading on the downstream O2 sensor. However, this condition will almost always trigger other codes first, such as P0172 (System Too Rich) or codes related to fuel injectors or the mass airflow sensor.
  • Powertrain Control Module (PCM) Fault: In very rare cases, the PCM itself can be the source of the problem. This should only be considered after all other possibilities, including the sensor and wiring, have been definitively ruled out by a professional. Sometimes a PCM software update is required.

Diagnosis Steps

  1. Read the Code: Use an OBD-II scanner to confirm that P0138 is the only code present. If other codes exist, address them first as they may be the root cause.
  2. Analyze Live Data: With the engine running and warmed up, view the live data stream for 'O2S B1S2' (Oxygen Sensor Bank 1 Sensor 2). A normal reading should be relatively stable. If the voltage is stuck high (e.g., >0.9V), it confirms the fault condition.
  3. Inspect Wiring and Connector: Raise the vehicle safely. Locate 🎬 Watch: A pro mechanic shows how to swap a downstream oxygen sensor. the downstream O2 sensor. Follow its wire to the connector. Visually inspect for any melting, corrosion, or physical damage to the wires and connector pins. Pay close attention to areas where the harness might rub against the vehicle body or other components.
  4. Check for Shorts: Disconnect the sensor. With the key on and engine off, use a multimeter to check the signal wire terminal on the vehicle-side harness. It should have no voltage. If voltage is present, there is a short to power in the harness that must be repaired.
  5. Test the Sensor (Optional): While a stuck high voltage reading on the scanner is a strong indicator of a bad sensor, you can also test the sensor's internal heater resistance with a multimeter. If it's an open circuit or out of spec, the sensor is bad.
  6. Replace the Sensor: If the wiring is confirmed to be good, the oxygen sensor is faulty and needs to be replaced.
  7. Clear Code and Test Drive: After replacement, clear the trouble code with the scanner and perform a test drive to ensure the code does not return.

Parts You'll Likely Need

  • Downstream Oxygen Sensor (Bank 1, Sensor 2) (OEM #39210-2E151) — This is the most common failure point for a P0138 code. The sensor wears out over time and is exposed to harsh conditions.
    Trusted brands: Hyundai/Kia (OEM), NGK (P/N: 25708), Denso (P/N: 234-5082), Bosch, Walker
    OEM price range: $100-$150
    Aftermarket price range: $45-$80

Technical Service Bulletins (TSBs) & Recalls

  • 22-01-042H - This TSB relates to Recall 203 for Nu 2.0L Atkinson engine inspection and potential replacement due to out-of-spec piston oil rings, which can cause oil consumption and potentially foul O2 sensors.
  • 22-01-043H - This TSB details Service Campaign 974, a software update to the knock sensor logic to detect engine noise resulting from the piston ring issue.

Platform-Specific Known Issues

  • Some 2017-2020 Elantras with the 2.0L Nu engine are subject to Recall 203 (NHTSA Campaign ID 21V301000) for piston oil ring issues that can cause excessive oil consumption. This can lead to premature failure of oxygen sensors due to oil contamination.
  • Another related campaign is Service Campaign 974 (TSB 22-01-043H), which involves a software update for the Knock Sensor Detection System (KSDS) to better detect abnormal engine noise related to the oil consumption issue.

Mechanic-Grade Diagnostic Values

  • Downstream O2 Sensor (B1S2) Voltage — expected: Relatively stable around 0.5V to 0.8V at steady RPM when warm.. Failure: Voltage is stuck high, over 1.08V.
  • Downstream O2 Sensor (B1S2) Heater Circuit — expected: Check for a blown fuse, typically labeled 'SENSOR 1' or similar in the under-hood fuse box.. Failure: A blown fuse will cause the sensor to not heat up properly, which can sometimes lead to circuit codes, though P0141 (Heater Circuit Malfunction) is more common in this case.

Scan Tool Commands That Help

  • Hyundai GDS (Global Diagnostic System) or equivalent advanced scanner: Live Data Graphing (O2S B1S2) — This is the primary diagnostic step. Graphing the sensor's voltage while driving (steady cruise vs. deceleration) is more effective than looking at a static number. On deceleration (fuel cut), a healthy sensor's voltage should drop low (below 0.2V). If it remains high, it confirms a sensor or wiring fault.

Wiring & Ground Locations

  • Downstream O2 Sensor Connector — The 4-pin connector for the downstream sensor is typically located above the transmission, clipped to a bracket.. This connector is a common point for corrosion or damage. A high resistance or short in this connector can cause the P0138 code. The connector type is often a PB625-04027 style for this model range.
  • Engine Ground Harness — The main engine ground strap connects the engine block to the chassis.. The OEM part number for the main engine ground harness is 91861-F2020. While a poor ground more commonly causes a range of electrical issues or misfire codes, it can contribute to erratic sensor readings, including O2 sensors which are grounded through the engine block.

Real Owner Repair Stories

  • YouTube channel 'Fix it Angel' (2017 Hyundai Elantra 2.0L) — Check engine light with P0420 code, rough starts/idle, especially on short trips. The owner had already replaced the O2 sensors twice.
    ❌ Tried (didn't work) Replaced downstream O2 sensor, Replaced upstream O2 sensor (twice, once with a Bosch part)
    ✅ What actually fixed it The video documents cleaning an oily Manifold Absolute Pressure (MAP) sensor as the next diagnostic step, suspecting it was causing an incorrect air/fuel mixture that was fouling the O2 sensors. The outcome reported in the video description was that the misfires returned, and the next step was to warranty the Bosch O2 sensor or investigate a failing fuel injector. This story is valuable as it shows a real-world case where the simple O2 sensor replacement was not the final fix and highlights the connection between oil consumption, other engine sensors (MAP), and recurring O2 sensor codes.

Diagnostic Flowchart

Start by confirming if P0138 is the sole code or if it's paired with misfires or oil consumption symptoms, as the 2.0L Nu engine is prone to specific internal failures that foul sensors.
→ Address misfires first. On this Elantra, ignition coil failure is common between 50k-90k miles. Unburned fuel from misfires will cause the O2 sensor to read high voltage (P0138) and can lead to permanent catalytic converter damage.
Monitor live data for 'O2 Bank 1 Sensor 2' with the engine at operating temperature. Is the voltage stuck above 0.9V?
Inspect the wiring harness under the vehicle. Is there evidence of melting, chafing against the chassis, or road debris damage?
→ Repair the damaged wiring or splice in a new connector pigtail ($5-$30). Ensure the harness is clipped away from the hot exhaust pipe to prevent future melting.
Disconnect the sensor. With Key On Engine Off (KOEO), use a multimeter to check for voltage on the signal wire (vehicle side). Is voltage present?
→ There is a short to power in the vehicle's main wiring harness. Trace the circuit back toward the ECU to find where the signal wire is touching a 12V source.
Does this vehicle have a history of high oil consumption or is it part of Recall 203 (NHTSA 21V301000) for the 2.0L Nu engine?
→ The O2 sensor is likely fouled by carbon or oil ash. Replace the downstream O2 sensor ($45-$150) and visit a Hyundai dealer to verify if TSB 22-01-042H applies for a potential engine inspection or KSDS software update (TSB 22-01-043H).
Test the O2 sensor's internal heater resistance with a multimeter. Is the circuit open or out of specification?
→ The sensor's internal heater or ceramic element has failed. Replace the Bank 1 Sensor 2 oxygen sensor, clear the codes, and perform a drive cycle.
→ If wiring and sensor test good, the high voltage may be caused by a rich-running condition. Check the Canister Purge Valve (CPV) for a 'stuck open' failure, which is a known common issue on this platform.
→ The fault may be intermittent. Clear the code and perform a test drive. If it returns, check for a 'soft' short in the harness that occurs only during vehicle vibration.

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Door Lock Actuator Failure 🟠 Medium — Very common. Doors may fail to lock/unlock with fob or switch, sometimes intermittently. Often starts with one door (especially rear) and spreads. (Ref: TSB 21-BD-006H (Warranty Extension))
  • Engine Oil Consumption 🔴 High — Widespread enough to trigger a recall. Owners report needing to add 1-2 quarts of oil every 1,000-2,000 miles. Can lead to engine damage if oil level is not monitored closely. (Ref: NHTSA Recall 21V301 / TSB 22-01-042H)
  • Ignition Coil Failure 🟠 Medium — A common failure item, often occurring around 50,000-90,000 miles. Leads to engine misfires (e.g., P030x codes), rough idle, and poor acceleration.
  • Steering Coupler Degradation 🟡 Low — Common across many Hyundai/Kia models. The rubber coupler wears out, causing a distinct clicking or thudding noise in the steering column when turning. It is a cheap part but requires significant labor to access. (Ref: Warranty Extension TSB-17-ST-002-1 (for earlier models, but same issue persists))
  • Canister Purge Valve (CPV) Failure 🟡 Low — A common emissions-related failure. The valve sticks open or closed, leading to a Check Engine Light (often with EVAP codes) and sometimes difficulty starting after refueling.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For this repair, a used part is NOT recommended. Oxygen sensors are wear-and-tear items with a finite lifespan (typically 90,000-120,000 miles). A used sensor from a junkyard has unknown remaining life and may have been exposed to contaminants (oil, coolant) from the donor vehicle. The low cost of a new aftermarket sensor makes a used part a poor value proposition.

OEM-only on this vehicle (don't cheap out):

  • While not strictly OEM-only, using a sensor from a known OEM supplier is highly recommended to avoid compatibility issues.

Aftermarket brands forum-validated for this vehicle:

  • Denso
  • NGK / NTK
  • Bosch

Brands owners have reported issues with on this vehicle:

  • Unnamed or generic 'white box' brands from online marketplaces can have poor quality control, leading to incorrect readings, premature failure, or incorrect heater resistance, causing codes to return.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2013 Hyundai Santa Fe Sport

Symptoms: The owner reported a P0138 code appearing just one year after the sensor was last replaced, leading to questions about whether it was a repeat sensor failure or a fuse issue.

What fixed it: The discussion suggests checking for a bad sensor or a corroded connector, as repeat failures can occur.

Source hint: Reddit r/Hyundai thread titled 'P0138 Code, Sensor or Fuse Fault?'

2017-2020 Hyundai Elantra 2.0L

Symptoms: Getting both P0136 and P0138 codes simultaneously.

What fixed it: Using a scan tool to monitor live data; a voltage pegged high points to a bad sensor or a corroded connector.

Source hint: Reddit r/MechanicAdvice thread titled 'Getting P0136 and P0138. What should I check before calling the O2 sensor faulty?'

Frequently Asked Questions

Could my 2017-2020 Hyundai Elantra's oil consumption issue be causing the P0138 code?
Yes. The 2.0L Nu engine in these models is known for piston oil ring issues (Recall 203). Excessive oil consumption can lead to oil burning, which contaminates and fouls the downstream oxygen sensor, triggering the P0138 code.
Is there a specific TSB for the engine issues that lead to O2 sensor failure on the Elantra?
Yes, TSB 22-01-042H relates to Recall 203 for the Nu 2.0L Atkinson engine. It involves inspecting piston oil rings that, if out of spec, cause oil consumption and potential fouling of the O2 sensors.
What should the voltage reading be for 'O2 Bank 1 Sensor 2' on a healthy Elantra?
A healthy downstream sensor on this vehicle should show a relatively stable voltage between 0.5V and 0.8V when the engine is at operating temperature and steady RPM. A reading stuck at 0.9V or higher indicates a P0138 fault.
Does Service Campaign 974 affect how my car handles emissions-related faults?
Service Campaign 974 (TSB 22-01-043H) provides a software update for the Knock Sensor Detection System (KSDS). While it focuses on detecting engine noise from the piston ring issue, that same engine issue is a root cause for O2 sensor contamination.
Where is the sensor responsible for P0138 located on my Elantra?
The downstream oxygen sensor (Bank 1, Sensor 2) is located underneath the vehicle, screwed into the exhaust pipe after the catalytic converter.
Can damaged wiring cause a P0138 code on this model?
Yes. The wiring for the downstream sensor runs underneath the chassis and is prone to fraying, melting, or shorting to the heater circuit's power wire, which can cause the high voltage signal associated with P0138.
How to Replace Downstream O2 Sensor 2017-2020 Hyundai Elantra 2.0L
How to Replace Downstream O2 Sensor 2017-2020 Hyundai Elantra 2.0L
OXYGEN SENSOR BANK 1 SENSOR 2 REPLACEMENT LOCATION HYUNDAI ELANTRA TUCSON SANTA FE ACCENT VELOSTER S
OXYGEN SENSOR BANK 1 SENSOR 2 REPLACEMENT LOCATION HYUNDAI ELANTRA TUCSON SANTA FE ACCENT VELOSTER S
How to Replace an Oxygen Sensor (Downstream)
How to Replace an Oxygen Sensor (Downstream)
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Jun 8, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0138 for:
  • Hyundai Elantra: 2017201820192020
In this article
🧭 Diagnostic Flowchart
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part