Au7o mascotAu7o
Known IssuesGet Started
  1. Au7o
  2. /
  3. Known Issues
  4. /
  5. DTC Codes
  6. /
  7. P0335
  8. /
  9. Mazda
Mazda · Engine · Critical code

P0335 on Mazda: How to Diagnose & Fix

Crankshaft Position Sensor A Circuit Malfunction

1 Mazda model · 1 documented issue · 1 critical · $50-$250 repair

Share:@au7o.io

P0335 by Mazda model

  • 1999-2005MX-5 Miata1
  • FAQ

P0335 on other makes

  • Cadillac
  • Chevrolet
  • Dodge
  • Ford
  • Gmc
  • Honda
  • Hyundai
  • Infiniti
  • Jeep
  • Kia
  • Mercedes Benz
  • Mitsubishi
Diagnose my car
Back to top

P0335 by Mazda model

  • 1999-2005MX-5 Miata1
  • FAQ

P0335 on Mazda by model: symptoms, diagnosis and fix

Community reported
4,500 owners
Link to this issueError Codes:P0300P0301P0302P0303P0304P0305P0306P0335

The NB Miata (1999-2005) crankshaft position sensor (CPS) is a known failure point. The sensor deteriorates from engine heat, causing intermittent stalling, no-start conditions, and random misfires. Failure is often heat-related - the car runs fine when cold but stalls or dies after reaching operating temperature.

Common Symptoms

  • Engine stalls when hot, restarts after cooling down
  • Intermittent no-start condition (cranks but does not fire)
  • Random misfires and rough running at operating temperature
  • Check engine light with P0335 (CPS circuit) code

How to Fix

Replace crankshaft position sensor with OEM Mazda unit (N3A1-18-221A). Aftermarket sensors (Delphi, Dorman) have higher failure rates on this application. The sensor is located on the rear of the engine block near the flywheel.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Genuine Mazda BP4W-18-221B crankshaft position sensor
    OEMMazda BP4W-18-221B

    Confirm VIN before ordering; thi

    Mazda-Parts

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Owner tips & cautions

  • TipCarry a spare CPS in the trunk - they fail without warning. Miata.net CPS mega-thread
  • TipRoute sensor wiring away from exhaust manifold heat to extend sensor life
Typical repair cost:$50 - $250

Research This Issue

Based on 4,500 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High ConfidenceVerified4,500 owner reportsLast reported by owners Jul 2024Reviewed Feb 2026
All Mazda MX-5 Miata known issues →

P0335 code reference

General diagnostic-code context. The code alone does not confirm a cause for your vehicle; use the applicable issue card and its sources.

Frequently asked questions

What does P0335 mean on a Mazda?

P0335 stands for "Crankshaft Position Sensor A Circuit Malfunction." This code means the engine computer has lost or detected a faulty signal from the crankshaft position sensor (sensor A), which tells the computer exactly how fast and in what position the crankshaft is rotating. That signal is essential for timing the spark and fuel injection, so a problem here can cause hard starting, stalling, or a no-start condition. The computer sets this code when the crank sensor signal is missing, erratic, or out of its expected pattern. Causes range from a failed sensor or damaged wiring to a problem with the reluctor (tone) ring the sensor reads. On Mazda it is documented across 1 model: MX-5 Miata.

What are the most common causes of P0335?

The most common causes of P0335 are: Failed crankshaft position sensor, Damaged, corroded, or loose sensor wiring/connector, Metal debris or oil contamination on the sensor tip, Damaged or misaligned reluctor (tone) ring, Excessive air gap between sensor and tone ring, Wiring shorted or open in the sensor circuit, Faulty PCM/ECM (rare). The specific cause varies by vehicle.

How much does it cost to fix P0335 on a Mazda?

Published repair estimates on Mazda range from $50 to $250 depending on the model and root cause. If an issue mentions a recall or campaign, check your VIN with the manufacturer or NHTSA and confirm eligibility and coverage with a dealer.

Related codes

  • P0330 · Knock Sensor 2 Circuit (Bank 2)
  • P0332 · Knock Sensor 2 Circuit Low Input (Bank 2)
  • P0336 · Crankshaft Position Sensor 'A' Circuit Range/Performance
  • P0337 · Crankshaft Position Sensor "A" Circuit Low Input
  • 00522 · Engine Coolant Temperature Sensor (G62): Open Circuit / Short to Positive (B+)
  • 16500 · Engine Coolant Temp. Sensor (G62): Implausible Signal
  • 16502 · Engine Coolant Temperature Sensor (G62): Signal too High
  • 16566 · Mass Air Flow Sensor Signal Too Low (VAG)

Looking for P0335 on a different make?

View P0335 across all makes →
🔧
A mechanic who knows YOUR exact car
Answers tuned to your year, make, model & trim — not generic advice. Save your garage so it always has the right context.
Get notified about P0335 fixes on Mazda
We add new causes, fixes and affected Mazda models for P0335 regularly — drop your email and we'll keep you posted. You can also diagnose your own car free.

Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.

Known IssuesMotorcycle IssuesDTC LookupDrivePricingAboutTermsPrivacyCookiesConsentData rightsCopyrightFeedback
Share:@au7o.io

Vehicle data and repair guidance on this site are compiled with AI assistance and may contain errors. Always verify with your service manual or a qualified mechanic.

Data protection representation

DataRep representative in the United KingdomDataRep representative in the European Union
Au7o · 2026
Built for DIY mechanics. Privacy-first.
Explore free Hub demo