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

P0135 on 2005-2009 Subaru Legacy 2.5L: O2 Sensor Heater Circuit Causes and Fixes

On a 2005-2009 Subaru Legacy with the 2.5L engine, code P0135 almost always means the internal heater in the front oxygen sensor has failed. Replacing the front O2 sensor (also called an Air/Fuel Ratio sensor) is the most common fix, with DIY difficulty at 2/5 and parts costing between $70 and $180.

18 minutes to read 2005-2009 Subaru Legacy
Most Likely Cause
Failed Front Oxygen (A/F) Sensor Heater Element
Difficulty
2/5
Est. Time
0.8 hrs
DIY Doable?
✅ Yes
Shop Labor
$150 – $350
Parts Price
$70 – $180
⚠️ Drivable, but... — Yes, you can drive the vehicle, but you should get it fixed soon. A faulty heater circuit will cause increased emissions, reduced fuel economy, and could lead to a failed emissions test. Long-term driving could potentially shorten the life of the catalytic converter due to the engine running rich during warm-up.
Key Takeaways
  • P0135 on your Legacy almost certainly means the front (upstream) oxygen sensor on the passenger side has failed.
  • This is a common, well-understood issue and is very likely not a major electrical problem.
  • The most important step is to buy the correct replacement sensor, as the part number differs for 2005-2007 and 2008-2009 models.
  • This is a DIY-friendly repair for those with basic tools, but you will likely need a special oxygen sensor socket.
  • Ignoring the code will lead to poor fuel economy and guaranteed failure of an emissions test.
The trouble code P0135 indicates an 'O2 Sensor Heater Circuit Malfunction' for Bank 1, Sensor 1. On your Subaru Legacy's boxer engine, 'Bank 1' is the passenger side, and 'Sensor 1' is the upstream sensor in the exhaust manifold before the catalytic converter. This sensor, often called an Air/Fuel (A/F) Ratio Sensor, has a small internal heater to bring it to operating temperature quickly after a cold start. This rapid warm-up allows the engine to enter 'closed-loop' mode faster, where it uses sensor feedback to make precise fuel adjustments for optimal efficiency and low emissions. The P0135 code is set by your car's computer (ECM) when it detects that this heater is not working correctly, either due to an open circuit, a short, or drawing too much or too little current.

What's Unique About the 2005-2009 Subaru Legacy

The Subaru Legacy from this era uses a reliable but straightforward emissions system. The P0135 code is a very common and well-documented issue, with the vast majority of cases pointing directly to the failure of the original Denso front oxygen sensor after 80,000+ miles. Unlike some platforms where this code might suggest complex wiring or ECU issues, on the EJ253 engine, the diagnostic path is typically short: the sensor itself is the culprit. The main complication is a mid-generation part number change, so verifying the correct sensor for your specific model year is crucial. The sensor connector is located on the passenger side of the transmission bellhousing 🎬 See this walkthrough for accessing and replacing the upstream sensor., which can be tricky to access.

Symptoms You May Notice

  • Check Engine Light is on
  • Reduced fuel mileage
  • Rough idle or poor engine performance, especially when cold
  • Failing a state emissions inspection
  • Black smoke or a foul smell from the exhaust in some cases
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the rear (downstream) oxygen sensor. P0135 specifically refers to Sensor 1, which is the front (upstream) sensor.

Most Likely Causes

  1. Failed Front Oxygen (A/F) Sensor Heater Element 🔴 High Probability The internal heating element of the sensor has a finite lifespan and commonly fails from age and heat cycles, often after 80,000-120,000 miles. This is the most frequent cause for P0135 on this platform.
    How to confirm: Disconnect the sensor and measure the resistance between the two heater circuit pins 🎬 Watch: How to test the heater circuit with a multimeter. with a multimeter. A healthy sensor will have a low resistance, with Subaru service specifications citing a range between 4.7 and 5.7 Ohms. A failed sensor will show infinite resistance (open circuit) or a reading far outside this range.
    Typical fix: Replace the Bank 1, Sensor 1 (front) oxygen sensor.
    Est. part cost: $70-$180
  2. Damaged Wiring or Corroded Connector 🟡 Medium Probability The sensor wiring is located under the vehicle and is exposed to heat, moisture, and road debris. The connector is on the side of the transmission bellhousing and can collect grime or get damaged. A loose wire at the connector is a known failure point.
    How to confirm: Visually inspect the wiring harness and connector leading to the front O2 sensor for any signs of melting, chafing, broken wires, or green/white corrosion on the pins. Wiggle the wires at the back of the connector to see if it affects the resistance reading.
    Typical fix: Repair the damaged section of wiring or clean/replace the connector.
    Est. part cost: $5-$50
  3. Blown Fuse for Heater Circuit ⚪ Low Probability
    How to confirm: Locate the main fuse box in the engine bay. Check the fuse labeled for the 'A/F Heater' or 'O2 Heater' (often a 15A fuse). Visually inspect the fuse to see if the internal wire is broken or test for continuity with a multimeter.
    Typical fix: Replace the blown fuse. If the new fuse blows immediately, it indicates a short circuit in the wiring or within the O2 sensor itself that must be found and corrected.
    Est. part cost: $1-$5

