Installation & Setup

Thermostat Wiring Explained: Terminals, Wire Colors and C-Wire Options

Quick answer

Thermostat terminals are named by function, not color: R is 24-volt power, C is the common return, W calls for heat, Y for cooling, G for the fan, and O or B switches a heat pump's reversing valve. Colors follow loose conventions that installers often ignore, so always label wires by the terminal they came from. A smart thermostat usually needs a C wire for steady power.

How a thermostat controls your system

Almost all central heating and cooling systems in North America use a 24-volt AC control circuit. A small transformer in the furnace or air handler supplies 24 V on the R terminal. The thermostat acts as a set of switches: when it wants heat, it connects R to W; for cooling, R to Y; for the fan, R to G. Each of those wires runs to the equipment's control board, which then starts the burner, compressor or blower.

Because the thermostat is only a switch, it needs no power of its own, unless it has a screen and Wi-Fi. That is where the C (common) wire comes in: it completes the circuit back to the transformer so the thermostat can draw steady power.

This guide covers low-voltage (24 V) thermostats. Thermostats for electric baseboard heaters run on 120 V or 240 V line voltage and can kill; they are marked with thick wires and wire nuts rather than small screw terminals. Leave those to an electrician. Millivolt thermostats for some gas fireplaces and wall furnaces are a third, separate type.

Terminal reference: what each letter does

TerminalFunctionCommon wire color
R24 V power from the transformerRed
Rc24 V power from the cooling transformerRed
Rh24 V power from the heating transformerRed
CCommon, the return side of the transformer; powers the thermostatBlue or black
W / W1Heat, first stageWhite
W2Heat, second stage, or auxiliary heat on a heat pumpBrown or any spare color
Y / Y1Compressor, first stage (cooling, and heating on a heat pump)Yellow
Y2Compressor, second stageLight blue or any spare color
GIndoor blower fanGreen
OHeat pump reversing valve, energised in coolingOrange
BHeat pump reversing valve, energised in heatingDark blue
EEmergency heat on a heat pump (backup heat only, compressor locked out)Varies

Rc and Rh: most homes have one transformer, so a jumper (a metal tab or short wire) links Rc and Rh, and a single red wire goes to either. Homes with separate heating and cooling equipment, such as a boiler plus a separate AC air handler, can have two transformers; then the jumper is removed and each red wire goes to its own terminal.

O versus B: most heat pump makers energise the reversing valve in cooling (O). Some, notably Rheem and Ruud, energise it in heating (B). Thermostats usually have a single O/B terminal and a setting that chooses which. If heating and cooling are reversed after an install, that setting is the first thing to check. On some older systems a wire on a B terminal was actually the common, which is another reason to trace wires rather than trust letters or colors.

Wire colors are a convention, not a rule

The colors in the table are what most installers use, but nothing forces them to. Thermostat cable comes in bundles of 2 to 10 conductors in fixed colors, and installers frequently use whatever is spare: a blue wire might be the common, the B terminal or a second-stage call. Black is often used for C when blue is busy. A two-wire heat-only system might use red and white, or red and any other color.

So the rule is simple: identify each wire by the terminal it is connected to at the equipment end, not by its color. Before disconnecting the old thermostat, take a clear photo of the terminals and stick a label on each wire. If something does not make sense, open the furnace or air handler panel (with the power off) and check where each wire lands on the control board.

Wiring for common setups

SystemTerminals usedConductors
Heat only, no fan control (boiler, some furnaces)R, W (C if available)2–3
Gas or oil furnace with central AC, single-stageR, C, W, Y, G5
Air handler with AC and electric heatR, C, W, Y, G5
Heat pump, single-stage, electric backup heatR, C, Y, G, O/B, W2/AUX (E optional)6–7
Two-stage furnace with two-stage ACR, C, W1, W2, Y1, Y2, G7
Boiler heat plus separate AC (two transformers)Rh, Rc (jumper removed), W, Y, G, C6
Dual fuel: heat pump with gas furnace backupR, C, Y, G, O/B, W (furnace as auxiliary heat)6, plus outdoor sensor if used

Variable-speed and communicating systems from some brands use proprietary two- or four-wire data connections instead of these terminals. Their thermostats are usually brand-specific.

C-wire options for smart thermostats

  1. Use an unused conductor. Many walls already have a cable with a spare wire tucked back. Connect it to C at the thermostat and to the C or COM terminal on the furnace or air handler control board.
  2. Run a new cable. Pulling an 18/5 or 18/8 cable along the old one gives you a C wire and spares for future upgrades.
  3. Install a power extender or add-a-wire kit. A small module at the furnace lets four existing wires carry five signals. Several thermostat makers include one in the box.
  4. Add a separate 24 V transformer. A plug-in or hard-wired transformer can power the thermostat on its own two wires. This must be wired so it does not interfere with the equipment's own transformer.
  5. Repurpose the G wire. It works on some systems but you lose independent control of the fan, and some thermostats warn against it.

Thermostats that steal power without a C wire can work, but they sometimes cause relays to chatter, a furnace to cycle oddly, or the display to drop out. If you see those symptoms, adding a C wire usually cures them.

Troubleshooting after a thermostat swap, safest first

  1. Blank screen. Check the furnace service switch and breaker, the furnace door (a door safety switch cuts power when the panel is not seated), and the C wire connections. Then check the 3–5 A fuse on the control board.
  2. Fan runs all the time. The fan setting is ON, or the G wire is on the wrong terminal.
  3. Heat pump heats when it should cool. Flip the O/B setting in the thermostat's installer menu.
  4. No cooling, outdoor unit silent. Confirm Y is connected at both ends and the system type is set correctly. See outside AC unit not running.
  5. Heat pump never uses backup heat. The AUX or W2 wire is not connected or the thermostat is not configured for auxiliary heat; see thermostat not reaching temperature.
  6. System starts and stops often. Check the cycle rate setting and thermostat location; see AC short cycling.
  7. Control-board fuse keeps blowing. Two wires are touching, often R against C, or a damaged cable to the outdoor unit. This is technician territory if you cannot find the short.

Switch off power to the furnace or air handler before connecting or disconnecting any thermostat wire. A brief short between R and C with power on blows the board fuse and can damage the transformer. Never work inside a gas furnace beyond the low-voltage terminal strip; gas valves, burners and venting are for licensed technicians.

Frequently asked questions

What is the difference between R, Rc and Rh?

All three carry 24 V power. Rc is the power for cooling and Rh for heating. With one transformer, a jumper links them and one red wire is enough. With two transformers, each gets its own wire and the jumper comes out.

Do I need a C wire for a smart thermostat?

Most Wi-Fi thermostats need steady power and work best with a C wire. Some can run without one using power stealing or a supplied adapter, but a C wire is the most reliable option.

Can I trust the wire colors in my wall?

No. Colors are conventions only. Label each wire by the terminal it was connected to, and confirm at the furnace control board if anything is unclear.

Should my heat pump thermostat use O or B?

Most brands use O, energised in cooling. Rheem and Ruud have traditionally used B, energised in heating. Check the outdoor unit's manual or simply test: if modes are reversed, change the setting.

What does the E terminal do?

E is emergency heat on a heat pump. It runs only the backup heat and locks out the compressor, for use when the outdoor unit has failed. It is not meant for everyday use because electric backup heat costs more to run; see heat pump running cost.

Last reviewed 2026-10-28