What You Need to Know Before You Start

Wiring a thermostat to a heat pump is different from wiring one to a furnace because a heat pump has a reversing valve that switches between heating and cooling modes. The thermostat must send the right signals to tell the heat pump which mode to run in, and it must also control the backup electric heating strips that kick in during very cold weather. If the wires go to the wrong terminals, the system will either not work at all or will run in the wrong mode.

Most heat pump thermostats use a standard five-wire setup: one wire for power, one for heating, one for cooling, one for the reversing valve, and one for the backup heat. Older thermostats may use fewer wires, and newer smart thermostats may use more. Before you disconnect anything, take a photo of the old thermostat's wiring so you can see which wires went where. If the old thermostat is digital, write down the wire colors and their terminal labels—this is your map for the new installation.

This guide assumes you are replacing an existing thermostat with a new one and that the wiring is already in the wall. If you are running new wire from the air handler to the thermostat, that is a larger job that may require a licensed electrician, especially if local code requires it. Always turn off power to the system at the breaker before you touch any wires.

Key Takeaways

  • Heat pump thermostats need five wires minimum: power (C), heating (W), cooling (Y), reversing valve (O), and backup heat (W2 or AUX), though the exact terminals vary by thermostat model.
  • Take a photo of the old thermostat's wiring before you disconnect it, and label each wire with tape so you do not mix them up during installation.
  • The reversing valve wire (O) tells the heat pump whether to heat or cool, and forgetting it is the most common reason a new thermostat does not work correctly.
  • After wiring is complete, test the system in both heating and cooling modes before you close up the wall or call it done.

Understanding Heat Pump Thermostat Terminals

A standard heat pump thermostat has six to eight terminals on the back, but you will only use five or six of them. The C terminal is the common wire—it carries 24 volts of power from the air handler to the thermostat and back. Without this wire, the thermostat has no power and will not work. The C wire is usually blue or black.

The W terminal is for heating mode. When the thermostat calls for heat, it sends power down the W wire to tell the heat pump to switch into heating mode and run the compressor. The Y terminal is for cooling mode and works the same way—when the thermostat calls for cooling, power goes down the Y wire. The O terminal is the reversing valve wire. This wire tells the heat pump's reversing valve which direction to flow refrigerant. In heating mode, the O wire is energized; in cooling mode, it is de-energized. If you forget the O wire, the heat pump will not switch between modes correctly.

The W2 or AUX terminal controls the backup electric heating strips. When outdoor temperature drops below the heat pump's efficiency range (usually around 35 to 40 degrees Fahrenheit), the thermostat energizes the W2 wire to turn on the strips. Some thermostats label this terminal AUX instead of W2. If your system does not have backup heat, you will not use this terminal.

Turning Off Power and Removing the Old Thermostat

Locate the breaker that controls your air handler and heat pump system. It is usually labeled "Heat Pump," "HVAC," or "Air Handler" on the breaker panel. Switch it to the OFF position. Wait 30 seconds to make sure any residual power drains from the system. If you are unsure which breaker controls the system, turn off the main breaker instead—this is safer than guessing.

Remove the cover or faceplate from your old thermostat. Most thermostats have a cover that snaps or slides off. Once the cover is off, you will see the wires connected to terminals on the back. Take a clear photo of this wiring before you touch anything. The photo is your reference if you get confused during installation.

Use a small flathead scrrew driver or a wire terminal tool to loosen the terminal screws one at a time. As you loosen each screw, gently pull the wire out. Do not yank hard—the wires are thin and can break. As each wire comes free, use a small piece of tape to label it with the terminal letter it came from (C, W, Y, O, W2). Stick the tape directly on the wire near the end. Once all wires are free, carefully pull the old thermostat away from the wall and set it aside.

Preparing the New Thermostat and Wires

Before you connect anything, check the new thermostat's manual to confirm which terminals you will use. Not all thermostats have the same layout. Some use O for the reversing valve, while others use B. Some use W2 for backup heat, while others use AUX or E. The manual will show you a diagram of the terminal strip on the back. Lay the manual open next to you so you can refer to it as you work.

Strip about one-quarter inch of insulation from the end of each wire using a wire stripper. If the wire is frayed or damaged, trim it back and strip it again. A clean, bare wire makes a better connection than a frayed one. If any wire is too short to reach the new thermostat (this sometimes happens if the old thermostat was mounted higher or lower), you will need to extend it. Use a wire connector rated for low-voltage wire—usually a small plastic connector that twists onto two wires to join them. Wrap the joint with electrical tape to hold it in place.

Mount the new thermostat's base plate to the wall. Most thermostats come with a level and mounting screws. Hold the base plate against the wall where the old one was, use a level to make sure it is straight, and mark the screw holes with a pencil. Drill pilot holes if the wall is plaster or concrete, then screw the base plate in place. Do not overtighten—you only need the plate to be snug.

Connecting the Wires to the New Thermostat

