Wiring a thermostat with a heat pump comes down to matching each labeled wire to its correct terminal – R for power, Y for the compressor, G for the fan, W for auxiliary heat, and O or B for the reversing valve that switches the system between heating and cooling. That reversing valve wire is the one detail that separates heat pump wiring from a standard furnace setup, and it’s the step most homeowners get stuck on.
This guide walks through how to wire a thermostat with a heat pump from start to finish, using the same terminal labels and color codes you’ll see printed on your existing wiring and thermostat manual.
What Makes Heat Pump Thermostat Wiring Different
A standard furnace and air conditioner setup uses separate wires for heating and cooling, since two different pieces of equipment handle each function. A heat pump uses one compressor for both, which means the thermostat needs an extra signal to tell the reversing valve which direction to run. That signal travels through the O or B terminal, and getting this one wire right is the key to understanding how to wire a heat pump thermostat correctly.
Some heat pump systems also include a second stage of heat, often electric heat strips, that kicks in during colder weather when the compressor alone can’t keep up. This is where the W2 or auxiliary terminal comes into play, and it’s a step that trips up a lot of first-time installers.
Thermostat Wire Colors and What Each One Does
Before touching any wiring, it helps to know what each wire is actually responsible for. Standard color coding looks like this, though it’s always worth confirming against your own system since installers occasionally vary from the standard:
Red wire (R or Rc): Carries 24-volt power from the transformer to the thermostat. Some systems split this into Rh for heating power and Rc for cooling power.
Yellow wire (Y): Signals the compressor to run. On a heat pump, this wire is active for both heating and cooling since the same compressor handles both.
Green wire (G): Controls the indoor blower fan.
White wire (W): Activates auxiliary or emergency heat, typically electric heat strips, when the compressor needs backup during extreme cold.
Orange or blue wire (O or B): Controls the reversing valve. Orange typically energizes on cooling, while blue or black energizes on heating, depending on the equipment brand, so this is worth confirming against your specific manual rather than assuming.
Blue or black wire (C): The common wire, which completes the circuit and provides continuous power to smart or programmable thermostats.
How to Wire a Thermostat With a Heat Pump, Step by Step
Turn off power at the breaker. Thermostat wiring runs on low voltage, but shutting off power at the breaker first keeps both you and the control board protected while you work.
Remove the old thermostat cover. This exposes the wiring block where each labeled wire connects to its terminal.
Take a photo before disconnecting anything. This single step saves the most time later, since it gives you a reference to check against if anything looks unfamiliar once the new thermostat is in place.
Label each wire with its terminal letter. Small tags or masking tape work well here, especially if the existing labels are faded or hard to read.
Loosen the terminal screws and gently remove each wire. Take care not to let any wire slip back into the wall opening.
Mount the new thermostat base and thread the wires through. Feed each wire through the base plate before securing it to the wall so nothing gets pinched behind it.
Match each wire to its labeled terminal on the new thermostat. Follow the color codes above, but always defer to your thermostat’s manual if the terminal layout looks different from what’s listed here.
Pay close attention to the O or B terminal. This is the step unique to heat pump systems, and it’s worth double-checking against your equipment’s documentation, since getting the reversing valve wire wrong won’t damage the system but will cause it to blow cold air when it should be heating, or the reverse.
Secure each wire firmly and tuck any extra length neatly into the wall box. Loose connections are one of the more common causes of thermostats that intermittently lose their signal.
Attach the thermostat cover and restore power at the breaker. Once power is back on, most thermostats walk you through a short setup process for confirming system type and configuring temperature settings.
Test both heating and cooling modes. Set the thermostat to heat first and confirm warm air comes through the vents, then switch to cool and confirm the same for cold air. This final check confirms the reversing valve wire was placed correctly.

Common Mistakes to Watch For
A few issues come up repeatedly during heat pump thermostat installations:
Mixing up the O and B terminal function, which causes the system to run backward, blowing cool air during a heating call or warm air during a cooling call.
Leaving the auxiliary heat wire disconnected, which can leave the system without backup heat during especially cold stretches.
Skipping the common wire connection, which many smart thermostats require to stay powered and connected.
Forcing a wire into the wrong terminal size or shape rather than confirming the correct terminal against the manual first.
If your system uses a dual fuel setup, a mini split configuration, or more wires than the standard five or six terminal layout, it’s a good sign to bring in an HVAC technician rather than continuing with a general guide, since these setups often include manufacturer-specific wiring that varies from the standard color code.
Related Topic: How Much Electricity Does a Heat Pump Use
Wiring a Heat Pump Thermostat in Sacramento Homes
Sacramento’s mix of hot summers and cool winter nights means heat pumps here run in both directions almost year-round, which makes the reversing valve connection especially important to get right locally. Homes throughout Sacramento, including Rancho Cordova, Folsom, Elk Grove, Roseville, and other surrounding areas that have upgraded to newer smart thermostats, sometimes run into compatibility issues when the original wiring only included four wires and the new thermostat calls for a dedicated common wire, a detail that’s easy to miss without checking the wiring diagram first.
Because heat pumps in this region cycle so frequently between heating and cooling throughout the year, a wiring mistake tends to show up quickly, which is actually helpful since it makes troubleshooting the connection straightforward once you know what to check. At Amercan Precision Heating and Air, all of these services are provided at very economical rates.
Frequently Asked Questions
How do I wire a thermostat with a heat pump?
Match each labeled wire to its terminal – R for power, Y for the compressor, G for the fan, W for auxiliary heat, and O or B for the reversing valve, then test both heating and cooling modes once power is restored.
How to wire a heat pump thermostat if there’s no common wire?
Some smart thermostats can run without a dedicated C wire using a power extender kit, though checking compatibility with your specific thermostat model before installation is the safest approach.
What does the O or B wire do on a heat pump thermostat?
It controls the reversing valve, which switches the system between heating and cooling. Getting this wire on the correct terminal is the main difference between heat pump wiring and standard furnace wiring.
Can I wire a heat pump thermostat myself?
Many homeowners handle standard wiring configurations safely by following the wire color codes and terminal labels closely. Systems with dual fuel setups, mini splits, or unusual wiring are generally better handled by a licensed HVAC technician.