Wiring guide 18 min read

Smart Thermostat Wiring Guide: Wire Colors, C Wires and Testing 24 V Circuits

By Ismail Farooq Published 2026-09-29 • Updated 2026-10-30 • Based on the manufacturers’ installation manuals
In short:

Replacing an old mercury or basic digital thermostat with a smart one, such as the Google Nest Learning Thermostat (4th gen), ecobee Smart Thermostat Premium, or Honeywell Home T9, can trim heating and cooling costs; ENERGY STAR puts the average saving of a certified smart thermostat at about 8%. Wiring mistakes are the usual cause of blown furnace fuses, chattering AC contactors and thermostats that go blank. This guide explains what each wire does, how to solve a missing C wire, and how to check the circuit with a meter. If you just want the answer for your own wires, the wiring tool maps them onto each thermostat. Also read our companion guides on heat pump & dual-fuel wiring and thermostat wiring diagrams for every setup.

1. How the 24 V control circuit works

Almost every central heating and cooling system in North America is controlled by a 24 V AC low-voltage circuit (a Class 2 circuit under the National Electrical Code). The thermostat never switches the furnace or compressor power itself; it only switches this small control voltage, and relays in the equipment do the rest. Knowing how that circuit is laid out explains almost every wiring rule that follows.

Low voltage is why thermostat cable is thin (usually 18 AWG solid copper) and can run through walls without conduit. It is also why a thermostat swap is a reasonable DIY job, as long as the power is off and you stay away from the 120 V wiring inside the furnace cabinet.

24VAC Residential HVAC Control Loop Architecture Diagram showing Transformer, Fuse, Control Board, and Smart Thermostat
Figure 1: The 24 V control circuit. A 120V-to-24V transformer feeds power through a 3A blade fuse to the R terminal, while low-voltage relays switch the Gas Valve (W), A/C Contactor (Y), Blower Fan (G), and Heat Pump Reversing Valve (O/B). The C wire provides the return path.

The transformer

The circuit starts at a small step-down transformer inside the furnace, boiler or air handler. Its primary side takes 120 V from the house; its secondary side supplies nominal 24 V AC. With nothing running, a healthy transformer usually reads a little high, around 26 to 28 V AC.

Most residential HVAC transformers are rated at 40 VA, which sets how much the whole control circuit can draw:

40 VA ÷ 24 V ≈ 1.67 A total

That budget is shared by everything the thermostat can switch on: the outdoor contactor coil (Y), the gas valve and ignition control (W), the blower relay (G), a reversing valve on heat pumps, and accessories such as humidifiers or zone dampers. A smart thermostat itself adds only a small, steady load, typically well under a tenth of an amp.

On older systems with a smaller 20 or 30 VA transformer and several accessories, the voltage can sag when everything runs at once. The symptoms are a chattering contactor, a thermostat that reboots, or Wi-Fi that drops out during long runs.

The control board fuse

Most modern furnace control boards have an automotive-style blade fuse on the 24 V side, usually 3 A (violet) or 5 A (tan). It protects the transformer and the board if the low-voltage wiring is shorted.

Turn the power off first. If the R wire touches the C wire, or bare copper touches the grounded furnace cabinet, the transformer is shorted and the fuse blows (or, without a fuse, the transformer can be damaged). Switch off power at the furnace service switch or breaker before you touch the thermostat wires.

Why old thermostats didn’t need a C wire

A classic mechanical thermostat, such as the Honeywell Round, needs no power of its own. A coiled bimetallic strip tilts a small mercury switch (or moves a contact) as the room warms and cools. It is just a switch between R and the wire it turns on.

A smart thermostat is a small computer with a screen, sensors and a Wi-Fi radio, so it needs power all the time. It gets that power from the 24 V circuit, and for a steady supply it needs both sides of the transformer: R and the common (C) wire. Without C, it has to use workarounds, covered in section 3.

2. Wire colors vs. terminal letters

The most useful rule in thermostat wiring: go by the terminal letter, not the wire color. Google, ecobee and Honeywell all tell you to label each wire by the letter it came off.

