What a crankshaft sensor does and why it fails

A crankshaft sensor (also called a crankshaft position sensor or CKP sensor) tells your engine's computer where the crankshaft is at any given moment. The crankshaft is the shaft that converts the up-and-down motion of your pistons into the rotational motion that turns your wheels. The sensor reads a toothed ring on the crankshaft and sends that position data to the engine control unit hundreds of times per second. Without accurate crankshaft position information, your engine cannot time the spark plugs or fuel injectors correctly, and it will not run.

Crankshaft sensors fail because they sit in hot, dirty, vibration-heavy environments near the engine block. The sensor itself is usually a magnetic or Hall-effect device mounted close to the crankshaft, often near the bottom of the engine where oil, coolant, and road salt can reach it. Over time—typically 80,000 to 150,000 miles, though this varies by vehicle—the sensor's electronics degrade, the connector corrodes, or the wiring harness breaks from engine vibration. When it fails, your engine will not start, will stall while driving, or will run very roughly and trigger the check engine light.

Key Takeaways

  • A crankshaft sensor tells your engine computer where the crankshaft is positioned so it can time ignition and fuel injection; when it fails, the engine will not start or will stall.
  • Replacement usually takes one to three hours depending on engine layout and sensor location, and costs between $150 and $400 in parts and labor at a shop.
  • You will need basic hand tools (socket set, wrenches, screwdrivers), a jack and jack stands if the sensor is underneath, and possibly a sensor socket or removal tool specific to your vehicle.
  • The hardest part is often accessing the sensor—some sit in tight spaces behind the engine, requiring removal of other components first.
  • After installation, you must clear the check engine code with a diagnostic scanner; the code will not clear on its own.

Locate the sensor on your specific vehicle

Before you buy a replacement or gather tools, you need to know where your crankshaft sensor is. Location varies widely by make, model, and engine type. On some vehicles it is bolted to the front of the engine block near the crankshaft pulley. On others it is mounted on the side of the block, behind the engine, or even underneath near the oil pan. A few vehicles have two crankshaft sensors.

Consult your vehicle's service manual or search online for "[your year, make, model] crankshaft sensor location." Many repair forums and YouTube channels show the exact location and removal steps for your specific engine. This step saves you hours of guessing and prevents you from removing the wrong sensor. Once you know where it is, assess whether you can reach it with basic tools or whether you will need to remove other components—an intake manifold, timing cover, or engine mount—to access it.

Gather the right tools and parts

You will need a replacement crankshaft sensor matched to your vehicle's year, make, and model. Buy the correct part number from a parts supplier or your dealership; a wrong sensor will not work. You will also need basic hand tools: a socket set, wrenches, screwdrivers (both Phillips and flat-head), and pliers. If the sensor is underneath the engine, you will need a floor jack and jack stands to safely lift the vehicle.

Some sensors require a special removal socket or tool to unscrew them without damaging the connector. Check your service manual or call a parts store with your vehicle information to confirm whether you need a special tool. A diagnostic scanner that can read and clear engine codes is also essential—you cannot clear the check engine light by hand, and the light will stay on until the code is cleared. Many auto parts stores will clear the code for free after you finish the repair, or you can buy an inexpensive scanner for $25 to $60.

Disconnect the battery and remove the old sensor

Start by disconnecting the negative terminal of your battery. This prevents electrical shorts and protects the engine computer while you work. Wait a few minutes for any residual electrical charge to drain.

Locate the sensor's electrical connector and unplug it by pressing the release tab or clip. Take a photo of the connector orientation so you can plug the new one in the same way. If the connector is corroded or stuck, spray it lightly with penetrating oil and wait a few minutes before trying again. Do not force it—you can break the connector or the wiring harness.

Now unbolt the sensor itself. Most sensors are held by one or two bolts. Use the correct socket or wrench size so you do not strip the bolt head. If the sensor is stuck from age or corrosion, explore penetrating oil around the base and wait 10 to 15 minutes. Turn the bolt slowly; if it resists, explore more oil and wait longer rather than forcing it and breaking the bolt inside the engine block. Once the bolts are out, carefully pull the sensor straight out of its mounting hole.

