P0335 on a Mazda: Causes, Fixes & Repair Cost
⚠️ Severe · not recommended to drive
The engine may crank without firing or stall while driving, so have the Mazda towed to a shop.
What P0335 means on a Mazda
On a Mazda, P0335 says the engine computer isn't receiving the crankshaft position signal it needs to run the engine. The engine may crank without firing or stall while driving.
Is P0335 common on Mazdas?
Mazda crankshaft sensors fail with age, and this code turns up on higher-mileage Mazda3 and Mazda6 models. Wiring damage near the sensor and a worn connector are common secondary causes to check.
Commonly reported on: Mazda3, Mazda6, CX-5, CX-9.
Symptoms
- Engine cranks but won't start
- Engine stalls while driving
- Check engine light is on
- No spark reaching the spark plugs
Common causes
- most common: Failed crankshaft position sensor
- common: Damaged wiring near the sensor
- common: Worn or corroded sensor connector
- less common: Loose sensor mounting changing the gap
How to fix it
| Fix | DIY? | Typical cost |
|---|---|---|
| Replace the crankshaft position sensor | Yes | $50–180 |
| Repair damaged wiring or the sensor connector | Yes | $20–150 |
| Have a shop replace the sensor and clear the codes | Mechanic | $150–400 |
Frequently asked questions
Other common Mazda codes
P0335 on other brands
Looking for the full (non-brand-specific) guide? See the P0335 code page →
Browse all Mazda codes: Mazda hub →
Updated 2026-08. This page is informational and not a substitute for professional diagnosis.