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

P0638 on 2016-2018 Mazda CX-9: Throttle Actuator Control Range/Performance Fixes

On a 2016-2018 Mazda CX-9, code P0638 is most often caused by a throttle body that is sticking due to freezing temperatures, as documented in Mazda Technical Service Bulletins. The primary fix is a PCM software update that cycles the throttle valve after shutdown to clear moisture. If the issue persists or occurs in warmer weather, a dirty or failed throttle body is the next likely culprit.

15 minutes to read 2016-2018 Mazda CX-9
Most Likely Cause
Throttle Body Icing in Freezing Temperatures
Difficulty
3/5
Est. Time
1.2 hrs
DIY Doable?
🔧 Shop
Shop Labor
$150 – $850
Parts Price
$10 – $540
⚠️ Drivable, but... — You can drive, but the vehicle will likely have significantly reduced power (limp mode) and poor acceleration, making it unsafe for highway use or situations requiring normal engine response. It is intended to get you to a safe location or a repair shop, not for continued daily driving.
Key Takeaways
  • For 2016-2018 CX-9s, P0638 is strongly linked to a Mazda TSB regarding throttle bodies freezing in cold weather.
  • The first step for owners in cold climates with a pre-2018 model should be to check with a Mazda dealer about a PCM software update.
  • If not related to cold, the most likely causes are a dirty or failed throttle body assembly.
  • Driving with this code is not recommended for long distances or on highways due to the risk of sudden power loss.
  • The code is often accompanied by P2112, especially in freezing conditions.
The trouble code P0638 stands for "Throttle Actuator Control Range/Performance". This means the Powertrain Control Module (PCM) has detected a problem with the electronic throttle body. The PCM sends commands to a motor to open and close the throttle plate, letting air into the engine. When the actual position of the throttle plate doesn't match the position the PCM commanded, it sets code P0638 and turns on the check engine light.

What's Unique About the 2016-2018 Mazda CX-9

The 2016-2018 Mazda CX-9 with the 2.5L Turbo engine is specifically prone to this code in cold climates. Mazda issued Technical Service Bulletins (TSBs) acknowledging that condensed water in the intake system can freeze inside the throttle body when the vehicle is parked in sub-freezing temperatures. This ice can prevent the throttle plate from moving correctly on the next startup, immediately triggering the P0638 code and causing a lack of power. To resolve this, Mazda released a PCM software update designed to prevent freezing by moving the throttle valve at a specific time after the ignition is turned off. The TSB notes that with this update, the main relay may stay on for up to 90 minutes after shutdown.

Diagnostic Flowchart

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

What best describes the conditions when the P0638 code appeared?
Is your vehicle's VIN lower than the cutoff of JM3TC******220639?
→ Visit a Mazda dealer for a PCM software update under TSB #01-001-20-3650 to prevent throttle icing.
→ Check for code P2112. The throttle body may be damaged by ice and require replacement (OEM part PY8V-13-640, $366-$536).
When you remove the intake boot, is there heavy carbon buildup?
→ Clean the throttle body bore and plate ($10-$20), then perform a 1-minute on/off throttle relearn procedure.
→ Inspect wiring for damage. If intact, the throttle body assembly (PY8V-13-640) has likely failed internally and needs replacement ($366-$536).
→ Test and replace the weak battery, as low voltage can cause electronic throttle faults on this specific platform.
Professional service recommended: This fault can cause the vehicle to enter a 'limp mode' with severely reduced engine power, which can be a safety hazard in traffic. Diagnosing whether the issue is software, a dirty component, or a failed part requires specific tools and knowledge. The primary fix for the most common cause is a software update that can only be performed by a dealer or a properly equipped independent shop.

Symptoms You May Notice

  • Check Engine Light is on
  • Lack of power or significantly reduced acceleration
  • Vehicle enters 'limp mode'
  • Hesitation when accelerating
  • Engine may idle roughly or stall in some cases
  • Multiple other warning lights, such as for dynamic stability control or i-ACTIVSENSE, may illuminate as a result of the engine fault.
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the accelerator pedal position (APP) sensor. While the APP sensor tells the PCM what you want to do, the P0638 code specifically points to a problem with the throttle body's response, not the pedal's command.

