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 in its rotation at any given moment. The engine uses this signal to time the spark plugs and fuel injectors. When the sensor fails, the engine cannot fire or inject fuel correctly, and you will usually see a check engine light.
Crankshaft sensors fail because they sit near heat and vibration. The sensor itself is a small electronic device mounted on or near the crankshaft pulley or flywheel, and the constant motion and temperature swings degrade the internal electronics over time. A failed sensor will cause hard starting, stalling, rough idle, or a complete no-start condition.
Replacement is straightforward on most vehicles, though the location varies. On some cars the sensor is accessible from under the hood; on others you need to remove the wheel well or lower the engine slightly. The actual swap takes 30 minutes to two hours depending on your vehicle's design.
Key Takeaways
- A crankshaft sensor tells the engine computer where the crankshaft is positioned so it can time ignition and fuel injection correctly.
- Symptoms of failure include a check engine light, hard starting, stalling, rough idle, or a complete no-start condition.
- You will need a socket set, screwdrivers, possibly a jack and jack stands, and the correct replacement sensor for your vehicle year and model.
- The sensor bolts or clips into place near the crankshaft pulley or flywheel, and disconnecting the old one and connecting the new one takes less than an hour on most vehicles.
- After installation, clear the check engine light with a scan tool or by disconnecting the battery, then test-drive to confirm the engine runs normally.
Locate the sensor on your vehicle
The crankshaft sensor location depends on your vehicle's engine layout and year. On front-wheel-drive cars with transverse engines, the sensor is usually mounted on the side of the engine block near the crankshaft pulley. On rear-wheel-drive vehicles, it is often on the bell housing between the engine and transmission. Some vehicles have the sensor mounted inside the distributor or on the camshaft instead.
The best way to find it is to consult your vehicle's service manual or look up the specific location for your year, make, and model online. Search "[your vehicle] crankshaft sensor location" to find diagrams and photos from other owners who have done the job. Once you know where it is, you can decide whether you need to remove the wheel well, lower the engine, or remove other components to reach it.
On many vehicles, the sensor is held in place by a single bolt or clip and has a connector that unplugs from the engine harness. Write down or photograph the connector orientation before you disconnect it so you can plug the new one in the same way.
Gather tools and the correct replacement part
You will need basic hand tools: a socket set (usually 8 mm to 10 mm sockets), screwdrivers, and possibly a wrench. If the sensor is difficult to reach, you may need a jack and jack stands to lift the vehicle safely, or you may need to remove the wheel well or other trim pieces. Check your service manual to see what is required for your specific vehicle.
The most important step is ordering the correct sensor. Crankshaft sensors are not universal—the connector type, wiring, and mounting vary by manufacturer and year. Go to an auto parts store with your vehicle's year, make, model, and engine size, or order online using that information. The part usually costs between $50 and $150 depending on the vehicle.
Some vehicles have multiple sensors (one for each bank of cylinders on V-engines, for example). Confirm how many your vehicle has before you start. If you are unsure, ask the parts store or check the service manual.
Remove the old sensor
Disconnect the negative terminal of the battery to cut power to the engine computer. This prevents accidental short circuits while you work. Wait a few minutes for any residual power to drain.
Locate the sensor connector and unplug it by pressing the release tab or clip. Some connectors slide straight out; others require a gentle rocking motion. Do not pull on the wires themselves—always grip the connector body.
Remove the bolt or clip holding the sensor in place using the appropriate socket or screwdriver. On some vehicles the sensor twists out of its socket rather than bolting down; if that is the case, grip the sensor body (not the wires) and turn it counterclockwise. Once it is free, carefully pull the sensor straight out of its mounting location. Inspect the hole for dirt or debris and wipe it clean with a dry cloth.
Install the new sensor
Before you insert the new sensor, compare it to the old one to confirm they are identical. Check the connector type, the mounting style, and the overall shape. If they do not match, you have the wrong part and should not force it in.
Insert the new sensor into the mounting location and push it straight in until it seats fully. If the sensor bolts down, install the bolt and tighten it snugly—do not overtighten, as the sensor body can crack. If the sensor twists in, turn it clockwise until it stops; again, hand-tight is sufficient.
Plug the connector back into the wiring harness, making sure it clicks or locks into place. The connector should sit flush against the sensor body with no gaps. Reconnect the negative battery terminal.
Clear the check engine light and test
If the check engine light is still on after you install the new sensor, you can clear it in two ways. The first is to use an OBD-II scan tool (available at auto parts stores for $25 to $100, or you can borrow one). Plug the tool into the diagnostic port under the steering column, navigate to "Clear Codes," and follow the prompts.
The second method is to disconnect the negative battery terminal for 15 to 30 minutes. This drains the computer's memory and clears stored codes. Reconnect the terminal and start the engine. The light should be gone, though it may take a few driving cycles for the computer to fully reset.
Start the engine and listen for normal operation. The engine should start easily, idle smoothly, and run without hesitation. Take a short test drive to confirm there are no rough spots or stalling. If the check engine light comes back on, the new sensor may be defective, or there may be another problem with the ignition or fuel system. In that case, use the scan tool again to read the code and determine the next step.
When to seek professional help
If the sensor location requires removing the engine, transmission, or other major components, the job is beyond basic DIY work. Some vehicles have the sensor buried so deep that labor costs exceed $300 to $500, making professional service the practical choice.
If you are uncomfortable working under the vehicle, using a jack and jack stands, or disconnecting electrical connectors, take the vehicle to a mechanic. A shop can usually replace a crankshaft sensor in under an hour, and the total cost (parts plus labor) is typically $150 to $400 depending on the vehicle.
If the new sensor does not fix the problem, or if the check engine light returns after a few days of driving, the issue may be a wiring problem, a bad connector, or a fault in the engine computer itself. These require diagnostic equipment and informed beyond basic replacement.
Frequently Asked Questions
How do I know if my crankshaft sensor is bad?
A failing crankshaft sensor usually triggers a check engine light and causes hard starting, stalling, rough idle, or a complete no-start condition. You can confirm the diagnosis by using an OBD-II scan tool to read the fault code—codes P0335, P0336, P0337, P0338, or P0339 all point to crankshaft sensor problems.
Can I drive with a bad crankshaft sensor?
No. A failed sensor prevents the engine from firing or injecting fuel correctly, so the engine will not run at all or will stall when ready. You cannot safely drive the vehicle until the sensor is replaced.
Do I need to reprogram the engine computer after replacing the sensor?
No. The sensor is a passive input device—the computer does not need reprogramming. straightforward install the new sensor, clear any stored codes, and the computer will recognize it automatically on the next start cycle.
What if the new sensor does not fix the problem?
If the engine still will not start or the check engine light returns, the wiring harness may be damaged, the connector may be corroded, or the engine computer itself may be faulty. Use a scan tool to read the code again and confirm it is still a crankshaft sensor fault. If it is a different code, the underlying problem is something else.
How long does a crankshaft sensor last?
Most crankshaft sensors last 80,000 to 150,000 miles, though some fail much earlier due to heat or vibration damage. Once replaced, the new sensor should last as long as the original if the vehicle is maintained properly and the engine runs at normal temperatures.