How to Replace an Air Fuel Ratio Sensor

Air fuel ratio sensors, commonly known as a oxygen sensors, tend to fail within the driveability system of vehicles. When this sensor fails the engine will not perform optimally and can pollute the environment.

Usually an engine light will come on letting the operator know that something is not functioning properly. The indicator light that is associated with an air fuel ratio sensor will illuminate with an amber color.

Part 1 of 7: Identifying the malfunction indicator light

check engine light illuminated on the dash

When an engine light comes on, the first thing to do is scan the vehicle's computer for codes. Different codes may come on during the scan process letting you know that something within the engine caused the air fuel ratio sensor to fail.

The following are codes associated with the air fuel ratio sensor:

P0030, P0031, P0032, P0036, P0037, P0038, P0042, P0043, P0044, P0051, P0052, P0053, P0054, P0055, P0056, P0057, P0058, P0059, P0060, P0061, P0062, P0063, P0064, P0131, P0132.

The codes P0030 through P0064 will display that the air fuel ratio sensor heater has shorted or is open. For the codes P0131 and P0132 the air fuel ratio sensor has either a failed heater or there has been catastrophic failure due to thermal shock.

If you have scanned the vehicle’s computer and found different codes than mentioned, perform diagnostics and troubleshooting before replacing an air fuel ratio sensor.

Part 2 of 7: Preparing to replace the air fuel ratio sensor

Having all of the necessary tools and materials prior to starting the work will allow you to get the job done more efficiently.

Materials Needed

vehicle on level surface

Step 1: Park your vehicle on a flat, hard surface. Make sure that the transmission is in park (for automatics) or in 1st gear (for manuals).

Step 2: Place wheel chocks around the rear tires. Engage the parking brake to the lock the rear tires from moving.

Step 3: Install a nine volt battery saver into your cigarette lighter. This will keep your computer live and keep your setting current in the vehicle.

If you do not have a nine volt battery saver, that is fine.

Step 4: Open the vehicle's hood to disconnect your battery. Take the ground cable off of the battery’s negative post disabling the power to the air fuel ratio sensor.

  • Note: If you have a hybrid vehicle, use owner's manual for disconnecting the small battery only. Close the vehicle's hood.

jack lifting vehicle up

Step 5: Raise the vehicle. Using a floor jack, lift under the vehicle at its specified jacking points until the wheels are completely off the ground.

jack stand placed under vehicle

Step 6: Place the jack stands. Put the jack stands under the jacking locations and then lower the vehicle onto the jack stands.

For most modern cars, the jacking points will be on the pinch weld just under the doors along the bottom of the car.

  • Tip: It is best to follow the vehicle’s owner’s manual for proper jacking locations.

Part 3 of 7: Removing the air fuel ratio sensor

Materials Needed

air fuel ratio sensor location

Step 1: Get your tools and creeper. Go under the vehicle and locate where the air fuel ratio sensor is.

When identifying the location, determine if you need to remove the exhaust or a component to access the sensor using a socket.

If you have to remove the exhaust down to reach the sensor, then locate the closest mounting bolts to the front of the sensor.

Remove the butt connectors to the upstream sensor and downstream sensor. Remove the bolts to the exhaust and lower the exhaust to have access to the sensor.

  • Note: Keep in mind that the bolts may break due to rust and being seized on hard.

front drive shaft assembled

If the exhaust pipe goes around a drive shaft (front drive shaft for four wheel drive vehicles or rear drive shaft on all wheel drive vehicles) you will need to remove the drive shaft before lowering the exhaust pipe.

Remove the mounting bolts to the drive shaft and push in that section of the drive shaft into its slip yoke. If the drive shaft of the vehicle has a center support bearing, you will need to remove the bearing as well to lower the drive shaft.

If the vehicle is equipped with a engine guard, you will need to remove the guard to get to the exhaust pipe. Use the fastener remover to take off the plastic fasteners that hold the engine guard up. Lower the engine guard and place some where out of the sun.

Step 2: Disconnect the harness from the air fuel ratio sensor. Use your breaker bar and the air fuel ratio sensor socket and remove the sensor from the exhaust pipe.

