Replacing a failed engine sensor

Sensors tell the engine computer what is happening, and one bad reading can set a warning light or stall the engine. In 2026 RepairPal puts oxygen sensor work at $440 to $523 and a crankshaft position sensor at $230 to $335 nationally, though the right fix depends on what a scan shows.

Drive with care, and not far

A steady check engine light with normal driving is usually fine for a few days. A crankshaft sensor that makes the engine die at random is a hazard in traffic, so treat it as red. A flashing light means misfire and you should slow down and stop soon.

In danger or blocking traffic? Call 911 first.
Free for driversNo account neededPlain answers
SquadRoadside assistant
What's going on with the car? Pick one, or tell Squad in your own words.
Squad can make mistakes. In danger, call 911.

Why the part is rarely the whole story

A sensor is a messenger. When the light comes on, the car has not told you the sensor is bad. It told you the sensor reading is out of range. Wiring, a vacuum leak, an exhaust leak or a failing component upstream can all produce the same number.

That is why a trouble code is a starting point. Paying for a part off a code alone is how drivers end up replacing the same sensor twice. Start with a scan, which you can often get free at a parts store, then read how to read engine codes to understand what you are looking at.

The sensors that fail most often

  • Oxygen sensors sit in the exhaust and report whether the mix is rich or lean. They age with heat and contamination. RepairPal lists related codes P0030, P0031 and P0032.
  • Crankshaft and camshaft position sensors tell the computer where the engine is in its rotation, so it can time spark and fuel. Failure can mean a no-start or a stall. RepairPal lists related codes P0317, P0318 and P0319.
  • Mass airflow, throttle position and manifold pressure sensors measure the air entering the engine.
  • Coolant temperature sensors feed the fan and fuel mixture.
  • Wheel speed sensors serve the ABS and stability systems. See the ABS light page for those.

Symptoms that point to a sensor

Intermittent faults are the hardest. A crankshaft sensor that fails only when hot may stall the car after a drive and then work fine after it cools. Tell the technician exactly when it happens.

What it costs

Here is what RepairPal's 2026 national averages show, excluding tax, fees and local price differences:

SensorTotalLaborParts
Oxygen sensor$440 to $523$93 to $136$347 to $387
Crankshaft position sensor$230 to $335$144 to $211$86 to $124

Models matter. For the oxygen sensor, RepairPal shows a Chevrolet Silverado 1500 at $306 to $407 and a Honda CR-V at $501 to $578. For the crankshaft sensor, a Nissan Altima runs $146 to $243 and a Toyota Camry $255 to $375. An oxygen sensor test is listed at $49 to $72. Cars with several oxygen sensors multiply the parts cost if the shop replaces more than one.

What the shop does

The shop connects a professional scanner, reads codes and live data, and compares what the sensor claims with what the engine is really doing. For a crankshaft sensor, the technician compares its signal with the camshaft's and inspects the wiring and connector. For an oxygen sensor, they watch its switching rate and check for exhaust leaks that would fool it.

RepairPal urges quality factory-grade sensors because cheaper ones may not communicate properly with the engine computer. It also says to inspect the timing belt or chain when a crank sensor fails, since a failed belt can produce similar symptoms. If the chain or belt is the culprit, see our page on timing belt work.

Ask the shop three things. Which code or measurement condemned this part? Is the part original equipment or a matching brand? If the light returns, is the diagnosis fee credited?

DIY limits

Replacing a sensor can be simple, but diagnosing the right one is not. RepairPal notes that an oxygen sensor job needs a scan tool, a safe way to lift the car, and often a torch to free the old part. On some engines the crankshaft sensor sits inside the block and needs major disassembly. Do not work under a car held only by a jack.

What you can safely do is clear a code only after you have written it down, check that the gas cap is tight, and look for loose connectors. For related repairs see check engine diagnostics and exhaust repair, since a leak can fool an oxygen sensor.

When it needs a tow instead

Call for a tow when the engine will not start, when it dies at speed and restarts poorly, or when a flashing light comes with shaking. A car with a dead crankshaft sensor is stranded, and the repair costs less than damaging the catalytic converter by pushing it. Use a light-duty tow for a passenger car. Our guide to the flashing check engine light explains the urgency.

Updated November 25, 2026

Questions drivers ask

Plain answers to the questions we hear most.

Can I clear the code and keep driving?

Clearing erases the code but not the fault, so the light returns once the computer retests. It also resets readiness monitors, which can make an emissions test fail until the car completes a drive cycle. Write the code down first and have it diagnosed.

How do I know which oxygen sensor is bad?

The code names a bank and position, such as bank 1 sensor 1, which is upstream on the first cylinder bank. Your manual or a shop can show which that is on your engine. Do not replace all of them without confirming each one.

Will a bad oxygen sensor ruin my catalytic converter?

A sensor that makes the engine run too rich for a long period can contribute to converter damage. That is one reason to fix a sensor code soon. If a converter is already clogged, a new sensor will not clear it.

Why does a new sensor sometimes not fix the light?

The reading can be wrong because of wiring damage, a vacuum or exhaust leak, or a fault elsewhere. The code points at a circuit, not always at the part. Ask for the test result that condemned the sensor.

Are cheap sensors a good idea?

RepairPal recommends high quality original equipment sensors, because lesser parts may not be recognized by the computer and can cause a repeat repair. The savings on the part can disappear if you pay for labor twice.

Help in your city

Local roads, towing rules and the help that covers them.

Run a tow company, roadside crew or repair shop?

Get jobs from drivers near you on your phone, and pay only for results.

TowSquad for pros

Every TowSquad service