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 🎬 Helpful Videos 🛍️ Shop This Part

P3400 on 2018-2021 Mazda MAZDA6: Cylinder Deactivation System Malfunction Causes and Fixes

On a 2018-2021 Mazda6, code P3400 is most often caused by a Cylinder Deactivation Oil Control Valve that is clogged with plastic debris from an oil filter wrapper. The fix involves cleaning the oil passages and replacing the affected oil control valve(s), along with a fresh oil and filter change using a quality OEM filter.

14 minutes to read 2018-2021 Mazda MAZDA6
Most Likely Cause
Clogged Cylinder Deactivation Oil Control Valve (OCV)
Difficulty
3/5
Est. Time
2.2 hrs
DIY Doable?
✅ Yes
Shop Labor
$300 – $700
Parts Price
$120 – $350
⚠️ Drivable, but... — Yes, but it's not recommended for extended periods. The cylinder deactivation system will be disabled, leading to reduced fuel economy, and you may experience rough running or lack of power. Ignoring the issue could lead to more significant engine problems if oil circulation is compromised or if the underlying cause is a mechanical failure like a broken rocker arm.
Key Takeaways
  • P3400 on a 2018-2021 Mazda6 almost always points to a problem with the cylinder deactivation system's oil supply.
  • The most likely culprit, confirmed by Mazda TSBs, is plastic debris from an oil filter wrapper clogging one or both of the Cylinder Deactivation Oil Control Valves.
  • Diagnosis should start with inspecting these valves for debris before considering other causes.
  • The fix involves cleaning the oil passages, replacing the clogged valve(s), and performing an oil change with a quality OEM filter to prevent recurrence.
  • In rare cases, this code can signal a more serious mechanical problem like a broken rocker arm, especially if accompanied by loud engine noise and misfire codes.
The code P3400 on a 2018-2021 Mazda6 indicates a "Cylinder Deactivation System Malfunction." This is a manufacturer-specific code, meaning the powertrain control module (PCM) has detected a problem with the system that shuts down two of the four cylinders (cylinders 1 and 4) during light-load cruising to save fuel. The system relies on precise oil pressure, controlled by two oil control valve (OCV) solenoids, to disengage the rocker arms for those cylinders. When the PCM commands the system to change modes and the expected change in engine operation doesn't occur, it triggers the P3400 code and illuminates the Check Engine Light.

What's Unique About the 2018-2021 Mazda MAZDA6

The 2.5L Skyactiv-G engine in this generation of Mazda6 was updated in 2018 to include cylinder deactivation. 🎬 Watch: How Mazda's cylinder deactivation system works A significant, documented issue on these engines is that plastic debris from the oil filter's packaging can break off during an oil change, travel through the engine, and clog the small passages and filters of the Cylinder Deactivation Oil Control Valves. The TSBs explain that debris can enter the center of the oil filter when a technician pokes a hole in the filter's plastic wrapper to remove it, which then gets circulated with the oil. This specific failure mode is so common that Mazda has issued multiple Technical Service Bulletins (TSBs) guiding technicians to look for this exact problem first.

Diagnostic Flowchart

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

What is the current engine oil level and are there other trouble codes?
When you remove the Cylinder Deactivation Oil Control Valves, is there plastic debris?
→ Use a vacuum device to remove debris from the cylinder head ports (TSB SA-047-21). Replace the OCV (PYFA-14-440C, $120-$160) if damaged, and change oil.
→ Test the OCV solenoid coil resistance with a multimeter; it should be 6.9-7.5 Ohms. If good, inspect the wiring and connectors for damage.
→ Top off or change the oil using a genuine Mazda filter (1WPE-14-302, $10-$15). The cylinder deactivation system requires proper oil pressure to function.
→ Remove the valve cover and inspect cylinders 1 and 4 for fallen or broken rocker arms (TSB SA-022-19). This is a major mechanical repair ($500-$2500+).

Symptoms You May Notice

  • Check Engine Light is on
  • Rough or uneven idle
  • Lack of engine power, especially during gentle acceleration
  • Noticeable engine noise or ticking
  • Reduced fuel economy
  • Engine vibration or shudder when the system attempts to switch modes
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing spark plugs or ignition coils. While these can cause rough idle, they are not the primary cause for a P3400 code, which is specific to the cylinder deactivation hydraulic circuit.
  • 🎬 See this walkthrough on fixing the P3400 error code
  • Replacing the OCVs without cleaning the oil passages. If debris is left in the cylinder head, it will simply clog the new valves, and the code will return.

