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 →
🧭 Diagnostic Flowchart 🛍️ Shop This Part

P0877 on 2016-2021 Mazda CX-3: Transmission Pressure Switch Causes and Fixes

On a 2016-2021 Mazda CX-3, code P0877 almost always means an internal transmission pressure switch has failed due to contamination. The fix involves replacing two pressure switches on the valve body inside the transmission. This is a known issue covered by Mazda Technical Service Bulletins.

13 minutes to read 2016-2021 Mazda CX-3
Most Likely Cause
Stuck/Failed Internal Transmission Oil Pressure Switches
Difficulty
4/5
Est. Time
2.5 hrs
DIY Doable?
🔧 Shop
Shop Labor
$350 – $650
Parts Price
$100 – $250
⚠️ Drivable, but... — You can drive for short distances, but the transmission may shift harshly, get stuck in one gear (limp mode), or behave erratically. The TCM will also enable a fail-safe function which limits engine torque and inhibits manual shifting. Continued driving can cause further internal transmission damage, so it's best to get it serviced as soon as possible.
Key Takeaways
  • P0877 on your CX-3 is a known issue with a specific fix outlined by Mazda.
  • The cause is almost certainly two failed oil pressure switches inside your transmission due to fluid contamination.
  • This is not a simple DIY fix for most people; it requires dropping the transmission pan and working on the valve body.
  • When the repair is done, replacing the transmission filter (strainer) is highly recommended, and performing the 'Initial Learning Procedure' is mandatory.
While P0877 is a generic code for "Transmission Fluid Pressure Sensor/Switch 'D' Circuit Low," on a 2016-2021 Mazda CX-3, it has a very specific meaning. Mazda defines it as "Oil pressure switch No. 4 (oil pressure switch B) stuck on". This means the Transmission Control Module (TCM) has detected that a specific hydraulic pressure switch inside the transmission is not operating correctly, likely due to being physically stuck. This is not just an electrical circuit fault; it's a component failure caused by contamination within the transmission fluid, as stated by Mazda.

What's Unique About the 2016-2021 Mazda CX-3

The Mazda CX-3, along with other models using the SKYACTIV-Drive 6-speed automatic transmission (model FW6A-EL), has a well-documented issue with this code. Mazda has issued multiple Technical Service Bulletins (TSBs) acknowledging that contamination in the transmission fluid can cause internal pressure switches to stick. Unlike a simple external sensor replacement, this problem requires accessing the internal valve body, making the repair more involved than on many other vehicles where a pressure sensor might be externally mounted.

Diagnostic Flowchart

Tap your situation to follow the diagnostic path that matches what you're seeing on this vehicle.

Did your OBD-II scanner show P0877 alongside codes like P0842 or P0872?
Are you comfortable removing the transmission oil pan and draining the fluid?
→ Purchase Switch Kit FZ01-21-2J0B ($80-$150), Strainer FZ01-21-500, and 4 quarts of ATF FZ fluid to perform TSB #05-002-23.
→ Take it to a shop. Expect $350-$650 in labor to replace the internal pressure switches, filter, and fluid per TSB #05-002-23.
Have you inspected the transmission fluid level and its overall condition?
→ The internal pressure switches are likely failing. Replace Switch Kit FZ01-21-2J0B and reseal the pan with FIPG sealant.
→ Check the fluid. Contaminated fluid causes these switches to stick. Prepare for a fluid, filter, and switch replacement.
→ Scan the vehicle to confirm P0877. Do not drive far if experiencing harsh shifts or limp mode to avoid damage.
Professional service recommended: The repair requires removing the transmission oil pan to access internal components (the valve body and pressure switches), which can be complex and messy. Professional service is recommended to ensure it's done correctly, including the subsequent 'Initial Learning Procedure' for the transmission.

Symptoms You May Notice

  • Check Engine Light is on
  • Automatic Transaxle (AT) warning light is on
  • Harsh or delayed gear shifts
  • Vehicle may enter "limp mode," getting stuck in a single gear
  • Transmission slipping between gears
  • Erratic RPM behavior
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the entire valve body
  • Replacing the entire transmission
  • Assuming it is a simple external sensor or wiring issue

