Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All →
🎬 Helpful Videos 🛍️ Shop This Part

P0031 on 2008-2015 Scion xB: Air/Fuel Sensor Heater Circuit Causes and Fixes

On a 2008-2015 Scion xB, code P0031 is almost always caused by a failed heater element inside the upstream Air/Fuel Ratio sensor. Replacing this sensor, which costs about $60-$120 for a quality aftermarket part (Denso is OEM), is the most common fix. Before replacing, check the 'EFI MAIN' or 'A/F HEATER' fuse in the engine bay.

19 minutes to read 2008-2015 Scion xB
Most Likely Cause
Failed Upstream Air/Fuel Ratio Sensor
Difficulty
2/5
Est. Time
0.8 hrs
DIY Doable?
✅ Yes
Shop Labor
$120 – $300
Parts Price
$60 – $180
⚠️ Drivable, but... — You can drive the vehicle, but you will experience reduced fuel economy and increased emissions as the engine runs in a default 'open-loop' mode. Long-term driving is not recommended as the engine may run rich, potentially affecting the long-term life of the catalytic converter.
Key Takeaways
  • P0031 on your Scion xB points to the heater in the upstream Air/Fuel Ratio sensor, located on the exhaust manifold.
  • The most likely cause is a failed sensor. Before buying one, check the 'EFI MAIN' or 'A/F HEATER' fuse in the engine bay fuse box.
  • When ordering a new sensor, be sure to get the correct Denso part for your vehicle's year: 234-9041 for 2008-2010 and 234-9049 for 2011-2015. Using the correct OEM part is critical.
  • Don't be alarmed if the VSC and TRAC OFF lights are also on; this is a normal response on this vehicle and will clear with the Check Engine Light.
The trouble code P0031 stands for 'HO2S Heater Control Circuit Low (Bank 1, Sensor 1)'. On your Scion xB's 2.4L engine, this means the Engine Control Module (ECM) has detected a problem with the heater circuit of the upstream oxygen sensor. This sensor, more accurately called an Air/Fuel (A/F) Ratio Sensor on this vehicle, has an internal heater to get it to operating temperature quickly for accurate readings. This code specifically indicates the current in the heater circuit is too low (less than 0.8A), which is typically caused by an open circuit from a burned-out heater element or a wiring issue.

What's Unique About the 2008-2015 Scion xB

The 2008-2015 Scion xB uses the reliable Toyota 2AZ-FE engine, which has only one exhaust bank, making 'Bank 1' the only one. The key component here is a wideband Air/Fuel Ratio sensor, not a conventional oxygen sensor, which is more precise but also more expensive. A common quirk on this platform, and its Toyota platform-mates, is that a powertrain fault like P0031 will often trigger the 'VSC' and 'TRAC OFF' lights on the dashboard in addition to the Check Engine Light. This is a standard safety feature to indicate the vehicle stability systems may have reduced effectiveness and the lights will clear once the engine code is resolved.

🎬 See how to reset VSC and TRAC OFF dashboard lights

Symptoms You May Notice

  • Check Engine Light is on
  • VSC and TRAC OFF lights may also be illuminated
  • Reduced fuel economy
  • Rough idle, especially when the engine is cold
  • Failing an emissions test
  • Slight hesitation or loss of power
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the downstream (Bank 1, Sensor 2) oxygen sensor. This code specifically points to the upstream sensor's heater circuit.
  • Using a cheap, non-OEM sensor. Owners on forums report that Toyota/Scion vehicles are often picky and may not work correctly with off-brand A/F sensors, leading to the code returning.

Most Likely Causes

  1. Failed Upstream Air/Fuel Ratio Sensor 🔴 High Probability The internal heater element of the sensor has a finite lifespan and is the most common point of failure for this code. It is a standard wear-and-tear item that eventually burns out.
    How to confirm: After checking the fuse and wiring, test the resistance of the heater circuit at the sensor's connector using a multimeter. The two wires of the same color (typically black) are for the heater. An open circuit (infinite resistance or 'OL') confirms the heater has failed. A good heater should have a low resistance, typically between 1.8 and 3.4 ohms when at room temperature (20°C / 68°F).
    Typical fix: Replace the Bank 1, Sensor 1 (upstream) Air/Fuel Ratio sensor. It is highly recommended to use the OEM Denso part, as these vehicles can be sensitive to aftermarket sensors.
    Est. part cost: $60-$150
  2. Blown A/F Heater Fuse 🟡 Medium Probability A short circuit in the sensor or its wiring can cause the corresponding fuse to blow as a protective measure.
    How to confirm: Locate the fuse box in the engine bay on the driver's side. Check the fuse labeled 'A/F HEATER' or 'EFI MAIN'. Visually inspect if the fuse is blown or test for continuity with a multimeter.
    Typical fix: Replace the blown fuse. If it blows again immediately, a short circuit exists in the wiring or the sensor that must be repaired.
    Est. part cost: $1-$5
  3. Damaged Wiring or Connector ⚪ Low Probability The sensor wiring is located near the hot exhaust manifold and can become brittle, melt, or get damaged over time, leading to an open or short circuit.
    How to confirm: Visually inspect the wiring harness and connector leading to the upstream A/F sensor for any signs of melting, chafing, corrosion, or loose pins. Check for 12V power at the harness connector (typically a black wire) with the ignition on.
    Typical fix: Repair the damaged section of the wiring harness or replace the connector pigtail.
    Est. part cost: $15-$40

