Replacing an oxygen sensor typically costs $150 to $500 at a shop. The sensor itself runs $40 to $200, and labor is modest unless the sensor is seized in the exhaust. Most cars have two to four oxygen sensors, so the exact cost depends on which one failed.
$150-$500
typical shop cost
$40-$200
sensor only (DIY)
0.5-1 hr
typical labor time
📊 Quick Comparison
Vehicle type
Parts
Labor
Total
Economy sedan (downstream)
$70
$100
$170
Midsize/SUV (upstream)
$120
$130
$250
Full-size truck
$140
$150
$290
European/luxury
$180
$180
$360
What it costs
An oxygen sensor job usually runs $150 to $500. Upstream (air-fuel ratio) sensors sometimes cost more than downstream sensors. The part is inexpensive; the variable is whether the sensor threads out easily or has rusted into the exhaust.
Wideband air-fuel sensors on newer cars cost more than older narrowband sensors.
Parts vs labor
The sensor is cheap and often accessible. Labor is usually under an hour unless a seized sensor requires heat, penetrating oil, or a special socket.
Downstream O2 sensor: $40 to $120
Upstream air-fuel sensor: $80 to $200
Accessible labor: $60 to $150
Seized-sensor labor: $150 to $300
Signs you need it
A check-engine light with an oxygen-sensor or fuel-trim code, poor fuel economy, rough idle, a failed emissions test, or hesitation can all indicate a failing sensor.
O2 sensor codes (P0130 to P0167)
Drop in fuel economy
Rough idle or hesitation
Failed emissions test
DIY vs shop
Oxygen sensor replacement is a common DIY job if the sensor is reachable. An oxygen-sensor socket helps, and a little penetrating oil frees stuck threads. Match the sensor to your exact vehicle, since connectors and calibration differ.
How to save
Read the code to confirm which sensor is bad rather than replacing all of them. Use a quality direct-fit sensor. Fix underlying issues like exhaust leaks or a rich mixture first, since those can throw sensor codes on a good sensor.
📋 Never get charged $800 for a $50 fix
The 50 most common check engine codes with likely cause and DIY fix cost. Sent once.
❓ FAQ
How many oxygen sensors does my car have?
Most cars have two to four: one upstream and one downstream per exhaust bank. V-engines with dual exhaust have more.
Can I drive with a bad oxygen sensor?
Short term yes, but expect worse fuel economy and a lit check-engine light. Prolonged rich running can also harm the catalytic converter.
Which oxygen sensor is bad, upstream or downstream?
The trouble code tells you. Sensor 1 is upstream (before the converter); sensor 2 is downstream (after it). Bank refers to the engine side.
Will a new oxygen sensor improve gas mileage?
If the old sensor was skewing the fuel mixture, yes, a new one can restore lost economy. On a healthy sensor the gain is minimal.
What else can cause an oxygen sensor code?
Exhaust leaks, a rich or lean fuel condition, vacuum leaks, and a bad connector can all trigger sensor codes without the sensor being faulty.
How long do oxygen sensors last?
Typically 60,000 to 100,000 miles. Contamination from oil, coolant, or leaded fuel and heat cycling shorten their life.