There is a common color convention (red for R, white for W and so on), but it is only a habit, not a code requirement. Over the life of a house, installers run out of a color, reuse old cable, or wire a heat pump with furnace-style colors, so any given wire may not match the chart.

Standard Thermostat Wire Color Code Chart showing R, C, W, Y, G, O/B, and W2 terminal assignments
Figure 2: Common terminal letters and the colors usually used for them. Go by the letter next to the terminal, not the color.

Terminal letters at a glance

The usual color, job and cautions for each common terminal:

Terminal Usual color What it does Voltage to C Notes
R / Rh / Rc Red 24VAC Transformer Hot Supply. Delivers primary low-voltage power. Rh = Heat Power, Rc = Cool Power. 24VAC to 28VAC (Continuous) In single-transformer systems, Rh and Rc are bridged by a jumper. In dual-transformer setups, keep them separate.
C Blue or Black 24VAC Common Return. Completes the electrical circuit back to the transformer secondary coil. 0VAC Reference (Return) Gives a smart thermostat steady power. Don’t assume blue is C without checking where it lands on the furnace board.
W / W1 White Stage 1 Heating. Energizes the furnace gas valve, oil burner primary control, or electric resistance bank. 24VAC when active (0VAC idle) On conventional systems, bridging R to W initiates the heating cycle. On heat pumps, W often functions as Aux/Emergency heat.
Y / Y1 Yellow Stage 1 Cooling / Compressor. Pulls in the outdoor condenser contactor relay coil. 24VAC when active On heat pumps, Y energizes the compressor for both heating and cooling modes; the reversing valve dictates the flow.
G Green Indoor Blower Fan Relay. Triggers the air handler fan motor independently of heating or cooling calls. 24VAC when active Enables the "Fan On" continuous air circulation mode. Can be multiplexed via an adapter when no C wire exists.
O / B (or O/B) Orange / Dark Blue Heat Pump 4-Way Reversing Valve. Switches refrigerant flow between cooling mode (O) and heating mode (B). 24VAC steady state O is energized in Cooling (Carrier, Trane, Lennox). B is energized in Heating (Rheem, Ruud). See B wire guide.
W2 / AUX Brown Stage 2 Heat / Auxiliary Heat. Fires secondary high-fire burners or supplemental electric heat coils. 24VAC when active Kicks in automatically when primary heat pump cannot maintain setpoint during sub-freezing outdoor weather.
E / X2 Black or Gray Emergency Heat Relay. Manual override locking out the heat pump compressor during outdoor failure. 24VAC when active Runs purely on high-consumption backup electric strip heaters or secondary furnace burners.
K Any Color Wire saver terminal. Carries combined cooling and fan signals on one wire. Varies (adapter signal) Used by the Honeywell wire saver and Amazon’s C-wire adapter, with a module at the furnace.

Thermostat cable sizes

Residential thermostat wire is usually 18 AWG solid copper, sold by conductor count:

  • 18/4 Cable (4 conductors): Red, white, yellow, green. Very common in older homes, and leaves no spare for a C wire (see 4-wire setup).
  • 18/5 Cable (5 conductors): Adds blue. The usual choice today for single-stage heating and cooling with a C wire (see 5-wire setup).
  • 18/8 Cable (8 conductors): Adds orange, brown and black. Used for heat pumps with aux and emergency heat, multi-stage systems, or to leave spares.

Some older homes have thinner 20 or 22 AWG wire, or even reused telephone cable. Thin wire drops more voltage on long runs and can break inside push-in terminals. If yours is like that, running new 18/5 or 18/8 cable is the most reliable fix. Our wire gauge guide covers how.

3. The C wire and power stealing

The C (common) wire causes more smart thermostat trouble than anything else. Here is why a smart thermostat wants one when the old thermostat worked for years without it.

How current flows

Current only flows around a complete loop. R brings 24 V from one side of the transformer. W, Y and G each run to a relay or valve in the equipment, and the other side of each of those loads goes back to the transformer’s common side. Connecting R to one of them at the thermostat completes that loop and turns that function on.