Most Likely Causes

  1. Stuck/Failed Internal Transmission Oil Pressure Switches 🔴 High Probability → Shop Engine Oil Pressure Switch Mazda TSBs state this is a known issue caused by contamination in the transmission fluid that causes the switches (Switch A and Switch B) on the valve body to stick.
    How to confirm: A professional technician will confirm by scanning for P0877 and its common companions (P0842, P0847, P0872, P0780, P1738). Diagnosis is primarily based on the presence of these codes as described in Mazda TSB #05-002-23.
    Typical fix: Replace both Oil Pressure Switch A and Oil Pressure Switch B, which are located on the transmission's internal valve body. This also requires draining the fluid, removing the oil pan, and refilling with fresh fluid. Often the transmission strainer/filter is replaced at the same time.
    Est. part cost: $100-$200 for the set of switches and new fluid.

Rare But Worth Checking

  • Wiring Harness or Connector Issue: While the TSB points to the switches, damage to the internal wiring harness leading to the switches could cause similar symptoms. This is typically checked during the switch replacement.
  • Faulty Transmission Control Module (TCM): → Shop Transmission Assembly A failing TCM is a rare possibility. The TSB for the CX-3 prioritizes replacing the switches over reprogramming or replacing the TCM, making it an unlikely root cause. However, since the TCM is integrated into the valve body on the FW6A-EL transmission, a major failure could require replacing the entire unit.

Diagnosis Steps

  1. Verify the Check Engine Light and AT warning light are on.
  2. Use an OBD-II scanner capable of reading manufacturer-specific codes to confirm P0877 is present. Check for any other codes from the common group (P0842, P0847, P0872, P0780, P1738).
  3. Refer to Mazda TSB #05-002-23, which confirms the likely cause is stuck pressure switches for this vehicle.
  4. Check the transmission fluid level and condition. While low or dirty fluid can cause issues, the TSB indicates a component failure is the direct cause of this code.
  5. Plan for the replacement of the internal oil pressure switches. This involves draining the transmission fluid and removing the transmission oil pan.
  6. Visually inspect the wiring to the switches and valve body once the pan is removed.
  7. Replace both Oil Pressure Switch A and Oil Pressure Switch B.
  8. Consider replacing the transmission strainer (filter) while the pan is off, especially if there is visible debris.
  9. Reinstall the transmission oil pan with new sealant (Form-in-Place Gasket) as required by Mazda.
  10. Refill the transmission with the correct type and amount of Mazda SKYACTIV-Drive ATF FZ fluid.
  11. Clear the trouble codes and perform the "Initial Learning Procedure" as specified in the workshop manual to reset transmission adaptations.
  12. Perform a test drive to ensure the issue is resolved.