Most Likely Causes

  1. Throttle Body Icing in Freezing Temperatures 🔴 High Probability → Shop Fuel Injection Throttle Body As documented in Mazda TSBs #01-001-20-3650 and #01-001-18-3419a, moisture can condense and freeze in the throttle body, restricting its movement. This specifically affects 2016-2018 CX-9 vehicles with VINs lower than JM3TC**220639 (produced before Jan. 8, 2018).
    How to confirm: The issue occurs specifically after the vehicle has been parked in temperatures below freezing. The code P2112 is often stored alongside P0638. Check for applicable TSBs with a Mazda dealer based on your vehicle's VIN.
    Typical fix: The official Mazda fix is to reprogram the PCM with updated software (using IDS 108.03 or later) that cycles the throttle valve after shutdown to prevent freezing. If the throttle body is already damaged by the ice, it may need replacement.
    Est. part cost: $0 (if only software under warranty) - $550
  2. Dirty or Carbon-Clogged Throttle Body 🟡 Medium Probability → Shop Fuel Injection Throttle Body Direct injection engines like the SkyActiv-G 2.5T can be prone to carbon buildup in the intake tract over time, as fuel is not washing over the intake valves 🎬 See a teardown of carbon deposits on the 2.5T engine. and throttle plate.
    How to confirm: Visually inspect the throttle plate and bore for a layer of black carbon soot that could restrict movement. This can be done by removing the air intake hose connected to the throttle body.
    Typical fix: Clean the throttle body bore and plate with a dedicated throttle body cleaner and a soft brush, being careful not to spray cleaner directly on the valve shaft seals. A throttle position relearn procedure is recommended after cleaning.
    Est. part cost: $10-$20
  3. Failed Throttle Body Assembly 🟡 Medium Probability → Shop Fuel Injection Throttle Body
    How to confirm: If the throttle body is clean and the PCM is updated (or the issue occurs in warm weather) but the problem persists, the internal electric motor or position sensor has likely failed. A technician can use a scan tool to command the throttle open and closed to test its response. A user on Mazdaspeeds.org described a P0638 code where the throttle body failed to respond to pedal input but still cycled on shutdown, indicating an internal failure.
    Typical fix: Replace the entire throttle body assembly. 🎬 Watch: Step-by-step guide to replacing the CX-9 throttle body.
    Est. part cost: $366-$536
  4. Wiring or Connector Issue ⚪ Low Probability
    How to confirm: Visually inspect the wiring harness and connector going to the throttle body for any signs of damage, corrosion, frayed wires, or loose pins. Rodent damage to wiring in the engine bay is a possible cause. Test for proper voltage and ground at the connector using a multimeter and the vehicle's wiring diagram.
    Typical fix: Repair the damaged section of the wiring harness or clean/replace the connector. Applying dielectric grease to the connector can help prevent future moisture intrusion.
    Est. part cost: $5-$100

Rare But Worth Checking

  • Powertrain Control Module (PCM) Failure: → Shop Engine Control Module (ECM) This is very rare. Before condemning the PCM, all other possibilities, including the throttle body, wiring, and software updates, must be exhaustively ruled out.
  • Weak or Failing Battery: On modern platforms, a battery that is failing or has been recently drained can cause a host of random electronic issues and codes. One owner on a forum experienced P0638 immediately after the battery died hard and was replaced, suggesting a potential link to voltage irregularities during the failure or replacement.

Diagnosis Steps

  1. Scan the PCM for trouble codes. Note if P0638 is present along with P2112, especially if the ambient temperature is near or below freezing.
  2. Check if the vehicle is subject to Mazda TSB #01-001-20-3650 or #01-001-18-3419a by checking the VIN. If applicable, the primary repair is to have a Mazda dealer perform the PCM software update.
  3. If the issue is not related to freezing, perform a thorough visual inspection of the throttle body's electrical connector and wiring for any damage, corrosion, or rodent activity.
  4. Remove the intake boot and inspect the throttle body for heavy carbon buildup or physical obstructions.
  5. If dirty, clean the throttle body thoroughly with appropriate cleaner, taking care not to spray the shaft seals directly. 🎬 Watch: How to safely clean a SkyActiv throttle body. Reinstall and perform a throttle relearn procedure. A common procedure involves turning the ignition on (engine off) for 1 minute, then off for 1 minute, before starting the engine and letting it idle to operating temperature.
  6. Using an advanced scan tool, monitor the live data for commanded vs. actual throttle position. Actuate the throttle with the scan tool to check for smooth operation.
  7. If the throttle body fails to respond correctly after being cleaned and having verified good wiring and power, it is likely faulty and needs replacement.
  8. Check battery health. A weak or old battery can cause various electronic faults on this platform.