When an old thermostat called for heat, it closed a switch between R and W. Current flowed through the furnace control and back to the transformer, and the furnace started. When the room warmed up, the switch opened and the furnace stopped.

A smart thermostat needs power around the clock for its screen, sensors and Wi-Fi. It can’t just connect R to W to power itself, because that would turn the heat on.

The C wire solves this. It connects straight to the common side of the transformer, so R and C together give the thermostat its own 24 V supply without switching on any equipment.

What power stealing is, and why it causes problems

Many homes only have four wires (R, W, Y, G) and no C. To work in those homes, some thermostats use power stealing (also called power sharing or harvesting).

While the equipment is off, the thermostat lets a very small current (on the order of tens of milliamps) trickle through the heat or cooling circuit. The idea is that this is too little to switch the equipment on, but enough to charge the thermostat’s internal battery.

Four C-wire options compared: spare wire, new cable, power adapter and plug-in transformer
Figure 3: Four ways to get steady 24 V power when the thermostat cable has no C wire.

In practice, power stealing often causes problems:

  1. Chattering or buzzing contactor. Some AC contactors are sensitive enough that the trickle current makes them buzz or chatter, which wears the contacts.
  2. Furnace board errors. Electronic furnace control boards can read the trickle current on W as a call for heat, causing short, repeated start attempts or fault codes.
  3. Battery drain during long runs. While the heat is running, R and W are connected, so there is no voltage across that circuit to steal from. The thermostat runs on its battery, and during long runs on cold days the battery can run down, Wi-Fi drops, and the thermostat may reboot.

Four ways to get a C wire

If your wall plate only has four wires (R, W, Y, G) or two (R, W), these are the options, most reliable first:

Option 1: Use a spare wire (free)

With the power off, remove the old thermostat base and gently pull a few inches of cable out of the wall. Installers often ran 5-wire cable and folded the unused wire back. If you find one, connect it to C on the new thermostat, then find the same color at the furnace control board and connect it to the board’s C (or COM) terminal.

Option 2: Run new cable

If the thermostat wall sits above an unfinished basement or below an accessible attic, pulling new 18/5 or 18/8 cable is the most reliable fix. Tape the new cable to the end of the old one, pull it through, and you also get spare wires for a second stage or accessories later.

Option 3: Use the brand’s adapter

If running cable isn’t practical, use the adapter made for your thermostat:

  • ecobee Power Extender Kit (PEK): Included with the ecobee Premium and Enhanced. It mounts at the furnace and carries the fan and cooling signals over one wire, which frees a wire to act as C.
  • Google Nest Power Connector: Google’s adapter for Nest thermostats. It installs at the furnace control board and needs no new wire.
  • Honeywell wire saver: combines the fan and cooling signals on the K terminal, freeing a wire for C. Amazon’s C-wire adapter works the same way.

Option 4: Plug-in 24 V transformer

For boilers and other heat-only systems where the equipment is hard to reach, a plug-in 24 V transformer can power the thermostat. It plugs into a nearby outlet and runs two thin wires to the thermostat: one to C and one to Rc, with the boiler’s wires on Rh and W. The thermostat must have separate Rh and Rc terminals so the two circuits stay isolated. Check your thermostat’s manual before using one.

4. Heat pumps, dual transformers and wire savers

A single-stage furnace with R, C, W, Y and G is straightforward. Most mistakes happen with heat pumps, two-stage equipment, dual transformers and brand-specific letters.

Heat pump reversing valves: O or B

A heat pump is an air conditioner that can run in reverse. A reversing valve in the outdoor unit, moved by a 24 V solenoid, switches the direction the refrigerant flows: in summer it moves heat out of the house, in winter it moves heat in.

The thermostat controls that solenoid through the O/B terminal, but manufacturers differ on when it is powered:

  • O (energized in cooling): most brands, including Carrier, Bryant, Trane, American Standard, Lennox, Goodman and Amana. The valve rests in heating and the thermostat powers O to switch to cooling.
  • B (energized in heating): mainly Rheem and Ruud. The valve rests in cooling and the thermostat powers B for heating. More in the heat pump wiring guide.