Some air fuel ratio sensors may get stuck onto the exhaust pipe and make it almost impossible to remove. At this time, you would need to have a small portable torch handy.

Once you use the torch, use your breaker bar and the air fuel ratio sensor socket to remove the sensor from the exhaust pipe.

  • Note: Make sure that there is no flammable substance or fuel line near the exhaust pipe with using a portable torch. Use the portable torch and heat up the area around the mounting surface of the sensor.

  • Warning: Be careful where you put your hands as the surface on the exhaust pipe will be glowing red and very hot.

Step 3: Clean the harness to the vehicle using an electrical contact cleaner. After spraying the contacts, use a lint free cloth to wipe off any remaining debris.

Get the new sensor out of its box and clean the contacts with electrical contact cleaner to make sure that there is no debris on the contacts.

Part 4 of 7: Install the new air fuel ratio sensor

oxygen sensor being installed

Step 1: Thread the sensor into the exhaust pipe. Tighten the sensor up with your hands to finger tight.

Torque the sensor to the specifications that are provided on the slip in the bag or box that the sensor came with.

If for some reason there is no slip and you don’t know the specifications, you can tighten the sensor by 1/2 turn with metric 12 threads and 3/4 turn with metric 18 threads. If you do not know the thread size of your sensor, you can use a metric thread pitch gauge and measure the thread pitch.

Step 2: Connect the butt connector on air fuel ratio sensor to the vehicle harness. If there is a lock, make sure that the lock is in place.

If you had to reinstall the exhaust pipe, make sure that you use new exhaust bolts. Old bolts will be brittle and weak and cause them to break after some time.

Reconnect the exhaust up and torque the bolts to specifications. If you do not know the specifications, tighten the bolts to finger tight and 1/2 turn. You may need to tighten the bolts 1/4 turn more after the exhaust is hot.

If you had to reinstall the drive shaft, make sure that you tighten the bolts to factory settings. If the bolts are torque to yield, then you will need to replace them.

Reinstall the engine guard and use new plastic tabs to prevent the engine guard from falling off.

  • Note: Grease up the slip yoke and u-joint after installation (if there are grease zerks).

Part 5 of 7: Lowering the vehicle

Step 1: Raise the vehicle. Using a floor jack lift under the vehicle at its specified jacking points until the wheels are completely off the ground.

Step 2: Remove the jack stands. Keep them far away from the vehicle.

Step 3: Lower the vehicle to where all four wheels are on the ground. Pull out the jack and put it aside.

Step 4: Remove the wheel chocks. Set these aside.

Part 6 of 7: Hooking up the battery

mechanic hooking up battery cable

Step 1: Open the vehicle's hood. Reconnect the ground cable back onto the battery’s negative post.

Remove the nine volt battery saver from the cigarette lighter.

Step 2: Tighten the battery clamp. Ensure that the connection is good.

Part 7 of 7: Checking the engine

turning key in ignition

Step 1: Start and run engine. Remove the parking brake.

Move vehicle to a well-vented area and let the engine get to operating temperature.

  • Note: Keep in mind, the engine light may be still on.

  • Note: If you did not have a nine volt battery saver, your engine light will be off.

Step 2: Shut off engine. Let engine cool down for 10 minutes and restart.

You will need to perform this step nine more times if the engine light was off. This will reset your vehicle's computer in cycles.

Step 3: Test drive the vehicle. Drive the vehicle around the block about a mile or two to ensure that there are no leaks in your exhaust system.

It will take some time to make sure that the engine light will not come back on. You will have to drive your vehicle for 50 to 100 miles to verify if the engine light will come on again.

If the engine light comes back on after 50 to 100 miles, then there is another issue with vehicle. You will need to check the codes again and see if there is an indication of unforeseen problems.

The air fuel ratio sensor may need further inspection and diagnostics. There may be another underlying issue such as a fuel system issue or even a timing problem. If the problem persists, then you should seek out help from one of YourMechanic’s certified technicians to perform an inspection.

Next Step

Schedule Check Engine Light is on Inspection

The most popular service booked by readers of this article is Check Engine Light is on Inspection. Once the problem has been diagnosed, you will be provided with an upfront quote for the recommended fix and receive $20.00 off as a credit towards the repair. YourMechanic’s technicians bring the dealership to you by performing this job at your home or office 7-days a week between 7AM-9PM. We currently cover over 2,000 cities and have 100k+ 5-star reviews... LEARN MORE


