How to Replace the Oxygen (O2) Sensor on a 2018 Hyundai Sonata
Step-by-step upstream vs downstream sensor guide with tools, parts, OBD2 tips, and torque specs
How to Replace the Oxygen (O2) Sensor on a 2018 Hyundai Sonata
Step-by-step upstream vs downstream sensor guide with tools, parts, OBD2 tips, and torque specs
đź”§ Sonata - Oxygen Sensor Replacement
Your Sonata has more than one oxygen sensor (an upstream sensor before the catalytic converter, and a downstream sensor after it). The steps and access are different depending on which one you’re replacing, so I need one quick detail to keep this accurate.
Difficulty Level: Intermediate | Estimated Time: 0.8-2.0 hours
⚠️ Safety & Precautions
- ⚠️ Exhaust parts get extremely hot—work only on a fully cool exhaust.
- ⚠️ Hybrid/PHEV: Keep the car OFF and the key/fob away so it can’t “wake up” unexpectedly.
- ⚠️ Support the car with jack stands before going underneath—never rely on a jack.
- ⚠️ Do not pull on sensor wires—disconnect at the connector first.
đź”§ Required Tools
You'll need the following tools for this repair:
- Safety glasses
- Nitrile gloves
- Floor jack (rated 2-ton minimum)
- Jack stands (rated 2-ton minimum)
- Wheel chocks
- 3/8" drive ratchet
- 3/8" drive extension set
- 22mm oxygen sensor socket
- Torque wrench (10–80 ft-lbs range)
- Trim clip removal tool
- Flat-blade screwdriver
- Penetrating oil
- OBD2 scan tool
🔩 Required Parts
HowToo sells all the parts you need for this repair:
- Oxygen sensor (upstream/A/F sensor OR downstream O2 sensor) - Qty: 1
- Anti-seize compound (sensor-safe) - Qty: 1
đź“‹ Before You Begin
- Park on level ground and set the parking brake.
- Let the exhaust cool completely (at least 1 hour after driving).
- Keep the key/fob at least 15 feet away from your Sonata while working.
- If you’ll raise the car, chock the rear wheels before lifting the front.
🔨 Step-by-Step Instructions
Follow these steps in order:
Step 1: Identify which oxygen sensor you’re replacing
- Use an OBD2 scan tool to read codes and sensor labels.
- Typical naming: Bank 1 Sensor 1 (upstream) and Bank 1 Sensor 2 (downstream).
- Upstream = before catalytic converter.
Step 2: Raise and secure the car (if needed for access)
- Place wheel chocks behind the rear tires.
- Lift with a floor jack at the proper front jacking point.
- Set the car down onto jack stands and confirm it’s stable.
Step 3: Locate the sensor and unplug it first
- Follow the sensor wire from the exhaust to its connector.
- Release clips using a trim clip removal tool or flat-blade screwdriver.
- Disconnect the connector by hand—do not twist the wire.
Step 4: Loosen and remove the oxygen sensor
- Spray the threads at the sensor bung with penetrating oil and wait 5–10 minutes.
- Install the 22mm oxygen sensor socket on a 3/8" drive ratchet (use a 3/8" drive extension set if needed).
- Turn counterclockwise to remove the sensor.
- If it won’t budge, stop—don’t strip threads.
Step 5: Install the new oxygen sensor
- Compare the old and new sensors (connector, wire length, tip style).
- If the new sensor threads are not pre-coated, apply a very small amount of anti-seize compound (sensor-safe) to the threads only.
- Thread the sensor in by hand first to avoid cross-threading.
- Tighten with the 22mm oxygen sensor socket and a torque wrench: Torque to 44 Nm (32 ft-lbs).
Step 6: Reconnect wiring and secure the harness
- Plug the connector back in until it clicks.
- Reinstall any harness clips using the trim clip removal tool.
- Make sure the wire is routed away from the exhaust and moving parts.
Step 7: Clear codes and verify the fix
- Use the OBD2 scan tool to clear fault codes.
- Start the car and confirm the check engine light stays off.
- Check for exhaust leaks and confirm the harness isn’t touching hot parts.
âś… After Repair
- Road test 10–15 minutes and recheck for codes with the OBD2 scan tool.
- If the same code returns, inspect for exhaust leaks, damaged wiring, or the wrong sensor position.
- Re-check that the sensor connector is fully seated and locked.
đź’° DIY vs Shop Cost
Shop Cost: $220-$550 (parts + labor)
DIY Cost: $70-$250 (parts only)
You Save: $150-$300 by doing it yourself!
Shop labor rates vary but typically run $100-$150/hour. This repair takes a shop approximately 0.8-1.5 hours.
🎯 Ready to get started?
Before I lock in the exact sensor location and access steps for your Sonata, tell me:
- 🔹 Are you replacing upstream (Bank 1 Sensor 1) or downstream (Bank 1 Sensor 2)?
- 🔹 What code(s) are you getting (example: P013A, P0141, P0420)?
HowToo makes it easy: same-day/2-day shipping on every part, plus all the tools and specialty tools you need! Check out the parts and tools sections below to add everything to your cart.

















