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

Common causes

How to fix it

FixDIY?Typical cost
Replace the crankshaft position sensorYes$50–180
Repair damaged wiring or the sensor connectorYes$20–150
Have a shop replace the sensor and clear the codesMechanic$150–400

Frequently asked questions

Can I drive my Mazda with a P0335 code?
No, not safely. The engine can stall at any time, so have the vehicle towed to a shop.
Where is the crankshaft sensor on a Mazda?
It is mounted low on the engine near the crankshaft pulley or flywheel, depending on the model.
How much does it cost to fix P0335 on a Mazda?
The sensor costs about $50–180, and with shop labor the total is typically $150–400.

Other common Mazda codes

P0420
P0420 on a Mazda
P0171
P0171 on a Mazda
P0300
P0300 on a Mazda
P0456
P0456 on a Mazda
P0430
P0430 on a Mazda
P0128
P0128 on a Mazda
P0455
P0455 on a Mazda
P0174
P0174 on a Mazda

P0335 on other brands

Toyota
P0335 on a Toyota
Honda
P0335 on a Honda
Ford
P0335 on a Ford
Chevy
P0335 on a Chevy
Nissan
P0335 on a Nissan
BMW
P0335 on a BMW
Mercedes-Benz
P0335 on a Mercedes-Benz
Volkswagen
P0335 on a Volkswagen
Hyundai
P0335 on a Hyundai
Subaru
P0335 on a Subaru
Jeep
P0335 on a Jeep
GMC
P0335 on a GMC
Lexus
P0335 on a Lexus
Volvo
P0335 on a Volvo

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.