Rare But Worth Checking

  • Faulty Engine Control Module (ECM): This is extremely rare. Before condemning the ECM, all other possibilities (sensor, wiring, fuses) must be exhaustively ruled out. This would typically manifest as a lack of voltage being sent to the heater circuit from the ECM, even with a good fuse and wiring.

Diagnosis Steps

  1. Use an OBD-II scanner to confirm P0135 is the active code and check for any other codes.
  2. Visually inspect the front oxygen sensor's wiring harness and connector for any obvious damage, melting, or corrosion. The connector is located on the passenger side of the transmission.
  3. Check the A/F or O2 heater fuse (typically 15A) in the main fuse box under the hood.
  4. If the fuse and wiring appear intact, disconnect the oxygen sensor connector.
  5. Set a multimeter to measure resistance (Ohms). Probe the two pins on the sensor side of the connector that correspond to the heater circuit (often two wires of the same color, typically black).
  6. A reading of infinite resistance (OL) or a very high resistance indicates the heater element is broken and the sensor must be replaced. A healthy sensor should read between 4.7 and 5.7 ohms.
  7. If resistance is within spec, check for 12V power at the harness-side connector with the ignition on. If there is no power, the problem lies in the wiring or fuse box. If power is present, the issue may be in the ground control side of the circuit, which is controlled by the ECM.
  8. If the sensor, wiring, and fuse are all good, and there is no ground signal from the ECM, the issue could be a rare fault in the ECM driver circuit.

