P0335 Mazda: Diagnose Crankshaft Sensor Problems and Starting Issues
18 min read · by Nicole Bennett · Last updated: November 25, 2026
The p0335 mazda trouble code indicates a problem with the crankshaft position sensor A circuit, meaning the powertrain control module (PCM) is not receiving the expected crankshaft position signal. This signal helps the engine computer determine crankshaft position and engine speed. Without reliable information, the PCM may struggle to control ignition timing and fuel injection. Depending on the problem, your Mazda may crank without starting, stall unexpectedly, run poorly, or illuminate the check engine light.
A defective crankshaft position sensor is one possible cause, but it is not the only explanation. Damaged wiring, loose electrical connections, corrosion, contamination, a damaged crankshaft pulse wheel, and PCM problems can also trigger this diagnostic trouble code. Replacing the sensor without checking the complete circuit can leave the original fault unresolved.
This guide explains what P0335 means on a Mazda, which symptoms deserve attention, how to investigate the fault with an OBD2 scanner, and what repairs may be necessary. Because Mazda has used different engines and engine management systems across its vehicles, the exact diagnostic conditions and electrical specifications must be checked against the service information for your model year and engine.
What P0335 Means on a Mazda
P0335 is a generic SAE powertrain diagnostic trouble code describing a Crankshaft Position Sensor A Circuit Malfunction. It means the PCM has detected a missing, incorrect, or otherwise unacceptable signal from the crankshaft position sensor circuit. The code identifies a problem with the signal system, not necessarily a failed sensor.
The crankshaft position sensor, commonly called the CKP sensor, monitors the position and rotational speed of the crankshaft. It detects changes as a timing rotor or reluctor wheel passes its sensing element. The sensor converts those changes into electrical signals that the engine computer can interpret.
The PCM uses this information to coordinate ignition timing, fuel injection and other engine management functions. It also uses crankshaft speed information when determining whether the engine is starting, idling or operating under load. A missing signal can interfere with several essential engine functions at once.
Understanding the P0335 code format
The code contains five characters. Each character identifies a different part of the diagnostic information.
| Character | Meaning | Explanation |
|---|---|---|
| P | Powertrain | The fault involves the engine, transmission or related powertrain controls. |
| 0 | Generic code | The code belongs to the standardized SAE diagnostic code group. |
| 3 | Ignition-related category | Identifies the applicable ignition and engine timing diagnostic category. |
| 3 | Specific fault identifier | Forms part of the code’s unique identification. |
| 5 | Specific fault identifier | Completes the P0335 diagnostic code. |
The second character is particularly useful. A zero indicates a generic standardized code, while a one generally identifies a manufacturer-specific code. P0335 is generic, so its basic definition applies across manufacturers, including Mazda. However, the diagnostic thresholds, wiring arrangements and repair procedures can differ between vehicles.
How Mazda detects the problem
Mazda service documentation illustrates why vehicle-specific information matters. On the L3 Turbo engine, the PCM identifies P0335 when it does not receive the expected CKP sensor input for 4.2 seconds while measured mass airflow is at least 2.0 grams per second. This is a specific diagnostic condition for that application, not a universal threshold for every Mazda.
Other Mazda engines use different monitoring strategies. Some systems evaluate the number and pattern of crankshaft pulses, while others compare crankshaft and camshaft signals. Therefore, the same generic code can result from different electrical or mechanical conditions. Compare the causes listed here with P0335 Subaru Outback to rule out make-specific issues.
The distinction between a circuit fault and a component failure is important. A sensor can be electrically functional but unable to communicate with the PCM because a connector is loose or a signal wire is damaged. Proper diagnosis must establish whether the problem originates at the sensor, along the wiring, at the pulse wheel or inside the control module. Mazda’s L3 Turbo P0335 service diagnostic procedure provides an example of the checks required for a specific Mazda engine.

