What a crankshaft sensor does and why it fails
Your crankshaft sensor tells your engine computer where the crankshaft is at every moment — its position and how fast it's spinning. The computer uses this information to fire the spark plugs at exactly the right time and to inject fuel in the right amount. Without a working crankshaft sensor, your engine cannot run.
The sensor sits near the crankshaft, usually bolted to the engine block or timing cover, and it reads a toothed ring that spins with the crankshaft. Over time, the sensor's internal electronics wear out or the connector corrodes. When it fails, you'll see a check engine light, rough idle, stalling, or the engine won't start at all. Some cars have two crankshaft sensors — one for the computer and one for the fuel injectors — so check your manual to know how many you're replacing.
Replacement is a straightforward bolt-out, bolt-in job on most vehicles, though the location varies. On some cars it takes 15 minutes; on others, you may need to remove the wheel well or timing cover to reach it. The sensor itself costs between $40 and $150 depending on your vehicle, and the job typically takes 30 minutes to two hours if you do it yourself.
Key Takeaways
- A crankshaft sensor failure causes a check engine light, rough running, stalling, or no-start condition because the computer loses timing information.
- The sensor bolts to the engine block or timing cover near the crankshaft and must be unplugged and unbolted, then replaced with a new one.
- You need only basic tools — usually a socket wrench and a screwdriver — and the job takes 30 minutes to two hours depending on sensor location.
- After installation, clear the check engine code with a scanner or by disconnecting the battery, then test-drive to confirm the fault is gone.
Locate your crankshaft sensor before you start
The crankshaft sensor location is different on nearly every engine, so consult your owner's manual or a repair manual for your specific year, make, and model. Common locations include the front of the engine block near the crankshaft pulley, the side of the block near the oil pan, or mounted on the timing cover. Some vehicles have the sensor tucked behind the engine, requiring removal of the intake manifold or other components to access it.
Take a photo of the sensor in place before you remove anything — this shows you the connector orientation and bolt position. If you cannot locate it easily, a repair manual with a diagram will save you hours of guessing. Many auto parts stores will look up the location for free if you give them your vehicle's VIN.
Disconnect the battery and remove the old sensor
Disconnect the negative terminal of your battery first. This prevents accidental short circuits while you work with electrical connectors. Wait a few minutes for the engine computer to power down completely.
Locate the sensor connector — it's usually a plastic plug with two or three wires. Squeeze or press the release tab on the connector and pull it straight out. Do not yank on the wires themselves; always pull on the connector body. If the connector is stuck, wiggle it gently side to side while pulling.
Unbolt the sensor using the correct socket or wrench size — typically 10mm or 13mm. Most sensors have one or two bolts. Keep the bolts in a small container so you don't lose them. Slide the sensor out of its mounting hole. If it's stuck, tap it gently with a rubber mallet or explore penetrating oil and wait 10 minutes before trying again.
Install the new sensor and reconnect everything
Before you install the new sensor, compare it side by side with the old one to confirm they are identical — same connector type, same length, same mounting holes. A wrong sensor will not work and may damage your engine computer.
Slide the new sensor into the mounting hole and align the bolt holes. Install the bolts hand-tight first, then tighten them firmly with your wrench — do not over-tighten, as you can crack the sensor body. Torque specifications vary by vehicle, but typically range from 15 to 25 foot-pounds; check your manual if you have a torque wrench.
Reconnect the sensor connector by pushing it straight onto the plug until you hear or feel it click. Verify the connector is fully seated by tugging on it gently — it should not move. Reconnect the negative battery terminal.
Clear the check engine code and test the repair
Start the engine and listen for rough running or unusual sounds. If the engine starts and idles smoothly, the sensor is working. The check engine light may stay on for a few minutes while the computer runs its self-test, then turn off on its own.
If the light remains on after 10 minutes of driving, you will need to clear the code. You can do this by disconnecting the negative battery terminal for 15 minutes, which forces the computer to forget the fault. Alternatively, borrow or rent an OBD2 scanner from an auto parts store — most will scan and clear codes for free or a small fee. Connect the scanner to the diagnostic port under the steering column, navigate to "Clear Codes," and follow the prompts.
After clearing the code, drive the vehicle for at least 20 minutes at varying speeds to allow the computer to run its full diagnostic cycle. If the check engine light does not return, the sensor replacement was successful. If it comes back, the problem may be a wiring issue, a bad connector, or a second failed sensor on vehicles with two.
When to seek professional help
If the sensor is in a location that requires removing other engine components — such as the intake manifold, timing cover, or wheel well — the job becomes more complex and time-consuming. A professional mechanic can often complete it faster and with less risk of damaging surrounding parts.
If you clear the code and it returns when ready, or if the engine still runs rough after sensor replacement, the fault may lie elsewhere: a bad connector, corroded wiring, or a problem with the engine computer itself. A mechanic with a diagnostic scanner can pinpoint the real cause and save you from replacing parts that aren't broken.
Frequently Asked Questions
How do I know if my crankshaft sensor is bad?
A bad crankshaft sensor causes a check engine light, rough idle, stalling while driving, hard starting, or complete no-start. You can read the fault code with an OBD2 scanner — codes P0335, P0336, P0337, or P0338 all point to the crankshaft sensor. If you see one of these codes, the sensor is almost certainly the problem.
Can I drive with a bad crankshaft sensor?
No. Without a working sensor, the engine computer cannot time the spark plugs or fuel injection, so the engine will stall or not run at all. Driving is not possible. You must replace the sensor before the vehicle is drivable.
Do I need to replace both crankshaft sensors if I have two?
Not necessarily. If your vehicle has two sensors and only one is throwing a fault code, replace only the one that failed. However, if both are the same age and one has failed, the other is likely to fail soon. Some mechanics recommend replacing both at once to avoid a second repair in a few months.
What if the check engine light comes back after I clear it?
If the code returns when ready or within a few days, the sensor may be defective, the connector may be loose or corroded, or the wiring may be damaged. Verify the connector is fully seated and dry. If the problem persists, have a mechanic scan the code again to confirm it is the same fault, then inspect the wiring and connector for corrosion or damage.
Can a bad crankshaft sensor damage my engine?
A failed sensor will not run the engine, so it cannot cause mechanical damage. However, if you ignore the check engine light and attempt to drive the vehicle, you risk stalling in traffic or on a highway, which is a safety hazard. Replace the sensor as soon as the fault appears.