Most Likely Causes

  1. Clogged Cylinder Deactivation Oil Control Valve (OCV) 🔴 High Probability → Shop Engine Cylinder Deactivation Solenoid Mazda TSBs SA-047-21 and SA-061-20a directly state that plastic debris from the oil filter wrapper can enter the engine during oil changes and plug the OCV. This is the most widely documented cause for this specific code on this vehicle.
    How to confirm: Remove the front and rear cylinder deactivation oil control valves and visually inspect the mesh filters on their tips and the cylinder head ports for debris. The front OCV is on the front of the cylinder head; the rear OCV is on the firewall side.
    Typical fix: Remove debris from the oil passages, often with a vacuum device attached to a small hose. Replace the oil control valve if its filter is damaged. Perform an engine oil and filter change using a high-quality OEM filter to prevent recurrence.
    Est. part cost: $80-$150 per valve
  2. Low Engine Oil Level or Pressure 🟡 Medium Probability The cylinder deactivation system is operated by oil pressure. Any condition causing low oil level or pressure, such as leaks or infrequent oil changes, will prevent the system from working correctly.
    How to confirm: Check the engine oil level using the dipstick. If the level is correct, a technician can perform a manual oil pressure test to verify it is within specification.
    Typical fix: Top off or change the engine oil and filter. If pressure is still low, further diagnosis of the oil pump or for internal clogs is needed.
    Est. part cost: $40-$80 for oil and filter
  3. Fallen or Broken Rocker Arm ⚪ Low Probability → Shop Engine Rocker Arm TSB SA-022-19 points to internal mechanical failure, specifically a fallen or broken rocker arm in the valvetrain area for cylinders 1 and 4 (the ones that deactivate), as a cause for P3400, often accompanied by other codes like P0301, P0304, and P349B. A 2019 recall (3719F) also identified faulty PCM software on 2018-2019 models that could cause this failure.
    How to confirm: Remove the valve cover and visually inspect the rocker arms and valvetrain components for cylinders 1 and 4. 🎬 Watch: How to perform a rocker arm inspection This is often preceded by misfire codes and engine noise.
    Typical fix: This is a major mechanical repair. Depending on the extent of the damage, it could involve replacing the rocker arm, other valvetrain components, or the entire cylinder head. TSB SA-022-19 instructs technicians to contact the Technical Assistance Hotline for engine replacement authorization in some cases.
    Est. part cost: $500-$2500+

Rare But Worth Checking

  • Faulty Cylinder Head: Some 2018-2019 models with cylinder deactivation have been noted to have issues with cracked cylinder heads, which can cause a variety of engine performance problems, though not always directly triggering only a P3400.
  • Wiring Harness or Connector Issue: An open or short in the wiring circuit to one of the oil control valves can prevent it from operating, triggering the code. This is less common than the debris issue but should be checked if the valves themselves are clean.

Diagnosis Steps

  1. Check engine oil level and condition. Ensure the correct viscosity oil is being used. Top off or change if necessary.
  2. Scan the PCM for any other stored trouble codes to get more context (e.g., P0301, P0304, P349B).
  3. Following Mazda TSB SA-047-21, carefully remove the front and rear Cylinder Deactivation Oil Control Valves. The front OCV is on the front of the cylinder head, and the rear OCV is on the firewall side.
  4. Inspect the mesh filters on the tips of the valves for any plastic debris or sludge. Also inspect the ports in the cylinder head where the valves were seated.
  5. If debris is found, clean the passages thoroughly. The TSB suggests using a vacuum device like a brake bleeder with a small hose attached to suction out the debris. Replace the OCV if its screen is damaged.
  6. If no debris is found, test the OCVs themselves. Check the resistance of the solenoid coil with a multimeter. It should be approximately 6.9–7.5 Ohms at 68°F (20°C). You can also apply 12V power and ground to the terminals to verify the solenoid clicks and the internal spool valve moves.
  7. If the OCVs are clean and test good, inspect the wiring and connectors leading to the valves for damage, corrosion, or looseness.
  8. If codes for misfires (P0301, P0304) are also present, remove the valve cover and inspect the rocker arms for cylinders 1 and 4 to ensure they are intact and in place, per TSB SA-022-19.

