How to Replace the Oxygen Sensor on a 2019-2022 Ford Ranger (Engine: Inline 4 2.3L)
Step-by-step upstream or downstream O2 sensor guide with tools, parts, torque specs, and safety tips for 2019, 2020, 2021, 2022
How to Replace the Oxygen Sensor on a 2019-2022 Ford Ranger (Engine: Inline 4 2.3L)
Step-by-step upstream or downstream O2 sensor guide with tools, parts, torque specs, and safety tips for 2019, 2020, 2021, 2022
🔧 Oxygen Sensor - Replacement
This guide covers replacing an oxygen sensor on your Ranger. Your Ranger uses an upstream air/fuel oxygen sensor before the catalytic converter and a downstream oxygen sensor after the catalytic converter; the replacement process is similar, but the sensor locations are different.
Assumption: Replace the failed sensor identified by the trouble code or scan tool data: Bank 1 Sensor 1 is upstream, Bank 1 Sensor 2 is downstream.
Difficulty Level: Beginner | Estimated Time: 1-2 hours
⚠️ Safety & Precautions
- ⚠️ Exhaust parts get extremely hot. Let your Ranger cool for at least 1-2 hours before touching the exhaust.
- ⚠️ Support the truck with jack stands if you raise it. Never rely on a floor jack alone.
- ⚠️ Wear safety glasses because rust, dirt, and debris can fall when working under the truck.
- ⚠️ Do not twist or pull on the oxygen sensor wiring. Damage to the harness can cause repeat fault codes.
- ⚠️ Battery disconnect is recommended to prevent accidental shorts while unplugging sensor connectors.
🔧 Required Tools
You'll need the following tools for this repair:
- 3/8-inch drive ratchet
- 3/8-inch drive 6-inch extension
- 22mm oxygen sensor socket
- 22mm wrench
- 10mm socket
- Torque wrench rated 10-100 Nm
- Trim clip removal tool
- Penetrating oil
- Floor jack rated 3-ton minimum
- Jack stands rated 3-ton minimum
- Wheel chocks
- Nitrile gloves
- Safety glasses
- OBD-II scan tool
🔩 Required Parts
HowToo sells all the parts you need for this repair:
- Upstream air/fuel oxygen sensor - Qty: 1 if replacing Bank 1 Sensor 1
- Downstream oxygen sensor - Qty: 1 if replacing Bank 1 Sensor 2
- High-temperature anti-seize compound - Qty: 1 small packet if not pre-applied
📋 Before You Begin
- Park your Ranger on level ground and set the parking brake.
- Place wheel chocks behind the rear wheels if lifting the front of the truck.
- Let the exhaust cool completely before starting.
- Use an OBD-II scan tool to identify which sensor failed. “Bank 1” is the only bank on the 2.3L inline-4 engine.
- Bank 1 Sensor 1 is the upstream sensor located before the catalytic converter. Bank 1 Sensor 2 is the downstream sensor located after the catalytic converter.
- An oxygen sensor socket is a 22mm socket with a slot cut in the side so the sensor wire can pass through it.
🔨 Step-by-Step Instructions
Follow these steps in order:
Step 1: Cool and Secure the Truck
- Let the exhaust cool for at least 1-2 hours before touching any exhaust parts.
- Use wheel chocks to block the rear wheels.
- If more room is needed, use a floor jack rated 3-ton minimum to lift the front of your Ranger.
- Place jack stands rated 3-ton minimum under the proper front frame support points.
- Gently lower the truck onto the jack stands before working underneath.
Step 2: Disconnect the Battery
- Open the hood.
- Use a 10mm socket to loosen the negative battery cable clamp.
- Move the negative cable aside so it cannot spring back onto the battery post.
- Tip: Negative cable first, always.
Step 3: Locate the Correct Oxygen Sensor
- Use safety glasses before looking or working under the truck.
- For Bank 1 Sensor 1, locate the sensor threaded into the exhaust before the catalytic converter, near the turbo/downpipe area.
- For Bank 1 Sensor 2, locate the sensor threaded into the exhaust after the catalytic converter.
- Follow the sensor wire from the exhaust pipe to its electrical connector.
- Use a trim clip removal tool if a plastic harness retainer needs to be released.
Step 4: Spray the Sensor Threads
- Use penetrating oil on the base of the oxygen sensor where it threads into the exhaust.
- Wait 10-15 minutes so the oil can work into the threads.
- Do not spray penetrating oil into the electrical connector.
- Tip: Patience prevents stripped threads.
Step 5: Disconnect the Sensor Connector
- Press the connector lock tab by hand and unplug the oxygen sensor connector.
- If the connector is clipped to a bracket, use a trim clip removal tool to release the retainer.
- Do not pull on the wires. Pull only on the connector body.
Step 6: Remove the Old Oxygen Sensor
- Slide the 22mm oxygen sensor socket over the sensor wire and onto the sensor hex.
- Use a 3/8-inch drive ratchet and 3/8-inch drive 6-inch extension to loosen the sensor counterclockwise.
- If space is tight, use a 22mm wrench instead.
- Remove the sensor by hand once it is loose.
- If the sensor is stuck, add more penetrating oil and work it back and forth gently with the 22mm oxygen sensor socket.
Step 7: Prepare the New Sensor
- Compare the old and new oxygen sensors before installation.
- Make sure the connector shape, wire length, and threaded end match.
- If the new sensor already has anti-seize on the threads, do not add more.
- If it does not, apply a very small amount of high-temperature anti-seize compound to the threads only.
- Keep anti-seize away from the sensor tip. The sensor tip is the working end that reads oxygen in the exhaust.
Step 8: Install the New Oxygen Sensor
- Start the new sensor by hand to avoid cross-threading.
- Turn it clockwise several turns by hand before using tools.
- Use the 22mm oxygen sensor socket and torque wrench to tighten the sensor.
- Torque to 48 Nm (35 ft-lbs)
- Do not overtighten. The exhaust bung threads can be damaged.
Step 9: Route and Connect the Wiring
- Route the new sensor wire the same way as the original.
- Keep the wire away from the exhaust pipe, driveshaft, and sharp edges.
- Push the connector together by hand until it clicks.
- Use the trim clip removal tool to reinstall any harness retainers if needed.
- Tip: Match the factory wire path.
Step 10: Reconnect the Battery
- Place the negative battery cable back onto the battery post.
- Use a 10mm socket to tighten the negative battery cable clamp snugly.
- Do not overtighten the battery clamp.
Step 11: Clear Codes and Check Operation
- Use an OBD-II scan tool to clear the stored oxygen sensor fault code.
- Start your Ranger and let it idle.
- Check that the engine runs smoothly and that the check engine light does not immediately return.
- Look under the truck and listen for exhaust leaks near the sensor.
✅ After Repair
- Drive your Ranger for 10-20 minutes so the powertrain computer can begin checking the new sensor.
- If the check engine light returns, scan the codes again before replacing more parts.
- Common oxygen sensor codes can also be caused by exhaust leaks, wiring damage, fuel trim issues, or vacuum leaks.
- If emissions readiness monitors are needed, your Ranger may require several normal drive cycles before all monitors show ready.
💰 DIY vs Shop Cost
Shop Cost: $250-$500 parts + labor
DIY Cost: $60-$220 parts only
You Save: $190-$280 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?
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.











