Q: After 'check engine' light, diagnostic revealed P0171 and P0402

asked by on May 21, 2016

After my 'check engine' light came on, I went to the car shop and the mechanic's diagnostic said codes P0171 and P0402. What do these mean and can you tell me what to do?

Check Engine Light is on Inspection $94.99 - $114.99 Get a Quote

The first code, P0171, is an indication the engine is running lean. This code can indicate anything from clogged air and fuel filters to problems with O2 sensors and mass air flow sensors to intake gaskets.

The other code, P0400, indicates that the exhaust gas recirculation (EGR) system is not working correctly.

Both of these codes only give you a tool to help in the diagnosis of the problem; several checks to properly diagnose the problems would need to be done with a Check Engine Light inspection by a mechanic, such as one from YourMechanic.

The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details

Get an instant quote for your car

Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Fair and transparent pricing


Experienced Mechanic?

Earn up to $70/hr

What others are asking

What can affect the view from the rearview camera?
While the rearview camera on your car can help provide better safety when you’re backing up, there are several things that can affect the image quality and view. Here’s what you need to know: The view can be dim or...
How do airbags work?
Airbags play a big role in keeping vehicle occupants safe in the event of a crash. They way in which they work is simple, yet the process has been fine-tuned over the years to offer as much protection as possible....
Poor gas mileage
Turbochargers are for producing more power from a smaller size engine. Fuel economy (https://www.yourmechanic.com/article/5-essential-things-to-know-about-fuel-economy) is not maintained when a turbocharger is used. Turbos only operate under a power request of the throttle position. They introduce more air into the engine,...
The turbo is not working at all.
There are a number of things occurring all at once and may all be related to one thing. Unfortunately, that one thing very possibly could be the turbocharger assembly. That said, the best thing to do is have it properly...
Engine issues - 1991 BMW 750iL
Your engine has gone into "limp" mode. The engine computer senses that one side (or the other) is performing inadequately, which causes it to shut down that side. This is most commonly caused by fuel pump(s) failing. The fuel pump...
The abs block does not let fluid to the rear brake lines
Hello, when bleeding brake with an ABS system you will need a scan tool to open the passages in the ABS module. This is part of the brake bleeding process. If you'd like, a certified Your Mechanic Technician can...
humming sound coming from front.
Hello. Thank you for writing in. There are several reasons you may hear a hum that is related to engine speed. Typically these noises are caused by the tires. New tires, thicker treads, all terrain tires, and others similar are...
My car is squealing
Hi there. There are a couple of things that can cause the squeal; a loose/worn belt or worn ac clutch. I highly suspect the belt is causing the noise as it receives a load when the ac is turned on....
Hesitation when accelerating
Hi There, The radiator fan may have stopped working for a couple of reasons such as a faulty fan motor or faulty fan relay (https://www.yourmechanic.com/services/cooling-fan-relay-replacement). As you know, this can be dangerous to the motor as it may cause it...

Related articles

Is It Safe to Drive With the Emissions Light On?
There is really no hard and fast answer to this question. It really all depends on what made the Emissions Light come on...
P0715 OBD-II Trouble Code: Input/Turbine Speed Sensor Circuit Malfunction
P0715 means the transmission will not be able to read the engine RPMs to shift properly causing transmission to shift hard or erratic.
B1981 OBD-II Trouble Code: Memory Off Switch Circuit Short to Battery
B1981 means there is a circuit error in the memory off switch, likely due to damaged electrical components or a bad memory switch.