P0E31 is a hybrid/EV trouble code you’ll usually see on vehicles with a high-voltage (HV) battery and electric A/C compressor. When this code sets, your car’s computer has detected a problem in the A/C compressor position sensor circuit, which helps the ECU control compressor operation and protect the HV system. You might notice reduced A/C performance, warning lights, or the hybrid system limiting power. This guide walks you through what P0E31 means in plain language, the most common causes, how to diagnose it, and what it typically costs to fix.
What Does P0E31 Mean?
P0E31 is a generic hybrid/EV diagnostic trouble code that typically translates to something like “A/C Compressor Position Sensor Circuit Low” or “A/C Compressor Position Sensor Range/Performance.” The exact wording varies by manufacturer, but the idea is the same: the ECU sees an abnormal signal from the sensor that tracks the electric A/C compressor’s internal position or speed.
On hybrid and electric vehicles, the A/C compressor is often driven by the high-voltage system, not a belt. The position/speed feedback is critical so the ECU can control cooling, protect the compressor, and keep HV components within safe temperatures. When the signal voltage is too low, missing, or out of range, the ECU stores P0E31 and may limit A/C or hybrid operation.
Quick Reference
- Code: P0E31
- System: High-voltage A/C compressor / hybrid HVAC
- Type: Sensor circuit range/performance (position/speed)
- Severity: Moderate to high on hybrids/EVs
- Typical fixes: Wiring repair, sensor/compressor replacement, connector cleaning
Real-World Example / Field Notes
In the shop, P0E31 usually shows up on hybrids that have been driven for a while with weak A/C or after collision or corrosion damage near the front of the car. A common pattern is a customer complaining that the A/C is intermittent, especially in hot weather, and the hybrid system sometimes reduces power or runs the engine more than usual. Scanning the car reveals P0E31 stored in the hybrid or A/C ECU, often along with other compressor or HV cooling codes. Many times, the root cause is a corroded connector at the electric compressor or damaged wiring from road debris or rodent activity.
Symptoms of P0E31
- Check engine light or hybrid system warning indicator illuminated
- Reduced A/C performance, especially at idle or in hot weather
- Intermittent A/C operation that cuts in and out while driving
- Hybrid system power reduction or engine running more than normal
- Cooling fan running frequently as the ECU tries to protect HV components
- Possible battery temperature warnings if the pack can’t be cooled properly
- Other HVAC or hybrid codes stored in the ECU alongside P0E31
Common Causes of P0E31
Most Common Causes
- Damaged wiring to the A/C compressor position sensor – chafed, pinched, or broken wires causing low or no signal voltage.
- Corroded or loose connectors at the electric A/C compressor or junction blocks, often from moisture, road salt, or engine bay leaks.
- Failed A/C compressor position sensor – internal sensor failure inside the electric compressor assembly.
- Internal A/C compressor fault – mechanical or electrical failure that affects the sensor’s ability to report correct position/speed.
- Low HV system voltage or poor ground on the sensor circuit, causing the ECU to read a low or erratic signal.
Less Common Causes
- Water intrusion into wiring harnesses or connectors after flooding or heavy rain.
- Rodent damage to HV A/C compressor harnesses, especially in vehicles parked outside.
- Previous collision repairs near the front end that left wiring stretched, pinched, or incorrectly routed.
- ECU software issues that misinterpret a borderline signal and set P0E31 prematurely.
- Defective hybrid/A/C control module (rare) that misreads the sensor input.
Diagnosis: Step-by-Step Guide
To properly diagnose P0E31, you’ll want at least a good scan tool that can read hybrid and A/C data, a digital multimeter, and basic hand tools. On HV systems, always follow manufacturer safety procedures and, if you’re not trained on high-voltage, let a qualified shop handle anything involving orange cables or HV components.
- Confirm the code and freeze-frame data. Use a capable scan tool to read P0E31, note when it set (coolant temp, A/C request, vehicle speed), and check for related codes like other P0E3x or A/C compressor faults.
- Inspect A/C operation. With the engine/hybrid system “Ready,” turn the A/C to max. Note if the air gets cold, if it cuts out, or if the compressor seems not to engage at all. Listen for unusual compressor noises.
- Perform a visual inspection. Safely raise the vehicle if needed and inspect the electric A/C compressor and its wiring harness. Look for chafed insulation, crushed sections, rodent damage, or connectors that are loose or green with corrosion.
- Check connectors and terminals. Disconnect the compressor connector (following HV safety rules). Look for bent pins, corrosion, moisture, or overheated terminals. Clean and repair as needed, then reconnect firmly.
- Test sensor power, ground, and signal. Using a wiring diagram, backprobe the position sensor circuit with a multimeter. Verify you have proper reference voltage (often 5V), good ground, and a sensor signal that isn’t shorted to ground or power.
- Wiggle test the harness. While monitoring live data or sensor voltage, gently move the harness near the compressor and along its route. If the signal drops out or spikes, you likely have an internal wire break or poor connection.
- Check live data / Mode $06. Many scan tools will show A/C compressor speed or position feedback. Compare commanded vs actual values. Mode $06 can sometimes show borderline test results that haven’t fully failed yet.
- Verify compressor integrity. If power, ground, and wiring all check out, and the ECU is still flagging P0E31, the internal sensor or compressor assembly is probably faulty and will need replacement.
- Clear codes and road test. After repairs, clear P0E31, operate the A/C under various conditions, and confirm the code does not return.
Pro tip: On hybrids and EVs, never open or probe orange high-voltage connectors unless you are trained and have the proper PPE. Most P0E31 diagnostics can be done on the low-voltage sensor side, but if you’re unsure, let a hybrid-certified technician handle it.
Possible Fixes & Repair Costs
The exact repair for P0E31 depends on what you find during diagnosis. In many cases, you’re dealing with wiring or connector issues, but sometimes the electric compressor itself has to be replaced.
- Repair or replace damaged wiring – splicing in new wire, repairing insulation, or rerouting the harness. Typical cost: $150–$400 depending on access and labor time.
- Clean or replace corroded connectors – terminal cleaning, new connector housings, or pigtails. Typical cost: $100–$300.
- Replace A/C compressor position sensor (if serviceable separately) – parts and labor: $250–$600.
- Replace electric A/C compressor assembly – on many hybrids/EVs the sensor is built in. This can run $800–$2,000+ parts and labor, depending on the vehicle and whether OEM or aftermarket parts are used.
- ECU update or replacement (rare) – software reflash is usually $100–$200; module replacement can exceed $600–$1,200 with programming.
Typical repair cost ranges for P0E31 are roughly $150 on the low end (simple wiring fix) up to $2,000 or more if the high-voltage A/C compressor must be replaced. Labor rates, parts availability, and whether you use a dealer or independent hybrid specialist all affect the final bill.
Can I Still Drive With P0E31?
In many cases, you can still drive with P0E31 stored, but it’s not something you want to ignore for long. The car may limit A/C performance or hybrid assist to protect the high-voltage system. On hot days, lack of proper A/C and battery cooling can stress the HV battery and other components. Short trips to a repair shop are usually fine if the car isn’t showing severe warnings, but if you see “Check Hybrid System,” overheating messages, or experience major power loss, you should stop driving and have it towed.
What Happens If You Ignore P0E31?
If you ignore P0E31, you risk more than just uncomfortable cabin temperatures. Poor control of the electric A/C compressor can lead to overheating of the battery pack or power electronics, accelerated wear on the compressor, and potential failure of expensive hybrid components. Over time, what might have been a simple wiring repair can turn into a high-dollar compressor or HV battery cooling system repair.
Need wiring diagrams and factory-style repair steps?
Powertrain faults often require exact wiring diagrams, connector pinouts, and guided test steps. A repair manual can help you confirm the cause before replacing parts.
Related Hybrid/ev Battery Codes
Compare nearby hybrid/ev battery trouble codes with similar definitions, fault patterns, and diagnostic paths.
- P0E34 – Hybrid/EV Battery Coolant Flow Controller Stuck Off
- P0E33 – Hybrid/EV Battery Coolant Flow Controller Stuck On
- P0E32 – Hybrid/EV Battery Coolant Flow Controller Stuck Closed
- P0E30 – Hybrid/EV Battery Coolant Flow Controller Performance
- P0E35 – Hybrid/EV Battery Coolant Flow Controller Range/Performance
- P0E1B – Hybrid/EV Battery Pack Coolant Flow Sensor Circuit Intermittent/Erratic
Key Takeaways
- P0E31 points to a problem with the electric A/C compressor position sensor circuit on hybrid/EV systems.
- Common causes include damaged wiring, corroded connectors, and internal compressor or sensor failure.
- Symptoms range from weak or intermittent A/C to hybrid system power reduction and warning lights.
- Ignoring the code can overheat HV components and lead to expensive repairs.
- Repairs can be as simple as a wiring fix or as involved as replacing the high-voltage A/C compressor.
Vehicles Commonly Affected by P0E31
P0E31 is most frequently seen on hybrid and electric vehicles that use an electric-driven A/C compressor. You’ll commonly find it on Toyota and Lexus hybrids (Prius, Camry Hybrid, Highlander Hybrid, RX and ES hybrids), GM hybrids, and some Honda and Hyundai/Kia hybrid models. Certain plug-in hybrids and full EVs from these manufacturers can also set this code. While the basic meaning is similar across brands, the exact diagnostic steps and parts involved will vary by make, model, and year.
FAQ
Can I clear P0E31 myself and keep driving?
You can clear P0E31 with a scan tool, but if the underlying issue isn’t fixed, the code will usually return. Clearing it doesn’t repair wiring, sensors, or the compressor. It’s fine to clear it once after a repair to verify the fix, but repeatedly clearing the code without diagnosis can allow a small problem to turn into a major failure.
Is P0E31 dangerous to drive with?
It’s not usually an immediate safety hazard like a brake or steering failure, but it can be risky for the high-voltage system. If the A/C compressor can’t cool the battery and electronics properly, you may get overheating, reduced power, or expensive component damage. Treat it as a priority and have it checked soon, especially in hot climates.
Can low refrigerant cause P0E31?
Low refrigerant by itself typically doesn’t trigger P0E31, because this code is focused on the compressor position sensor circuit. However, if the system has been opened or serviced incorrectly, wiring or connectors near the compressor could be disturbed, leading to this code. It’s always smart to check both the electrical side and the refrigerant charge when diagnosing hybrid A/C issues.
How do I know if the A/C compressor needs to be replaced?
You’ll know the compressor is the likely culprit if power, ground, and signal wiring all test good, connectors are clean and tight, and the ECU still sees an incorrect or missing position signal. A technician will use live data, resistance checks, and sometimes manufacturer-specific tests to confirm. If the sensor is built into the compressor and can’t be serviced separately, replacing the entire compressor is usually required.
Can a bad 12V battery cause P0E31?
A weak 12V battery can cause all kinds of strange electrical issues, but it’s not a common direct cause of P0E31. That said, if system voltage is very low during startup, the ECU might misread some sensor signals. If your 12V battery is old or testing weak, it’s worth replacing, but you should still fully inspect the compressor wiring and sensor circuit before assuming the battery was the only issue.