Common Symptoms of P0335 on Mazda Vehicles
A Mazda with P0335 may experience starting problems, engine stalling, rough operation or reduced performance. The severity depends on whether the crankshaft signal is completely missing or only intermittently unreliable. Some vehicles may not start at all, while others continue running until the electrical fault returns.
The crankshaft signal is important enough that the PCM may stop controlling fuel injection and ignition when it cannot establish reliable engine position. Certain Mazda applications use fail-safe strategies that stop fuel injection and ignition after detecting the fault.
1. Engine cranks but does not start
A crank-no-start condition is one of the most important symptoms to investigate. The starter motor may rotate the engine normally, but the engine fails to fire because the PCM cannot establish the crankshaft position information required for proper ignition and injection control.
This symptom does not automatically prove that the CKP sensor has failed. A damaged signal wire, poor connector contact, missing sensor supply voltage or defective pulse wheel can produce a similar result. Battery condition and starter operation should also be considered when investigating a starting complaint.
2. Unexpected engine stalling
An intermittent crankshaft signal can cause the engine to shut down while idling or driving. The PCM may temporarily lose the information required to control engine operation. In some cases, the engine restarts after cooling down or after the electrical connection temporarily makes contact again.
Heat and vibration can make an existing wiring or sensor problem more noticeable. A damaged harness may lose continuity as the engine moves, while a deteriorating sensor may produce an inconsistent signal under certain operating conditions.
3. Rough running and hesitation
An intermittent CKP signal can interfere with the PCM’s ability to maintain accurate engine timing. The driver may notice hesitation, uneven acceleration, unstable idle speed or occasional misfires. These symptoms may become more noticeable during acceleration or when the engine reaches operating temperature.
Other faults can produce similar symptoms. Ignition coils, spark plugs, fuel delivery problems and camshaft sensor issues should not be ignored simply because P0335 appears in the scan results.
4. Check engine light illumination
The check engine light may illuminate when the PCM detects the crankshaft signal problem. A scanner can show whether P0335 is pending, stored or permanent, depending on the vehicle’s monitoring and code-management strategy.
A pending code indicates that the system has detected a fault that has not yet met the confirmation requirements. A stored or confirmed code indicates that the malfunction has been recognized according to the applicable monitoring logic. A permanent code cannot simply be erased with a scanner; the fault must be corrected and the relevant monitor must pass. Shops often compare notes across makes for this code, and P0335 jeep grand cherokee is a good reference.
| Symptom | Possible explanation | Diagnostic priority |
|---|---|---|
| Cranks but will not start | Missing CKP signal or circuit failure | High |
| Engine stalls unexpectedly | Intermittent sensor signal or wiring fault | High |
| Rough idle | Unstable crankshaft signal or another engine fault | Medium to high |
| Hesitation during acceleration | Intermittent signal or timing-related problem | High |
| Check engine light | PCM detected an unacceptable CKP circuit condition | Prompt diagnosis |
What Causes the Mazda Crankshaft Sensor Code?
P0335 can originate from several points in the crankshaft position sensing system. The most common areas to investigate include the sensor itself, electrical connectors, wiring, the crankshaft timing rotor and the PCM. A systematic inspection helps avoid replacing an expensive component when a simple circuit problem is responsible.
1. Defective crankshaft position sensor
The CKP sensor can deteriorate through heat exposure, internal electrical failure, physical damage or normal component aging. An unreliable sensor may produce an inconsistent signal or stop producing a usable signal altogether.
The sensor design matters during testing. DENSO identifies inductive magnetic pickup sensors and magnetoresistive semiconductor sensors as two common designs. Their electrical behavior and testing requirements are not identical. A technician must use the correct Mazda specifications rather than applying one resistance or voltage value to every sensor. DENSO’s crankshaft and camshaft sensor technical information explains the operating principles and diagnostic considerations for these sensor types.
2. Damaged wiring or electrical connections
Wiring problems are a major reason not to replace the CKP sensor immediately. A broken conductor, damaged insulation, short to ground, short to power or poor terminal connection can interrupt the signal between the sensor and PCM.
Inspect the connector for corrosion, moisture, bent terminals, damaged locking tabs and loose connections. Harness damage may occur where wiring passes near hot engine components, brackets or moving parts. A connection can look normal externally but still have poor electrical contact internally.
3. Dirty sensor or damaged pulse wheel
The crankshaft sensor must detect the changing magnetic field or other signal variations created by the timing rotor. Dirt, metallic debris or physical damage can interfere with the signal, depending on the sensor design.
A damaged, loose or incorrectly positioned pulse wheel can also create an abnormal signal pattern. If the sensor itself tests correctly but the waveform remains incorrect, the mechanical target should be investigated using the appropriate service procedure.
4. PCM connector or internal failure
The PCM receives and processes the crankshaft signal. A damaged PCM connector, corroded terminal or internal control module failure can prevent correct signal recognition. However, PCM failure should be considered only after the sensor, wiring, power supply, grounds and mechanical signal source have been tested.
A replacement PCM may require programming, configuration or an immobilizer-related procedure, depending on the Mazda application. It is not a sensible first repair for a P0335 complaint.
5. Battery and starting system problems
A weak battery or starter problem can complicate crankshaft signal diagnosis. If the engine turns too slowly or electrical voltage becomes unstable during cranking, the sensor and PCM may not operate under normal conditions.
A healthy fully charged battery typically measures approximately 12.6 volts at rest. With the engine running, the charging system commonly operates around 13.5 to 14.7 volts. These are general reference values, not substitutes for Mazda-specific charging system specifications or a battery load test. For another common fault on this model, see P0340 Mazda.
The correct diagnosis considers all these possibilities rather than assuming that every Mazda with P0335 needs a new crankshaft sensor.
How to Diagnose P0335 With an OBD2 Scanner
An OBD2 scanner provides a useful starting point for diagnosing P0335 because it can retrieve fault codes and, on supported vehicles, display freeze-frame information and live engine data. More advanced equipment can also capture sensor waveforms and perform additional electrical or control-system tests.
For US-market vehicles, OBD-II is required on cars and light trucks from model year 1996. The diagnostic connector is generally a 16-pin J1962 port located beneath the dashboard on the driver’s side. A basic code reader may identify P0335, but a scanner with enhanced Mazda coverage provides more useful diagnostic information.
Step 1: Retrieve all diagnostic trouble codes
Connect the scanner and retrieve stored, pending and permanent codes where supported. Do not immediately clear the fault. Record every code, including any camshaft position, ignition, voltage or communication-related codes that appear alongside P0335.
Additional codes can help identify a broader electrical problem. For example, a related voltage or sensor supply fault may point toward a shared circuit problem rather than an isolated crankshaft sensor failure.
Step 2: Examine freeze-frame data
Freeze-frame data records selected operating conditions when the PCM detects a fault. Depending on the Mazda system and scanner, available information may include engine speed, coolant temperature, vehicle speed, calculated load and system voltage.
These details can help determine whether the fault appeared during a cold start, warm idle, acceleration or normal driving. A fault recorded at an engine speed of zero during a failed starting attempt may provide a useful clue, although the complete circumstances must be considered.
Compare the recorded information with the driver’s description. If the vehicle regularly stalls after warming up, the technician should investigate whether the sensor signal changes as temperature increases. If the problem occurs mainly during cranking, the starting system and sensor signal should receive attention.
Step 3: Check live engine speed data
If the scanner supports live data, monitor engine RPM during cranking. A zero RPM reading while the starter is visibly turning the engine can indicate that the PCM is not receiving or recognizing a usable crankshaft signal.
However, scanner update speed, communication delays and vehicle-specific data handling can affect the displayed reading. A zero reading is a diagnostic clue, not definitive proof of a defective sensor.
Compare the CKP and camshaft position information where supported. An advanced scanner may also provide synchronization status. If the camshaft signal is available but the crankshaft signal is missing, the CKP circuit deserves closer examination.
Step 4: Inspect the sensor connector and harness
With the ignition switched off and the appropriate safety precautions followed, inspect accessible CKP wiring and connector areas. Look for damaged insulation, corrosion, moisture, loose terminals and evidence of previous repairs.
A professional electrical diagnosis may include checking circuit continuity, resistance and voltage against the wiring diagram for the exact Mazda engine. Do not assume that all Mazda CKP sensors use the same terminal arrangement or reference voltage.
Mazda’s L3 Turbo service procedure provides a useful example. It checks for shorts to power, shorts to ground, shorts between CKP circuits and open circuits between the sensor and PCM. It also checks connector condition before condemning the sensor.
Step 5: Evaluate the sensor waveform
An automotive oscilloscope provides more detailed information than a basic code reader. It can display the CKP signal during cranking or engine operation, allowing a technician to identify missing pulses, irregular patterns, interruptions and other waveform abnormalities.
DENSO recommends checking the crankshaft sensor voltage waveform during cranking when investigating sensor-related problems. If the waveform is normal, the next diagnostic direction may involve wiring or the engine control unit. If no usable waveform exists, the sensor and its mechanical target require further inspection.
The waveform must be interpreted according to the sensor technology and Mazda specifications. A magnetic inductive sensor and a semiconductor sensor do not necessarily produce the same signal characteristics.
Step 6: Consider Mode $06 where supported
Mode $06 displays onboard diagnostic monitor test results when the vehicle and scanner support the relevant information. It can provide useful additional evidence about monitored engine systems and test results.
However, Mode $06 does not automatically provide a direct CKP sensor pass-or-fail result on every Mazda. The available test identifiers and interpretation depend on the PCM calibration and scanner coverage. Use manufacturer-specific diagnostic information when the generic results are incomplete.
Fuel trims are also not a primary test for P0335. Short-term and long-term fuel trims that exceed roughly plus or minus 10 percent combined can suggest a mixture problem, but they do not establish whether the crankshaft sensor circuit is working. Concentrate on engine speed, synchronization, sensor signals and electrical integrity.
Tip: Save all diagnostic codes and freeze-frame information before clearing anything. Never replace a Mazda crankshaft sensor based on P0335 alone. Confirm the correct wiring diagram, connector pinout and sensor testing specifications for the exact model year and engine. Electrical probing around a running engine requires suitable equipment and training. P0351 Mazda covers another issue owners of this vehicle run into.

