01 P0036 H02S heater control circuit (Bank 1 sensor 2) • 02 How To Use Engine Braking in Automatic Transmission • 03 Experts Warn Ignoring A Weak Ignition Coil Could Leave Your… • 04 This Tiny Light On Your Dashboard Could Be The Difference B… • 05 Experts Warn Repeating This Small Mistake Can Lead To Sudde… • 06 10 Engine-Killing Behaviors Every Car Owner Must Avoid • 07 The Complete Guide to Injector Nozzles: Parts, Problems, an… • 08 Engine Knock: Causes, Prevention, and Maintenance • 09 Electric and Hybrid Vehicle Buying Guide: Everything You Ne… • 10 This Is How to Fix a Car That Won’t Start After Replacing t… •

DTC codes / Mazda codes / P1251

P1251 · MazdaAir Mixture Solenoid Circuit

P1251 on a Mazda indicates that the powertrain control module (PCM) has detected an electrical fault in the air mixture solenoid circuit, which is used to control a bypass air path or mixture control valve. The PCM monitors the solenoid's command and feedback circuit and sets this code when the expected current or voltage is outside the normal range.

SystemPowertrain
Code typeMazda specific
SeverityMedium
Fix difficultyIntermediate
AreaFuel and air metering (injector circuits)

Symptoms you may notice

  • Illumination of the check engine light, often with no other noticeable symptoms
  • Rough or unstable idle, especially when the engine is cold
  • Hesitation or stumble during light acceleration
  • Poor fuel economy or rich/lean fuel smell from the exhaust
  • Occasional stalling when coming to a stop
  • Failed emissions test due to incorrect air-fuel mixture

Common causes, most likely first

  1. Faulty air mixture solenoid (open or shorted coil)
  2. Damaged or corroded wiring harness or connector at the solenoid
  3. Vacuum leaks in the air mixture control system hoses
  4. Carbon buildup or mechanical sticking inside the solenoid valve
  5. PCM driver circuit failure (rare but possible)
  6. Blown fuse or poor ground connection for the solenoid circuit

How to diagnose and fix it

  1. Perform a visual inspection of the solenoid, its connector, and vacuum hoses for damage or disconnection
  2. Check the solenoid's electrical resistance with a multimeter and compare to specification
  3. Test for battery voltage and ground at the solenoid connector with the key on
  4. Inspect the wiring harness for chafing, corrosion, or loose pins between the solenoid and PCM
  5. Clean or replace the air mixture solenoid if electrically or mechanically faulty
  6. Clear the code and perform a drive cycle to verify the repair
  7. If the code persists, diagnose the PCM driver circuit with an oscilloscope or scan tool bidirectional controls

What Mazda techs check before replacing the solenoid

  • A stuck-open or leaking vacuum hose to the air mixture solenoid can mimic a failed solenoid and set P1251 without any electrical fault.
  • Carbon buildup inside the solenoid valve is common on higher-mileage Mazdas and can cause intermittent sticking that only shows up during cold starts.
  • The PCM may set P1251 if the solenoid's feedback signal is missing even when the coil is good, so always check the signal wire before condemning the part.
  • After replacing the solenoid, some Mazda models require an idle relearn procedure to prevent a lingering rough idle and false repeat codes.
  • A weak battery or poor ground can cause voltage spikes that trigger P1251 intermittently, so check charging system health before deep circuit testing.

Can I keep driving with P1251?

You can usually drive the vehicle short distances to a repair shop, but avoid heavy acceleration, towing, or long trips because a faulty air mixture solenoid can cause poor fuel economy and increased emissions. If the engine stalls frequently or runs very rough, stop driving and have it towed to prevent safety risks.

Guidance is general and written for Mazda vehicles. Exact tests and values vary by model, so confirm the fault before replacing parts.

Running on fumes Free guides aren't free to make. Top up the tank. Any amount, one time. Fuel the Garage