Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🎬 Helpful Videos 🛍️ Shop This Part

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.

4 minutes to read 2015-2021 Mazda 6
Difficulty
2/5
Est. Time
1 hrs
DIY Doable?
✅ Yes
Shop Labor
$100-$180
🚫 Do not drive — Driving is not recommended, as the engine can stall at any time, creating a significant safety risk.
Key Takeaways
  • 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.
The engine crankshaft position sensor is a critical component in your 2015-2021 Mazda 6. It constantly monitors the rotational speed and exact position of the engine's crankshaft. This information is sent to the powertrain control module (PCM), your car's main computer. The PCM uses this data to precisely control ignition timing and fuel injection, which are essential for engine performance, fuel economy, and low emissions. Without a correct signal from this sensor, your engine may not run properly or start at all.

Is Your Mazda 6 Stalling or Hard to Start? It Could Be the Crankshaft Sensor.

A 2015-2021 Mazda 6 which may experience stalling or starting issues due to a faulty crankshaft position sensor.
The 2015-2021 Mazda 6 relies on a precise crankshaft position sensor to manage engine timing and fuel injection.

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

Comparison between a new, clean crankshaft position sensor and a failed sensor with visible damage or corrosion.
A healthy sensor (left) provides clean signals, while a failed sensor (right) with corrosion or physical damage can cause stalling and P0335 codes.

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

A premium aftermarket crankshaft position sensor from a reputable brand like Hitachi or Delphi in its retail packaging.
Choosing a high-quality brand like Hitachi or Delphi ensures the sensor meets OEM specifications for reliability and longevity.

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)

The location of the crankshaft position sensor on a Mazda 6, accessed through the passenger side wheel well.
The sensor is located on the back of the engine on the passenger side and is accessed by removing the front passenger wheel and plastic splash shield.
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.

How to Replace Crankshaft Position Sensor 2014-2021 Mazda 6
How to Replace Crankshaft Position Sensor 2014-2021 Mazda 6
Mazda6 Check Engine Light P0335 P0340 Crankshaft Position Sensor Replacement
Mazda6 Check Engine Light P0335 P0340 Crankshaft Position Sensor Replacement
Mazda  P0335 crank sensor circuit malfunction solution, mazda not start.
Mazda P0335 crank sensor circuit malfunction solution, mazda not start.
6 Symptoms of a Bad Crankshaft Position Sensor (& Replacement Cost)
6 Symptoms of a Bad Crankshaft Position Sensor (& Replacement Cost)
8 Bad Crank Position Sensor Symptoms (FIX It In 9 Minutes)
8 Bad Crank Position Sensor Symptoms (FIX It In 9 Minutes)

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.

Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated May 31, 2026

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.

Year Coverage
This article covers the Engine Crankshaft Position Sensor for:
  • Mazda 6: 2015201620172018201920202021
In this article
🎬 Helpful Videos
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part