Your XJ runs fine for the first 20 minutes. Then it dies — no sputtering, no warning, just off. You pull over, try to restart, get nothing but a cranking engine. You wait 15–20 minutes, try again, and it starts right up. This is the classic pattern of a failing crankshaft position sensor (CPS), and it's one of the most common breakdowns on the XJ platform.
What the CPS actually does
The crankshaft position sensor tells the Powertrain Control Module (PCM) where the crankshaft is in its rotation. The PCM uses that signal to time spark delivery and fuel injection. No CPS signal means no spark and no injector pulse — the engine cranks but will not fire.
On the XJ's 4.0L inline-six and 2.5L four-cylinder, the CPS bolts to the bell housing on the driver's side, where it reads a toothed reluctor ring on the flywheel. That location puts it in a heat pocket between the engine block and transmission — which is exactly why thermal failure is the dominant failure mode on this platform.
Recognizing a failing CPS
CPS failure is often intermittent before it's complete. The sensor can test fine when cold and fail once it reaches operating temperature. The symptoms to watch for:
- Engine dies suddenly while driving — no sputtering, no check engine light before shutdown
- Cranks normally but won't start; fuel pressure at the rail is fine, but there's no spark
- Restarts after 15–30 minutes of cooling
- Check engine light on, often with code P0335 (CPS circuit malfunction) or P0320
The heat-related pattern is the tell. If your XJ starts reliably in the morning and stalls on a hot day or after extended driving, the CPS is the first thing to check. Note that a failing CPS sometimes doesn't set any codes at all, particularly on earlier ECUs — don't rule it out because the check engine light is off.
Before you replace it
The sensor is inexpensive and the swap is manageable in a driveway, so most XJ owners will go straight to replacement if the symptoms match. If you want to confirm first, a shop can perform a CPS waveform test with an oscilloscope while the engine is hot. For most DIYers, though, the test equipment costs more than the part — and the symptom pattern is specific enough to act on.
Buying the right sensor
This is the advice that gets repeated across every XJ forum: buy the Mopar CPS. The part number for most 1997–2001 XJs (4.0L and 2.5L) is 56027866, with suffix variants AB through AE depending on year. The AE suffix is the current production unit and replaces all earlier versions. Mopar sensors run $60–90 from RockAuto, the dealer, or reputable eBay sellers.
Generic aftermarket sensors — especially the cheapest Amazon listings — have a poor track record on this application and are widely reported to fail prematurely on NAXJA and Cherokee Forum. If Mopar availability is a problem, Standard Motor Products (SMP) and NTK are the most reliable alternatives. Avoid no-name brands.
The replacement
The CPS bolts to the passenger-rear side of the bell housing with two 11mm bolts. From under the hood or from underneath the vehicle, the access is genuinely difficult — you're working at an awkward angle, often by feel, with limited room for extensions. Most people who try it from outside the engine bay spend twice as long and occasionally lose a bolt into the bell housing.
The firewall trick
The easier route is through the firewall, from inside the cab. This is the approach recommended by the NAXJA community and referenced in multiple Cherokee Forum how-tos:
- Remove the plastic trim panel under the instrument cluster. It's held in by a few clips and snaps straight down and out.
- You'll see an oval metal cover plate on the firewall — the shifter cable runs through it. Remove the two 10mm nuts holding the plate.
- Pull the cover plate back toward you. The CPS is now directly visible and accessible through the opening.
- Disconnect the wiring harness connector from the sensor.
- Remove the upper bolt first. This reduces the risk of it falling down into the bell housing. Use a magnet or tape the socket to your extension to maintain control of both bolts during removal.
- Slide the old sensor out. Install the new one in reverse order.
Torque the 11mm bolts to approximately 9 ft-lbs — snug but not aggressive, since they thread into aluminum. Reconnect the wiring harness (it will click when fully seated). The connector pigtail routes up to the back of the intake manifold where it joins the main harness, accessible from above.
Clear any stored codes with an OBD-II scanner, start the engine, and verify normal operation. The paper spacer shears off on the first start; this is normal.
Tools needed
- 10mm socket (firewall plate nuts)
- 11mm socket with 6-inch and 12-inch extensions
- Swivel/universal joint adapter
- Magnetic socket or tape to secure bolts during removal
- Trim panel removal tool or padded flathead screwdriver
- OBD-II code reader (to clear stored codes)
Total time: 1–2 hours the first time, 30–45 minutes once you know the access route.
Cost summary
- Mopar CPS (56027866AE): $60–90 — RockAuto, dealer, or eBay OEM
- SMP or NTK alternative: $25–50
- Shop labor (if not DIY): $400–620, varies by region (RepairPal estimate)
What to do
If your XJ matches the hot-stall-and-recover pattern, order the Mopar CPS. The firewall access method is worth the extra 10 minutes of disassembly — the angle on the bolts is much cleaner, and it makes the job manageable in a driveway with basic hand tools. The part is cheap relative to what a shop charges, and once you've done it once, this is a 45-minute job if it ever comes up again.
Sources: NAXJA Forums · Cherokee Forum how-to · NewParts XJ CPS guide · RepairPal cost estimate