A Guide to the Engine Crankshaft Position Sensor for the 2015-2021 Mazda 6
Understand the symptoms of a failing crankshaft sensor and how to choose a quality aftermarket replacement for your Mazda 6.
- A failing crankshaft sensor on a 2015-2021 Mazda 6 will typically cause stalling, no-start conditions, and a check engine light with code P0335.
- For electronic sensors, choosing a quality aftermarket brand like Hitachi or Delphi is highly recommended to ensure reliability and avoid repeat failures.
- Replacement is a manageable DIY task, accessed through the passenger wheel well, and typically takes about an hour.
- Always verify the OEM part number (PE01-18-221) before purchasing an aftermarket replacement to guarantee correct fitment.
Is Your Mazda 6 Stalling or Hard to Start? It Could Be the Crankshaft Sensor.

If your 2015-2021 Mazda 6 is experiencing issues like stalling, difficulty starting, a rough idle, or poor acceleration, a faulty engine crankshaft position sensor might be the culprit. This sensor is vital for engine operation, and when it fails, it can cause a range of noticeable problems. A check engine light is also a very common symptom, often with the code P0335.
Symptoms of a Failing Crankshaft Position Sensor

Watch for these common signs that your sensor may be going bad:
- Check Engine Light: This is often the first sign. A code reader will likely show P0335, which points to a malfunction in the crankshaft position sensor circuit.
- Engine Won't Start: A completely failed sensor can prevent the engine from starting because the computer doesn't know when to create spark and inject fuel.
- Engine Stalling: The engine may stall intermittently, sometimes when it's hot, and may not restart until it cools down.
- Rough Idle and Misfires: You might feel the engine vibrating or running unevenly because the timing is off.
- Poor Acceleration: A bad sensor can cause a noticeable lack of power when you press the gas pedal.
- Reduced Fuel Economy: Inefficient engine timing means you'll be using more fuel than normal.
No Recalls, But Known Issues
While there are no specific recalls for the crankshaft position sensor on the 2015-2021 Mazda 6, there was a recall (3719F) for some 2018-2019 models related to a powertrain control module (PCM) software error that could cause stalling. It's important to ensure your vehicle's software is up to date. The symptoms can be similar, so proper diagnosis is key.
Choosing the Right Aftermarket Sensor: Brand Quality Matters

When it comes to electronic sensors, not all aftermarket brands are created equal. Using a low-quality part can lead to incorrect signals, premature failure, and the same symptoms you were trying to fix. For a critical part like the crankshaft sensor, it's best to invest in a reputable brand.
| Brand Tier | Brands | General Assessment |
|---|---|---|
| OEM-Equivalent / Premium Aftermarket | Hitachi, Delphi | Hitachi is often an Original Equipment (OE) supplier for Japanese vehicles, making their aftermarket parts a very reliable choice. They are engineered to meet or exceed original specifications. Delphi is another top-tier brand with a strong reputation for producing OE-quality sensors that undergo rigorous testing. |
| Quality Aftermarket | Standard Ignition (SMP), Walker Products | Standard Ignition (SMP) is a well-known aftermarket manufacturer that produces reliable sensors, though some user reviews can be mixed depending on the specific vehicle application. Walker Products also produces a wide range of sensors and emphasizes meeting OE form, fit, and function. |
| Standard / Economy | Global Parts | This category typically includes brands that are more budget-focused. While they may offer a lower price, they might not have the same level of testing, material quality, or longevity as premium brands. For a critical sensor, these should be considered with caution. |
Pro Tip: Check the Part Number
Always verify the OEM part number for your specific vehicle before ordering. The most common OEM part number for the 2015-2021 Mazda 6 is PE01-18-221. Cross-referencing this number with the aftermarket part ensures you get a perfect fit.
Cost to Replace the Crankshaft Position Sensor
The cost can vary depending on whether you do the job yourself or have a shop do it. The part itself is relatively inexpensive.
| Cost Type | Estimated Price |
|---|---|
| New Aftermarket Part | $45 - $82 |
| New OEM Part | $65 - $90 |
| Shop Labor | $100 - $180 |
| Total Estimated Cost (Shop) | $165 - $270 |
Frequently Asked Questions (FAQ)

Is replacing the Mazda 6 crankshaft sensor a DIY job?
Yes, for many home mechanics, this is a feasible DIY job. The sensor is located on the back of the engine on the passenger side and is accessed by removing the front passenger wheel and a plastic splash shield. It is held in by a single 8mm bolt. The main challenge is the tight access. Estimated time is about one hour.
Do I need to perform a relearn procedure after replacement?
Generally, a specific crankshaft position relearn procedure is not required for this vehicle. After installing the new sensor, you should clear the trouble codes from the computer using an OBD2 scanner. The computer will then adapt to the new sensor as you drive.
Why is it a bad idea to use a very cheap sensor?
Cheap, unbranded sensors often use lower-quality internal components and magnets. This can result in a weak or inaccurate signal to the engine computer, causing the same performance issues as the old, failing sensor. It's common for very cheap sensors to fail within a few months.
Can a bad CAMshaft sensor cause the same problems?
Yes, the symptoms of a bad camshaft position sensor are very similar to a bad crankshaft sensor (rough idle, stalling, no-start). The crankshaft and camshaft sensors work together. If you have a P0335 code, the issue is almost certainly the crankshaft sensor, but other codes may point to the camshaft sensor instead.
Helpful Videos
Technical Specifications
OEM Part Numbers: PE01-18-221
The sensor is located on the passenger side, at the rear of the engine block, and is secured with a single 8mm bolt. It uses a Hall effect sensor to read the crankshaft's position.
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.
- Mazda 6:
- 🎬 Helpful Videos
- 🛍️ Shop This Part
- Is Your Mazda 6 Stalling or Hard to Start? It Could Be the Crankshaft Sensor.
- Symptoms of a Failing Crankshaft Position Sensor
- No Recalls, But Known Issues
- Choosing the Right Aftermarket Sensor: Brand Quality Matters
- Pro Tip: Check the Part Number
- Cost to Replace the Crankshaft Position Sensor
- Frequently Asked Questions (FAQ)
- 🎟️ Get 5% Off