Parts You'll Likely Need

  • Throttle Body Assembly (OEM #PY8V-13-640) — This is the most common hardware failure for this code, especially if the PCM software update for the freezing issue does not resolve the problem or if the internal motor/sensor has failed. This part is shared with other 2.5T models like the Mazda6 and CX-5.
    Trusted brands: Mazda (OEM)
    OEM price range: $366-$536
    Aftermarket price range: $120 (Used) - $350

Related Codes That Often Appear With This One

  • P2112 — This code, 'Throttle Actuator Control System - Stuck Closed', is explicitly mentioned in Mazda's TSBs #01-001-20-3650 and #01-001-18-3419a alongside P0638. It often appears when the throttle plate is frozen shut by ice.

Technical Service Bulletins (TSBs) & Recalls

  • 01-001-20-3650: Lack of power with DTCs P0638:00 and/or P2112:00 after parking in freezing temperatures.
  • 01-001-18-3419a: Superseded by the above TSB, this bulletin first described the throttle body freezing issue, the cause (condensed water), and the PCM software update fix. It notes the update may keep the main relay on for up to 90 minutes post-shutdown.

Platform-Specific Known Issues

  • A primary known issue is documented in Mazda TSBs #01-001-20-3650 and #01-001-18-3419a, where moisture freezes in the throttle body in cold weather, causing P0638 and/or P2112. The fix involves a PCM software update and applies to vehicles produced before January 8, 2018.
  • The 2.5L SkyActiv-G Turbo engine used in 2016-2018 models has a known issue with potential cylinder head cracking, though this is unrelated to the P0638 code, it is a significant issue for the platform.

Mechanic-Grade Diagnostic Values

  • Throttle Position Sensor (TPS) Voltage Sweep — expected: A smooth, linear increase from approximately 0.5V-0.7V at closed throttle to 4.5V-5.0V at wide-open throttle.. Failure: Any voltage spikes, dropouts, or erratic readings during the sweep indicate a faulty sensor.
  • Throttle Actuator Motor Power Supply — expected: Approximately battery voltage (12.6V) at the actuator's power feed pin with key on, engine off.. Failure: A voltage reading below 11V suggests a problem with the power supply circuit, such as a wiring or fuse issue.
  • Throttle Actuator Motor Winding Resistance — expected: Typically between 2 and 5 Ohms when measured across the motor pins.. Failure: A reading that is significantly higher (open circuit) or lower (short circuit) than the typical range indicates a failed motor.
  • Scan Tool Live Data - Throttle Position (TP) — expected: At idle with the engine off, a reading of around 19% is normal. At wide-open throttle, it should read around 77-80%.. Failure: Values that are stuck, do not change with pedal input, or do not match the commanded position indicate a fault.

Hidden / Shadow Codes Worth Checking

  • P0638:00: The ':00' is a sub-code or 'failure type code' used by Mazda. In the context of TSB 01-001-18, it specifies 'Throttle valve actuator control range/performance problem' and is noted as a 'one drive cycle DTC', meaning it can be set very quickly upon detecting the fault. (see via A professional scan tool, such as the Mazda IDS, will display these sub-codes. Basic OBD-II readers may only show the primary P0638 code.)

Scan Tool Commands That Help

  • Mazda IDS (Integrated Diagnostic System): Module Reprogramming — This is the specific function required to apply the software update outlined in TSBs 01-001-20-3650 and 01-001-18-3419a to fix the throttle body freezing issue. This can only be performed by a dealer or a shop with a subscription and appropriate hardware.
  • N/A (Manual Procedure): Throttle Body Idle Relearn Procedure — This procedure is necessary after cleaning the throttle body, replacing it, or disconnecting the battery. It allows the PCM to learn the new closed-throttle position. A common method involves turning the ignition on (engine off) for one minute, off for one minute, then starting the engine and allowing it to idle until it reaches operating temperature (radiator fans cycle on).
  • Advanced Scan Tool (e.g., Mazda IDS): Graphing Live Data PIDs (TP1/TP2, APP1/APP2) — For intermittent issues or to confirm a failing sensor, a technician can graph the throttle position sensor PIDs (TP1, TP2) against the accelerator pedal position sensor PIDs (APP1, APP2). A smooth pedal application should result in smooth, corresponding lines on the graph. Any dropouts or glitches in the TP lines would indicate a failing throttle body.

Wiring & Ground Locations

  • Throttle Body Assembly & Connector — The throttle body is located between the air intake tube and the plastic intake manifold. It is secured by five 8mm bolts. Crucially, one of the five bolts is located on the back side, underneath the main body, and is difficult to see.. The electrical connector has a red locking tab that must be pulled up before the main release tab can be depressed to remove it. Because the throttle body is mounted to a plastic intake manifold, it relies entirely on the wiring harness for its ground connection. A poor ground connection in the harness or at a chassis ground point can cause erratic behavior and trigger a P0638 code.

OEM Part Supersession History

  • PY8V-13-640PY8V-13-640 (No supersession found) — N/A
    Heads up: This part number is also used on other 2.5L Turbo Mazda models, which is useful for sourcing used parts. Interchange confirmed for: 2018-2021 Mazda6 (Turbo), 2019-2023 Mazda CX-5 (Turbo), and 2016-2021 Mazda CX-9.

Model Year Variations Within This Range

  • 2016-2018 (pre-Jan 8, 2018 production): Vehicles with VINs lower than JM3TC**220639 are susceptible to the throttle body freezing issue and are eligible for the corrective PCM software update per TSB 01-001-18. Vehicles produced after this date should have the updated software from the factory.
Mazda CX-9 Spark Plug & Throttle Body Replacement
Mazda CX-9 Spark Plug & Throttle Body Replacement
Remove & Replace: Thermostat + Coolant & Clean Throttle Body 2.0 2.5L 2014 to 2020 Mazda 3, 6, CX-5
Remove & Replace: Thermostat + Coolant & Clean Throttle Body 2.0 2.5L 2014 to 2020 Mazda 3, 6, CX-5
Cleaning the Intake Valves and Turbo on a Mazda CX-9 2.5 Turbo.  Did it have carbon deposits???
Cleaning the Intake Valves and Turbo on a Mazda CX-9 2.5 Turbo. Did it have carbon deposits???
locating a throttle body and properly cleaning for beginners - 2006 mazda 6
locating a throttle body and properly cleaning for beginners - 2006 mazda 6
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 P0638 for:
  • Mazda CX-9: 201620172018
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