Harley O2 Sensor Bad? Location, Symptoms & How to Test It
Before you buy a new O2 sensor, test the one already on your bike — on most Harleys you can do it from the seat with a Power Vision, without taking anything apart. RideIQ Performance put this guide together to walk you through it: where the front and rear sensors are, the symptoms a bad one actually causes at idle and cruise, the O2 and heater codes to read first, and the six-step check that separates a bad sensor from a wiring fault or an exhaust leak pretending to be one.
The short answer
Check engine light on? Idling rough, using more fuel, or stumbling at a steady cruise? One of your Harley-Davidson oxygen sensors could be going bad — and you can check it before you buy a new one.
Your bike has two of them. The front oxygen sensor threads into the front exhaust header pipe, a few inches below the front cylinder. The rear sensor threads into the rear header pipe, under the bike near the rear cylinder. Each one corrects its own cylinder, and the stock sensors only steer fuel at idle and light cruise — so that is where a bad one shows up first.
If you have a Power Vision, you do not have to take anything apart to test a Harley O2 sensor. Warm the engine fully, watch Front and Rear O2 Sensor Volts while Closed Loop Active is on, and look for a healthy sensor switching between about 0.1 volts (lean) and about 0.9 volts (rich). This guide walks through that test, the O2 channels in your log, the common O2 and heater codes, and what else — an exhaust leak, wiring, or the tune — can cause the same symptoms.
WHERE THEY ARE
Harley O2 sensor location
On a Harley-Davidson, the front oxygen sensor threads into the front exhaust header pipe, a few inches below the front cylinder. The rear sensor threads into the rear header pipe, under the bike near the rear cylinder. Each sensor has a wire that runs up to a connector on the main harness. Where that connector sits varies by model and year, so follow the wire from the sensor or check the service manual.
Keep track of which sensor is front and which is rear when you remove them. Each side corrects its own cylinder, so mixing up the plugs sends one cylinder's correction to the other.
WHAT THEY MEASURE
Narrowband vs wideband
The stock sensors are narrowband. Their voltage sits high when the mix is rich and low when it's lean, and flips sharply in between. That makes them good at holding one target, but they can't tell 13.0 from 12.5 to 1. Wideband sensors read the actual air/fuel number across the range. That's what Dynojet Target Tune, AutoTune Pro kits and dyno shops use.
The stock sensor flips from high to low volts right around 14.6 to 1, so it can only say rich or lean. A wideband reads the actual number, which is why it's needed to see a richer mix like 13.2 to 1 under load.
WHEN THE COMPUTER LISTENS
Closed loop vs open loop
CLOSED LOOP
The sensors are in charge
When: Idle and light, steady cruising, once the engine is warm, and only where the tune asks for about 14.6 to 1.
What happens: The computer watches the O2 sensors and keeps nudging fuel up or down to hold that mix. It also learns a longer-term correction and saves it.
OPEN LOOP
The tune is in charge
When: Heavier throttle, higher rpm, cold starts, deceleration, and anywhere the tune asks for a richer mix than 14.6 to 1.
What happens: The computer fuels straight from the tune's tables. The stock sensors still send a signal, but nothing corrects the fuel from it.
A tune with a richer target in more of the map shrinks the closed-loop area. That's normal on a tuned bike, and it's why a log with little closed-loop time isn't a fault by itself.
IN YOUR POWER VISION LOG
What the O2 channels mean
Names vary a little between devices and tunes, but these are the channels that tell the O2 story on a Power Vision 3 or 4 log.
Front / Rear O2 Sensor Volts
The raw sensor signal. In closed loop on a healthy sensor it keeps swinging between low (lean) and high (rich).
Closed Loop Active F / R
Whether the computer is using that sensor right now. When it's off, the bike is in open loop.
Front / Rear Closed Loop Integrator
The short-term correction the computer is making at this moment to hold the target mix.
Front / Rear Adaptive Fuel Factor
The correction the computer has learned over time and saved, so it starts closer next time.
Desired Air/Fuel or Desired Lambda
The mix the tune asked for. It tells you whether that part of the ride should have been closed loop.
WBO2 AFR Front / Rear
Measured air/fuel. You only get this when wideband sensors, such as Dynojet Target Tune, are fitted.
ON THE ROAD
Symptoms of a bad O2 sensor
The stock sensors only steer fuel at idle and light cruise, so that's where a bad one shows up. Exhaust leaks, wiring, fuel delivery and the tune can cause the same symptoms, so check the codes and the log before you buy a sensor. If it's a stumble, our guide on describing a hesitation helps you pin down when it happens.
Check engine light
Often with an O2 sensor or O2 heater code. Read the codes before you buy parts.
Worse fuel mileage
A sensor that reads lean makes the computer add fuel at idle and cruise.
Rough or hunting idle
Idle runs in closed loop on most stock and Stage 1 tunes, so a bad signal shows up there first.
Stumble at light, steady throttle
Cruise is the other closed-loop area. Heavier throttle runs in open loop and usually isn't affected.
Fuel smell or sooty plugs
Signs it's running rich, which can come from a sensor stuck reading lean.
CHECK IT YOURSELF
How to test a Harley O2 sensor
If you have a Power Vision, you can see what the sensors are doing without taking anything apart. Still choosing one? See PV3 vs PV4.
1Warm it up. Ride until the engine is fully warm. The stock sensors only switch properly when hot, and the computer won't use them until then.
2Watch O2 volts. Show Front and Rear O2 Sensor Volts on your Power Vision gauges, or record a log of a warm idle and a few minutes of steady cruise.
3Check Closed Loop Active. Only judge the sensor while Closed Loop Active is on. In open loop a flat reading can be normal.
4Look for the swing. A healthy narrowband keeps switching between about 0.1 volts (lean) and about 0.9 volts (rich). Stuck high, stuck low, or slow and lazy switching is worth a closer look.
5Compare front and rear. The two sides should look alike. If one is off, check its wiring, connector and the pipe around it for a leak before you replace the sensor.
6Swap to confirm. With the engine cold, a technician can swap the front and rear sensors when they're the same part. If the problem moves to the other side, it's the sensor. If it stays, it's the wiring, a leak or that cylinder.
HEALTHY
Keeps switching between ~0.1 V and ~0.9 V
STUCK LOW
Reads lean all the time: sensor, wiring or an exhaust leak
STUCK HIGH
Reads rich all the time: sensor, wiring or running rich
LAZY
Switches slowly or only part way: aging sensor
O2 volts on a warm engine with Closed Loop Active on. Judge the sensor only in closed loop: in open loop a flat line can be normal.
TROUBLE CODES
Common Harley O2 sensor codes
These are the usual O2 and O2 heater codes on many fuel-injected Harleys. Codes and meanings vary by year, so confirm them in the service manual for your bike. A Power Vision 3 or the Power Vision 4 app can read and clear them.
Code (front / rear)
What it points to
P0131 / P0151
Front / rear O2 sensor circuit low voltage
P0132 / P0152
Front / rear O2 sensor circuit high voltage
P0134 / P0154
Front / rear O2 sensor no activity (open loop or no switching)
P0031 / P0051
Front / rear O2 sensor heater circuit low
P0032 / P0052
Front / rear O2 sensor heater circuit high
A heater code means the sensor's built-in heater circuit, which can be the sensor, its wiring or the connector.
THINGS TO CHECK
Patterns worth a closer look in your log
None of these proves a bad sensor on its own. Wiring, connectors, exhaust leaks, fuel delivery and the tune can all cause the same patterns. They're reasons to look closer, or to have a technician check the bike.
O2 voltage stuck high or stuck low while Closed Loop Active is on.
O2 voltage that barely moves, or switches slowly, after the engine is fully warm.
An integrator or adaptive factor sitting at one end of its range for long stretches.
Front and rear corrections that are far apart or pulling in opposite directions.
A large correction adding fuel after new pipes. A small exhaust leak near the sensor pulls in outside air, the sensor reads lean, and the computer adds fuel the engine doesn't need.
A check engine light with an O2 or O2 heater code. See the common codes above.
An exhaust leak can also make the pipes pop when you roll off the throttle. Our Harley decel popping guide covers where to look.
Want to read the fuel correction numbers themselves? Our Harley AFR and fuel correction guide explains the Closed Loop Integrator, the Adaptive Fuel Factor and the patterns that point to lean, rich or a leak.
AFTER NEW PARTS
Stage 1 and new exhaust
A new air cleaner or exhaust changes how much air the engine moves. In closed loop the O2 sensors can correct some of that at idle and light cruise. Under heavier throttle the bike is in open loop, so it can run lean or rich there without the O2 channels showing any correction. That's why new parts usually need a tune that matches them. Our Harley Stage 1 tune guide covers your tuning options and what a good log looks like after.
TUNING TOOLS
AutoTune and Target Tune
AutoTune Basic uses the stock narrowband sensors to suggest fuel table changes. AutoTune Pro adds a kit with two wideband sensors, so it can read the actual mix at any rpm and throttle. Target Tune keeps wideband sensors on the bike and lets it run closed-loop fuel control full time on supported 2007 and later models. Our Target Tune guide compares all three.
There are two on most fuel-injected models. The front sensor threads into the front exhaust header pipe, a few inches below the front cylinder. The rear sensor threads into the rear header pipe, under the bike near the rear cylinder. Each has a wire that runs up to a connector on the harness. Where that connector sits varies by model and year, so follow the wire or check the service manual.
What are the symptoms of a bad O2 sensor on a Harley?
A check engine light with an O2 or heater code, worse fuel mileage, a rough or hunting idle, a stumble at light steady throttle, or signs of running rich like a fuel smell. Exhaust leaks, wiring and the tune can cause the same things, so check the codes and the log before replacing parts.
How do I test a Harley O2 sensor?
Warm the engine fully, then watch Front and Rear O2 Sensor Volts on your Power Vision while Closed Loop Active is on. A healthy sensor keeps switching between about 0.1 and 0.9 volts. Stuck high, stuck low or slow switching points to the sensor, its wiring or an exhaust leak. A technician can also check the heater circuit against the service manual.
Can I unplug the O2 sensors on my Harley?
On a stock or Stage 1 tune, unplugging them sets codes and turns on the check engine light, and the bike loses its fuel correction at idle and cruise. Some race tunes are built to run without them. Ask your tuner before you unplug anything.
What does an O2 heater code mean?
Each stock sensor has a small heater so it reaches working temperature quickly. Codes like P0031 and P0032 (front) or P0051 and P0052 (rear) point to that heater circuit, which can be the sensor, the wiring or a connector. Confirm the code meaning for your year in the service manual.
Do I need new O2 sensors with a new exhaust?
Usually not. The stock sensors move to the new pipes if they have sensor bungs that fit. Many models use an 18mm sensor, but some use a smaller 12mm one, so check that the new pipes match your sensors. Seal any leak near the sensors, because a leak makes them read lean.
How many O2 sensors does a Harley have?
Most fuel-injected Harley-Davidsons from 2007 on, Milwaukee-Eight models included, have two: one in the front exhaust pipe and one in the rear. Each cylinder gets its own sensor and its own fuel correction.
Can the stock O2 sensors tell me my air/fuel ratio?
Not across the range. The stock sensors are narrowband: they only say richer or leaner than about 14.6 to 1. To see an actual air/fuel number everywhere, the bike needs wideband sensors, such as Dynojet Target Tune or an AutoTune Pro kit.
Will the O2 sensors fix my fueling after a Stage 1?
Only at idle and light cruise, where the bike runs closed loop. Heavier throttle and higher rpm run in open loop, straight from the tune's tables, so those tables need to match the new air cleaner and exhaust.
What's the difference between AutoTune Basic, AutoTune Pro and Target Tune?
AutoTune Basic uses the stock narrowband sensors to suggest fuel table changes. AutoTune Pro uses a kit with two wideband sensors, which read the actual mix across all rpm and throttle positions. Target Tune keeps wideband sensors on the bike so it can run closed-loop fuel control full time.
Does an exhaust leak affect the O2 sensor?
Yes. A leak near the sensor can pull in outside air, so the sensor reads lean and the computer adds fuel. The bike can end up running richer than the tune intended.
Can RideIQ test my O2 sensors?
We don't test parts. We read your Power Vision log and show what the O2 channels and fuel corrections did on your ride, flag patterns worth checking, and say what your tuner or technician should look at.
SEE IT ON YOUR BIKE
Let us read your O2 data
Record a normal ride with your Power Vision and send us the original log. Your RideIQ report shows when the bike was in closed loop, the mix the computer asked for and how much it corrected, front and rear, and what your tuner should look at next.