BMW 5 Series O2 Sensor: Upstream vs Downstream Buying Guide
11 min read · by Ryan Caldwell · Last updated: November 29, 2026
The right BMW 5 Series O2 sensor is the one listed for your engine code, model year and sensor position, either upstream before the catalytic converter or downstream after it. Start with the code your scanner shows, then match the part to the car.
This guide explains the two sensor positions, the symptoms that point to a failing sensor, and how a scan can tell you which sensor to replace before you buy anything.
Quick verdict: which sensor to replace
Replace the sensor that the scan points to, and buy it by part number tied to your VIN. A generic “5 Series O2 sensor” label does not tell you the position, the connector or the engine it fits.
| Sensor option | Position and job | Common sign | Buying note |
|---|---|---|---|
| Upstream (pre-catalyst) sensor | Before the catalytic converter; the ECU uses it to set the air-fuel ratio | Rough running, hesitation and higher fuel use | Match the engine code and the sensor position in the parts catalog |
| Downstream (post-catalyst) sensor | After the catalytic converter; checks converter efficiency | Often a catalyst efficiency code, with few drive changes | Confirm it is the post-converter position before you order |
| Dealer-supplied sensor | Same position, supplied to the car’s specification | Not a sign; a sourcing choice | Higher cost, but the part number is confirmed by VIN |
| Aftermarket sensor | Same position when the part is listed for your engine | Not a sign; a sourcing choice | Check the connector, wiring length and heater type against the old sensor |
O2 sensors that list the 5 Series
These listings name 5 Series fitment and state the sensor position. Before buying, match the part number to your engine code and model year, confirm upstream or downstream from your scan, and check the seller's fitment list.
For upstream replacement: A-Premium 11787558073
- Position
- Upstream, cylinders 4-6
- Fits
- BMW 3/5-Series, X3, Z4
- Engine
- L6 2.5L / 3.0L
- Replaces
- 11787558073, 0258017099
This upstream O2 oxygen sensor suits owners of listed BMW models with a 2.5L or 3.0L inline-six, specifically the upstream position for cylinders 4-6. Two replacement numbers are provided to help match the original part. Before ordering, confirm your exact model, year, and engine with the maker, because the listed BMW models are broad and placement must match your vehicle's sensor location.
- Lists two replacement part numbers
- Covers listed 2.5L and 3.0L inline-six engines
- Upstream position for cylinders 4-6 stated
- Broad model list; exact year and model must be confirmed
- Sensor placement must match your vehicle exactly
For downstream, 528i to 550i: sensor 11787545074
- Part type
- Downstream O2 oxygen sensor
- OE number
- 11787545074
- Alt. number
- 250-24713 / 25024713
- Fits
- BMW 1, 3, 5, 6, 7 Series, X3, X5, X6, Z4
This downstream oxygen sensor suits BMW owners and technicians replacing a worn rear sensor that is setting emissions-related codes. It is listed under OE number 11787545074 and cross-references 250-24713 and 25024713. Covered models include the 128i, 135i, 328i, 335i, 535i, 550i, 750i, X3, X5, X6 and Z4. Confirm your model year, engine and sensor position against the maker's fitment list before ordering.
- Cross-references OE number 11787545074 for easy matching
- Downstream position replaces the sensor after the catalytic converter
- Covers a wide range of BMW sedans, SUVs and the Z4
- Fitment varies by year and engine, so verification is required
- Downstream only; upstream sensors need a different part number
For both positions: MAXFAVOR 2-piece sensor set
- Type
- Oxygen sensor, upstream/downstream
- Pack size
- 2 pieces
- Fits
- BMW 128i/135i/323i/328i/330i/335i and more
- Part numbers
- 234-5138, 234-4892
Suits owners of listed BMW models from 2007 to 2013 with a 3.0L engine who need a matched upstream and downstream oxygen sensor pair for cylinders 4, 5, and 6. The set is listed with reference numbers 234-5138 and 234-4892, so matching those numbers to the original part is a practical first step. Confirm with the maker which sensor position fits your specific vehicle, as the listing covers many BMW models and years.
- Two-piece set with upstream and downstream sensors
- Lists both original reference numbers
- Covers multiple BMW models and years
- Fitment depends on exact model and year
- Cylinder-specific, so position must be checked
How this list was built
This guide rests on one general reference that was read in full, a Wikipedia article on oxygen sensors. It explains the upstream and downstream roles, and the general symptoms of a failing sensor. It does not cover the BMW 5 Series, so the model-specific points here are scope boundaries, not findings.
The sensor count, the exact position and the part number change with the engine and model year. The parts catalog for your VIN and the service information for your engine code are the sources that settle those points. No brand is named here because no page read for this guide confirmed one for the 5 Series.
What an O2 sensor does on a 5 Series
An oxygen sensor reports the exhaust condition to the engine computer, which uses that signal to set the air-fuel ratio. Wikipedia’s oxygen sensor article says the upstream sensor does not measure oxygen concentration directly, but the difference between the oxygen in the exhaust and the oxygen in the air.