Parts You'll Likely Need

  • Transmission Oil Pressure Switch Kit (A and B) (OEM #FZ01-21-2J0B (supersedes FZ01-21-2J0A)) — This is the component kit that fails due to contamination, as identified in Mazda's TSBs. It contains both required switches.
    Trusted brands: Mazda OE
    OEM price range: $80-$150
    Aftermarket price range: $50-$100
  • Mazda SKYACTIV-Drive Automatic Transmission Fluid (ATF FZ) (OEM #0000-FZ-113E-01) — The transmission must be drained to perform the repair and refilled with approximately 3.5-4 quarts of the correct OEM fluid.
    Trusted brands: Mazda OE
    OEM price range: $15-$25 per quart
    Aftermarket price range: $10-$20 per quart
  • Transmission Oil Strainer / Filter (OEM #FZ01-21-500) — Since the cause is contamination, it is highly recommended to replace the internal filter when the oil pan is removed.
    Trusted brands: Mazda OE
    OEM price range: $45-$60
    Aftermarket price range: $25-$45
  • Transmission Oil Pan Sealant — The oil pan must be removed and requires a new bead of Form-in-Place Gasket (FIPG) sealant upon reinstallation to prevent leaks. Mazda does not use a pre-formed gasket for this pan.
    Trusted brands: Permatex Ultra Black, Mazda OE Silicone Gasket
    OEM price range: $20-$30
    Aftermarket price range: $10-$20

Related Codes That Often Appear With This One

  • P0842 — Relates to Oil Pressure Switch No. 1 (Switch B) stuck on, part of the same system.
  • P0847 — Relates to Oil Pressure Switch No. 2 (Switch A) stuck on, part of the same system.
  • P0872 — Relates to Oil Pressure Switch No. 3 (Switch A) stuck on, part of the same system.
  • P0780 — A general code for a gear shifting malfunction, triggered by the failure of the pressure switches.
  • P1738 — A Mazda-specific code for an automatic transaxle internal malfunction, which is set because the pressure switches are not responding correctly.

Technical Service Bulletins (TSBs) & Recalls

  • 05-002-23: CHECK ENGINE LIGHT AND A/T WARNING LIGHT ON WITH DTCS (P0842, P0847, P0872, P0877, P0780, P1738) STORED IN TCM MEMORY. This is the most current TSB describing the cause and repair procedure.
  • 05-002-15: An earlier version of the TSB, also covering the same set of codes and cause, which has since been superseded by 05-002-23.

Platform-Specific Known Issues

  • The SKYACTIV-Drive 6-speed automatic transmission (FW6A-EL) in this vehicle is subject to TSB #05-002-23, which specifically identifies P0877 as being caused by internal pressure switches sticking due to contamination.
  • This is not an isolated issue for the CX-3; it affects a wide range of Mazda vehicles from 2012 onwards that use the same family of transmissions.

Mechanic-Grade Diagnostic Values

  • Automatic Transmission Fluid (ATF) Temperature for Initial Learning — expected: 60–110° C (140–230° F). Failure: The initial learning procedure will abort or fail to start if the ATF temperature is outside this range.

Hidden / Shadow Codes Worth Checking

  • P0780: Gear Shifting Malfunction. This is a general performance code that is set as a direct result of the pressure switches failing to report correct pressures, preventing the TCM from confirming proper gear changes. (see via Standard OBD-II scanner capable of reading transmission codes.)
  • P1738: Automatic Transaxle Internal Malfunction. This is a Mazda-specific code that accompanies the pressure switch codes, reinforcing that the fault is internal to the transmission assembly. (see via Standard OBD-II scanner capable of reading manufacturer-specific (P1xxx) codes.)

Scan Tool Commands That Help

  • Manual Procedure (No Scan Tool): Initial Learning Procedure — Required after replacing the valve body or the internal pressure switches to allow the TCM to relearn the hydraulic response times of the new components. This procedure calibrates the clutch application pressures. The procedure will not work if ATF temperature is outside the 60-110°C range. The steps must be followed exactly.
  • Mazda Modular Diagnostic System (M-MDS): Initial Learning — This is the dealer/shop method to initiate the same relearn process required after replacing the pressure switches. It is a menu-driven function within the TCM service routines.

Wiring & Ground Locations

  • TCM (Transmission Control Module) — Integrated into the control valve body assembly, inside the transmission oil pan.. The TCM is a 'mechatronic' unit, combined with the valve body. This means there are no external wiring harnesses or connectors between the TCM and the pressure switches. This architecture is why a 'circuit low' code almost always points to an internal component failure (the switch) rather than an external wiring problem.
  • Pressure Switches A and B — Bolted directly onto the control valve body, inside the transmission oil pan.. These are the components that fail. Their internal location necessitates removing the transmission pan for access, making the repair more complex than an external sensor.

OEM Part Supersession History

  • FZ01-21-2J0AFZ01-21-2J0B — Component revision. The TSBs indicate Mazda implemented changes to reduce contamination issues, which may be reflected in the updated part.

Model Year Variations Within This Range

  • 2017-2021: For the 2017 model year, Mazda introduced G-Vectoring Control (GVC), which provides more integrated control over the engine, transmission, and chassis to improve handling. However, the underlying FW6A-EL transmission hardware and the specific P0877 fault remained the same. This software/dynamics change does not alter the diagnosis or repair procedure for the pressure switch failure.
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 Apr 30, 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 OBD-II Code P0877 for:
  • Mazda CX-3: 201620172018201920202021
In this article
🧭 Diagnostic Flowchart
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