P0335 Mazda Repairs, Costs and Driving Safety
The correct repair depends on the part of the CKP system responsible for the missing or incorrect signal. Some vehicles need a connector repair, while others require sensor replacement, harness repair or additional mechanical investigation. The diagnostic results should determine the repair rather than the code description alone.
Possible repair options
A faulty crankshaft position sensor may need replacement if testing confirms that it cannot produce the required signal. The replacement must match the specific Mazda engine and its sensor design. Installation also requires the correct positioning, sealing and tightening specifications.
If the sensor is working but the wiring is damaged, the appropriate repair may involve restoring the affected conductors or replacing damaged connector terminals. Corrosion and loose connections should be addressed before the system is retested.
A damaged pulse wheel may require a more involved mechanical repair. Access and labor requirements vary considerably between Mazda engines. The technician must determine whether the mechanical target is damaged, contaminated or incorrectly positioned.
PCM replacement is generally a last resort. It should be considered only after the external circuit, sensor, connections and mechanical components have been verified. Programming and vehicle security procedures may add complexity to this repair.
What determines repair cost?
There is no single reliable repair price for every Mazda with P0335. The total depends on the specific model, engine, component accessibility, labor requirements and the actual cause of the fault. A sensor replacement may be relatively straightforward on one engine but require significantly more access work on another.
The main factors affecting the final repair bill include:
- Diagnostic labor required to identify whether the sensor, wiring, pulse wheel or PCM is responsible.
- The cost and availability of the correct replacement sensor or electrical connector.
- Labor hours required to access and remove the affected component.
- Additional wiring repairs, terminal replacement or harness work.
- Mechanical work required if the crankshaft pulse wheel is damaged.
- Additional programming or configuration requirements if PCM replacement is necessary.
- Differences between independent repair facilities and Mazda dealerships.
DIY work may reduce labor expenses when the sensor is accessible and the owner has the correct tools and repair information. However, an incorrect diagnosis can increase total costs by causing unnecessary component replacements. Electrical testing, waveform interpretation and PCM diagnosis may be better handled by a qualified automotive technician.
Is it safe to drive with P0335?
Driving with P0335 is not recommended if the engine stalls, struggles to start or loses power. A crankshaft signal problem can cause the engine to shut down without warning. Losing engine power in traffic can create a dangerous situation, particularly when merging, crossing intersections or traveling at highway speeds.
If the Mazda runs normally and the warning light is steady, the vehicle may still have an intermittent fault. That does not guarantee safe operation. A previously intermittent sensor or wiring problem can become a complete signal failure at any time.
A flashing check engine light requires particular attention because it indicates an active misfire that can damage the catalytic converter. Reduce engine load and arrange prompt inspection. If the engine stalls, repeatedly fails to start or behaves unpredictably, stop driving when safe and arrange professional assistance or towing.
Avoid repeatedly cranking an engine that will not start. Extended starting attempts can place additional strain on the battery and starter. A proper diagnostic assessment is more useful than continuing to operate or repeatedly restart a vehicle with an unresolved crankshaft signal fault.
What happens after the repair?
After the confirmed fault is repaired, the technician should reconnect all electrical components and verify that the CKP signal is present. The scanner can then be used to clear eligible stored codes and monitor engine operation.
Mazda’s L3 Turbo service procedure includes clearing the stored DTC, starting the engine and checking the MAF parameter as part of its particular verification process. It specifies at least 2.0 g/s for that test. This value should not be applied to unrelated Mazda engines.
The technician should check whether P0335 returns and confirm that the engine starts and runs correctly. If the same code reappears, the diagnostic process must continue rather than assuming that the original repair was successful.
Permanent diagnostic trouble codes require special attention. Clearing ordinary codes does not erase permanent codes. The PCM must recognize that the underlying problem has been corrected and that the applicable monitor has passed under the required operating conditions. Choosing the right equipment matters here, so take a look at Best OBD2 Scanners for Turbo Cars.
Frequently Asked Questions
Can a Mazda have P0335 without turning on the check engine light?
Yes. A fault may initially appear as a pending code before the PCM satisfies the applicable confirmation criteria. Some Mazda diagnostic strategies also have different pending-code behavior. A scanner that reads pending codes can reveal information that a dashboard warning light does not show.
Does disconnecting the battery permanently fix P0335?
No. Disconnecting the battery does not repair a damaged sensor, wiring connection or pulse wheel. It may also reset certain learned information and readiness monitors. Permanent DTCs cannot be erased simply by disconnecting the battery; the underlying fault must be repaired and the required monitor must pass.
Is P0335 the same as P0336 on a Mazda?
No. P0335 identifies a crankshaft position sensor A circuit malfunction, while P0336 identifies a crankshaft position sensor A range or performance problem. The first generally concerns a missing or unacceptable circuit signal, while the second concerns an implausible or incorrect signal pattern. Both require vehicle-specific diagnosis.
Can cold weather make an existing P0335 problem more noticeable?
Yes. Cold temperatures can expose an existing weakness in the battery, starter, electrical connections or sensor circuit. A battery that performs adequately in mild weather may struggle during cold starting. Temperature-related symptoms should be compared with battery voltage and CKP signal measurements rather than automatically attributed to the sensor.
Can a faulty crankshaft sensor affect the Mazda tachometer?
It can, depending on the vehicle’s instrument and engine management architecture. The PCM calculates engine speed using crankshaft position information, so an unreliable signal can affect the RPM information available to other systems. A tachometer that drops unexpectedly during engine operation can be a useful diagnostic clue, but it does not independently confirm P0335 or prove that the sensor is defective.
P0335 on a Mazda indicates a crankshaft position sensor A circuit problem, but the sensor is only one possible cause. Check the freeze-frame data, live engine speed, electrical connections, wiring and crankshaft signal before replacing parts. Because an unreliable CKP signal can cause stalling or a no-start condition, prioritize diagnosis and avoid driving a Mazda that behaves unpredictably.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0340 Mazda: Find the Sensor or Timing Fault Behind the Code
LearnP0353 Mazda: Diagnose Ignition Coil Circuit Problems
LearnP0352 Mazda: Diagnose Ignition Coil Problems and Prevent Misfires
LearnP0344 Mazda: Diagnose Intermittent Camshaft Sensor Signals
LearnP0325 Mazda: Diagnose Knock Sensor Faults and Avoid Unneeded Repairs
LearnP0303 Nissan Code: Cylinder 3 Misfire Meaning and Checks