How to Replace a Crankshaft Position Sensor | Symptoms, Location, and DIY Replacement for U.S. Vehicles
The crankshaft position sensor is one of the most critical inputs to the engine control module — it tells the ECM exactly where the crankshaft is in its rotation cycle, allowing the computer to calculate precise ignition timing and fuel injection timing. When it fails, the engine may stall without warning, refuse to start entirely, or produce a persistent misfire condition. A shop charges $150–$350 to replace it. The sensor itself costs $20–$80, and the replacement takes 20–45 minutes on most U.S. engines.
Key takeaways:
- A failing crankshaft position sensor often causes intermittent stalling before complete failure — do not ignore early symptoms
- The fault code P0335 or P0336 is the most direct indicator of a crankshaft position sensor fault
- The sensor location varies significantly by engine — confirm your specific location before beginning
- Always disconnect the battery before removing the sensor
- Some sensors require a specific air gap setting during installation — verify in your service manual
- Anti-seize on the bolt threads prevents future removal difficulty in the heat-exposed location
What the Crankshaft Position Sensor Does
The crankshaft position sensor monitors a toothed trigger wheel mounted on the crankshaft — typically a reluctor ring with evenly spaced teeth and one or two missing teeth that identify the reference position. The sensor generates an AC or digital signal as each tooth passes, which the ECM uses to calculate engine speed (RPM) and crankshaft position to the nearest degree of rotation. Without this signal, the ECM cannot time ignition sparks or fuel injection events, and the engine will not run.
On many modern engines, the crankshaft position sensor also serves as the primary input for the engine speed signal reported to the instrument cluster tachometer and to the transmission control module for shift timing.
Symptoms of a Failing Crankshaft Position Sensor
- Engine stalls intermittently — particularly at operating temperature; the sensor’s electrical resistance changes with heat, causing intermittent signal loss
- Engine cranks but does not start — particularly when warm; a fully failed sensor produces no signal and prevents the ECM from initiating spark or injection
- Check engine light with codes P0335 (crankshaft position sensor circuit malfunction) or P0336 (range/performance)
- Engine hesitation or bucking under load — intermittent signal dropouts cause the ECM to temporarily cut spark or injection
- Tachometer dropping to zero intermittently while driving — the instrument cluster loses RPM signal
- Hard starting when warm, easy starting when cold — a classic heat-related sensor failure pattern
Finding Your Sensor
The crankshaft position sensor is located near the crankshaft — typically at one of three positions depending on the engine design:
- Bottom of the engine block near the crankshaft snout (front of the engine, near the harmonic balancer)
- Rear of the engine block near the flywheel/flexplate — common on transversely mounted engines
- Side of the engine block at the transmission bell housing area
Search your specific year/make/model/engine for sensor location before lifting the vehicle. On many 4-cylinder engines, it is accessible from above with no lifting required. On V6 and V8 engines, it is frequently below the engine block and requires raising the vehicle for access.
Tools and Parts Required
- OBD-II scanner
- Socket set (metric — typically 8–10mm for sensor mounting bolt)
- Extension bars — often needed to reach the sensor location
- Universal joint socket adapter — for sensors in tight locations
- Torque wrench
- Anti-seize compound
- New crankshaft position sensor — verified for year/make/model/engine
- Dielectric grease — for the electrical connector
Step-by-Step Replacement
Step 1: Confirm the diagnosis
Before purchasing parts, connect an OBD-II scanner and confirm the presence of P0335, P0336, or a related crankshaft sensor code. A random misfire code (P0300) alone does not indicate the sensor — verify the correct fault before replacing. If the engine will not start at all, check for spark at the plugs first — no spark with no crank position signal confirms the sensor is the priority.
Step 2: Disconnect the battery
Remove the negative battery terminal. The crankshaft position sensor is a direct input to the ECM — working on it with the ignition active can cause ECM damage or store false fault codes.
Step 3: Locate and access the sensor
Raise the vehicle if the sensor is on the bottom or side of the block. The sensor is a small cylindrical component typically 1–2 inches in diameter, held by a single bolt, with a wiring harness connector. It protrudes into a bore in the engine block where its tip sits close to the reluctor ring teeth.
Step 4: Disconnect the wiring harness
Press the release tab on the harness connector and pull it straight off the sensor. Inspect the connector for corrosion or damaged pins — a corroded connector can cause intermittent signal issues even with a new sensor.
Step 5: Remove the sensor mounting bolt
Remove the single bolt holding the sensor in the block — typically 8–10mm. Note that the sensor may be recessed in a bore and require an extension bar to reach the bolt head. Once the bolt is out, the sensor should pull straight out of the bore.
If the sensor is stuck in the bore due to heat or corrosion — common after years in a hot engine environment — apply penetrating oil around the sensor flange, allow to soak for 15 minutes, and use a gentle rocking motion while pulling. Never use a pry bar directly against the sensor body — it will break.
Step 6: Compare and install the new sensor
Compare the old and new sensors for identical length, connector type, and body diameter. Sensor length is critical — an incorrect-length replacement either does not reach the reluctor ring or contacts it and destroys the sensor within seconds of starting.
Some sensors require a specific air gap between the sensor tip and the reluctor ring teeth — typically 0.020–0.050 inches. Many modern sensors are designed for a specific bore depth that automatically sets this gap. If your service manual specifies an air gap measurement, use a feeler gauge to verify before tightening.
Apply a small amount of anti-seize to the sensor mounting bolt threads. Insert the new sensor into the bore, confirm it is fully seated, and torque the mounting bolt to specification — typically 7–10 ft-lbs. Apply dielectric grease to the inside of the wiring harness connector pins before reconnecting.
Step 7: Reconnect and test
Reconnect the battery. Clear all fault codes with the OBD-II scanner. Start the engine and verify it starts normally, idles steadily, and that the tachometer reads correctly. Take a short drive and confirm the check engine light does not return.
Air Gap Setting Detail
On engines that require air gap verification:
| Air Gap Too Large | Air Gap Too Small |
|---|---|
| Weak or inconsistent signal | Sensor contacts reluctor ring |
| Intermittent fault codes | Immediate physical damage to sensor |
| Possible no-start condition | Possible reluctor ring damage |
Always verify air gap specification in the service manual for your specific engine before assuming the new sensor is a direct drop-in.
FAQ
Can I drive with a failing crankshaft position sensor?
Only briefly and carefully to reach a shop. A sensor that is intermittently failing can cause sudden stalling at speed without warning — a genuinely dangerous condition on a highway. If stalling has occurred once, do not drive on the highway until the sensor is replaced. A fully failed sensor produces no start condition — the vehicle will not leave the driveway.
Will replacing the sensor fix a no-start condition?
Only if the sensor is confirmed as the cause. A no-start condition has many possible causes — a dead battery, a failed fuel pump, a broken timing belt, or a failed ignition control module can all produce the same symptom. Confirm the fault code and test for spark before replacing the crankshaft sensor as a guess.
Does the crankshaft position sensor need to be calibrated or reprogrammed after replacement?
On most U.S. vehicles, a direct replacement sensor requires no programming — the ECM recognizes the new sensor automatically after the fault code is cleared. Some vehicles — notably certain GM engines — require a crankshaft relearn procedure performed with a scanner after installation. Research your specific vehicle before assuming no calibration is needed.
How long does crankshaft position sensor replacement take?
On accessible locations — front of a 4-cylinder engine — the job takes 20–30 minutes. On sensors buried at the rear of a transversely mounted engine or requiring substantial disassembly for access, allow 1–2 hours. Confirm access complexity for your specific vehicle before starting.
Conclusion
Crankshaft position sensor replacement is one of the more satisfying diagnostic DIY repairs — a single inexpensive sensor resolves what appears to be a catastrophic engine problem. The keys are confirming the diagnosis with an OBD-II scanner before purchasing parts, locating the sensor precisely for your specific engine before starting the job, and verifying the air gap requirement if applicable. I recommend applying anti-seize to the mounting bolt and dielectric grease to the connector at every replacement — both steps prevent the recurrence problems that come with heat-soaked sensor installations on high-mileage U.S. engines.