Install the new sensor and reconnect the connector

Before you install the new sensor, compare it side-by-side with the old one to confirm they are identical. Check that the mounting flange, connector type, and overall shape match. If they do not, you have the wrong part and should not install it.

Insert the new sensor into the mounting hole and hand-tighten the bolts first. Once you are sure it is seated correctly and the bolt holes line up, use your socket wrench to tighten the bolts to the torque specification listed in your service manual. Over-tightening can crack the sensor body or strip the threads; under-tightening can cause the sensor to vibrate loose. If your manual does not list a torque value, tighten the bolts snugly but not with all your strength—think "firm handshake," not "wrestling match."

Plug the electrical connector back in until you hear or feel it click. Reconnect the negative battery terminal. Do not start the engine yet.

Clear the check engine code and test the repair

Your engine's computer will have stored a diagnostic trouble code (usually P0016, P0017, P0335, or P0336, depending on which sensor failed) when the old sensor stopped working. Even though you have installed a new sensor, the code will remain in the computer's memory until you clear it.

If you have a diagnostic scanner, plug it into the OBD-II port (usually located under the steering column or dashboard on the driver's side) and follow the scanner's menu to read and clear codes. If you do not have a scanner, take the vehicle to an auto parts store that offers free code-clearing service, or to a repair shop. Some shops will clear the code at no charge if you purchased the sensor from them.

Once the code is cleared, start the engine and listen for any rough running, misfires, or stalling. The engine should start smoothly and idle evenly. Take the vehicle for a short test drive at low speed in a safe area. If the check engine light comes back on when ready, the new sensor may be faulty, the connector may not be fully seated, or there may be a wiring problem. If the light stays off and the engine runs normally, the repair is complete.

When to call a mechanic instead

If the sensor is located in a tight space that requires removing the intake manifold, timing cover, or engine mount, the job becomes much more complex and time-consuming. A professional mechanic has the experience and specialized tools to do this safely and quickly. If you are not comfortable working under a lifted vehicle, do not attempt it—a vehicle falling off a jack can cause serious injury or death.

If you remove the old sensor and find the mounting hole is stripped, cracked, or damaged, or if the bolt breaks inside the engine block, stop and take the vehicle to a shop. These problems require machine work or engine block repair that is beyond a home repair. Similarly, if the new sensor does not solve the problem and the check engine light returns, have a mechanic diagnose the issue—it may be a wiring harness problem, a bad connector, or a computer fault that requires professional equipment to identify.

Frequently Asked Questions

Can I drive with a bad crankshaft sensor?

Not safely. A failing sensor will cause the engine to stall, hesitate, or refuse to start. If it fails completely while you are driving, the engine will shut off and you will lose power steering and power brakes. Pull over when ready and have the vehicle towed to a repair shop.

How much does a crankshaft sensor replacement cost at a shop?

The sensor itself usually costs $50 to $150, and labor typically runs $100 to $300 depending on how hard it is to access. Total cost is usually $150 to $400. Dealerships tend to charge more than independent shops.

What if the check engine light comes back on after I replace the sensor?

The new sensor may be defective, the connector may not be fully seated, or there may be a wiring problem. Check that the connector is clicked all the way in and that no wires are pinched or damaged. If the light still returns, have a mechanic scan the code to see if it is the same code or a different one.

Do I need a special tool to remove the crankshaft sensor?

Some vehicles do, and some do not. Check your service manual or call a parts store with your vehicle information before you start. If you need a special tool and do not have it, you can usually borrow or rent one from an auto parts store, or buy one for $15 to $40.

Will the engine start if the crankshaft sensor is completely dead?

No. Without crankshaft position data, the engine computer cannot fire the spark plugs or inject fuel in the correct sequence. The engine will crank but will not start. This is one of the most common reasons an engine cranks but will not turn over.