Watch out for a B wire on a furnace system. On many older Trane, American Standard and Carrier systems, B is the common (C) wire, often blue. If that wire goes into the O/B connector of a new thermostat, the transformer is shorted when the thermostat switches O/B, and the furnace fuse blows. If you don’t have a heat pump, a B wire is almost always common. The B wire guide shows how to tell.

Auxiliary heat (AUX / W2) vs. emergency heat (E)

A heat pump’s output falls as it gets colder outside. Below a certain outdoor temperature, the balance point (often somewhere around 25 to 35°F for a standard heat pump, lower for cold-climate models), it can’t keep up with the home’s heat loss on its own, so the system adds backup heat:

  • Auxiliary heat (AUX): usually electric heat strips (commonly 5 to 15 kW) in the indoor air handler. The thermostat turns them on automatically alongside the heat pump when it falls too far behind; the exact trigger depends on the brand and your settings.
  • Emergency heat (E): a mode you choose yourself when the outdoor unit can’t run, for example after a failure or when it is iced over. It locks out the heat pump and heats with the backup source only.

Dual-transformer systems (Rh and Rc)

Homes where heating and cooling were added separately, such as a boiler plus an attic air handler for AC, often have two separate 24 V transformers:

  • Rh: power from the heating transformer.
  • Rc: power from the cooling transformer.

With one transformer, Rh and Rc are joined by a jumper (or an internal switch on some thermostats). With two transformers, they must be kept separate: joining them connects two power supplies together, which can blow a fuse or damage a transformer. See our Rh and Rc dual transformer guide for step-by-step isolation wiring.

5. Installing step by step

A careful homeowner can install most 24 V smart thermostats. Doing it in this order avoids the most common mistakes.

Step 1: Turn off the power

Setting the thermostat to “Off” is not enough. Cut the power itself:

  1. Switch off the furnace or air handler at its service switch (usually a light-style switch on or near the unit).
  2. For extra safety, also switch off its breaker, and the outdoor unit’s breaker.
  3. Check that the old thermostat’s screen is dead and the system doesn’t respond. (A non-contact tester won’t reliably detect 24 V, so don’t rely on one here.)

Step 2: Photograph and label

Take the old thermostat off its base. Before loosening anything, take a couple of clear photos showing every terminal letter and which wire is on it. Then put the labels from the new thermostat’s box on each wire, by the letter of the terminal it came off.

Tip: Once the wires are loose they can slip back into the wall. Wrap them around a pencil or tape them to the wall while you work.

Step 3: Check the furnace end

With the power still off, open the furnace or air handler and find the thermostat cable on the control board’s low-voltage terminals. Check that the colors on R, C, W, Y and G match what you labeled at the wall. If a spare wire is folded back unused here, this is where you connect it to C.

Step 4: Mount the base and connect the wires

Mount the new base (most include a small level). Make sure each wire has clean, straight copper exposed; the manual gives the exact strip length, usually about 6 to 10 mm (¼ to ⅜ inch). Push each wire fully into its connector and tug it gently to check it is held.

Step 5: Power up and test

Put the furnace door back on (most furnaces have a door switch that cuts power while it is open), then turn the power back on and follow the thermostat’s setup:

  • Fan: set the fan to On and check the indoor blower starts.
  • Cooling: set Cool a few degrees below room temperature. The outdoor unit should start (allow up to five minutes for the compressor delay) and the vents should blow cool air.
  • Heating: set Heat a few degrees above room temperature and check for warm air.

6. Checking a setup before you buy

Each thermostat’s manual only covers that thermostat. If you are still choosing, it helps to see how your existing wires map onto several models at once, and which ones need an adapter. That is what our free wiring tool does.

How the wiring tool works: enter wires, identify the system, check each thermostat, show the diagram
Figure 4: The four steps the wiring tool goes through.

