# Toyota P0171 Code

**URL:** <https://community.cartalk.com/t/toyota-p0171-code/60770>\
**Category:** Maintenance/Repairs\
**Tags:** tacoma, toyota\
**Created:** [February 1, 2011, 7:12pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770 "2011-02-01T19:12:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 1, 2011, 7:12pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/1 "2011-02-01T19:12:48Z")

</div>

I have a 98 toyota tacoma with the 2.7L 4 Cyl motor. I bought this truck about a month ago, with the knowledge of two check engine lights. One was P0420, and the other was P0171. The P0420 was due to no catalytic converter, and I put one on as soon as I got the truck.  
  
  
  
 The P0171 is the one that baffles me. I have gotten a few freeze frames that set the code, they are as follows:  
  
 0x02 Freeze frame DTC P0171 -  
  
 0x03 Fuel system status Closed-loop, using oxygen sensor feedback to determine fuel mix -  
  
 0x04 Calculated load value 12.16 %  
  
 0x05 Engine coolant temperature 185 F  
  
 0x06 Short term fuel % trim - Bank 1 0.78 %  
  
 0x07 Long term fuel % trim - Bank 1 37.5 %  
  
 0x0C Engine RPM 694.75 RPM  
  
 0x0D Vehicle speed 0 MPH  
  
 0x0F Intake air temperature 46.4 F  
  
  
  
 next one is:  
  
  
  
 0x02 Freeze frame DTC P0171 -  
  
 0x03 Fuel system status Closed-loop, using oxygen sensor feedback to determine fuel mix -  
  
 0x04 Calculated load value 12.55 %  
  
 0x05 Engine coolant temperature 181.4 F  
  
 0x06 Short term fuel % trim - Bank 1 -0.78 %  
  
 0x07 Long term fuel % trim - Bank 1 35.94 %  
  
 0x0C Engine RPM 694.25 RPM  
  
 0x0D Vehicle speed 0 MPH  
  
 0x0F Intake air temperature 50 F  
  
  
  
 I have found no vacuum leaks (none that are apparent), and the mass air flow sensor has been cleaned, with no improvements. It has a stock air cleaner. Both the oxygen sensors (bank one sensor one, and back 1 sensor 2) flat line at an idle, or when using compression to slow down. Under driving, these sensors oscillate as they are suppose to.  
  
  
  
 This is all I know, perhaps you have a test I can try to pinpoint the problem.

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 1, 2011, 7:14pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/2 "2011-02-01T19:14:19Z")

</div>

One more freeze frame I forgot to include:

PID Description Value Units  
0x02 Freeze frame DTC P0171 -  
0x03 Fuel system status Closed-loop, using oxygen sensor feedback to determine fuel mix -  
0x04 Calculated load value 12.94 %  
0x05 Engine coolant temperature 174.2 F  
0x06 Short term fuel % trim - Bank 1 19.53 %  
0x07 Long term fuel % trim - Bank 1 23.44 %  
0x0C Engine RPM 943.75 RPM  
0x0D Vehicle speed 0 MPH  
0x0F Intake air temperature 57.2 F

---

<div class="post-metadata">

**Author:** ![Caddyman](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/caddyman/32/23_2.png) [@Caddyman](https://community.cartalk.com/u/Caddyman)\
**Post date:** [February 1, 2011, 7:19pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/3 "2011-02-01T19:19:35Z")

</div>

P0171 = System too lean, bank one…Clear the codes and see it they will stay cleared…if not, the prime suspect is the front oxygen sensor, new or not…But since this has been going on a long time, who knows??

Lesson learned. Don’t buy vehicles with the CEL on…

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 1, 2011, 7:29pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/4 "2011-02-01T19:29:28Z")

</div>

I have cleared the code several times, hence the different freeze frames. The front oxygen sensor is behaving as well as the rear oxygen sensor. plus the two would need to be fully functional to throw the P0420 code (catalytic converter below performance spec(due to no converter)). At the time, I figured the P0171 code had to do with no catalytic converter, seeing how so many people were talking about the O2 sensor.

---

<div class="post-metadata">

