Car & driving · Free
P0171: system too lean (bank 1)
P0171 means bank 1 of the engine gets more air or less fuel than it should, and the computer has run out of room to correct it. Most of the time the cause is unmeasured air from a vacuum leak or a dirty air flow sensor, both cheap to find with live data.
- No account
- Runs on your device
- Phone & desktop
Check your car for P0171
Runs on your device

Connect your OBD2 adapter
- Plug the adapter into the OBD2 port – usually under the steering wheel, near the pedals.
- Switch the ignition on, or start the engine.
- Bluetooth adapter? Turn Bluetooth on. Nothing else to set up.
This browser cannot talk to OBD adapters. Use Chrome or Edge on Android, Windows or Mac – on iPhone, the free Bluefy browser works with Bluetooth LE adapters. The demo car works everywhere.
Wi-Fi adapters cannot work in a browser; Bluetooth LE, classic Bluetooth (on a computer) and USB adapters can.
Your car data stays on your device. The page talks to the adapter directly; codes, VIN and values are never uploaded.
Never use it while you drive. Set things up before you set off, or let a passenger handle the phone. Standard OBD2 reads engine and emissions data; ABS, airbag and coding need workshop equipment.
What P0171 means
The engine computer aims for an exact mix of air and fuel. The front O2 sensor tells it whether the exhaust is lean (too much air) or rich, and the computer corrects by adding or removing fuel. These corrections are the fuel trims: the short-term trim reacts within a second, the long-term trim remembers the average.
When the computer has to add a lot of extra fuel for a long time, often around 25 percent, it gives up and stores P0171. The O2 sensor is usually only the messenger: it correctly reports that too much air reaches the engine. If bank 2 runs lean as well (P0174), look for a cause both sides share, such as the air flow sensor or the fuel supply.
Symptoms of P0171
- Often nothing more than the check engine light.
- A rough or hunting idle, sometimes stalling when you come to a stop.
- Hesitation or stumbling when you accelerate.
- A hissing sound from the engine bay, a typical sign of a vacuum leak.
- Misfire codes such as P0300 on the same drive, because a lean mix burns poorly.
Causes of P0171, cheapest first
Work down the list in order: the first checks cost little or nothing, the last ones are jobs for a workshop.
A vacuum leak
Cracked rubber hoses, a split intake boot, a leaking intake manifold gasket or a broken crankcase breather (PCV) hose let in air the computer never measured. Listen for hissing at idle and check the hoses by hand; leaks matter most at idle, when the vacuum is highest.
A dirty air flow sensor (MAF)
Dust and oil on the sensing element make it report less air than actually flows. Cleaning it with dedicated MAF cleaner spray costs very little; never touch the element. Afterwards, see whether the long-term trim moves back toward zero.
An exhaust leak before the front O2 sensor
A leak at the manifold draws in outside air between exhaust pulses, so the sensor sees oxygen that never went through the engine. Ticking from the manifold when the engine is cold is the usual clue.
A weak fuel supply
A clogged fuel filter, a tired fuel pump or a faulty pressure regulator starves the engine, mostly under load. If the mixture gets leaner the harder you accelerate, have the fuel pressure measured.
Dirty or clogged injectors
Injectors that deliver too little fuel lean out the mix. A workshop can test and clean them.
A faulty front O2 sensor
Rarely the real cause, but an old sensor that reads lean all the time makes the computer add fuel the engine does not need. Suspect it last, when fuel trims and air flow look plausible.
Can you drive with P0171?
Drive on, but fix it within a few weeks. A lean engine runs hotter and can start to misfire, which in turn harms the catalytic converter. Short-term driving is usually fine. If the engine stumbles or stalls, or the light flashes, have it checked straight away.
Check P0171 with OBD Studio
Connect your adapter above, or try the demo car, then:
- In Live data, show the short-term and long-term fuel trim of bank 1. Added together, values above about +10 percent at a warm idle mean the engine runs lean.
- Hold the engine at about 2,500 rpm. If the trims fall back toward zero, suspect a vacuum leak, which matters less at higher air flow. If they stay high or rise, suspect the air flow sensor or the fuel supply.
- Watch Air flow (MAF): it should rise smoothly with engine speed and drop back as soon as you lift off.
- After the repair, clear the code. The long-term trim should settle near zero within a drive or two.
More fault code guides
Each of these codes has its own page with causes ranked by cost and the checks that go with them.
- P0420Catalyst efficiency below threshold
- P0300Random or multiple misfire
- P0455EVAP system large leak
- P0442EVAP system small leak
- P0128Engine warms up too slowly
- P0172System too rich
- P0401EGR flow too low
- P0101Air flow sensor implausible
- P0135Front O2 sensor heater
- P0016Crankshaft and camshaft out of step
- P0011Intake camshaft timing over-advanced
- P0141Rear O2 sensor heater
- P0113Intake air temperature sensor high
- P0457Fuel cap loose or missing
- P0299Turbo underboost
- P0700Transmission control system fault
- P0087Fuel rail pressure too low
- P0562System voltage low
- U0100Lost communication with engine computer
More OBD Studio pages
Frequently asked questions
What is the most common cause of P0171?
A vacuum leak, followed by a dirty air flow sensor. Both are cheap to check: look for cracked hoses and listen for hissing first, then clean the sensor, and compare the fuel trims before and after.
Does P0171 mean the O2 sensor is bad?
Usually not. The front O2 sensor reports that the exhaust contains too much oxygen, and in most cases it is right. Replace it only when the trims, the air flow reading and a leak check point to nothing else.
What does it mean when P0171 and P0174 appear together?
Both sides of the engine run lean, so the cause is something they share: the air flow sensor, the fuel pump or filter, or a leak in the common intake. A leak that affects only one side usually sets only one of the two codes.
Can I read P0171 without going to a workshop?
Yes. With any ELM327-compatible Bluetooth LE or USB adapter, OBD Studio on this page reads P0171 and every other stored code for free, shows the freeze frame and clears the code after the repair. Nothing to install, no account.

