Oxygen (O2) sensors measure unburned oxygen in the exhaust so the engine computer can fine-tune fuel mixture. A failing one can trigger the check engine light and hurt fuel economy. Cars have several, and the price depends heavily on which one failed. Here's what drives the cost, what to watch for, and what to ask.
Fair price range: price range coming soon.
What a proper O2 sensor replacement includes
Confirming which sensor is at fault (upstream or downstream, bank 1 or 2) from stored codes and data
Checking for exhaust leaks or wiring damage that mimic a bad sensor
Installing the correct sensor and securing the wiring away from heat
Clearing codes and verifying the sensor reads normally on a test drive
What affects the price
Factor
Why it matters
Which sensor
Upstream and downstream sensors differ in price and access.
Access and rust
Seized sensors in the exhaust can take extra time to remove.
Part brand
OEM, direct-fit, and universal sensors vary a lot in cost.
Diagnosis time
Proving the sensor is the cause may be billed separately.
Red flags in a quote
Replacing every O2 sensor when only one code is stored
No diagnosis, just "the code says O2 sensor"
Not checking for exhaust leaks or wiring problems first
Unusually high labor for an easily reached sensor
Cheap universal sensor priced like an OEM part
Questions to ask the shop
Which sensor is failing, and how did you confirm it?
Could a leak or wiring issue be causing the code?
What brand of sensor will you install, and is it warrantied?
Is diagnosis included or separate?
Are other sensors due, or only this one?
Not a DIY guide. A check engine light can have many causes, so get it diagnosed before buying parts. Driving short-term with a failing sensor is usually not urgent, but a flashing check engine light is: stop and have it checked.