P0335 on 2014-2018 Ram 2500 / 3500: Crank Sensor Fixes for Cummins & Hemi
P0335 on these Ram trucks indicates a crankshaft position sensor circuit fault, often causing a no-start or stalling. The most common fix is replacing the sensor itself. However, inspect the wiring for damage first, especially on the 6.7L Cummins. If codes P2610 or P0456 are also present, the issue is likely a software glitch requiring a dealer PCM update.
- P0335 is a critical code that causes stalling or no-start conditions; do not drive the vehicle.
- Before replacing parts, check for other codes. If P2610 or P0456 are present, the issue is likely a software glitch that a Ram dealer must fix with a PCM update.
- Always inspect the wiring harness for damage, especially on the 6.7L Cummins where chafing is common, before replacing the sensor.
- The sensor location is different: driver's side for the 6.7L Cummins, passenger's side for the 6.4L Hemi.
- If the sensor needs replacement, using an OEM part from Mopar or a trusted brand like Bosch or NTK is strongly recommended to ensure reliability.
What's Unique About the 2014-2018 Ram 2500 / 3500

On the 2014-2018 Ram HD trucks, P0335 has distinct considerations for each engine. For the 6.7L Cummins, the wiring harness is notoriously prone to chafing against the engine block, often making a wiring repair the true fix, not the sensor itself. For both engines, but documented more formally for the Hemi, several Technical Service Bulletins (TSBs) indicate that P0335 can be triggered by a PCM software glitch, especially when it appears alongside codes like P2610. In these cases, replacing parts is futile, and a dealer software update is the only solution.
Symptoms You May Notice
- Engine will not start
- Engine stalls unexpectedly while driving
- Long crank time before the engine starts
- Rough idle or engine misfires
- Check Engine Light is on
- "Service Electronic Throttle Control" message may appear on the dash (6.4L Hemi).
- Tachometer needle drops to zero during stalling or stumbling.
- Replacing the crankshaft position sensor when the actual fault is a chafed wiring harness.
- Replacing hardware (sensor, wiring) when the vehicle has other codes (P2610, P0456) pointing to a known PCM software glitch that requires a reflash.
Most Likely Causes

- Failed Crankshaft Position Sensor (CKP) 🔴 High Probability → Shop Engine Crankshaft Position Sensor Sensors are exposed to significant heat and vibration, leading to internal failure over time. Stalling when the engine is hot that resolves after cooling down is a classic symptom of a failing sensor.
How to confirm: Use a scan tool to monitor crankshaft RPM while cranking the engine. If the reading is zero or erratic, the sensor is likely bad. You can also test the sensor's resistance and voltage output against factory specifications.
Typical fix: Replace the crankshaft position sensor. A relearn procedure with a capable scan tool may be required after replacement, though many owners report the system self-learns.
Est. part cost: $40-$180 - Wiring Harness or Connector Damage 🟡 Medium Probability On the 6.7L Cummins, the CKP sensor harness is known to rub against the engine block, starter, or A/C components, causing wires to chafe and short out. On both engines, connectors can become contaminated with oil or damaged from heat. TSB Bulletin #18-016-23 and TSB Bulletin #18-020-26 both note that P0335 and the intermittent P0339 can be triggered by circuit issues that may require software enhancements or wiring inspection.
How to confirm: Visually inspect the entire length of the wiring harness from the sensor to the PCM. Look for melted, chafed, or broken wires. Check the connector pins for corrosion or damage.
Typical fix: Repair the damaged section of wire. If the connector is damaged, replace the pigtail. Extension harnesses are available from aftermarket suppliers like Fleece Performance to aid in routing the harness away from chafe points.
Est. part cost: $15-$50 - PCM Software Glitch ⚪ Low Probability Multiple TSBs (e.g., 18-108-22 REV. A, 18-082-16) confirm that a software issue can cause the PCM to falsely set P0335, often accompanied by P2610 ('PCM Internal Engine Off Timer Performance') and sometimes P0456 ('EVAP System Small Leak'). TSB Bulletin #18-108-22 specifically identifies this cluster of codes as a known software-driven event.
How to confirm: If P0335 is present with P2610 and/or P0456, a software issue is highly likely. A dealership can check your vehicle's VIN against their database for applicable TSBs.
Typical fix: The dealership must reprogram the Powertrain Control Module (PCM) with updated software. This is not a DIY repair.
Est. part cost: $0 (if under warranty) - $200
Rare But Worth Checking
- Damaged Reluctor Ring: The toothed wheel on the crankshaft that the sensor reads can be damaged or have debris like rust flakes obscuring the teeth. This is rare and a much more involved repair, typically only considered after all other possibilities are exhausted.
- Aftermarket Engine Tuner (6.4L Hemi): Some aftermarket performance tuners that plug in-line with the PCM have been reported by users to cause random P0335 codes and stalling. Removing the device is a key diagnostic step if one is installed.
- Cross-Model Software Issues: While documented for other models, TSB Bulletin #18-135-22 notes that P0335 can sometimes appear alongside O2 sensor response codes (P0133, P0153), suggesting broader software diagnostic improvements may be available.
Diagnosis Steps

