
Key Takeaways
- P0171 means the powertrain control module (PCM) or engine control module (ECM) has detected a lean condition on Bank 1 and reached a calibrated fuel-correction limit. The code does not identify the failed part.
- Freeze-frame data and short-term and long-term fuel trims help determine whether the fault is most evident at idle, under load, on one bank, or across the whole engine.
- Test for unmetered air, inaccurate airflow data, exhaust leaks, inadequate fuel delivery, and biased sensors before replacing components.
- Manufacturer bulletins apply only when the vehicle, engine, production range, symptoms, codes, and calibration meet the stated criteria.
Diagnosing the P0171 engine code starts with confirming whether Bank 1 is actually lean or the control system only appears lean. Use freeze-frame data, fuel trims, sensor response, and application-specific service information to separate unmetered air, inadequate fuel delivery, an exhaust leak, and a biased input. Do not assume one air-fuel ratio applies to every fuel type and operating condition.
The guide below explains what causes code P0171, how to test the system in a logical order, and when make-specific service information changes the repair path. For vehicle-specific confirmed fixes, OEM procedures, wiring diagrams, and service bulletins, technicians can search Identifix Direct-Hit® from the bay or on a mobile device.
What Does P0171 Mean?
DTC P0171 is the generic OBD-II code for “Fuel Trim System Too Lean Bank 1.” Bank 1 is the side of the engine containing cylinder No. 1. An inline engine normally has only one bank, while a V-type engine may also set P0174 for Bank 2.
Because the P0171 engine code is generic, its definition is consistent across makes, but monitor logic, data labels, testing procedures, and confirmed fixes can differ by application.
The PCM or ECM uses upstream air-fuel ratio or oxygen-sensor feedback, along with load, temperature, airflow, pressure, and other inputs, to adjust fuel delivery. Depending on the application, load may be calculated with a MAF sensor, a manifold absolute pressure (MAP) sensor, or a combination of inputs. P0171 sets when the module must add more fuel than its calibrated limit allows during the monitor. That result can reflect a truly lean mixture or misleading data, so it does not prove that an oxygen sensor, MAF sensor, or fuel pump has failed.
P0171 should be diagnosed promptly. A significant lean condition can cause hesitation, misfire, elevated combustion temperature, and catalyst stress, but the code alone does not prove that the engine or catalytic converter is damaged.
P0171 Code Symptoms
A vehicle with P0171 may have no noticeable drivability concern beyond an illuminated malfunction indicator lamp (MIL). When symptoms are present, they can help identify the conditions under which the mixture or feedback problem occurs. Common symptoms include:
- An illuminated check engine light, which may be the only symptom
- Rough idle or stalling
- Hesitation or lack of power
- Misfiring
- Pinging or spark knock under load
Related codes can narrow the search. P0174 indicates that Bank 2 is also lean, while P0300 or cylinder-specific misfire codes may appear when the mixture problem affects combustion. Record every stored and pending code before clearing memory.
Common Causes of P0171 Code
What causes code P0171 varies by application, but the major categories are unmetered air, incorrect load calculation, inadequate fuel delivery, and false lean feedback. Less common causes include low compression, valve-timing faults, and other mechanical conditions that disrupt combustion. Use the code conditions and fuel-trim pattern to choose tests instead of replacing the most familiar part.
Weak fuel pump
A weak pump can allow fuel pressure or volume to fall below specification, especially during higher demand. Check commanded and actual pressure where available, then use the manufacturer’s pressure, volume, electrical, and residual-pressure tests before condemning the pump.
Defective or inefficient fuel injectors
Restricted injectors, low injector flow, control-circuit faults, or deposits can reduce fuel delivery. Compare cylinder contribution, injector balance, current, and command as the application allows. Do not replace a complete set solely because P0171 is stored.
Clogged fuel filter
A restricted serviceable fuel filter or an in-tank restriction can reduce pressure or volume. Test the system under the conditions that set the code and replace a serviceable filter according to the manufacturer’s procedure. A fuel filter is generally replaced, not cleaned.
Fuel pressure regulator failure
A mechanical or electronically controlled pressure-regulation fault can produce low fuel pressure or incorrect pressure response. Because return-style, returnless, and direct-injection systems operate differently, follow the specified pressure test and inspect related sensors, control circuits, and modules before replacing the regulator.
Vacuum leak
A split intake boot, leaking manifold gasket, disconnected hose, failed positive crankcase ventilation (PCV) component, brake-booster leak, or purge valve stuck open can introduce air that the control system did not account for. A leak often has its greatest effect at idle, but fuel-trim behavior is a clue, not proof. If P0442 is also stored, test purge flow and the EVAP plumbing rather than assuming every small EVAP leak explains P0171. Confirm the source with inspection, isolation, or a smoke test.
Air-fuel (AF) ratio sensor failure
A wideband air-fuel ratio sensor reports exhaust oxygen content so the control module can correct mixture. A slow or biased sensor, heater fault, wiring problem, or exhaust leak can make the feedback appear lean. Verify response and circuit integrity before replacing the sensor.
Clogged MAF sensor
Contamination, an incorrect replacement sensor, air bypassing the sensor, or a wiring fault can skew reported airflow. Compare the MAF reading with known-good application data and inspect the intake path first. Clean the sensing element only when the manufacturer permits it and only with an approved product.
Exhaust leak
An exhaust leak ahead of or near the upstream air-fuel ratio or oxygen sensor can draw in outside air and bias the feedback lean. Inspect manifolds, gaskets, flex joints, and sensor threads on the affected bank. A leak located only behind the downstream sensor is less likely to explain P0171.
Manifold absolute pressure sensor failure
A biased MAP sensor or a restricted sensor port can distort calculated engine load on systems that use the signal for fueling. Compare key-on engine-off pressure with local barometric pressure, then check the running signal against specifications and other load indicators.
Oxygen sensor failure
A conventional upstream oxygen sensor can set or contribute to P0171 if its signal, heater, wiring, or ground is faulty. Test its response to controlled rich and lean changes and compare both banks when the engine has two banks. The downstream sensor primarily monitors catalyst performance on many applications and should not be treated as the default P0171 repair.
Diagnostic Tools Required to Fix P0171 Code
The essential tool is a scan tool that can display all codes, freeze-frame data, short-term and long-term fuel trims, sensor data, and applicable test functions. Depending on the vehicle and test plan, technicians may also need:
- A digital multimeter and suitable back-probing equipment.
- A smoke machine and adapters for intake-system leak testing.
- A fuel-pressure gauge or approved high-pressure test equipment for the fuel system.
- Current OEM procedures, wiring diagrams, specifications, bulletins, and relearn instructions.
Step-by-Step Diagnostics and Repair for P0171 Code
Fixing P0171 requires finding why Bank 1 needs excessive positive fuel correction. Before clearing anything, record all stored, pending, and permanent codes plus freeze-frame RPM, load, coolant temperature, vehicle speed, and fuel trims. Compare Bank 1 with Bank 2 where available, and review trims at idle and at a steady higher engine speed. If coolant temperature is implausible or P0128 is also stored, diagnose the temperature-control issue on its own evidence rather than assuming it caused P0171. Then move from nonintrusive checks to the air, fuel, exhaust, and sensor tests below.
Check for vacuum leaks
Inspect the air cleaner housing, ducting after the MAF sensor, manifold gaskets, hoses, PCV system, brake-booster circuit, and purge plumbing. Use a smoke test or isolate circuits as appropriate. If positive trim is highest at idle and improves as airflow rises, prioritize a vacuum leak, but confirm it before repair.
Test and clean the MAF
Use the manufacturer’s procedure to compare MAF data with known-good values under the same operating conditions. Check the connector, wiring, intake boot, and any air path that bypasses the sensor. If cleaning is permitted, use only an approved MAF cleaner. Do not clean or replace the sensor until testing supports the decision.
Inspect the exhaust system
Check for leaks ahead of the upstream sensor on Bank 1, especially when trims or sensor data indicate a bank-specific problem. Use the manufacturer’s approved leak-testing method and protect oxygen sensors and hot exhaust components from contamination or damage.
Evaluate the fuel system
Measure fuel pressure and, where specified, fuel volume under the conditions that produced the fault. Compare commanded and actual rail pressure on electronically controlled systems. Test pump supply, regulator control, injector operation, and residual pressure as appropriate. Replace a restricted serviceable filter rather than attempting to clean it.
Verify the O2 sensor readings
Confirm the correct sensor type and data interpretation for the vehicle. Check heater operation and wiring, then use an approved method to command or introduce controlled rich and lean conditions. A sensor that responds correctly should not be replaced simply because the PCM reports positive fuel trim.
Evaluate the spark plugs
Inspect the spark plugs for wear, fouling, damage, or a cylinder-specific pattern. Light-colored deposits can support other evidence of a lean condition, but plug color alone does not identify the cause of P0171. Replace the plugs when their condition or service interval requires it, then continue diagnosis if the lean condition remains.
If these checks do not identify the cause, continue with the vehicle-specific P0171 procedure and applicable service bulletins. Do not replace or program the PCM or ECM unless the specified tests support that repair.
Manufacturer-Specific Causes & Solutions for P0171
P0171 has a standardized definition, but diagnostic routines and confirmed fixes vary by vehicle. Check the VIN, engine, production date, calibration, code combination, and current service information before applying any bulletin.
The table below summarizes each bulletin’s applicability gate and specified action.
| Make | Bulletin | Gate to clear first | Specified action |
| Ford | TSB 25-2342 | 2021-2023 F-150, 3.3L engine, P0171 stored in the PCM, North American market. | Reprogram the PCM with the latest FDRS software. |
| Toyota | T-SB-0009-23 | Listed 2014-2020 vehicles, hard start or MIL with P0171, P0174, or P0087, and fuel pressure confirmed out of specification. | Follow the bulletin’s fuel-pump replacement procedure. |
| Chevrolet | Special Coverage Adjustment 16139 | Eligible 2012-2014 Sonic, 1.8L LUW or LWE engine, with P0171 or P0101. | Replace the air-cleaner outlet duct as necessary. |
| Honda | Service Bulletin 22-002 | 2015-2016 Fit, all trims, eligible iN VIN status, with P0171 or P0172 stored. | Follow the bulletin’s repair procedure and replace the fuel-injector kit and required associated parts. |
| Nissan | NTB19-022 | Listed vehicle and confirmation procedure sets P2096, P2097, P2098, or P2099. | Replace the corresponding air-fuel ratio sensor when directed. Otherwise, exclude it and continue diagnosis. |
| Hyundai | TSB 16-FL-005 | Certain 2011-2014 Sonata YF vehicles, 2.4L GDI engine, P0171-only case. | Update the ECM and do not replace the catalyst for P0171 alone. |
| Kia | TSB ENG160 Rev. 1 | Specified 2.4L GDI model and production range with P0420 and possibly P0171. | Follow the catalyst-inspection and calibration-dependent repair path. |
P0171 on Ford
For a P0171 Ford concern, do not assume every model has the same intake or fuel-system failure. For example, Ford TSB 25-2342 applies to 2021-2023 F-150 vehicles with the 3.3L engine and P0171 stored in the PCM. The specified action is PCM reprogramming with the latest FDRS software. A P0171 Ford bulletin is not a substitute for normal diagnosis when the vehicle falls outside its exact gate.
P0171 on Toyota
Toyota T-SB-0009-23 covers certain 2014-2020 vehicles with a hard-start or MIL concern and P0171, P0174, or P0087. The bulletin directs technicians to review Techstream data and verify fuel pressure with a manual gauge. If fuel pressure is within specification, the bulletin does not apply. If pressure is out of specification and the other criteria are met, follow its fuel-pump procedure. Other Toyota applications still require the model-specific diagnostic tree.
P0171 on Chevrolet
General Motors Special Coverage Adjustment 16139 identifies a cracked air-cleaner outlet duct after the MAF sensor as a possible cause of P0171 or P0101 on certain 2012-2014 Chevrolet Sonic vehicles with the 1.8L LUW or LWE engine. Inspect the duct and confirm vehicle eligibility before applying the specified replacement. Do not generalize that fix to other Chevrolet engines.
P0171 on Honda
For a P0171 Honda concern on a 2015-2016 Fit, Honda Service Bulletin 22-002 applies only when the vehicle’s iN VIN status shows eligibility. Honda states that certain incorrectly installed injectors may experience internal wear and reduced flow. When P0171 or P0172 is stored on an eligible vehicle, the bulletin directs technicians to its repair procedure for replacement of the fuel-injector kit and required associated parts.
American Honda extended the warranty on failed fuel injectors, as determined by the bulletin’s procedures, to 10 years from the original purchase date or 150,000 miles, whichever comes first. Confirm coverage before quoting the customer. A P0171 Honda repair outside that bulletin should be based on the VIN, engine, code combination, and test results.
P0171 on Nissan
For a P0171 Nissan diagnosis on the vehicles listed in Nissan NTB19-022, begin with the bulletin’s revised air-fuel sensor check. It directs technicians to replace the corresponding sensor only if the specified confirmation procedure sets P2096, P2097, P2098, or P2099. Otherwise, continue P0171 or P0174 diagnosis while excluding the sensor. That P0171 Nissan procedure helps prevent an unsupported air-fuel sensor replacement.
P0171 on Hyundai
Hyundai TSB 16-FL-005 applies to certain 2011-2014 Sonata YF vehicles with the 2.4L GDI engine. It specifies an ECM update for a qualifying P0171-only case and explicitly says not to replace the catalyst for P0171 alone. When P0420 is also present, follow the bulletin’s separate inspection and repair path.
P0171 on Kia
Kia TSB ENG160 Rev. 1 applies to specified 2.4L GDI Optima, Sorento, and Sportage model years with P0420 and possibly P0171, commonly after prolonged engine braking on a steep grade. The repair path depends on catalyst inspection and calibration status, so a standalone P0171 on a vehicle outside the bulletin should follow normal diagnosis.
Common Mistakes When Diagnosing P0171
Avoid these shortcuts, which can turn a lean-code diagnosis into unnecessary parts replacement:
- Replacing the upstream oxygen, air-fuel ratio, or MAF sensor because its data reports the condition. The sensor may be describing a real air or fuel problem.
- Clearing codes before saving freeze-frame data and related DTCs.
- Looking only at idle fuel trim or only at Bank 1 without comparing engine speed, load, and the opposite bank.
- Treating a normal pressure reading at idle as proof that fuel volume and pressure remain correct under load.
- Replacing or programming the PCM or ECM before completing the specified circuit, sensor, fuel-system, and service-bulletin checks.
How to Fix a P0171 Code
The correct repair depends on the confirmed cause. Seal a verified intake or vacuum leak, restore fuel pressure or injector flow when testing shows inadequate delivery, repair an exhaust leak that affects the upstream sensor, or replace a biased sensor only after its response and circuit have been tested. Apply a software update or bulletin repair only when the vehicle meets the stated applicability requirements. After the repair, clear the code, complete any required relearn or drive cycle, and confirm that P0171 does not return.
How to Prevent a P0171 Code
Not every P0171 code is preventable, but routine inspection can reduce avoidable air and fuel faults:
- Replace the engine air filter and any serviceable fuel filter at the specified interval.
- Inspect intake ducting, vacuum hoses, PCV connections, and electrical connectors whenever the air cleaner or related components are serviced.
- Correct misfires, hard starts, fuel-pressure concerns, and exhaust leaks before they create additional faults.
- Use the correct sensor and intake components for the application, and avoid unapproved cleaners or additives.
- Check for current calibration updates and service information when a condition repeats after a verified repair.
Leverage Identifix to Quickly Diagnose and Repair P0171 Code
General lean-code testing can narrow the system, but the final procedure depends on the exact vehicle. Search Identifix Direct-Hit® for confirmed fixes, OEM procedures, specifications, wiring diagrams, and service bulletins by vehicle, symptom, or code. Then request a Direct-Hit demo to see how the platform can support faster, vehicle-specific diagnosis in your shop.
Did you like this article? Find more great content at identifx.com/blogs and solera.com/blog
FAQs
How do you clear a P0171 code after repairs?
Use a scan tool to clear the code after the root cause has been repaired and the required data has been saved. Perform any specified reset, relearn, and drive cycle, then confirm fuel trims are acceptable and no pending code returns. Disconnecting the battery can erase useful data and may create additional relearn work.
How much does it cost to fix a P0171 code?
There is no single repair price because P0171 can result from anything from a loose hose to a fuel-pump, injector, sensor, or wiring fault. Estimate the repair only after testing identifies the cause, and include diagnostic time, parts, programming, relearns, and verification as applicable.
What happens if you ignore a P0171 code?
The vehicle may continue to run, but a real lean condition can progress to hesitation, stalling, misfire, or catalyst stress. If the MIL flashes, the engine runs poorly, or power drops, stop driving when safe and arrange service. If P0420 is also stored, diagnose the mixture or misfire cause before judging the catalytic converter.
What tools are needed to diagnose a P0171 code?
At minimum, use a capable scan tool and current service information. The test plan may also require a digital multimeter, smoke machine, fuel-pressure equipment, and an approved MAF cleaner.
When should you seek professional help for a P0171 code?
Professional diagnosis is appropriate when the MIL flashes, the engine stalls or misfires, high-pressure fuel testing is required, the vehicle needs programming, or basic inspection does not isolate the fault. Direct-injection fuel systems, hot exhaust components, and some smoke-test procedures require the correct equipment and safety practices.
See Other Related P Code Articles
P0420 | P0300 | P0128 | P0456 | P0430 | P0442 | P0332 | P0352 | P20EE
References
Toyota Motor Sales, U.S.A., Inc. (2023, February 9). Fuel pump (loss of fuel pressure) (T-SB-0009-23). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2023/MC-10235216-9999.pdf
American Honda Motor Co., Inc. (2022, February 18). Warranty extension: MIL comes on with DTC P0300, P0301, P0302, P0303, P0304, P0171, P0172, P219A, P0420, or P0420 with any of the other listed codes (Service Bulletin 22-002, Version 1). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2022/MC-10208198-0001.pdf
Ford Motor Company. (2025, July 25). Illuminated MIL with DTC P0171 stored in the PCM (Technical Service Bulletin 25-2342). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2025/MC-11020977-0001.pdf
General Motors LLC. (2017, March). Intake air duct cracking (Special Coverage Adjustment 16139). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2017/MC-10126022-9999.pdf
Hyundai Motor America. (2016, September). DTC P0171/P0420 ECM update and P0420 catalyst replacement (Technical Service Bulletin 16-FL-005). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2016/SB-10082724-0699.pdf
Kia Motors America. (2016, October). ECU upgrade: MIL on with DTC(s) P0420/P0171 (Technical Service Bulletin ENG160, Rev. 1). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2016/MC-10109774-9999.pdf
Nissan North America, Inc. (2019, March 5). Nissan: P0171 and P0174 service information (NTB19-022). National Highway Traffic Safety Administration. https://static.nhtsa.gov/odi/tsbs/2019/MC-10158432-9999.pdf

Identifix is the leading provider of automotive repair shop solutions and sevices designed to improve shop profitability and repair outcomes.