What the tool does

  1. You enter your wires: tick the terminal letters that have a wire, or upload a photo for an AI model to read (the photo isn’t stored; always check what it reads).
  2. It identifies the system: conventional or heat pump, number of stages, C wire or not, dual transformer, and ambiguous letters such as B and X. It stops with a warning for line-voltage and millivolt systems.
  3. It checks five thermostats against each manufacturer’s published wiring rules: Each gets a verdict: works as a direct swap, needs an adapter, check a wire first, pro install recommended, or not compatible.
  4. It draws the wiring: which old wire goes on which new terminal, what to cap, and the settings to choose in the app (such as O or B).

Related tools

7. Multimeter tests and troubleshooting

An inexpensive digital multimeter answers most questions after an install: is there power, is the thermostat sending the signal, and is a wire broken. More detail is in our multimeter guide.

Setting up the meter

Set the dial to AC volts (V~), on a range of at least 50 V if it isn’t auto-ranging. Black lead in COM, red lead in V.

Expected readings

Probes on System state Expected reading What it means
Red probe on R • Black probe on C Standby / Idle 24.0VAC to 28.5VAC Transformer is working. If it reads 0, check the board fuse, the service switch and the door switch.
Red probe on R • Black probe on W Heating Idle (No Call) 24.0VAC to 28.0VAC Normal: the heat circuit is open, so you read the transformer voltage through the furnace control.
Red probe on R • Black probe on W Active Heat Call ~0.0VAC to 0.5VAC Normal: the thermostat has connected R to W, so there is no voltage across that switch.
Red probe on R • Black probe on Y Cooling Idle (No Call) 24.0VAC to 28.0VAC Normal: the cooling circuit is open.
Red probe on R • Black probe on Y Active Cool Call ~0.0VAC to 0.5VAC Normal: the thermostat is sending 24 V out on Y to the contactor.
Red probe on R • Black probe on G Fan Off (Idle) 24.0VAC to 28.0VAC Normal: the fan circuit is open.
Red probe on R • Black probe on G Fan "ON" Active ~0.0VAC to 0.5VAC Normal: the fan circuit is closed and the blower should run.

Four common problems after an install

1. The screen stays blank

If the thermostat doesn’t power up, check these in order:

  • Door switch: the furnace or air handler panel presses a safety switch. If the panel isn’t fully seated, there is no 24 V.
  • Condensate float switch: if the AC drain is clogged, a float switch in the drain pan or line can open the circuit, and on many systems that cuts power to the thermostat.
  • Blown fuse: pull the blade fuse on the control board and look at the metal link. If it is broken or blackened, something shorted. Find the cause, then replace it with the same rating. Never bypass it or fit a bigger fuse.

2. Cooling blows warm air, or heating blows cold (heat pumps)

The O/B setting is probably reversed. Change it in the thermostat’s equipment or installer settings (the menu name varies by brand), then wait up to five minutes for the compressor delay before testing again.

3. The outdoor unit buzzes or the contactor chatters

This is usually power stealing without a C wire, or a weak 24 V supply. Measure R to C at the thermostat while the system runs. If it sags well below 24 V, or there is no C wire, add one or install an ecobee Power Extender Kit or Nest Power Connector to stabilize power.

4. The furnace short-cycles

If the burner shuts off after a few minutes and restarts, the furnace may be overheating and tripping its high-limit switch: check for a dirty filter or blocked return grilles first. Otherwise, check the thermostat’s cycle rate setting matches your equipment. Honeywell’s defaults, for example, are about 5 cycles per hour for a standard gas furnace, 3 for a high-efficiency furnace or hot-water boiler, and 1 for steam.

8. Systems a smart thermostat can’t control

Before buying, make sure your system isn’t one of these three types, which standard 24 V smart thermostats don’t work with directly.

Line voltage (120 or 240 V)

With electric baseboard heaters, electric ceiling heat or wall fan heaters, the thermostat switches the full 120 or 240 V heater current directly, often 10 amps or more.

Safety warning: Connecting a 24 V smart thermostat (Nest, ecobee, Honeywell T9, Amazon) to 120 or 240 V wiring destroys it and is a real shock and fire hazard. Line-voltage wiring can kill: turn off the breaker and confirm it is dead with a tester before touching it.

