What a crankshaft position sensor does and why it fails
Your crankshaft position sensor tells your engine's computer where the crankshaft is at every moment — information the computer needs to fire the spark plugs at exactly the right time and inject fuel in the right amount. When this sensor fails, your engine either won't start, runs rough, stalls without warning, or triggers a check engine light. The sensor itself is a small device, usually cylindrical, that sits near the crankshaft and reads a toothed ring as it spins.
Sensors fail because they wear out over time — the internal electronics degrade, or the connector corrodes. A bad sensor is one of the most common reasons for a check engine light, and it's one of the repairs you can often do yourself if you have basic tools and some patience. The job usually takes between one and three hours depending on your vehicle's design.
Key Takeaways
- The crankshaft position sensor sits near the crankshaft and tells your engine computer when to fire spark plugs and inject fuel.
- You will need a socket set, wrenches, a new sensor, and possibly a sensor socket or specialized tool depending on your vehicle's layout.
- The sensor location varies widely — some are straightforward to reach on top of the engine, others sit underneath or behind other components.
- Disconnecting the battery before you start prevents electrical damage and is the first step in almost every sensor replacement.
- After installation, the check engine light usually clears on its own after a few drive cycles, though some vehicles require a scanner to clear it manually.
Locate the sensor and gather the right tools
Before you buy a replacement sensor, you need to know exactly where yours sits. The location varies dramatically by make, model, and year — some vehicles have the sensor mounted on the front of the engine block where you can reach it in seconds, while others hide it under the intake manifold or behind the engine. Your vehicle's service manual will show you the exact location and the fastener size. You can also search online for "[your year, make, model] crankshaft position sensor location" to find photos and videos from people who have done the job on the same vehicle.
Once you know the location, gather your tools. You will need a socket set and wrenches that fit the fasteners holding the sensor in place (usually 8mm or 10mm), a new crankshaft position sensor matched to your vehicle, and a way to disconnect the electrical connector — sometimes you can pull it by hand, sometimes you need to press a small tab or release clip. Some vehicles require a specialized sensor socket because the sensor sits in a tight space; if that's the case, the online guides for your vehicle will mention it. Have a clean rag nearby to wipe away any dirt or corrosion from the connector before you plug in the new sensor.
Disconnect the battery and remove the old sensor
Start by disconnecting the negative terminal of your battery — loosen the nut on the negative cable (usually black) with a wrench and slide the cable off the battery post. This step prevents electrical damage to the engine computer if you accidentally touch a live wire or connector. Wait a few minutes before proceeding so any residual charge in the system drains away.
Next, locate the electrical connector on the old sensor and disconnect it. Look for a small tab or clip you need to press or pull — the connector should slide out without forcing. If it's stuck, wiggle it gently side to side rather than pulling straight, which can damage the pins inside. Once the connector is free, use your socket set or wrench to remove the bolt or bolts holding the sensor to the engine block. The sensor will slide out once the fastener is loose. Keep the bolt in a safe place — you'll use it again with the new sensor.
Install the new sensor and reconnect everything
Before you install the new sensor, wipe the mounting surface on the engine block with a clean rag to remove any dirt, oil, or corrosion. Slide the new sensor into place and hand-tighten the bolt first — this lets you align the connector properly before you tighten it all the way. Once the sensor is seated, tighten the bolt snugly with your socket set. Don't over-tighten; the bolt only needs to be tight enough that the sensor won't move, not so tight that you risk stripping the threads.
Now reconnect the electrical connector. Push it straight onto the sensor's connector pins until you hear or feel a click, which means the clip has engaged. Gently tug on the connector to make sure it's seated — it should not slide off easily. Reconnect the negative battery cable by sliding it back onto the battery post and tightening the nut with your wrench. Tighten it firmly but not so hard that you crack the battery terminal.
Start the engine and clear the check engine light
Turn the key to start the engine. It should start normally and run smoothly. If it doesn't start, or if it starts but runs rough, double-check that the connector is fully seated and that the bolt holding the sensor is tight. If everything looks correct and the engine still misbehaves, the problem may not have been the sensor — you may need a mechanic to scan the computer for other fault codes.
If the engine runs normally, the check engine light will usually turn off on its own after you drive the vehicle for a few miles and the computer completes its self-test cycle. Some vehicles clear the light when ready; others take 10 to 20 miles of normal driving. If the light stays on after a few days of driving, you can use an OBD-II scanner (a handheld device that reads engine fault codes) to clear the code manually, or you can take the vehicle to a mechanic or auto parts store — many will scan and clear the code for free.
Common problems and what to do about them
If the engine cranks but won't start after you install the new sensor, the connector may not be fully seated. Turn off the ignition, disconnect the connector, and look inside both the connector and the sensor pins for bent pins, corrosion, or debris. Clean both sides gently with a dry cloth and reconnect. If pins are bent, the connector is damaged and needs replacement — this is rare but can happen if the old connector was forced on or off.
If the engine starts but the check engine light comes back on within a few days, the new sensor may be defective, or there may be a wiring problem between the sensor and the computer. A scanner will tell you whether the fault code is the same as before (which suggests a wiring issue) or different (which suggests the new sensor is bad). If the code is the same, check the wiring harness for loose connections, corrosion, or damaged insulation. If the code is different, the new sensor may be faulty and should be exchanged under warranty.
When to call a mechanic instead
If the sensor is located in a spot that requires removing other engine components — the intake manifold, alternator, or air conditioning compressor — the job becomes much more complex and time-consuming. In those cases, a mechanic's labor cost may be worth it compared to the risk of damaging other parts. Similarly, if you don't have a socket set or the specialized tools your vehicle needs, renting or buying them may cost more than paying a mechanic to do the work.
If you start the job and find that the bolt is seized or the connector is damaged, stop and take the vehicle to a mechanic rather than forcing it. Stripped threads or a broken connector can turn a one-hour job into a much bigger repair. A mechanic has the tools and experience to handle these situations without causing additional damage.
Frequently Asked Questions
How much does a crankshaft position sensor cost?
The sensor itself usually costs between $30 and $150 depending on your vehicle's make and model. OEM (original equipment manufacturer) sensors tend to be more expensive than aftermarket alternatives, but both are generally reliable. Labor at a shop typically runs $100 to $300 depending on how difficult the sensor is to reach on your specific vehicle.
Can a bad crankshaft position sensor damage the engine?
A failed sensor won't cause when ready engine damage, but it will prevent the engine from running properly or at all. If you drive with a failing sensor, the engine may stall unexpectedly, which is a safety hazard. Replace it as soon as the check engine light appears.
What if I have two crankshaft position sensors?
Some vehicles have two sensors — one near the crankshaft and one near the camshaft — to give the computer redundant information. If your vehicle has two, the check engine code will tell you which one failed. Replace only the one that triggered the fault code.
Do I need to clear the check engine light manually or will it go away on its own?
Most vehicles clear the light automatically after 10 to 50 miles of normal driving once the computer confirms the sensor is working correctly. If it doesn't clear after a week of driving, you can use an OBD-II scanner to clear it manually, or ask a mechanic or auto parts store to do it for free.
What if the new sensor doesn't fix the problem?
If the check engine light returns with the same fault code, the wiring between the sensor and the computer may be damaged, or the computer itself may have a problem. If the light returns with a different code, the new sensor may be defective. Use a scanner to read the new code and decide whether to exchange the sensor or have a mechanic diagnose the wiring.