The upstream sensor
The upstream sensor sits after the exhaust branch manifold combines and before the catalytic converter. It reads the gas that comes straight from the engine, so it is the signal the computer uses for fine fuel control. A fault here usually affects how the engine runs, not only the emissions reading.
The downstream sensor
The downstream sensor sits after the catalytic converter. Its main job is to check the converter. The reference says that pre- and post-catalyst signals are monitored to determine catalyst efficiency, so the downstream sensor is the one to compare against the upstream reading when the converter is in question. BMW 3 Series O2 Sensor Replacement explains a closely connected part of this problem.
Where the sensors sit and how to confirm it
The upstream sensor is ahead of the converter and the downstream sensor is behind it. That order is the rule that matters when you read a parts catalog, because two sensors with similar names can fit different positions on the same car.
The exact location on a 5 Series depends on the engine and the exhaust layout. The reference used here does not describe 5 Series positions, so confirm the position against the service information for your engine code before you lift the car or order parts.
Symptoms of a failing O2 sensor
A failing oxygen sensor often shows up as a dash warning light, higher fuel use, hesitation on acceleration and rough idle. The same reference also lists higher tailpipe emissions and stalling as general signs.

Why fuel economy drops
For heated sensors that fail through catalyst depletion, the probe tends to report a lean mixture. The computer then enriches the mixture to compensate, which burns more fuel. That is why a sensor fault often shows up first as a fuel-economy complaint rather than a stall.
Symptoms that point elsewhere
Rough idle, hesitation and a lit warning light also have other causes. A vacuum leak, a fuel delivery problem or a misfire can produce the same signs. Treat the sensor as one suspect and confirm it with the scan data before replacing it.
How to use a scan to pick the right sensor
A scan tells you which position set the code, so it is the first step. Read the stored codes, then the freeze frame, which records engine speed, load and temperature when the fault set. Note whether the code names the upstream or the downstream sensor, or the catalyst efficiency.
- Read the stored and pending codes, and write down the sensor position each one names.
- Check the freeze frame for engine speed, load and temperature when the fault set.
- Open live data and watch the upstream signal. It should move as the computer adjusts the mixture.
- Compare the downstream signal. It is generally steadier when the converter is working.
- Clear the codes, run a normal drive cycle, and read the codes again before you buy a part.
If the upstream signal does not move at all, check the sensor’s heater and wiring before you assume the sensor is dead. A stuck or flat signal can also come from a leak in the exhaust ahead of the sensor, so inspect the manifold joints as well.
What to check before you buy a sensor
A sensor that fits the thread can still be the wrong part. The checks below prevent most returns and wasted installs.
- The VIN and engine code, to confirm the engine variant.
- The sensor position, upstream or downstream, from the code or the parts catalog.
- The connector shape and pin count, compared with the old sensor.
- Whether the sensor is heated, since the reference discusses heated probes.
- The wire length, so the new sensor reaches the harness without strain.
Keep the old sensor until the new one is confirmed. Its connector and wire length are the best reference when the part arrives, and they help if the return window is short. Live data makes this diagnosis much easier, and Best OBD2 Scanners for 5 Series lists tools that show it.
Dealer or aftermarket: which suits you
A dealer sensor suits an owner who wants the part number confirmed by VIN and fewer questions at the counter. It also suits a car still under a warranty claim, where the record of the part matters.
An aftermarket sensor suits an owner who has already confirmed the position, the connector and the heater type against the old part. Compare the specification sheet line by line, not only the name on the box, and keep the receipt until the car has been driven and rechecked.
When the sensor is not the cause
A lean reading can come from air entering the exhaust ahead of the sensor, from a leaking intake or from weak fuel delivery. In those cases a new sensor reports the same fault again, which is the most common reason for a repeat repair.
Scope boundary: this guide covers the sensor only. A converter that has failed, a leak that is not visible, or a fault that needs ECU coding falls outside it, and those jobs belong with a qualified technician who can read the full live data.
Common mistakes with O2 sensor jobs
Most wasted sensor jobs trace back to one of a few errors. Each one is easy to avoid if you check the position and the signal before the wrench comes out.
- Ordering by the model name alone, without the engine code and sensor position.
- Replacing the downstream sensor when the code names the upstream position, or the reverse.
- Ignoring a lean reading that comes from an exhaust or intake leak.
- Bending or pulling the sensor wire, which can break the signal inside the harness.
- Clearing the code and assuming the job is finished before a drive cycle has run.
The last mistake is the easiest to make. A cleared code will often stay away for a short time even when the fault is still there. Read the codes again after a normal drive before you call the job complete.
Working safely on the exhaust
The exhaust is hot for a long time after the engine stops, so work on a cool system. Wait until the exhaust has cooled fully before you reach for the sensor, and keep hands and clothing clear of the pipe and the manifold.
The sensor wire is the most fragile part of the job. Route it away from the exhaust heat and keep it clear of moving parts. Remove the connector before you turn the sensor, and check that the new wire is not stretched or kinked before the connector clicks home.
Lifting the car
A downstream sensor is often reached from under the car, so use proper stands and never rely on a jack alone. Chock the wheels and work on level ground, because an exhaust component that is hot or that falls can cause serious injury.
Torque and seating
Use the torque figure from the service information rather than a guess, and seat the sensor squarely in its bung. An over-tightened sensor can damage the threads in the exhaust, while a loose one leaks and can throw the reading off.
Anti-seize and coatings
Some sensors arrive with a factory coating on the threads, and adding more compound can change the torque reading. Check the new sensor’s packaging and the service information before you add any anti-seize product. For the same topic on a different vehicle, see Ford Ranger O2 Sensor.
What the repair involves and what to expect
A sensor swap is usually a short job once the position is confirmed and the car is safely raised. The time it takes depends on access, rust on the threads and whether the exhaust bolts or bung need cleaning. Plan for a slower job if the old sensor is seized.
Expect the cost to depend on the part source and the labor rate in your area. This guide does not give a price, because no source read for it confirmed a figure for a 5 Series sensor. Ask a shop for a written quote that names the sensor position and the part number.
Frequently Asked Questions
Do all BMW 5 Series models use the same O2 sensors?
No. The sensor count, position and part number depend on the engine and the model year. Check the parts catalog with your VIN and the engine code before you buy, because a sensor for one engine may not fit another.
Is the upstream sensor the same as the downstream one?
No. The upstream sensor sits before the catalytic converter and sets the air-fuel ratio. The downstream sensor sits after the converter and checks its efficiency. They have different jobs, so a part for one position does not fit the other.
Can one bad O2 sensor hurt fuel economy?
Yes. The reference says a heated sensor that fails through catalyst depletion can report a lean mixture. The computer then enriches the mixture, which increases fuel consumption and lowers economy.
Does a clean scan mean the sensor is good?
Not always. A sensor can fail slowly without setting a code at first. Look at the live signal, especially whether the upstream reading moves as the mixture changes, before you decide the sensor is healthy.
Can I replace just one sensor?
Usually, yes, if the scan points to one position and the live data on the other sensors looks normal. Replacing every sensor without a reason adds cost and does not fix a single fault.
Do I need a special socket for the sensor?
Often, yes. Oxygen sensors are usually removed with a dedicated sensor socket that clears the wire. Check the socket size and the torque in the service information for your engine, and work on a cool exhaust.
On a 5 Series, the scan code and the VIN-matched part number decide the job, not the box label. Confirm the position first, then replace the one sensor the data points to.
-
Ryan Caldwell, Vehicle Research Editor at BestOBD2Picks Ryan cross-references manufacturer data, NHTSA records, and owner reports to show which scan tools and procedures fit your specific vehicle. Vehicle Research Editor
Related guides
Scanners by VehicleBMW 5 Series Battery Size: Find the Correct Replacement
Scanners by VehicleBMW 5 Series Spark Plugs: Interval, Heat Range and Buying Guide
Scanners by VehicleBMW 5 Series OBD2 Scanner: Find the Right Diagnostic Tool
Scanners by VehicleBMW 5 Series Ignition Coil: Symptoms, Coil Design and Buying Guide
Scanners by VehicleBMW 5 Series Battery: AGM Choice, Coding and Registration Guide
Scanners by VehicleNissan Altima Battery Size: How to Find the Right Fit