P2187 Mazda Code: System Too Lean at Idle Meaning and Checks
6 min read · by Nicole Bennett · Last updated: November 25, 2026
P2187 Mazda codes mean the bank 1 air-fuel mixture runs too lean only at idle, and the engine computer cannot add enough fuel to correct it. The code is generic, so the same meaning applies on a Mazda as on other makes.
Most cases come from unmetered air, such as a cracked hose or a leaking gasket. Find the leak with a smoke test or fuel trim data before you replace a sensor.
What the P2187 Code Means
P2187 is a generic OBD-II code named System Too Lean at Idle (Bank 1), which sets only when the lean condition appears at idle.
According to Kelley Blue Book’s P2187 page, the computer first tries to add fuel to fix a lean mixture. The code sets only when those adjustments become too large, or when the engine cannot reach the correct ratio at all.
The carwhere summary describes the same condition in more detail. The idle fuel correction reaches its rich-side limit because the upstream oxygen sensor keeps reading lean. At higher engine speeds the mixture usually looks closer to normal, which is why the code is tied to idle.
KBB’s page has no make-specific note, and it says nothing specific about Mazda. The causes below apply to the generic code, so check the freeze frame and fuel trims on the car in front of you. The fault logic is shared, but the test points change, so check P2187 Ford too.

Symptoms of a P2187 Mazda Code
The check engine light comes on in almost every case, according to KBB. The drivability problems that come with it mostly show up at idle and during starting.
- Check engine light
- Rough or unstable idle
- A high idle or hard starts
- Misfires at low speed
- A hissing sound from the engine bay
- Possible stalling at stops
The hissing sound is the clue that matters most. The carwhere summary lists it among the symptoms, and vacuum leaks are the cause the same summary names first for a lean idle.
Common Causes of a P2187 Mazda Code
Vacuum leaks are the most common cause across the sources. KBB lists them among its causes, and carwhere calls them the leading suspect, since unmetered air has the largest effect at idle.
The carwhere list starts with a cracked hose or intake gasket, followed by a faulty PCV valve or hose, a leaking brake booster hose, and a dirty or faulty mass airflow sensor. An exhaust leak upstream of the bank 1 sensor and low fuel pressure come last.
KBB’s list also includes faulty mass airflow, oxygen or air-fuel ratio sensors, a weak fuel pump and a clogged fuel filter. The thefinalmilkman guide adds a stuck purge or EVAP valve as a possible cause, which makes the EVAP system worth a look when the leak test is clean.
The sources do not rank the sensors and fuel parts the same way. Because a leak is the cause the sources name most often, the leak search should come before any new sensor. Shops often compare notes across makes for this code, and P2187 Kia is a good reference.
How to Diagnose a P2187 Mazda Code
The useful test separates a vacuum leak from a sensor or fuel problem. The fuel trims at idle and at higher RPM give the first clue.
- Scan for all codes and save the freeze frame data before you clear anything.
- Compare the fuel trims at idle and at 2,500 rpm. If the trims improve at higher speed, a vacuum leak is the likely cause.
- Smoke-test the intake, the PCV system and the brake booster line.
- Inspect the intake boot and every hose for cracks.
- Check the mass airflow sensor readings at idle.
- Check fuel pressure only if no leak is found.
The thefinalmilkman guide describes the same pattern: a high positive trim at idle that returns to normal at higher RPM points to a vacuum leak. Carwhere adds a warning that the code names a failed check, not necessarily the faulty part. While you are working on this vehicle, P2135 Mazda covers a related problem worth checking.

Is It Safe to Drive With a P2187 Code?
KBB rates the code as generally moderately serious. It says that driving with the code for a long time can cause internal engine damage, so the car should be checked soon rather than left alone.
Carwhere calls the car usually drivable in the short term, though the idle may be rough, and it says to diagnose within days. The thefinalmilkman guide uses the caution label and says to drive gently and get it looked at soon.
In practice, a short drive to a shop is reasonable. KBB advises avoiding unnecessary driving, so errands and long trips should wait until the leak is found. A stall at a stop or a very rough idle is the point to stop driving and arrange a tow.
Repair Options and Avoiding Wasted Parts
Most repairs start with a leak fix, which can be a cracked hose, a brake booster line, a PCV part or an intake gasket. These are cheaper than a sensor, and they clear the lean condition at its source.
KBB warns that DIYers often replace a sensor that is not actually faulty. That mistake costs money and leaves the leak in place. Test first, then replace only the part the data points to.
KBB advises an expert repair for this code, because the inspection needs tools and engine knowledge. A shop with a smoke machine can find small leaks that are hard to see by eye. Doing this job more than once? Best Bluetooth OBD2 Scanners for Iphone covers tools that pay for themselves.
Frequently Asked Questions
Is P2187 on a Mazda a serious code?
It is rated moderately serious. KBB warns that long-term driving with the code can cause internal engine damage, so it should be diagnosed soon. The sources do not give Mazda-specific severity, because none of the pages read covered Mazda.
Can I drive to work with P2187?
A short drive is usually possible, according to carwhere, though the idle may be rough. KBB advises avoiding unnecessary driving, so a trip to work should be limited until the leak is found.
Is a vacuum leak the most common cause?
Vacuum leaks are the leading suspect in the carwhere summary, and KBB lists them among the causes. The reason is that unmetered air affects the mixture most at idle, which is where this code sets.
How do I tell a vacuum leak from a bad MAF sensor?
Compare the fuel trims at idle and at 2,500 rpm. Improvement at higher speed points to a vacuum leak, while a MAF fault is checked by verifying the MAF readings at idle, as the carwhere steps describe.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP2196 Mazda: Causes, Symptoms, Diagnosis, And Fixes
LearnP2138 Mazda: Causes, Symptoms, Diagnosis and Repair
LearnP2188 Mazda: Find the Cause of a Rich Idle and Avoid Unneeded Repairs
LearnP2187 Code: What It Means and How to Fix It
LearnP2008 Mazda: Diagnose the Intake Control System Fault
LearnP0128 Ram: Diagnose the Cause of a Cold-Running Engine