What a crankshaft position sensor does and why it fails

Your crankshaft position sensor tells your engine's computer where the crankshaft is at any given moment. The computer uses that signal to time the spark plugs and fuel injectors correctly. Without an accurate signal, your engine won't start, will run rough, or will stall without warning.

The sensor sits near the crankshaft—usually on the engine block or inside the distributor—and reads a toothed ring as the crankshaft spins. Over time, the sensor's internal electronics wear out or the connector corrodes. When it fails, you'll see a check engine light (usually code P0335, P0336, or P0337) and often a no-start condition or rough idle.

Replacement is straightforward on most cars and takes 30 minutes to two hours depending on location. You do not need a scanner to do the job, though having one to clear the code afterward is helpful. The sensor itself costs between $40 and $150 depending on your vehicle.

Key Takeaways

  • The crankshaft position sensor mounts near the crankshaft and signals the engine computer about crankshaft position so it can time ignition and fuel injection.
  • A failed sensor causes a check engine light, no-start condition, rough idle, or stalling, and the fix is to unbolt the old sensor and bolt in a new one.
  • Location varies by vehicle—check your service manual or a repair database to find where it sits on your specific engine.
  • You will need basic hand tools, the replacement sensor, and possibly a gasket or O-ring depending on the sensor type.
  • After installation, the check engine light may clear on its own after a few drive cycles, or you can use a scanner to clear it manually.

Locate the sensor on your engine

The crankshaft position sensor location is different on nearly every engine. On some cars it bolts to the front of the engine block near the crankshaft pulley. On others it sits inside the distributor or on the side of the block. A few vehicles have more than one sensor.

The best way to find it is to look at your vehicle's service manual or a repair database like AllData or Mitchell1. If you do not have access to those, search your vehicle's year, make, and model plus "crankshaft position sensor location" on a forum dedicated to your car—someone will have posted photos. The sensor is usually a cylindrical or rectangular unit about 2 to 4 inches long with a single electrical connector.

Once you locate it, note what is around it. Some sensors sit in tight spaces where you will need to remove other components first—an air intake hose, a bracket, or a heat shield. Removing those items first saves frustration later.

Disconnect the battery and remove the old sensor

Disconnect the negative terminal of your battery. This prevents accidental short circuits and is a safe habit whenever you work on engine electrics. You do not need to remove the battery entirely—just loosen the negative cable and move it away from the terminal.

Unplug the electrical connector from the sensor by squeezing or prying the release tab (depending on the connector type) and pulling straight back. Do not yank on the wires themselves. If the connector is stuck, wiggle it gently side to side while pulling.

Unbolt the sensor using the appropriate wrench or socket. Most sensors use a single bolt, though some use two. Keep the bolt in a safe place—you will reuse it. If the sensor has a rubber O-ring or gasket, note whether it stays on the sensor or on the engine block. If it stays on the block, remove it and set it aside; you will replace it with a new one.

Install the new sensor and reconnect

Before you install the new sensor, check whether it came with a new O-ring or gasket. If it did, discard the old one. If it did not, transfer the old O-ring from the old sensor to the new one, or install a new one if you have it on hand. A small amount of clean engine oil on the O-ring helps it slide into place without tearing.

Slide the new sensor into the mounting hole and align the bolt hole. Insert the bolt and tighten it by hand first, then use your wrench or socket to snug it down. Do not over-tighten—most sensors need only 15 to 25 foot-pounds of torque. If you do not have a torque wrench, tighten until snug and stop; you do not need to crank hard.

Plug the electrical connector back in. You should hear or feel a click when it seats fully. Reconnect the negative battery terminal and tighten it.

Clear the check engine light and test

Start the engine and listen for any unusual sounds. The engine should start normally and idle smoothly. If it does, the sensor is working. If the check engine light is still on, it may clear after a few drive cycles (typically 10 to 20 miles of normal driving). The computer needs time to relearn and confirm the new sensor is sending good data.

If you have access to an OBD-II scanner, you can clear the code manually. Plug the scanner into the diagnostic port (usually under the steering wheel on the driver's side), navigate to "Clear Codes," and follow the prompts. This saves you the wait, though it is not necessary—the light will go out on its own.

If the light comes back on after clearing, or if the engine still runs rough, the problem may not be the sensor. A wiring issue, a bad connector, or a different fault could be the cause. In that case, use the scanner to read the code again and compare it to the original code. If it is the same code, the new sensor may be defective or installed incorrectly.

Common installation mistakes to avoid

The most common error is installing the sensor backwards or at the wrong angle. The sensor must point at the toothed ring on the crankshaft or damper. If it points the wrong way, it will not read the ring and the engine will not start. Check the old sensor's angle before you remove it, or look at a photo in your service manual to confirm the correct orientation.

Another mistake is forgetting to replace the O-ring or gasket. A dry O-ring can crack during installation or fail shortly after, causing an oil leak or a poor electrical connection. Always use a new O-ring if one came with the sensor, or transfer the old one carefully.

Over-tightening the bolt can crack the sensor body or strip the threads in the mounting hole. Snug is enough. If the bolt spins freely and will not tighten, the hole may be stripped—in that case, you may need a slightly larger bolt or a threaded insert to repair the hole.

When to seek professional help

If the sensor sits in a location that requires removing the engine, transmission, or other major components, the labor cost may exceed the cost of the part. In that case, a shop can do the job faster and with less risk of damaging surrounding parts. Some vehicles also have sensors that require special tools or procedures to access safely.

If you install the new sensor and the engine still does not start or runs rough, the wiring harness or connector may be damaged, or the computer may have a different fault. A shop with a scanner can diagnose the issue quickly. Continuing to troubleshoot without a scanner wastes time and may cause additional damage.

Frequently Asked Questions

Can I drive with a bad crankshaft position sensor?

Not safely. A failed sensor usually prevents the engine from starting. If it is failing intermittently, the engine may stall without warning while you are driving, which is dangerous. Replace it as soon as the check engine light appears.

Do I need to reprogram the computer after installing a new sensor?

No. The computer will recognize the new sensor automatically once it powers up and reads the signal. You do not need a programmer or a dealer scan tool. A basic OBD-II scanner can clear the old code, but that is optional.

How do I know if the sensor is installed correctly?

The engine should start and idle smoothly. If it does, the sensor is working. If the engine cranks but does not start, or if it starts and when ready stalls, the sensor may be backwards or the connector may not be fully seated. Check both before assuming the sensor is defective.

What is the difference between a crankshaft sensor and a camshaft sensor?

The crankshaft sensor reads the crankshaft position and is essential for starting the engine. The camshaft sensor reads the camshaft position and helps the computer refine fuel injection timing. A bad crankshaft sensor prevents starting; a bad camshaft sensor usually causes rough running but allows starting.

Can a bad sensor damage the engine?

Not directly. A failed sensor prevents the engine from running, but it does not cause mechanical damage. However, if the engine stalls while you are driving and you lose power steering or brakes, the loss of control is dangerous. Replace the sensor promptly.