P2187 Hyundai Code: Lean Idle Meaning, Causes and Fixes
6 min read · by Nicole Bennett · Last updated: November 25, 2026
A P2187 Hyundai code means the air-fuel mixture is too lean while the engine is idling. The engine computer first tries to add fuel, and the code sets only when that correction grows too large or the ratio still cannot be reached.
The check engine light is usually the first sign, often with a rough or high idle. Get it diagnosed promptly, because a quick sensor swap often misses the real cause.
What P2187 Means on a Hyundai
P2187 is a generic OBD-II code for a lean air-fuel mixture at idle, which means there is too much air and not enough fuel. According to KBB’s P2187 guide, the computer first tries to add fuel to correct the mixture before it sets the code.
The idle condition is what separates this code from a general lean reading. Idle is when the engine takes in the least air, so a small leak or a weak fuel supply has a bigger effect on the mixture there.
Short-term fuel trim is the number that shows this correction. A positive value means the computer is adding fuel because the mixture reads lean, and that is the condition this code describes.
Hyundai does not appear in the general reference used for this guide, so the sensor positions, test values and fuel pressure figures for your engine should come from Hyundai service information. P2187 BMW walks through the same code on another vehicle, which helps if the usual fix does not work.
Common Causes Behind an Idle Lean Code
KBB lists faulty mass airflow, oxygen or air-fuel ratio sensors, vacuum leaks, a weak fuel pump, an exhaust leak and a clogged fuel filter as the common causes. Each one lets the idle mixture drift lean in a different way.

- A faulty mass airflow, oxygen or air-fuel ratio sensor
- Vacuum leaks at intake hoses, clamps or gaskets
- A weak fuel pump
- An exhaust leak
- A clogged fuel filter
Vacuum leaks deserve early attention at idle. A leak adds air that the sensors do not meter, and the effect is largest when total airflow is lowest, so a small crack can cause a lean idle that is hard to notice while driving.
Sensors are a common suspect, but a sensor reading correctly does not prove the mixture is right. If an air leak is present, the sensor can measure the air accurately and the mixture still runs lean, so the sensor and the air path have to be checked together. The same code can behave differently on other vehicles, so it helps to compare it with P2187 Mercedes.
Symptoms and Whether It Is Safe to Drive
The check engine light is almost always on with this code. The idle often shows the problem through misfiring, hard starting, or a rough or high idle.
KBB notes that reduced engine power is possible, and that some drivers notice no symptoms at all. A quiet car does not mean the mixture is correct, so the light should still be taken seriously.
KBB calls the code moderately serious. You can usually drive to a repair shop, but avoid unnecessary driving, because prolonged operation can cause internal engine damage.
If the idle changed after recent work, such as an intake hose repair, a clamp job or an air filter change, note it. Recent work is often the quickest clue, because it can disturb a hose or clamp that was not reseated properly.
How to Narrow Down the Cause
Confirm the lean condition with live fuel trim data at idle before you buy a sensor. Short-term trim at idle shows whether the computer is adding fuel, and the Wikipedia OBD-II PID reference describes the short-term trim range and what its positive values mean.

- Read the freeze frame data from the moment the code set, along with engine speed and load.
- Check short-term and long-term fuel trim at idle with the engine warm, and note how far they move.
- Look for vacuum leaks at intake hoses, the PCV hose and the intake gasket areas, and listen for hissing at idle.
- Inspect the air filter and the mass airflow sensor connector, then compare sensor readings with Hyundai specifications.
- Test fuel pressure against the Hyundai specification, and inspect the fuel filter.
- Look for exhaust leaks ahead of the oxygen sensors, then replace a sensor only if the readings support it.
Sensor values and fuel pressure specifications differ by engine and model year, so take them from Hyundai service information. Each reading should guide the next step, rather than a part being swapped on suspicion. If a second code shows up during the scan, P2135 Hyundai could be the next stop.
Mistakes That Waste Money
Swapping a sensor without checking for leaks is one of the costliest mistakes. A leak keeps the mixture lean, so a new sensor will read lean again.
Clearing the code at idle and calling the job done is another mistake. If the trim still reads lean, the light comes back and the rough idle returns with it.
Do not assume a weak fuel pump without a pressure test. Fuel pressure is a measurement, and a gauge on the correct test port gives a clear answer without guessing.
Ignoring a rough idle that comes and goes is a mistake too. Intermittent leaks are easy to miss during a short test, so record when the idle changes and what the engine was doing at the time. Before you clear the codes, check whether P2111 Hyundai applies to your vehicle too.
Frequently Asked Questions
Is a P2187 Hyundai code serious?
It is moderately serious according to KBB. You can usually drive to a repair shop, but prolonged driving can cause internal engine damage, so avoid unnecessary trips and get it diagnosed promptly.
Can a vacuum leak cause P2187?
Yes. KBB lists vacuum leaks among the causes. A leak adds air that the sensors do not measure, and the effect is largest at idle, where total airflow is lowest.
Will a new oxygen sensor fix P2187?
Not always. KBB lists faulty sensors among the causes, but it also notes that DIY sensor replacement often misses the real cause. Check fuel trim and leaks before buying a sensor.
Does P2187 always mean the fuel pump is weak?
No. KBB lists a weak fuel pump as one cause, alongside leaks, a clogged fuel filter and sensor faults. A fuel pressure test shows whether the pump is delivering the right pressure.
If idle trim reads lean and no leak is found, take the freeze frame and trim readings to the shop. The numbers keep the diagnosis focused on the cause rather than on the parts.
-
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
LearnP2187 Code: What It Means and How to Fix It
LearnP2112 Hyundai: Causes, Symptoms, and Diagnostic Steps
LearnP2101 Hyundai: Find the Throttle Control Fault Before Replacing Parts
LearnP2188 Hyundai Code: System Too Rich at Idle, Bank 1
LearnP2196 Hyundai Code: Meaning, Causes and Checks
LearnP0135 Chevy Tahoe: Diagnose the Oxygen Sensor Heater Fault