Start with the C wire (common). Loosen the terminal screw labeled C on the new thermostat's base plate. Insert the blue or black C wire into the terminal and tighten the screw firmly. The wire should not move if you tug on it gently. Move to the W terminal next. Loosen the W screw, insert the heating wire, and tighten. Repeat this process for Y (cooling), O (reversing valve), and W2 or AUX (backup heat).

Work slowly and double-check each wire against your photo and the thermostat manual. A wire in the wrong terminal will cause the system to malfunction. If you are unsure about a wire, stop and look it up in the manual or take a photo to compare. Do not guess. Once all wires are connected and tight, gently push the base plate and wires back toward the wall. There should be a little slack in the wires so they do not pull on the terminals.

Snap or slide the thermostat's faceplate onto the base plate. Most thermostats click into place. If it does not click, check that the wires are not pinched between the faceplate and the base. Once the faceplate is find, turn the breaker back on. The thermostat should power up and display the current temperature. If it does not, turn the breaker off again and check that the C wire is connected firmly.

Testing the System in Both Modes

Once power is on, set the thermostat to heating mode and lower the set temperature below the current room temperature. The heat pump should start within a minute or two. You should hear the outdoor unit turn on and feel warm air coming from the vents. Let it run for five minutes to make sure it stays on and does not cycle off and on repeatedly. If the system does not start, turn it off and check that the W and O wires are connected correctly.

Switch the thermostat to cooling mode and raise the set temperature above the current room temperature. The outdoor unit should turn on again, and you should feel cool air from the vents. The reversing valve should have switched the refrigerant flow. If the system runs but the air feels warm instead of cool, the O wire may be reversed or disconnected. Turn the system off and check the connection.

If the outdoor temperature is below 40 degrees Fahrenheit, set the thermostat to heating mode and lower the temperature further. The backup heating strips should turn on after a few minutes. You may hear a click inside the air handler as the strips energize. If you have a multimeter, you can check for voltage on the W2 terminal to confirm the strips are receiving power. If the strips do not turn on, check that the W2 wire is connected and that the thermostat is set to use backup heat (some thermostats have a setting for this).

Common Mistakes and How to Avoid Them

The most common mistake is forgetting or misconnecting the O (reversing valve) wire. Without it, the heat pump will not switch between heating and cooling modes correctly. You may get heat when you ask for cooling, or the system may not heat at all. Always check your photo of the old thermostat and the new thermostat's manual before you connect the O wire.

Another frequent error is connecting the C wire to the wrong terminal. If the C wire goes to a heating or cooling terminal instead of the common terminal, the thermostat will not power up or will power up intermittently. The C wire must go to the terminal labeled C, and it must be tight. If the thermostat powers up but the display is dim or flickers, a loose C wire is usually the cause.

Mixing up the W and W2 wires is also common. The W wire controls the heat pump compressor in heating mode, while the W2 wire controls the backup electric strips. If you connect them backward, the strips will turn on when you ask for heat, and the compressor will not run. The system will produce heat, but inefficiently and at high cost. Check the thermostat manual to confirm which terminal is which before you connect them.

Finally, do not forget to take a photo of the old thermostat before you disconnect it. This single step prevents most wiring errors. If you do make a mistake and the system does not work, the photo lets you see what the correct wiring was and fix it quickly.

Frequently Asked Questions

What if my old thermostat only has four wires?

Older thermostats sometimes omit the O (reversing valve) wire or the W2 (backup heat) wire. If the old thermostat worked, the system can work without those wires, though it may not function optimally. Check your new thermostat's manual to see if it requires all five wires or if it can work with fewer. If the new thermostat requires a wire that is not in the wall, you will need to run a new wire from the air handler to the thermostat.

Can I use a smart thermostat with a heat pump?

Yes, but smart thermostats often require a C wire to power the Wi-Fi radio. If your current wiring does not have a C wire, you may need to run one from the air handler. Some smart thermostats have a built-in power adapter that works without a C wire, but these are less common. Check the thermostat's manual before you buy it to confirm it works with your wiring setup.

What if the thermostat powers up but the heat pump does not start?

Check that the W and O wires are connected firmly and to the correct terminals. If they are, turn the system off and wait five minutes, then turn it back on. Some heat pumps have a delay before they start to protect the compressor. If the system still does not start after waiting, check that the breaker for the air handler is on. If the breaker is on and the system still will not start, the problem may be inside the air handler or outdoor unit, not the thermostat wiring.

Do I need a licensed electrician to wire a thermostat?

Thermostat wiring is low-voltage (24 volts) and is generally safe to do yourself if you are replacing an existing thermostat with a new one and the wiring is already in the wall. However, some local codes require a licensed electrician for any HVAC work. Check your local building department before you start. If you are running new wire from the air handler to the thermostat, a licensed electrician is strongly recommended.

Why does my heat pump run in heating mode even when I set it to cooling?

This usually means the O (reversing valve) wire is not connected or is connected to the wrong terminal. The reversing valve controls which mode the heat pump runs in, and without the correct signal, it defaults to heating. Check that the O wire is connected to the terminal labeled O on the thermostat and that it is tight. If it is, the problem may be inside the outdoor unit, and you should contact a technician.