**Author:** ![circuitsmith](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/circuitsmith/32/40376_2.png) [@circuitsmith](https://community.cartalk.com/u/circuitsmith)\
**Post date:** [February 1, 2011, 7:55pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/5 "2011-02-01T19:55:49Z")

</div>

I think it’s an air leak, somewhere between the MAF and the throttle butterfly valve.

---

<div class="post-metadata">

**Author:** ![cigroller](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cigroller](https://community.cartalk.com/u/cigroller)\
**Post date:** [February 1, 2011, 8:22pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/6 "2011-02-01T20:22:27Z")

</div>

While checking for vacuum leaks did you pay special attention to the intake manifold?

They can just be really hard to find. Perhaps its on to a smoke test.

However, you should also not focus entirely on air. At least check the fuel pressure - leanness is too much air - or not enough fuel.

---

<div class="post-metadata">

**Author:** ![pleasedodgevan2](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pleasedodgevan2](https://community.cartalk.com/u/pleasedodgevan2)\
**Post date:** [February 1, 2011, 8:44pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/7 "2011-02-01T20:44:10Z")

</div>

You might want to check on those fuel injectors after running some Sea-Foam through them. Listen to them with a stethoscope and get a test light or whatever tool the manual says to test them with.

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 1, 2011, 10:58pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/8 "2011-02-01T22:58:52Z")

</div>

I guess I will try a smoke test, or the old starting fluid trick (spray it at various sections, and if the engine speeds up or dies, there is a leak). I will also try the injector cleaner. I forgot to mention this, but i am getting 21-23 MPG.

---

<div class="post-metadata">

**Author:** ![Caddyman](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/caddyman/32/23_2.png) [@Caddyman](https://community.cartalk.com/u/Caddyman)\
**Post date:** [February 1, 2011, 11:06pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/9 "2011-02-01T23:06:30Z")

</div>

The front oxygen sensor is generating the signal that is throwing the code, be it correct or incorrect…It might be telling the truth, it might be lying…

---

<div class="post-metadata">

**Author:** ![circuitsmith](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/circuitsmith/32/40376_2.png) [@circuitsmith](https://community.cartalk.com/u/circuitsmith)\
**Post date:** [February 2, 2011, 3:03pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/10 "2011-02-02T15:03:54Z")

</div>

“Both the oxygen sensors (bank one sensor one, and back 1 sensor 2) flat line at an idle”

Are idle speed and smoothness normal?

---

<div class="post-metadata">

**Author:** ![Bladecutter](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Bladecutter](https://community.cartalk.com/u/Bladecutter)\
**Post date:** [February 2, 2011, 8:52pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/11 "2011-02-02T20:52:55Z")

</div>

Your long term fuel trim percentage is really high.  
Can you completely clear out the history on the ECU, and start from scratch?

BC.

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 3, 2011, 6:35am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/12 "2011-02-03T06:35:20Z")

</div>

Idle seems a little rough, but nothing worrisome. When I clear the computer with the engine running, it definitely gets a little rougher, but that should be expected. I will try and upload a picture of the O2 sensors graph, mass air flow sensor graph, RPM’s and any other graph that may be relevant. Due to real time monitoring, I can see all sensor readouts with my laptop computer via a ODBII to USB interface.

(ElmScan 5 Compact USB Scan Tool $40 dollars on amazon, worth every penny).

---

<div class="post-metadata">

**Author:** ![circuitsmith](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/circuitsmith/32/40376_2.png) [@circuitsmith](https://community.cartalk.com/u/circuitsmith)\
**Post date:** [February 3, 2011, 3:12pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/13 "2011-02-03T15:12:21Z")

</div>

“Idle seems a little rough”

That is to be expected if it’s running lean. I think the O2 sensor is telling the truth.

Have another look at the plumbing between the MAF sensor and the throttle body.  
A little air leaking in there will affect idle, when the total flow is small.

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 4, 2011, 2:46am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/14 "2011-02-04T02:46:50Z")

</div>

Part one of sensor data

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [February 4, 2011, 2:49am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/15 "2011-02-04T02:49:18Z")

</div>

Part two. All the sensor readouts that I can provide with the tools at hand. This hopefully sheds some light on the issue at hand. This weekend, I will look into tracking down a vacuum leak.

---

<div class="post-metadata">

**Author:** ![cigroller](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cigroller](https://community.cartalk.com/u/cigroller)\
**Post date:** [February 4, 2011, 3:00am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/16 "2011-02-04T03:00:14Z")

</div>

…

---

<div class="post-metadata">

**Author:** ![circuitsmith](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/circuitsmith/32/40376_2.png) [@circuitsmith](https://community.cartalk.com/u/circuitsmith)\
**Post date:** [February 4, 2011, 3:51pm UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/17 "2011-02-04T15:51:37Z")

</div>

Sometimes a picture’s worth a thousand words, but

“Both the oxygen sensors (bank one sensor one, and back 1 sensor 2) flat line at an idle”

is still the strongest clue here.

Is it possible to graph O2 and TP together?

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/keith/32/5518_2.png) [@keith](https://community.cartalk.com/u/keith)\
**Post date:** [February 5, 2011, 2:56am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/18 "2011-02-05T02:56:14Z")

</div>

Too bad it doesn’t work with a Mac.

---

<div class="post-metadata">

**Author:** ![coopercovelo](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@coopercovelo](https://community.cartalk.com/u/coopercovelo)\
**Post date:** [March 4, 2011, 1:55am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/19 "2011-03-04T01:55:39Z")

</div>

So I narrowed it down to the Mass Air Flow Senesor. I replaced it with a used one from the wrecking yard for 75$, that looks rather dirty, and threw it in. The engin started idling a lot better, and the light has not come on for 40 miles so far. I plan on cleaning it once I find the best way. I do not have pictures right now, but the long term fuel trim is ranging between -10% and + 15% as aposed to 30-40% like before. The oxygen sensor data is cycling back and forth between its phases at idel, in stead of flat lining.

---

<div class="post-metadata">

**Author:** ![Tester](https://sea1.discourse-cdn.com/cartalk/user_avatar/community.cartalk.com/tester/32/15976_2.png) [@Tester](https://community.cartalk.com/u/Tester)\
**Post date:** [March 4, 2011, 1:59am UTC](https://community.cartalk.com/t/toyota-p0171-code/60770/20 "2011-03-04T01:59:05Z")

</div>

The best way to clean a MAF sensor is with MAF sensor cleaner. Parts stores sell this in an aerosol form.

Tester