Rare But Worth Checking

  • Faulty Engine Control Module (ECM): This is extremely rare. The ECM contains the driver circuit that controls the sensor's heater. Before condemning the ECM, all other possibilities (sensor, fuse, wiring) must be exhaustively ruled out.

Diagnosis Steps

  1. Read the trouble codes with an OBD-II scanner to confirm P0031 is the primary code.
  2. Locate the A/F Heater fuse (may be labeled 'EFI MAIN') in the engine bay fuse box. Visually inspect it and replace if blown.
  3. If the fuse is good, locate the upstream Air/Fuel Ratio sensor. It is in the exhaust manifold, on the driver's side of the engine, pointing toward the battery.
  4. Inspect the sensor's wiring harness and connector for any visible damage, such as melting, fraying, or corrosion.
  5. Disconnect the sensor. Using a multimeter set to Ohms, measure the resistance between the two heater pins on the sensor side of the connector (pins +B and HT, often same-colored wires). 🎬 Watch: How to test and replace an Air Fuel sensor A reading of 'OL' or infinite resistance indicates a failed heater element. A good sensor should read between 1.8 and 3.4 ohms at 68°F (20°C).
  6. If resistance is within spec, check for power at the harness-side connector. With the ignition on, you should have ~12V between the power wire (often black) and chassis ground.
  7. If power and ground are present at the harness and the sensor's heater has correct resistance, the issue could be a rare intermittent connection problem or a fault with the ECM driver circuit.

