Thermostat Wiring Colors Explained: R, W, Y, G, C and O/B

Most thermostat wires follow a standard color code: R (red) is 24-volt power, W (white) calls for heat, Y (yellow) calls for cooling (the compressor), G (green) controls the fan, and C (blue or black) is the common wire that completes the circuit to power smart thermostats. Heat pumps add O/B (often orange or dark blue) to control the reversing valve. But colors are a convention, not a rule; installers sometimes use whatever wire is available, so always go by the terminal letters, not the color alone.

Thermostat terminal and wire color chart

TerminalCommon wire colorWhat it does
RRed24-volt power from the transformer
RhRed24-volt power for heating (two-transformer systems)
RcRed24-volt power for cooling (two-transformer systems)
CBlue or blackCommon: completes the 24-volt circuit; powers smart thermostats
W or W1WhiteHeat (first stage)
W2 or AUXBrown, white or otherSecond-stage or auxiliary/backup heat
EVariesEmergency heat (heat pumps)
Y or Y1YellowCooling (compressor), first stage; also heat on heat pumps
Y2Light blue or otherSecond-stage compressor
GGreenIndoor blower fan
O/BOrange or dark blueHeat pump reversing valve (O energizes in cooling, B in heating)
L or SVariesSystem fault indicator or outdoor sensor (some systems)
Thermostat wiring diagram: R red, C blue, W white, Y yellow and G green wires from the thermostat to the furnace control board, with Y and C continuing to the outdoor AC unit
Typical 5-wire thermostat wiring for a gas furnace with central air. Heat pumps add an O/B wire.

R, Rh and Rc

Most homes have a single transformer, so R and Rc (or Rh) are connected by a jumper on the old thermostat or the new one handles it automatically. If you have two separate red wires going to Rh and Rc, your heating and cooling likely use separate transformers; keep them separate.

O vs. B on heat pumps

Most heat pump brands energize the reversing valve in cooling (O setting). Some, historically including Rheem and Ruud, energize it in heating (B setting). If a new thermostat heats when it should cool and vice versa, the O/B setting in the thermostat’s menu is wrong. See heat pump blowing cold air in heat mode.

Typical wiring by system

SystemTypical wires
Gas furnace + central ACR, C, W, Y, G
Heat pump with backup heatR, C, Y, G, O/B, W2 (aux)
Two-stage furnace + ACR, C, W1, W2, Y, G
Heat-only (furnace, no AC)R, W (sometimes G, C)
Boiler (heat only)Often just 2 wires: R and W

Before you replace a thermostat

  1. Turn off power at the breaker for the furnace or air handler.
  2. Take a photo of the existing wiring, with the terminal letters visible.
  3. Label each wire with the letter of the terminal it was on (most new thermostats include stickers).
  4. Check for a C wire. If none is connected, look in the wall for an unused wire tucked behind. See how to install a smart thermostat without a C wire.
  5. Connect by letter, not by color.

Common wiring mistakes

  • Connecting the wire to the terminal that matches its color instead of the letter it was on.
  • Leaving out the C wire on a smart thermostat, leading to a blank thermostat screen or random reboots.
  • Wrong O/B setting on heat pumps.
  • Loose wires that touch each other and blow the furnace fuse.

Wired correctly but still not working? See Honeywell thermostat not working, Nest thermostat not cooling or heating or the Nest “Delayed” message.

Frequently asked questions

What color is the C wire?

Usually blue, sometimes black. But check the furnace end: the C wire connects to the “C” or “COM” terminal on the control board.

Can I use the G wire as a C wire?

It’s possible with a power adapter or by reconfiguring, but you’ll lose independent fan control. A C-wire adapter kit is usually better.

What happens if thermostat wires are connected wrong?

The system may not run, may heat instead of cool, or you may blow the 3- or 5-amp fuse on the furnace control board.

Disclaimer: this guide is for general information only. Turn off power at the breaker before touching thermostat wiring. Contact a licensed HVAC professional for electrical diagnosis.