Parts You'll Likely Need

  • Cylinder Deactivation Oil Control Valve (OCV) (OEM #PYFA-14-440C) — This valve is the component that gets clogged by debris, which is the most common cause of code P3400. There are two such valves (front and rear), and they are often replaced as a pair.
    Trusted brands: Mazda OE
    OEM price range: $120-$160
    Aftermarket price range: $80-$120
  • Engine Oil Filter (OEM #1WPE-14-302 (replaces PE01-14-302B)) — A critical part of the fix is to perform an oil change with a genuine Mazda filter to prevent re-contamination. The issue is often caused by debris from the aftermarket filter's plastic wrapper.
    Trusted brands: Mazda OE
    OEM price range: $10-$15
    Aftermarket price range: $5-$12

Related Codes That Often Appear With This One

  • P0301 — Indicates a misfire on Cylinder 1, which is one of the cylinders involved in the deactivation process. A mechanical issue like a stuck or fallen rocker arm can cause both codes.
  • P0304 — Indicates a misfire on Cylinder 4, the other cylinder involved in deactivation. TSB SA-022-19 lists this code alongside P3400 in cases of rough running and lack of power due to rocker arm failure.
  • P349B — This is another manufacturer-specific code for the cylinder deactivation system. TSB SA-022-19 shows it appearing with P3400 when a fallen rocker arm is the cause.

Technical Service Bulletins (TSBs) & Recalls

  • SA-047-21: The most current TSB, which supersedes previous versions. It details the issue of the CHECK ENGINE light on with DTC P3400 due to the cylinder deactivation oil control valve being plugged with plastic debris from the oil filter wrapper. It provides a clear diagnostic and cleaning procedure.
  • SA-061-20a: A superseded bulletin that also described P3400 caused by a plugged cylinder deactivation oil control valve from oil filter debris.
  • SA-022-19: Addresses a more severe mechanical failure. It covers rough idle, lack of power, and engine noise with DTCs P3400, P0304, and P349B, pointing to a fallen or broken rocker arm.
  • SA-015-19a: An earlier bulletin, also superseded, that instructed technicians to inspect for P3400 by first checking for fallen rocker arms and then inspecting the OCVs for debris.

Platform-Specific Known Issues

  • Mazda has issued multiple Technical Service Bulletins (TSBs), including SA-047-21, SA-061-20a, and SA-015-19a, specifically addressing code P3400.
  • The primary documented issue is plastic debris from the oil filter's protective wrapper entering the engine during an oil change and clogging the Cylinder Deactivation Oil Control Valve.
  • A less common but severe issue documented in TSB SA-022-19 involves fallen or broken rocker arms on the deactivating cylinders (1 and 4), which can also trigger P3400 along with misfire codes.

Mechanic-Grade Diagnostic Values

  • Cylinder Deactivation OCV Solenoid Connector Voltage — expected: Approximately 12 V (± 0.5 V) when commanded ON by a scan tool. Failure: No voltage or significantly lower voltage when commanded on indicates a wiring or PCM driver issue.

Scan Tool Commands That Help

  • Mazda M-MDS (or equivalent professional scan tool): Actuator Test / Bidirectional Control for Cylinder Deactivation Solenoid — Use this to functionally test the solenoid after verifying it is clean. A working solenoid will vibrate and make a clicking noise when commanded on, confirming the solenoid itself and its wiring are receiving the signal.

Real Owner Repair Stories

  • Mazdas247 Forum (2018 Mazda CX-5 Grand Touring (same engine and system as Mazda6)) — Sudden power loss into limp mode (engine won't rev past 2500 rpm) during acceleration, with 'Automatic braking system failure' message on dash. Reset by restarting the car.
    ❌ Tried (didn't work) Initial assumption was a faulty camera for the automatic braking system.
    ✅ What actually fixed it The dealer, guided by Mazda corporate, determined the cause was a dislodged rocker arm on cylinder #4 due to a momentary drop in oil pressure. The fix was not mechanical parts replacement but a PCM reprogram to prevent the oil pressure drop from occurring during cylinder deactivation transitions.

OEM Part Supersession History

  • PYFA-14-440APYFA-14-440C — Updated part design to improve reliability.
    Heads up: On some early 2018 models (built between Oct 2017 - Dec 2017) originally equipped with PYFA-14-440A, a separate SPACER (Part #PYFA-14-762A) must also be installed to fit the new PYFA-14-440C valve correctly.
  • PYFA-14-440PYFA-14-440C — Updated part design.

Model Year Variations Within This Range

  • 2018-2019: These model years were subject to Mazda Recall 3719F for faulty PCM software that could improperly control the cylinder deactivation system when switching modes, potentially causing a rocker arm to dislodge and lead to engine power loss or stalling.
  • 2018 (early production): Early production 2018 models may require an additional spacer part when replacing the original oil control valve (PYFA-14-440A) with the updated version (PYFA-14-440C).
Mazda CX-5 SkyActiv G Cylinder Deactivation for Better Fuel Economy
Mazda CX-5 SkyActiv G Cylinder Deactivation for Better Fuel Economy
Cylinder Deactivation | Mazda Canada
Cylinder Deactivation | Mazda Canada
Code P3400
Code P3400
HOW TO FIX P3400 OBD II ERROR CODE - Cylinder Deactivation System Fix
HOW TO FIX P3400 OBD II ERROR CODE - Cylinder Deactivation System Fix
Mazda CX 5 CX 3 Mazda 3 Mazda 6 Mazda 2 Skyactiv Valve Cover & Oil Control Valve Gasket replacement
Mazda CX 5 CX 3 Mazda 3 Mazda 6 Mazda 2 Skyactiv Valve Cover & Oil Control Valve Gasket replacement
Rocker Arm Inspection
Rocker Arm Inspection
4 Common Bad Rocker Arm Symptoms & Replacement Cost
4 Common Bad Rocker Arm Symptoms & Replacement Cost
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 P3400 for:
  • Mazda MAZDA6: 2018201920202021
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