Your Toyota’s check engine light just came on, and your scan tool shows Toyota P0031. Before you panic or hand over your wallet to the dealer, this guide walks you through exactly what’s happening, what to check first, and how to fix it without guessing.
What Is the Toyota P0031 Code?
Toyota P0031 means your Engine Control Module (ECM) detected a low current in the air-fuel ratio sensor heater circuit — specifically Bank 1, Sensor 1. The ECM expects to see at least 0.8 amps flowing through the heater. When current drops below that threshold, it logs P0031 and turns on the check engine light.
Unlike older oxygen sensors, modern Toyotas use wideband Air-Fuel (A/F) ratio sensors upstream. These sensors need to reach between 1,200°F and 1,400°F to work accurately. The built-in heater gets them there fast. When that heater fails, the whole fuel control system suffers.
Why the Heater Circuit Matters So Much
Here’s the thing — without a working heater, your A/F sensor stays cold. A cold sensor can’t generate accurate readings. So your ECM stays in “open-loop” mode, running off pre-programmed fuel maps instead of real-time data. That means:
- More fuel gets burned than necessary
- NOx and unburned hydrocarbons increase in the exhaust
- Your catalytic converter takes a beating from the rich exhaust mixture
The ECM starts monitoring the heater circuit about 10 seconds after engine start, as long as battery voltage sits at or above 10.5V. If the heater duty cycle is above 50% and current stays below 0.8A, P0031 gets set.
What Causes Toyota P0031?
Most P0031 cases come down to one of these four culprits:
1. Failed A/F sensor heater element
The internal resistive filament inside the sensor breaks after years of thermal cycling. Thousands of heat-up/cool-down cycles crack the filament, causing an open circuit.
2. Corroded wiring connector
Road salt, moisture, and heat degrade the connector pins. Even a few extra ohms of resistance from corrosion drops the heater current below the 0.8A threshold.
3. Heat-damaged wiring
The wiring harness runs near the exhaust manifold. Over time, the insulation gets brittle, cracks, and shorts to ground — or causes an open circuit.
4. Blown fuse or failed relay
A blown A/F HTR fuse cuts power to the entire heater circuit. If you also see P0051 alongside P0031, a blown fuse is a likely culprit.
Symptoms You’ll Notice With P0031
| Symptom | What’s Happening | How Bad? |
|---|---|---|
| Check engine light on | ECM logs the fault | Always present |
| Rough idle when cold | Open-loop operation with cold sensor | Moderate |
| Fuel economy drops 5–10% | ECM defaults to rich fuel bias | Persistent |
| Hesitation on acceleration | Delayed throttle response | Low to moderate |
| Engine stalling | Insufficient oxygen feedback for idle | Intermittent |
| Failed emissions test | Readiness monitors incomplete | Regulatory issue |
Don’t ignore this code. A sustained rich condition sends unburned fuel into the catalytic converter. The converter can hit temperatures above 2,000°F, melting the ceramic honeycomb substrate. That turns a $250 sensor job into a $1,500+ catalytic converter replacement.
Where Is Bank 1 Sensor 1 on Your Toyota?
Bank 1 is always the cylinder bank containing cylinder #1. Sensor 1 is always upstream — before the catalytic converter. The physical location changes depending on your engine.
| Engine | Configuration | Bank 1 Location | Sensor 1 Position |
|---|---|---|---|
| 2AR-FE (2.5L) | Inline 4 | Only one bank | Front of exhaust manifold |
| 2AZ-FE (2.4L) | Inline 4 | Only one bank | Front of exhaust manifold |
| 2GR-FE (3.5L) | Transverse V6 | Rear bank (firewall side) | Pre-cat, rear bank |
| 1GR-FE (4.0L) | Longitudinal V6 | Passenger side | Pre-cat, right side |
| 1MZ-FE (3.0L) | Transverse V6 | Rear bank (firewall side) | Pre-cat, rear bank |
Toyota Camry (2012–2017): Remove the plastic intake snorkel between the radiator support and air filter housing. The sensor sits right there. You’ll need a 22mm offset oxygen sensor socket for the tight clearance near the heat shield.
Toyota Tacoma 4.0L V6: Bank 1 Sensor 1 is on the passenger side. Pull the passenger-side inner fender liner for a straight shot at the sensor with a long extension and swivel socket.
Toyota RAV4 with 3.5L V6: This one’s a pain. The sensor hides behind the engine near the steering rack. You’ll need a flexible-head ratchet and patience — plan on working from underneath.
How to Diagnose Toyota P0031 Step by Step
Don’t replace the sensor before testing the circuit. Replacing a good sensor won’t fix a wiring problem.
Step 1: Check the Heater Element Resistance
Disconnect the sensor connector. Set your multimeter to resistance (ohms). Measure across the two heater terminals on the sensor side — these are usually two wires of the same color, often black or white.
Good reading: 1.8 to 3.4 ohms at room temperature (68°F)
Bad reading: OL (infinite) — the heater filament is broken. Replace the sensor.
Step 2: Test the Power Supply
With the ignition on, check the +B terminal (pin 2) at the harness connector. You should see 9–14V. No voltage means a blown A/F HTR fuse or a failed relay. Check the fuse block first — it’s the fastest fix.
| Vehicle | Fuse Name | Location | Rating |
|---|---|---|---|
| Camry (XV50 2012–2017) | A/F or EFI NO.2 | Engine bay, left side | 15A / 20A |
| Tacoma (3rd Gen) | AF-HTR | Engine bay, driver side | 15A |
| RAV4 (XA30 2006–2012) | A/F HTR | Engine bay fuse block | 15A |
| Camry (XV40) | A/F HTR | Engine bay, near battery | 15A |
Step 3: Check the Harness Continuity
Run a continuity check between the HA1A terminal at the sensor connector and the corresponding ECM pin. Resistance should be under 1 ohm. Then test the HA1A line for a short to ground with the ECM disconnected — anything under 10k ohms to ground means you’ve got a chafed or damaged wire.
| Test | Pins Tested | Good Result | What It Tells You |
|---|---|---|---|
| Heater resistance | HT to +B (sensor side) | 1.8–3.4 ohms | Internal heater health |
| Insulation check | HT to AF- | Over 10k ohms | Rules out internal shorts |
| Supply voltage | +B to ground | 9–14V | Fuse and relay condition |
| Harness continuity | HA1A to ECM pin | Under 1 ohm | Wire integrity |
| Short to ground | HA1A to body | Over 10k ohms | Chafed wire check |
Step 4: Use Scan Tool Live Data
If everything tests fine in static mode but P0031 keeps returning, pull up live data while the engine runs:
- A/F Heater Duty Ratio: If it reads 100% but the sensor voltage stays flat at 3.3V, the heater isn’t working
- A/F Sensor Current (mA): A reading of 0.0 mA on a warmed-up engine points to a cold sensor from heater failure
- A/F Sensor Resistance: Values above 50 ohms on a running engine indicate a dead heater
Toyota TSBs Related to P0031
Toyota has issued technical service bulletins covering P0031 situations caused by manufacturing issues — not just wear.
TSB EG009-05 (2004–2005 Camry V6): A mismatch between the sensor manufacturing process and ECM logic caused false P0031 codes. The fix involved replacing both upstream sensors and updating the ECM software with Toyota’s diagnostic tester.
Special Service Campaign G0G (2015–2016 Sienna): This NHTSA-documented campaign flagged wire degradation inside the oxygen sensor harness caused by vehicle vibration. Vibration fatigue creates intermittent open circuits that mimic heater failures and can trigger P0031.
Customer Support Program 23TE01: This NHTSA program covers exhaust-related repairs on models like the Tacoma and Highlander. Always check if your vehicle has an active campaign before paying out of pocket.
OEM vs. Aftermarket Sensor: Does It Matter?
Yes — it really does. Toyota’s ECM is calibrated for Denso sensors with precise heater resistance values. Generic sensors with slightly different specs often get rejected by the ECM, meaning the check engine light comes right back.
| Sensor Type | Cost Range | Reliability | Installation |
|---|---|---|---|
| OEM Denso | $180–$280 | High — factory match | Plug-and-play |
| Premium aftermarket | $110–$160 | Moderate | Plug-and-play |
| Budget/universal | $40–$70 | Low — frequent MIL returns | Splicing required |
Total repair costs at a shop typically run $350–$550 for four-cylinder Toyotas and $450–$700 for V6 models where access is tight.
How to Extend Your A/F Sensor’s Life
A/F sensors typically last 100,000 to 120,000 miles, but a few habits cut that short:
- Excessive oil consumption on high-mileage 2AZ-FE and 2AR-FE engines coats the sensor tip in phosphorus and carbon, forcing the heater to work harder
- Coolant leaks from a failing head gasket poison the platinum electrodes with silica
- Exhaust leaks upstream of the sensor introduce fresh air, causing the ECM to crank up heater duty cycles until the element burns out
- Rodent damage to harness insulation creates intermittent faults that are a nightmare to trace
Check the A/F sensor wiring visually during every oil change. It takes 30 seconds and can save you from a $500 surprise down the road.
The Bottom Line on Toyota P0031
Toyota P0031 points to a heater circuit failure in the Bank 1 Sensor 1 A/F sensor. Most of the time it’s the sensor itself. But rushing to replace it without testing the fuse, relay, and wiring first is how people waste $200 on a sensor that wasn’t the problem. Follow the three diagnostic steps above, confirm the heater resistance sits between 1.8 and 3.4 ohms, and verify your supply voltage. Fix it promptly — your catalytic converter’s survival depends on it.