- Scan for Codes: Use an OBD-II scanner to confirm P0335 and check for any other codes. The presence of P2610 or P0456 is a strong indicator of a software issue. TSB Bulletin #18-107-22-REV-A notes that P0300 (Multiple Cylinder Misfire) may also be present alongside P0335.
- Check for TSBs: Especially if other codes are present, check with a dealer or online for TSBs related to P0335 for your specific VIN.
- Inspect Wiring and Connector: Visually inspect the CKP sensor's wiring harness for any signs of chafing, melting, or corrosion. This is especially important on the 6.7L Cummins. Unplug the sensor and check for clean, tight-fitting pins.
- Monitor Live Data: Use a scan tool to watch the Crankshaft RPM (CKP RPM) data pid while cranking the engine. A reading of 0 or an erratic signal points to a bad sensor or a complete circuit failure.
- Test the Sensor Circuit: If you have a multimeter, you can test the circuit at the sensor connector. You should find a 5-volt reference, a good ground, and a signal wire that fluctuates as the engine is turned by hand.
- Inspect the Sensor and Reluctor Ring: If the sensor is removed, inspect its tip for metal debris or damage. If possible, inspect the reluctor ring through the sensor hole for damaged teeth.
- Replace the Sensor: If the sensor is determined to be faulty, replace it. Using an OEM part is highly recommended for reliability.
Parts You'll Likely Need
- Crankshaft Position Sensor (6.7L Cummins)
(OEM #68004142AA)— This is the most common hardware failure for code P0335. The sensor fails from heat and vibration, causing a loss of signal. Note that on the 6.7L, the same sensor is often used for both the crankshaft and camshaft positions.
Trusted brands: Mopar, Cummins, Bosch
OEM price range: $70-$120
Aftermarket price range: $40-$80 - Crankshaft Position Sensor (6.4L Hemi)
(OEM #5149167AF)— This is the most common hardware failure for code P0335. The sensor fails from heat and vibration, causing a loss of signal.
Trusted brands: Mopar, NTK
OEM price range: $80-$170
Aftermarket price range: $40-$70
Related Codes That Often Appear With This One
- P2610 — Per multiple TSBs, this code for 'PCM Internal Engine Off Timer Performance' often appears with P0335 due to a PCM software issue that requires a reflash.
- P0456 — This 'EVAP System Small Leak' code can also be triggered by the same PCM software glitch that causes P0335, as noted in TSBs.
- P0300 — A faulty crankshaft position sensor signal disrupts ignition and fuel timing, which can lead to random/multiple cylinder misfires. TSB Bulletin #18-107-22-REV-A explicitly links this misfire code to the P0335 diagnostic path.
- P0339 — This code for 'Crankshaft Position Sensor 'A' Circuit Intermittent' strongly points to a wiring or connector issue that causes the signal to drop out, rather than a complete sensor failure. TSB Bulletin #18-016-23 indicates this may be resolved via software updates in some configurations.
Technical Service Bulletins (TSBs) & Recalls

- TSB 18-108-22 REV. A: Addresses P0335 with P2610/P0456, requires PCM reflash.
- TSB 18-082-16: Addresses P0335 with P2610, requires PCM reflash.
- TSB 18-088-16 REV. A: Addresses stalling in high temperatures with P0335 and P2610, fixed by PCM software update.
- TSB Bulletin #18-108-22: Confirms that technicians may find P0335, P2610, and P0456 set simultaneously, requiring a software update.
- TSB Bulletin #18-107-22-REV-A: Notes that P0335 may appear with P0456, P2610, and P0300 (Multiple Cylinder Misfire).
Platform-Specific Known Issues
- PCM Software Glitch (TSB): A known series of TSBs (e.g., 18-108-22 REV. A, 18-082-16) indicates that P0335, when appearing with P2610 and P0456, is often caused by a PCM software glitch that requires an update from a dealer, not a hardware replacement.
- Cummins Wiring Harness Chafing: The wiring harness for the CKP sensor on the 6.7L Cummins is known to chafe against the engine block, starter motor, or A/C components, causing shorts or open circuits that trigger P0335.
- Cold Start Misfires: According to TSB Bulletin #18-020-26, P0335 and P0339 may be accompanied by cylinder misfires (such as P0306) specifically during cold start catalyst heating.
Mechanic-Grade Diagnostic Values
- 6.7L Cummins CKP Sensor 5V Reference (Pin 1) — expected: 4.75-5.25 Volts with key-on, engine-off.. Failure: Voltage outside this range indicates a problem with the PCM or the wiring.
- 6.7L Cummins CKP Sensor Ground Circuit Resistance (Pin 3) — expected: Less than 5.0 Ohms of resistance to the PCM ground.. Failure: Resistance above 5.0 Ohms indicates a poor ground connection or an open wire.
- 6.4L Hemi CKP Sensor 5V Reference (F855 Circuit) — expected: Approximately 5.0 Volts with key-on, engine-off.. Failure: No voltage or low voltage points to an open/short in the supply wire or a PCM fault.
- 6.4L Hemi CKP Sensor Ground Circuit Resistance (K900 Circuit) — expected: Below 5.0 Ohms to a known good ground.. Failure: Resistance above 5.0 Ohms indicates an open or high resistance in the ground circuit.
- CKP Sensor Signal (AC Voltage while cranking) — expected: A fluctuating AC voltage, typically between 0.3V and 1.5V, as the engine is cranked.. Failure: A steady 0V or a voltage that doesn't change indicates a failed sensor or circuit.
Scan Tool Commands That Help
- wiTECH or equivalent professional scan tool: CKP Pattern Relearn / Crank Pattern Learn — After replacing the crankshaft position sensor or performing major engine work. This function allows the PCM to learn the new sensor's specific signal pattern for accurate misfire detection. However, many owners report this is not always necessary as the system may self-learn over time.
Wiring & Ground Locations
- 6.7L Cummins CKP Connector — Driver's side of the engine block, just behind the starter.. This is the primary connection point for testing. Pin 1 is the 5V reference (Violet/White wire), Pin 2 is the signal (often a Blue wire), and Pin 3 is the ground (Black/Dark Blue wire).
- 6.4L Hemi CKP Connector — Passenger side of the engine block, near the transmission bell housing.. This is the connection point for the Hemi sensor. The (F855) circuit is the 5-volt supply, and the (K900) circuit is the sensor ground.
- 6.7L Cummins Harness Chafe Point — The harness is known to rub against the engine block, the starter motor body, and A/C components.. This is a very common failure point that can cause an intermittent or total loss of the CKP signal, mimicking a failed sensor.
Real Owner Repair Stories
- RamForum.com user 'zeddy' (2017 Ram 2500 6.4L Hemi, 52,000 miles) — Sputtering and stalling, 'Service electronic throttle' message, P0335 code, rough idle, long crank, would not rev over 2500 RPM.
❌ Tried (didn't work) Disconnecting an aftermarket pedal commander
✅ What actually fixed it The dealership diagnosed and replaced both the crankshaft position sensor and the associated wiring harness.
OEM Part Supersession History
5149167AD, 5149167AE→5149167AF— Standard part revision for improved reliability or manufacturing process change.
Heads up: These parts are for the 6.4L Hemi engine and are generally interchangeable, but using the latest revision (5149167AF) is recommended.2872277, 5179099AA, 5179099AB→68004142AA (Mopar) / 4921684 (Cummins)— Standard part updates and consolidation.
Heads up: These parts are for the 6.7L Cummins. While older numbers may work, it is best to use the latest revision for reliability. Note that Mopar and Cummins may use different part numbers for the same component.
Model Year Variations Within This Range
- 2014+: The 6.4L Hemi V8 was introduced as an option in 2014, creating a major diagnostic split for P0335. The sensor location, part number, and wiring are completely different from the 6.7L Cummins.
Diagnostic Flowchart
Used vs. New Parts: Buying Guide for This Vehicle
When a used part is the smart pick: A used wiring harness pigtail from a junkyard can be a cost-effective choice if only the connector is damaged and the donor vehicle's wiring is in good condition. For the sensor itself, new is strongly recommended.
Donor-vehicle mileage cap: roughly under 80000 miles for the part to have meaningful remaining life.
What to inspect on the donor part:
- For a wiring pigtail, ensure there are no signs of brittleness, cracking, or previous repairs.
- Check that the connector's locking tab is intact and functional.
- Verify the donor vehicle is from a dry climate to minimize corrosion risk.
- Ensure at least 6-8 inches of wire is left on the pigtail for easier splicing.
OEM-only on this vehicle (don't cheap out):
- Crankshaft Position Sensor
Aftermarket brands forum-validated for this vehicle:
- Bosch (for Cummins)
- NTK (for Hemi)
- Cummins (OEM)
Brands owners have reported issues with on this vehicle:
- Unbranded, 'white-box' sensors from online marketplaces are frequently reported on forums to fail prematurely or be dead-on-arrival.
Real Owner Stories
Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.
2017 Ram 2500 6.4L HEMI — 52000 miles
Symptoms: Truck started sputtering and stalling, 'Service electronic throttle' message appeared, P0335 code stored. Engine would die, have a long crank time, and would not rev over 2500 RPM.
What fixed it: The dealership replaced the crankshaft position sensor and the wiring harness.
Cost: $927
Source hint: RamForum.com - P0335 HELP
2014 Ram 2500 6.4L Hemi
Symptoms: Experienced an unexpected engine stall and retrieved a P0335 code.
What fixed it: Replaced the crankshaft position sensor located on the passenger side of the engine.
Source hint: HDRAMS.com
Related OBD-II Codes
Frequently Asked Questions
My 2017 Ram 2500 6.4L Hemi is showing a 'Service Electronic Throttle Control' message along with P0335. Is the throttle body the problem?
Does TSB 18-108-22 REV. A apply to my truck if I have P0335 and P2610?
I have a 6.7L Cummins Diesel and the P0335 code keeps returning. Could it be a wiring issue?
Will the P0335 code cause my tachometer to stop working?
Is there a TSB for stalling in high temperatures on the Ram 2500?
Can I use any aftermarket sensor to fix P0335 on my Cummins?
Helpful Videos
We Have This Part in Stock
The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.
- Ram 2500 / 3500:
- 🧭 Diagnostic Flowchart
- 🎬 Helpful Videos
- 🛍️ Shop This Part
- What's Unique About the 2014-2018 Ram 2500 / 3500
- Symptoms You May Notice
- Most Likely Causes
- Rare But Worth Checking
- Diagnosis Steps
- Parts You'll Likely Need
- Related Codes That Often Appear With This One
- Technical Service Bulletins (TSBs) & Recalls
- Platform-Specific Known Issues
- Mechanic-Grade Diagnostic Values
- Scan Tool Commands That Help
- Wiring & Ground Locations
- Real Owner Repair Stories
- OEM Part Supersession History
- Model Year Variations Within This Range
- Used vs. New Parts: Buying Guide for This Vehicle
- Real Owner Stories
- 2017 Ram 2500 6.4L HEMI — 52000 miles
- 2014 Ram 2500 6.4L Hemi
- Related OBD-II Codes
- Frequently Asked Questions
- 🎟️ Get 5% Off