Parts You'll Likely Need

  • Front Air/Fuel Ratio Sensor (2005-2007 Models) (OEM #22641AA211) — This is the upstream sensor (Bank 1, Sensor 1) whose internal heater is the primary cause of code P0135. Denso is the original equipment manufacturer.
    Trusted brands: Denso (234-9120), Bosch, NGK/NTK
    OEM price range: $150-$220
    Aftermarket price range: $100-$180
  • Front Air/Fuel Ratio Sensor (2008-2009 Models) (OEM #22641AA360) — The part number changed for later models in this generation. This is the upstream sensor (Bank 1, Sensor 1) for these years. Always confirm fitment with your VIN.
    Trusted brands: Denso (234-9123), Bosch, NGK/NTK
    OEM price range: $140-$210
    Aftermarket price range: $70-$150
  • Oxygen Sensor Socket — A special 22mm (7/8") slotted socket is often required to remove and install the oxygen sensor without damaging the wire. 🎬 Watch: Pro tips for removing a seized oxygen sensor. Penetrating oil is also highly recommended as the sensor is often seized in the exhaust manifold.
    Trusted brands: Lisle, OEMTools, GearWrench
    OEM price range: $10-$25
    Aftermarket price range: $10-$25

Platform-Specific Known Issues

  • The electrical connector for the front A/F sensor is not on the engine itself, but mounted to a bracket on the passenger side of the transmission bellhousing. It can be difficult to see and reach from above and may require access from underneath the vehicle.
  • Due to exposure to extreme heat cycles, the original sensor is often seized in the exhaust manifold. Liberal use of a high-quality penetrating catalyst (like PB Blaster or Kroil) well before attempting removal is critical to avoid damaging the threads in the manifold.

Mechanic-Grade Diagnostic Values

  • A/F Sensor Heater Element Resistance — expected: 4.7 to 5.7 Ohms at room temperature. Failure: Infinite resistance (OL) indicates an open circuit. A reading far outside the specified range indicates a faulty heater.
  • Heater Circuit Supply Voltage — expected: Approximately 12V (battery voltage) with ignition on, engine off. Failure: 0V or significantly low voltage indicates a problem with the fuse, relay, or wiring from the power source.
  • Heater Circuit Current Draw — expected: 0.8 to 2.0 Amps during the warm-up phase. Failure: 0A indicates an open circuit (bad sensor, wiring, or no power). Excessively high current indicates a short circuit.

Scan Tool Commands That Help

  • Subaru Select Monitor (SSM): Current Data Display > A/F Sensor #1 Resistance — To check the heater element's resistance via the ECU without needing to physically disconnect the sensor and use a multimeter. This is a quick way to verify the most common failure.
  • Subaru Select Monitor (SSM): Current Data Display > A/F Sensor #1 Current — To monitor the amperage draw of the heater circuit in real-time during warm-up. This can help diagnose intermittent issues or confirm if the ECU is commanding the heater to turn on.
  • Professional Bi-Directional Scan Tool: Heater Driver Output Test — As a final step when the sensor and wiring test good. This command attempts to activate the heater circuit from the scan tool, confirming if the ECM driver itself is faulty. Failure to command the driver confirms an ECU-level fault.

Wiring & Ground Locations

  • Main ECU/TCU Ground — A grounding point on the back of the intake manifold.. This is a critical grounding point for the entire engine management system. A corroded or loose connection here can cause erratic sensor readings and phantom codes, including P0135, even if the sensor's own circuit appears intact.
  • Chassis Grounds — On both strut towers and on the frame rails in the engine bay.. While not the primary ground for the sensor circuit, poor overall engine-to-chassis grounding can create voltage potential differences, leading to a variety of electrical issues. Ensuring these are clean and tight is good practice when diagnosing any electrical code.

Real Owner Repair Stories

  • Subaru Legacy International (sl-i.net) forum user (2005 Subaru Legacy) — P0135 and P0141 codes present.
    ❌ Tried (didn't work) Initial diagnosis pointed towards replacing both O2 sensors.
    ✅ What actually fixed it The user inspected the sensor connectors and found loose wires at the back of the connector shell. Pushing the wires firmly back into the connector and ensuring the connection was secure resolved the codes without replacing any parts.

OEM Part Supersession History

  • 22641AA211N/A, but has multiple application-specific alternatives — This part number is specific to certain models and years, primarily 2005-2007 non-turbo models. It was not directly superseded for this application but rather a different part number was used for later years.
    Heads up: Using this part on a 2008-2009 model, or a turbo model, may result in incorrect readings or persistent codes. The Denso equivalent is 234-9120.
  • 22641AA360N/A — This is the correct part number for the later 2008-2009 non-turbo models.
    Heads up: This part should not be used on earlier 2005-2007 models. The Denso equivalent is 234-9123. Always verify by VIN.

Model Year Variations Within This Range

  • 2005-2007: These years typically use the front A/F sensor part number 22641AA211, which corresponds to Denso part number 234-9120.
  • 2008-2009: These later years in the generation use front A/F sensor part number 22641AA360, which corresponds to Denso part number 234-9123.

Diagnostic Flowchart

Start by confirming P0135 is the active code. On the EJ253 engine, this heater circuit fault often stems from high-mileage sensor fatigue or wiring damage near the transmission bellhousing.
→ Replace the 15A fuse. If it blows again immediately, there is a short circuit in the wiring harness or the internal heater element of the A/F sensor.
Inspect the front A/F sensor connector on the passenger side of the transmission bellhousing. Any signs of melting, green corrosion, or oil from a leaking AVLS pressure switch?
→ Clean or repair the connector. If an AVLS oil pressure switch leak is found (common EJ253 quirk), replace the switch to prevent recurring sensor contamination.
Disconnect the front A/F sensor. Using a multimeter, measure resistance (Ohms) between the two heater circuit pins (usually the two black wires) on the sensor side.
→ The heater element has failed. Replace the Bank 1 Sensor 1 A/F sensor. Note: Use penetrating oil like PB Blaster to avoid damaging the exhaust manifold threads.
With the ignition ON, measure voltage at the harness-side connector. Is 12V present at the heater power pin?
→ There is a break in the power supply wire between the fuse box and the sensor connector. Trace the wiring for chafing or rodent damage.
Check for a ground signal from the ECM on the heater control wire while the engine is running (cold start). Is the ECM providing a ground?
→ The ECM driver circuit for the heater may be faulty. This is rare; double-check all harness connections for high resistance before considering ECM replacement.
→ If power, ground, and sensor resistance (4.7-5.7 Ohms) are all within spec, the P0135 may be an intermittent connection. Re-seat the connector and clear the code.

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Head Gasket Failure (External Oil/Coolant Leaks) 🔴 High — Very common, typically occurs between 100,000 and 150,000 miles. The EJ253 is known for external leaks from the single-layer graphite-coated gaskets, which is less catastrophic than the internal failures of the older EJ25D.
  • AVLS / VVT Oil Pressure Switch Leak 🟠 Medium — Common oil leak point. The switch, located on the cylinder head, can fail and leak oil directly onto the hot exhaust manifold, causing a burning smell and potential fire risk.
  • Catalytic Converter Heat Shield Rattle 🟡 Low — Extremely common, especially in regions with road salt. The thin metal straps and bolts holding the heat shields onto the exhaust pipes and catalytic converter rust away, causing an annoying metallic rattle, particularly at idle or low RPMs.
  • Failing Wheel Bearings 🟠 Medium — A known weakness on this generation, wheel bearings can fail prematurely, causing a loud humming or grinding noise that changes with vehicle speed.
  • Brake Line Corrosion Recall 🔴 High — Affects vehicles in salt-belt states. A recall was issued because road salt could cause brake lines near the fuel tank to corrode, potentially leading to a brake fluid leak and loss of braking power. (Ref: NHTSA Campaign ID: 14V694000)

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For this repair, a used part is NEVER recommended. The oxygen sensor is a wear-and-tear component with a finite lifespan, similar to a spark plug or filter. The heating element that fails and causes P0135 is the primary wear point. Buying a used sensor means you are buying a part that is already part-way through its service life, and it could fail shortly after installation.

What to inspect on the donor part:

  • Not applicable as used parts are not advised.

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

  • While not strictly 'OEM-only', it is critical to use a sensor from an Original Equipment Manufacturer. For this Subaru, that means Denso or NTK. These brands manufactured the original part for Subaru.

Aftermarket brands forum-validated for this vehicle:

  • Denso (Original Equipment Manufacturer)
  • NGK / NTK

Brands owners have reported issues with on this vehicle:

  • Generic 'universal' sensors that require splicing wires.
  • Unbranded, low-cost sensors from online marketplaces, as they are notorious for having incorrect heater resistance values that will not fix the P0135 code.

Real Owner Stories

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

2005-2009 Subaru Legacy EJ253

Symptoms: The check engine light illuminated. Fuel economy dropped from 9.5 L/100km to 11.2 L/100km on highways. The engine idled unevenly, sometimes dipping below 600 RPM and stalling briefly when shifting into park. Acceleration felt sluggish and hesitant from a stop.

What fixed it: Replacement of the front oxygen (A/F) sensor.

Source hint: AliExpress Review

2005 Subaru Legacy

Symptoms: Owner experienced P0135 and P0141 codes simultaneously.

What fixed it: Repairing loose wires at the sensor connector.

Source hint: Subaru Legacy International (sl-i.net) - P0135 and P0141

2005-2009 Subaru Legacy EJ253 — ~100000 miles

Symptoms: Check engine light for P0135; code appeared specifically on the second start of the vehicle.

What fixed it: Diagnostic confirmed the ECU's specific routine for heater circuit checks.

Source hint: The Subaru Forums - P0135 on second start?

Frequently Asked Questions

Where is the front oxygen sensor connector located on my 2005-2009 Legacy?
The connector for the front A/F sensor is not on the engine itself; it is mounted to a bracket on the passenger side of the transmission bellhousing. It can be difficult to reach from above and may require access from underneath the vehicle.
What resistance should I look for when testing the A/F heater on my EJ253?
According to Subaru service specifications, a healthy sensor should have a resistance between 4.7 and 5.7 Ohms. A reading of infinite resistance (OL) indicates a failed heater element.
Is there a specific fuse I should check for the P0135 code?
Yes, check the main fuse box in the engine bay for a fuse labeled 'A/F Heater' or 'O2 Heater,' which is typically a 15A fuse.
Why does my P0135 code only appear on the second start?
This is a known nuance of the Subaru ECU logic, where the diagnostic checks for the heater circuit may require a second start cycle to trigger the active code.
I'm worried about snapping the sensor in the manifold. Any tips for this specific Subaru engine?
Because the sensor is exposed to extreme heat cycles, it is often seized. It is critical to use a high-quality penetrating catalyst like PB Blaster or Kroil well before attempting removal to avoid damaging the exhaust manifold threads.
Is there a recall for the brake lines on my 2005-2009 Legacy?
Yes, there is a recall (NHTSA Campaign ID: 14V694000) for vehicles in salt-belt states due to road salt causing brake line corrosion near the fuel tank.
Check Engine Light POO31 Fix - 2005-2009 Subaru Legacy (GT) Upstream Oxygen Sensor Change
Check Engine Light POO31 Fix - 2005-2009 Subaru Legacy (GT) Upstream Oxygen Sensor Change
How To Replace Both O2 Sensors On A Subaru
How To Replace Both O2 Sensors On A Subaru
How to Fix P0135 Code – O2 Sensor Heater Circuit Malfunction Bank 1 Sensor 1
How to Fix P0135 Code – O2 Sensor Heater Circuit Malfunction Bank 1 Sensor 1
O2 sensor replacement
O2 sensor replacement
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 31, 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 P0135 (Deep Dive) for:
  • Subaru Legacy: 20052006200720082009
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