P0031 indicates the upstream oxygen sensor heater circuit for Bank 1 Sensor 1 isn’t getting proper power or ground, which can slow down sensor warm‑up and affect emissions readings. The usual fix is to diagnose the heater circuit, then repair or replace the sensor or wiring as needed.
Understanding P0031
This fault code points to the heater element inside the upstream oxygen sensor (the sensor that measures air before the catalytic converter). When the heater isn’t functioning, the sensor takes longer to reach its operating temperature, delaying accurate readings and potentially causing the engine to run inefficiently or fail an emissions test.
Common Causes
Diagnosing P0031 begins with checking the most frequent culprits. Common reasons include:
- Faulty upstream O2 sensor heater element (Bank 1 Sensor 1)
- Damaged or frayed wiring to the heater circuit
- Blown fuse or faulty relay powering the heater circuit
- Short to power or ground within the heater circuit
- Less commonly, an ECU/controller fault
In practice, most fixes involve the sensor itself or the wiring, though fuses and relays are quick checks that can save time.
Diagnostic Approach
To safely identify the cause, follow a structured diagnostic path. The steps below are designed to be performed with basic automotive tools and a scanner that can read live data.
- Confirm the code and review freeze-frame data, noting any related trouble codes that may indicate a broader electrical issue.
- Inspect fuses and relays for the HO2S heater circuit; replace any that are blown or sticking.
- Inspect the wiring harness and connectors from Bank 1 Sensor 1 to the PCM/ECU for damage, corrosion, or loose pins. Repair or replace as needed.
- Test the O2 sensor heater resistance with a multimeter, comparing the reading to the vehicle’s OEM specification. If the resistance is out of spec, replace the sensor.
- With the ignition on (engine off or cold), check for voltage (and proper ground) at the sensor heater circuit using a multimeter or scan tool. A lack of voltage or a poor ground indicates wiring or connector issues.
- If power and ground are present and the heater still isn’t heating, the sensor is likely defective or the ECU isn’t commanding power correctly. Replace the sensor as a diagnostic step after confirming wiring integrity.
- Clear the codes and perform a road test while monitoring live data to confirm the sensor heater comes up to temperature promptly and P0031 does not reappear.
Following these steps helps isolate whether the issue is electrical, sensor-related, or ECU-driven, guiding you toward the appropriate repair.
Repair Options
Based on your diagnostics, consider these repair paths. The list outlines typical remedies and what they address.
- Replace Bank 1 Sensor 1 upstream O2 sensor (the most common fix when the heater element is failed).
- Repair or replace damaged wiring or connectors in the heater circuit; fix chafed insulation and reseat or replace plugs as needed.
- Replace any blown fuse or faulty relay that powers the O2 sensor heater circuit.
- Address connector corrosion or poor contact with cleaning and reseating, applying appropriate dielectric grease if recommended by the vehicle manufacturer.
- Verify that the correct type of sensor is installed (heated vs. non-heated, narrowband vs. wideband) for your engine, as mismatches can trigger heater-related codes.
After completing the repair, clear the codes and test drive to ensure the P0031 code does not return and the sensor heater operates properly.
When to Seek Professional Help
If you’re unsure about diagnosing electrical circuits, lack the right tools, or the code persists after the above checks, it’s wise to consult a licensed technician. A pro can accurately diagnose sensor vs. wiring vs. ECU issues and can perform advanced tests (such as current draw measurements or wiring schematics) that require specialized equipment.
What to Expect After Repair
Once the faulty component is replaced or the wiring repaired, the O2 sensor heater should rapidly reach its operating temperature, enabling the sensor to report accurate data sooner. Expect the check-engine light to turn off after a successful drive and successful code clearance, with improved driveability and stability in emissions testing scenarios.
Summary
P0031 is a heater circuit fault for Bank 1 Sensor 1, most often caused by a bad upstream O2 sensor or wiring/connector problems, with fuses or relays also playing a role. A systematic diagnosis—checking power and ground, inspecting wiring and connectors, testing sensor resistance, and confirming sensor operation—will identify the correct repair path. Replacing the sensor or repairing damaged wiring is typically sufficient, after which the code should clear and the vehicle should operate with proper emissions readings.
How much does it cost to fix P0031?
Ideally, it will cost anywhere between $150 and $600 to fix engine code P0031. The fix cost can vary greatly depending on the issue, like whether it is a defective upstream oxygen sensor, a PCM failure, or wiring harness damage.
Can a blown fuse cause a P0031 code?
The P0031 code can be caused by: Faulty oxygen sensor heater. Damaged wiring or short circuits in the heater circuit. Blown fuse for the oxygen sensor heater circuit.
How serious is the P0031 error code?
When you receive trouble code P0031, the heater for this sensor has a low resistance reading. Usually the resistance is below 0.8 A. This means a number of things could be wrong with your air/fuel sensor and/or heater: Damaged heater.
What are the three common causes of O2 sensor failure?
Designed to deliver dependable service, there are three common reasons why oxygen sensors fail:
- Age/high mileage. As the miles roll on, the O2 sensor will likely need to be replaced between 60,000 and 90,000 miles.
- Internal Contamination.
- Electrical Problem.