The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details

Recent Check Engine Light is on Inspection reviews

Excellent Rating


Rating Summary


30 years of experience
728 reviews
30 years of experience
Chevrolet Cobalt - Check Engine Light is on - Kissimmee, Florida
This review also appears on google reviews. Great service where a very experienced and professional James Sandidge came to my address and repaired the fault with the car successfully for a very reasonable cost! I would recommend James Sandidge and this service to anyone needing car diagnosis and repair especially with the convenience of a professional coming to your location! Thanks very much!
BMW Z4 - Check Engine Light is on - Orlando, Florida
James is awesome knowledgeable , punctual and very professional. Will have James worked on my Z4 for now on .


29 years of experience
129 reviews
29 years of experience
Dodge Sprinter 2500 - Check Engine Light is on - Redlands, California
Marco was on time, friendly and very knowledgeable of what was going on with my van, I’m very happy with the service I received today, will definitely be working with your again.
Kia Soul - Check Engine Light is on - Riverside, California
Marco was great. Cam on time, and explained everything he did. Also gave good recommendation for fixing as the problem has a Kia recall.


24 years of experience
395 reviews
24 years of experience
Chrysler PT Cruiser - Check Engine Light is on - Norcross, Georgia
He's incredible. Very knowledgeable and personable. He explains things logically and honestly. I'm sure he's a great addition to your company! Well done.
Chevrolet Tracker - Check Engine Light is on - Stone Mountain, Georgia
Kevin was pretty cool! He explained things to me in a way I could understand and was able to offer me some good options to fix my car problems! Very professional and knew his stuff! Excellent experience


33 years of experience
67 reviews
33 years of experience
Toyota Camry - Check Engine Light is on - Carmichael, California
Johnny was early, friendly, and thorough! He explained things to me about my car that I had no idea about before! I booked him for a diagnostic appointment and I’m definitely requesting him for a follow-up!
Pontiac G8 - Check Engine Light is on - Sacramento, California
He showed up early, ran diagnostics, we discussed options finished up ,very polite and friendly and professional.

Need Help With Your Car?

Our certified mobile mechanics make house calls in over 2,000 U.S. cities. Fast, free online quotes for your car repair.


Related articles

P0259 OBD-II Trouble Code: Injection Pump Fuel Metering Control "B"
What What the P0259 code means The powertrain control module (PCM) has recognized a discrepancy in the signal voltage that is supplied to the electronic fuel control actuator and the signal returned from the fuel metering control sensor. Please note...
B1350 OBD-II Trouble Code: Heated Backlight Relay Short to Ground
B1350 means there is an error with the heated backlight relay, likely due it being defective, a faulty switch, or a blown fuse.
P0349 OBD-II Trouble Code: Camshaft Position Sensor A Circuit Intermittent (Bank 2)
P0349 P0349 code definition Your vehicle’s PCM has found an improper wave form or voltage reading from the camshaft circuit A in engine bank 2. What the P0349 code means The camshaft position sensor works with the notches, or teeth,...

Related questions

My van was missing and rough idling then I turned it off one day and the next day it starts then dies and some times it won't start

Hello, thanks for writing in about your 2001 Dodge Caravan. For certain, given your mileage and codes for these 2 components, replacing these 2 sensors is the minimum. Cleaning the idle air control valve, throttle body, and PCV valve should...

Gas tank door burnt black.

The most common cause for a P0440 code is the fuel cap seal. I suggest making sure that the fuel cap is tight by turning until it clicks. If you are sure that your fuel cap was tight, replace the...

Check Engine Light and O2 sensor on a used car

Hi there. Assuming the vehicle Check Engine Light is an O2 sensor code does not necessarily mean the O2 sensor is at fault. It could be an electrical fault in the O2 sensor circuit(s). I highly recommend that you have...

How can we help?

Our service team is available 7 days a week, Monday - Friday from 6 AM to 5 PM PST, Saturday - Sunday 7 AM - 4 PM PST.

1 (855) 347-2779 ·