How to spot line-voltage wiring:

  • Thick wires, the same size as outlet wiring (12 or 14 AWG).
  • Wires joined with twist-on wire nuts in an electrical box.
  • Usually two or four heavy wires, often black and red.
  • Labels such as 120 V, 240 V, LINE, LOAD or a current rating.

For line voltage, use a smart thermostat built for it, such as Mysa or Sinopé, or have an electrician install a relay that lets a 24 V thermostat switch the heater. See the line-voltage guide.

Millivolt systems (gas fireplaces and wall heaters)

Gas fireplaces, wall furnaces and floor furnaces that keep working in a power cut are often millivolt systems: a thermopile heated by the standing pilot makes a small DC voltage (typically up to about 750 mV) that runs the gas valve. A 24 V smart thermostat can’t be powered by that; these need a millivolt-rated thermostat, or an added 24 V supply and relay fitted by a professional.

Communicating systems

Some high-end variable-speed systems, such as Carrier Infinity, Bryant Evolution, Lennox iComfort and Trane ComfortLink, use a digital data connection on terminals marked A, B, C, D or 1, 2, 3, 4 instead of ordinary 24 V signals. A standard smart thermostat can only be used if the equipment is set up for conventional 24 V control, which usually gives up some of its variable-speed features. Otherwise, use the manufacturer’s own control.

9. Frequently asked questions

Does thermostat wire color matter when installing a smart thermostat?

Not reliably. Colors are a habit, not a code requirement, and installers often reuse or swap them. Label each wire by the terminal letter it was connected to on the old thermostat before you disconnect anything. See the wire colors chart.

Can I install a smart thermostat like Nest or ecobee without a C wire?

Often, yes. Nest thermostats can usually run without a C wire on furnace and AC systems, though some systems have power problems, which Google’s Nest Power Connector fixes. ecobee includes its Power Extender Kit for 4-wire setups, and Honeywell and Amazon use a wire saver or C-wire adapter. A spare wire in the wall or new cable is the most reliable fix. See the no C wire guide.

What does the B wire mean on my thermostat?

It depends on the equipment. On Rheem and Ruud heat pumps, B is the reversing valve, energized in heating. On many Trane, American Standard and older Carrier systems, B is the common (C) wire. Putting a common wire on the O/B connector shorts the transformer and usually blows the furnace fuse. The B wire guide shows how to tell.

What causes a furnace fuse to blow during a smart thermostat installation?

The 3 or 5 A fuse on the furnace control board blows when R touches C or the grounded metal cabinet. That usually happens when wires are changed with the power on, bare ends touch each other, or a B wire that is really common is put on the O/B connector.

Why is my heat pump blowing cold air when heat is called?

Right after an install, the usual cause is the O/B setting. Most brands (Carrier, Trane, Lennox, Goodman) use O; Rheem and Ruud use B. Switch the setting in the thermostat and test again after the compressor delay. Also remember that heat pump air feels cooler than furnace air, and the unit briefly blows cool air during defrost. More in the heat pump wiring guide.

What is the difference between Auxiliary Heat (AUX) and Emergency Heat (E)?

Auxiliary heat turns on automatically alongside the heat pump when it can’t keep up, for example on cold days or after a big setpoint increase. Emergency heat is a mode you select yourself when the outdoor unit can’t run; it locks out the heat pump and uses only the backup heat, which usually costs much more to run.

Can a smart thermostat replace a 120V or 240V electric baseboard thermostat?

No. Nest, ecobee, Honeywell T9 and Amazon thermostats are 24 V low-voltage devices. Connecting one to a 120 or 240 V baseboard heater circuit destroys it and is a shock and fire hazard. Use a thermostat made for line voltage, such as Mysa or Sinopé. See the line voltage guide.

How do I test 24VAC thermostat wires using a digital multimeter?

Set the meter to AC volts and measure between R and C: about 24 to 28 V means the transformer is working. Then, at the furnace board, measure from C to W, Y and G while calling for heat, cooling and fan; each should read about 24 V when it is being called. The multimeter guide has the full sequence.