Parts You'll Likely Need

  • Upstream Air/Fuel Ratio Sensor (2008-2010) (OEM #Denso 234-9041) — This is the direct-fit replacement for the upstream sensor on 2008-2010 models, confirmed by multiple auto parts retailers. Denso is the Original Equipment Manufacturer. This part number is often superseded by 234-9049.
    Trusted brands: Denso
    OEM price range: $120-$180
    Aftermarket price range: $80-$130
  • Upstream Air/Fuel Ratio Sensor (2011-2015) (OEM #Denso 234-9049) — This is the direct-fit replacement for the upstream sensor on 2011-2015 models, cross-referencing to Toyota part 89467-28090. Denso is the Original Equipment Manufacturer.
    Trusted brands: Denso, NGK
    OEM price range: $100-$160
    Aftermarket price range: $60-$120

Platform-Specific Known Issues

  • Easy Sensor Access but Specific Tool Recommended: The Bank 1 Sensor 1 is conveniently located on the front exhaust manifold, on the driver's side of the engine bay, making it very easy to access. However, owners on forums strongly recommend using a 22mm stubby wrench for removal and installation, as a regular length wrench can be difficult to maneuver in the available space. An O2 sensor socket set can also be used.

Mechanic-Grade Diagnostic Values

  • A/F Sensor Heater Resistance — expected: 1.8 to 3.4 Ω at 20°C (68°F). Failure: A reading of OL (Open Loop/infinite resistance) or a value outside the specified range.
  • A/F Sensor Heater Circuit Current (ECM Monitored) — expected: Greater than 0.8 Amps when the heater is commanded on.. Failure: The ECM will set code P0031 if the current is less than 0.8 Amps.
  • Voltage at A/F Sensor Harness Connector — expected: Approximately 12V (battery voltage) at the power supply pin (+B, often a black wire) with the ignition ON.. Failure: No voltage or significantly low voltage indicates a problem with the EFI MAIN relay, fuse, or wiring.

Scan Tool Commands That Help

  • Toyota Techstream: Freeze Frame Data Analysis — To review the exact engine operating conditions (engine temp, speed, load, etc.) at the moment the P0031 fault was first recorded. This can help distinguish a cold-start failure from an intermittent wiring issue.
  • Toyota Techstream: DTC Check / Clear — After a repair, use this function to clear the code, then idle the engine for at least one minute to confirm the DTC does not immediately return, which would indicate a persistent hard fault.

Wiring & Ground Locations

  • EA, EB, EC — Engine compartment. These are the designators for the main ground points in the engine bay.. The A/F sensor heater circuit requires a solid ground to complete its circuit. A corroded or loose ground connection at one of these points could cause low current flow and trigger P0031.
  • A/F Sensor Connector Pins — At the sensor connector on the exhaust manifold.. For accurate testing, you must know the pin functions. On the 4-wire connector, pins 1 (+B) and 2 (HT) are for the heater circuit. Resistance should be measured across these two pins on the sensor side.
  • EFI MAIN Relay — In the engine room relay/fuse block.. This relay supplies the 12V power to the A/F sensor heater circuit. A faulty relay will prevent the heater from receiving power, causing P0031.

Real Owner Repair Stories

  • CamryForums user 'ML32413' (2003 Toyota Camry 2.4L 2AZ-FE) — Check Engine Light with code P0031. Light comes on in ~15 seconds from a cold start, but takes 15-20 miles to return if reset when the engine is warm.
    ❌ Tried (didn't work) Replacing the upstream A/F sensor with the correct Denso part (234-9041).
    ✅ What actually fixed it The user did not post a final resolution, but their experience strongly suggests the problem was not the sensor itself, but rather an issue in the wiring, EFI relay, or ECM, which is a critical diagnostic path if a new OEM sensor doesn't solve the code.

OEM Part Supersession History

  • Denso 234-9041Denso 234-9049 — The 234-9041 part for 2008-2010 models has been discontinued by Denso and is noted by retailers to be replaced by 234-9049.
    Heads up: While 234-9049 is the replacement, it's always best practice to confirm fitment with the supplier for the specific vehicle VIN. The original Toyota part number for the 2011-2015 sensor is 89467-28090.

Model Year Variations Within This Range

  • 2008-2010 vs 2011-2015: The OEM part number for the upstream Air/Fuel ratio sensor is different. 2008-2010 models used Denso 234-9041, which has since been superseded by Denso 234-9049, the part specified for 2011-2015 models. This may reflect a minor change in calibration or connector keying.

Diagnostic Flowchart

This flowchart will guide you through diagnosing code P0031 (A/F Sensor Heater Circuit Low). Start with the simplest and most common causes first, like fuses, before moving to component testing. Note that on this Scion xB, this code is often accompanied by VSC and TRAC OFF lights.
→ Replace the fuse. If it blows again immediately, there is a short circuit in the A/F sensor or its wiring harness that must be found and repaired.
Visually inspect the wiring harness and connector for the upstream A/F sensor (Bank 1, Sensor 1), located on the front exhaust manifold. Do you see any signs of melting, chafing, or corrosion?
→ Repair the damaged section of the wiring harness or replace the connector pigtail. Clear the codes and re-test.
Disconnect the A/F sensor. Using a multimeter, measure the resistance between the two heater pins on the SENSOR side (usually the two same-colored wires, often black). What is the resistance reading?
→ The sensor's internal heater has failed. Replace the Bank 1, Sensor 1 Air/Fuel Ratio sensor. It is highly recommended to use an OEM Denso part, as the 2AZ-FE engine can be sensitive to aftermarket sensors. A 22mm stubby wrench is often helpful for removal.
The sensor heater seems okay. Now check the HARNESS-side connector. With the ignition ON (engine off), is there ~12V (battery voltage) between the power wire (often black) and a good chassis ground?
→ Power is reaching the connector and the sensor heater has correct resistance. This indicates a rare, intermittent connection issue or a fault in the ECM's driver circuit. Re-check all connections carefully before considering ECM replacement.
→ The fault is in the power supply wiring between the fuse box and the sensor connector. Trace the wiring for an open circuit (a break in the wire) and repair it.
→ The sensor's heater element is out of specification and has failed. Replace the Bank 1, Sensor 1 Air/Fuel Ratio sensor. Use an OEM Denso part for best results on this engine.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For this specific repair, a used part is almost never a smart choice. The A/F sensor is a wear-and-tear component with a finite lifespan. A used sensor from a junkyard carries a high risk of being faulty or failing shortly after installation.

Donor-vehicle mileage cap: roughly under 30000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • If forced to consider a used part, source it from a very low-mileage vehicle that was wrecked due to collision, not engine failure.
  • Inspect the sensor tip for heavy carbon deposits or white contamination, which indicates a poor-running donor engine.
  • Ensure the wiring and connector are completely intact with no signs of melting or brittleness.

OEM-only on this vehicle (don't cheap out):

  • Air/Fuel Ratio Sensor

Aftermarket brands forum-validated for this vehicle:

  • Denso (is the OEM and highly recommended)
  • NTK (also a reputable OEM supplier, considered a safe alternative if Denso is unavailable)

Brands owners have reported issues with on this vehicle:

  • Generic, unbranded 'eBay or Amazon' sensors are strongly discouraged by forum veterans.
  • Bosch sensors have been reported by some Toyota owners to have compatibility issues, even if listed as a fit.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2008-2015 Scion xB 2.4L (2AZ-FE)

Symptoms: An owner shared their experience and advice for replacing the upstream oxygen sensor.

What fixed it: The owner advised that the sensor is on the driver's side of the exhaust manifold. They strongly recommended using a 22mm stubby wrench for the job and insisted on using the OEM Denso sensor to avoid compatibility problems.

Source hint: Reddit (r/ScionxB) - Thread 'Anyone know where to find the upstream oxygen sensor on a 2nd Gen XB?'

2005-2010 Scion tC 2.4L (2AZ-FE)

Symptoms: The owner had a P0031 code and attempted to diagnose it by swapping parts.

What fixed it: This was a cautionary tale. The owner swapped their sensor with a friend's known-good sensor. The code remained on their car, and when the friend's sensor was reinstalled in the original car, it also triggered a code, suggesting the test may have damaged the good sensor due to system sensitivity.

Source hint: ScionLife.com - Thread 'quick code question, need help badly!!!! P0031'

2002-2011 Toyota Camry 2.4L (2AZ-FE)

Symptoms: An owner was frustrated with a persistent P0031 code and performed advanced electrical checks.

What fixed it: The owner shared their diagnostic steps rather than a final fix. They confirmed the issue was not the sensor by checking for specific voltages at the harness connector with the ignition on: 12V on the black wire, 3.3V between the orange and brown wires, and 3.0V between the white and brown wires.

Source hint: CamryForums - Thread 'Frustrated with P0031 code!'

Frequently Asked Questions

Where exactly is the Air/Fuel Ratio sensor for code P0031 located on my 2008-2015 Scion xB?
The sensor (Bank 1, Sensor 1) is located in the exhaust manifold on the driver's side of the engine bay, pointing towards the battery. Its position makes it relatively easy to access.
What is the best tool to use for removing the upstream A/F sensor on this vehicle?
While a standard O2 sensor socket set can be used, many owners strongly recommend using a 22mm stubby wrench. A regular length wrench can be difficult to maneuver in the tight space.
Can I use a cheaper aftermarket sensor, or do I need to buy the OEM Denso part?
It is highly recommended to use the OEM Denso sensor. The context explicitly states that these vehicles can be sensitive to aftermarket parts, and forum users strongly discourage using generic or even some name-brand (like Bosch) sensors due to compatibility issues. NTK is considered a safe alternative if Denso is unavailable.
My Check Engine Light is on for P0031, but my VSC and TRAC OFF lights are on too. Is this related?
Yes, it is common for the VSC and TRAC OFF lights to illuminate along with the Check Engine Light when a code like P0031 is set on this vehicle.
How can I test my A/F sensor to confirm it's bad before buying a new one?
Using a multimeter, measure the resistance of the heater circuit at the sensor's connector. The two same-colored wires (typically black) are for the heater. A good sensor should have a resistance between 1.8 and 3.4 ohms at room temperature (68°F). An open circuit (infinite resistance or 'OL') confirms the internal heater has failed.
I checked the 'A/F HEATER' fuse and it was blown. I replaced it, and it blew again immediately. What's next?
If a new fuse blows immediately, it indicates a persistent short circuit. You must find and repair the short, which is likely in the wiring harness leading to the sensor or within the A/F sensor itself.
Is this P0031 problem also common on other Toyota or Scion models?
Yes, this is a very common issue on other vehicles that use the same 2.4L 2AZ-FE engine, including the 2002-2011 Toyota Camry, 2004-2008 Toyota RAV4, and 2005-2010 Scion tC.
How to Check and Replace an Oxygen Sensor (Air Fuel Ratio Sensor)
How to Check and Replace an Oxygen Sensor (Air Fuel Ratio Sensor)
2005 Scion xB upstream o2 sensor change
2005 Scion xB upstream o2 sensor change
Causes and Fixes P0031 Code: HO2S Heater Control Circuit Low (Bank 1 Sensor 1)
Causes and Fixes P0031 Code: HO2S Heater Control Circuit Low (Bank 1 Sensor 1)
How to Reset Check Engine VSC TRAC OFF on Toyota Scion Lexus DIY
How to Reset Check Engine VSC TRAC OFF on Toyota Scion Lexus DIY
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Jul 21, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0031 (Deep Dive) for:
  • Scion xB: 20082009201020112012201320142015
In this article
🎬 Helpful Videos
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part