Wiring diagrams 22 min read

Thermostat Wiring Diagrams: Every Setup from 2 to 8 Wires

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

A thermostat wiring diagram shows one simple rule: each wire connects to the same letter at both ends. R (red) is 24 V power, W (white) calls for heat, Y (yellow) calls for cooling, G (green) runs the fan, and C (blue or black) is the common wire that powers a smart thermostat. Heat pumps add O/B (orange) for the reversing valve, AUX/W2 for backup heat and E for emergency heat. This guide has a wiring diagram for every common US setup, from 2-wire heat-only to 8-wire heat pumps, plus where each old wire goes on a new thermostat. To check your own wires, use the free thermostat wiring tool.

1. How to read a thermostat wiring diagram

Nearly every central heating and cooling system in the United States is controlled by a 24 V AC low-voltage circuit. A transformer in the furnace, air handler or boiler supplies 24 V on the R terminal. The thermostat is a set of switches: when it wants heat, it connects R to W; for cooling, R to Y; for the fan, R to G. Relays and valves in the equipment do the heavy work. That is why thermostat cable is thin and why a thermostat swap is a reasonable DIY job.

A thermostat wiring diagram therefore has three parts:

  • The thermostat on the wall, with lettered terminals (R, W, Y, G, C and so on).
  • The indoor unit (furnace, air handler or boiler), where the same letters appear on a terminal strip on the control board. This is the “thermostat wiring at the furnace” end.
  • The outdoor unit (AC condenser or heat pump), connected to the indoor board with a separate, smaller cable.

Read every diagram the same way: follow the letter, not the color. The W wire at the thermostat lands on W at the furnace, Y on Y, and so on. Colors are a convention installers usually follow, but they are not required by code, and houses with replaced or extended wiring often break the pattern.

Before you touch any wire:

Turn off power at the furnace service switch (it looks like a light switch on or near the unit) or at the breaker. If R touches C while the power is on, the transformer is shorted and the 3 or 5 A fuse on the control board blows. Then take a clear photo of the old wiring.

2. Thermostat wire color code

This is the standard thermostat wire color code used by most US installers, with the exceptions that cause the most wiring mistakes. Use it to understand a diagram, but connect wires by the letter they came off.

Usual colorTerminalWhat it doesCommon exceptions
RedR, Rh, Rc24 V power from the transformerTwo red-type wires (Rh and Rc) mean two transformers
WhiteW, W1First-stage heat (furnace, boiler, or heat strips)On heat pumps, a white wire is often auxiliary heat
YellowY, Y1Compressor: cooling, and heating on a heat pumpRarely used for anything else
GreenGIndoor blower fanSometimes repurposed as C with a wire saver
Blue or blackCCommon: the return side of the transformerBlue is O/B on some heat pumps, and Trane labels common as B
OrangeO, O/BHeat pump reversing valveRheem and Ruud use a B terminal (often dark blue) instead
Brown, light blue, otherW2, Y2, AUX, ESecond stage heat or cooling, backup and emergency heatNo fixed color: trust the label only

Two letters deserve extra care. B means the reversing valve on Rheem and Ruud heat pumps but the common wire on many Trane and American Standard systems. X varies even more by brand. If you can’t tell, look up the old thermostat’s manual or check where the wire lands at the indoor unit. The full chart with photos is in our thermostat wire colors guide.

3. Thermostat wiring diagram: gas furnace + central AC

This is the most common system in American homes: a gas furnace indoors and a split air conditioner outside. With a C wire it uses five wires; without one it uses four.

Thermostat wiring diagram for a gas furnace and central air conditioner: R, W, Y, G and C from the thermostat to the furnace control board, with Y and C continuing to the AC condenser
Figure 1: A 5-wire furnace and AC system. An 18/5 cable runs from the thermostat to the furnace board; an 18/2 cable carries Y and C from the same board terminals to the outdoor condenser’s contactor coil.

What each wire does in this system

  • R brings 24 V from the furnace transformer up to the thermostat.
  • W starts the heating sequence: the furnace runs its inducer, proves the flame and, after a short delay, its own blower.
  • Y calls for cooling. At the furnace board, the thermostat’s Y wire and the outdoor unit’s Y wire share the Y terminal, so 24 V reaches the condenser’s contactor, which starts the compressor and outdoor fan.
  • G runs the indoor blower for cooling and for “fan on”.
  • C completes the circuit for anything powered, including the contactor coil outside and a smart thermostat’s electronics.

Thermostat wiring at the furnace control board

Open the furnace’s lower (blower) door, which presses a safety switch, so power must already be off. On the control board you’ll find a row of screw or push-in terminals marked R, C, W, Y and G (sometimes W1, Y1, Y/Y2, DHUM or HUM too). Look for:

  • Two wires under Y and C. One goes up to the thermostat, the other out to the condenser. That is normal.
  • A spare conductor folded back along the cable jacket. If the thermostat end is also unused, it can become your C wire: connect it to C at both ends.
  • The blade fuse, usually 3 A (violet) or 5 A (tan). If it is blown, something shorted. Replace it with the same rating, never a larger one.

Setup-specific diagrams with each thermostat’s terminals: 5-wire with a C wire and 4-wire, no C wire.

4. Thermostat wiring diagrams by number of wires

The quickest way to identify your system is to count the wires connected to the old thermostat. Don’t count a short jumper between two terminals, and don’t count spares folded back into the wall.

Thermostat wiring by number of wires: 2-wire R W, 3-wire R W G, 4-wire R W Y G, 5-wire R W Y G C, 6-wire heat pump R C Y G O/B AUX, 7 to 8-wire heat pump with Y2 and E
Figure 2: The terminals each wire count usually uses. Your labels decide; this chart tells you what to expect.

2-wire thermostat wiring (R and W)

Two wires mean heat only: no cooling, and no fan control from the thermostat. You will find this on hot-water and steam boilers, older gravity or heat-only furnaces, and zone valves. The thermostat closes R to W and the boiler or furnace does the rest.

A smart thermostat needs constant power, which two wires can’t provide on their own. Your options are a new cable with a C wire, a plug-in 24 V AC adapter (as long as the thermostat accepts it), or a thermostat designed for 2-wire heat. Before buying anything, rule out two lookalikes:

  • Thick wires and wire nuts on a baseboard heater are line voltage (120/240 V), not 24 V.
  • A gas fireplace or wall furnace with a standing pilot is often a millivolt system that a 24 V smart thermostat can’t use.

Diagram and compatibility: 2-wire heat-only wiring.

3-wire thermostat wiring

Three wires come in three versions, so read the letters:

  • R, W, G: heat and fan, no AC. Common on furnaces in mild climates. See 3-wire heat and fan.
  • R, W, C: heat only, but with a C wire, so a smart thermostat has power.
  • R, Y, G (or R, Y, G plus C): cooling only, with heat provided by something else. See cooling-only wiring.

On some heat pumps, three wires plus a fourth unused one are a sign the installer ran a cable but wired only the basics. Check the air handler before assuming.

4-wire thermostat wiring (R, W, Y, G)

The most common thermostat wiring in the US: heat, cooling and fan, but no C wire. Old mechanical and battery-powered thermostats didn’t need one. For a smart thermostat, check in this order:

  1. Look for a spare wire in the wall and at the furnace. Many 4-wire installs use 18/5 or 18/6 cable with one or two unused conductors.
  2. Use the thermostat’s own solution: ecobee’s Power Extender Kit, a Honeywell wire saver (Y moves to K), Amazon’s C-wire adapter, or Nest’s ability to run without C on many systems (with the Nest Power Connector as a fix if power is unstable).
  3. Run a new cable (18/5 or larger) from the thermostat to the furnace. This is the most reliable option.

Full diagrams: 4-wire thermostat wiring with no C wire and the no C wire guide.

5-wire thermostat wiring (R, W, Y, G, C)

Four wires plus a common: the setup every smart thermostat is designed for. The diagram is exactly Figure 1. If your old thermostat had five wires but one was never connected, it is probably a spare, not C. A true C wire is connected to C at the furnace board.

6-wire thermostat wiring

Six wires usually mean one of three systems:

The letters tell them apart instantly. Our 6-wire thermostat guide walks through each.

7-wire and 8-wire thermostat wiring

Seven or eight wires are almost always a heat pump with extra stages: R, C, Y, G and O/B, plus some of Y2 (second compressor stage), AUX/W2 (backup heat), E (emergency heat), or a dehumidify or humidifier terminal. Some thermostats on these systems also have an L or S terminal for a fault light or outdoor sensor. Make sure the thermostat you buy supports every function you use: the Amazon Smart Thermostat, for example, handles only a single-stage heat pump with one aux stage. See heat pump with emergency heat.

5. Heat pump thermostat wiring diagram

A heat pump heats and cools with the same compressor, so its wiring differs from a furnace in two important ways: Y runs the compressor in both modes, and an O/B wire switches the reversing valve that decides which way the heat moves. Backup heat, usually electric heat strips in the air handler, is a separate stage.

Heat pump thermostat wiring diagram: R, C, Y, G, O/B, AUX/W2 and E from the thermostat to the air handler, with R, C, Y, O/B and W2 continuing to the outdoor heat pump
Figure 3: A single-stage heat pump with electric backup heat. G, AUX and E stay at the air handler; R, C, Y and O/B continue outside, and on most units a W2 wire returns from the defrost board to bring on heat strips during defrost.

O or B: choose the right setting

SettingValve powered inTypical brands
OCoolingMost brands, including Carrier, Bryant, Trane, American Standard, Lennox, Goodman and Amana
BHeatingRheem and Ruud

The wire goes on the O/B terminal either way. If the house gets cold air when heat is on (after allowing for the compressor’s delay and defrost cycles), flip the O/B setting. Rheem and Ruud specifics: Rheem/Ruud heat pump B wire.

AUX vs. E

AUX (also W2, W1 on ecobee in heat pump mode, or X2 on older thermostats) adds backup heat automatically when the heat pump can’t keep up or during defrost. E is emergency heat: it locks out the compressor and runs backup heat only, for when the outdoor unit is broken. Many systems have no separate E wire; the thermostat then uses the AUX wire for emergency heat too. The details, including why aux heat runs too much, are in our heat pump and dual-fuel wiring guide and aux heat vs. emergency heat.

No W1 on a heat pump.

A common mistake is to put the heat pump’s heat call on W because “W means heat”. On a heat pump, normal heat comes from Y (plus the O/B setting). W/AUX is backup heat. Wiring it the furnace way makes the expensive heat strips do all the heating.

6. Boilers, zone valves and other systems

Boiler thermostat wiring

Most hot-water boilers use a simple 2-wire circuit. On a single-zone boiler the thermostat wires land on terminals often marked T T or TT (or R and W) on the boiler control. On zoned systems, each thermostat wires to a zone valve or to a zone control panel (such as a Taco or Honeywell zone panel), which then fires the boiler. A 24 V C wire is usually available at the zone panel or transformer, even if it isn’t run to the thermostat.

Some older zone valves use three wires to the thermostat and need a matching thermostat or an isolating relay. Check the valve’s manual before replacing that kind of thermostat.

Line-voltage heat (120 or 240 V)

Electric baseboard and wall heaters are controlled by a thermostat that switches the full heater current. Those wires are thick, joined with wire nuts, and can kill. A 24 V smart thermostat must never be connected to them. Use a line-voltage smart thermostat instead. See line-voltage thermostats.

Communicating systems

Premium variable-speed systems such as Carrier Infinity, Bryant Evolution, Lennox iComfort and Trane ComfortLink use a digital connection on terminals marked A, B, C, D (or 1, 2, 3, 4). They don’t follow the diagrams in this guide. A standard thermostat works only if the equipment is set up for conventional 24 V control.

7. Old thermostat to new: terminal conversion

Smart thermostats rename a few terminals. W becomes W1 on ecobee, Y becomes Y1, and O and B merge into one O/B connector. This chart shows where each old label goes on the four most popular smart thermostats in the US. These names come from each manufacturer’s installation guide.

Old thermostat to smart thermostat terminal conversion chart for Google Nest Learning 4th gen, ecobee, Honeywell Home T9 and Amazon Smart Thermostat
Figure 4: Where each label on your old thermostat goes on a new smart thermostat.
Old labelNest Learning (4th gen)ecobee Premium / EnhancedHoneywell Home T9Amazon Smart Thermostat
R (one wire)Rc or RhRcRR
Rh + Rc (two wires)Rh + Rc (pro install recommended)Rh + RcRh + RcNot supported
W / W1WW1WW
W2 (furnace 2nd stage)W2W2W2 / AuxNot supported
Y / Y1YY1YY
Y2Y2Y2Y2Not supported
GGGGG
C (or Trane-style B)CCCC
O, or Rheem/Ruud B*OBO/BO/BO/B
AUX (heat pump backup)AUXW1 (AUX in heat pump mode)W2 / AuxW
EENot supportedENot supported

The Rh–Rc jumper

Many old thermostats have a short wire or metal tab linking Rh and Rc. That is a jumper, not a wire from the wall. Don’t move it to the new thermostat: smart thermostats link Rh and Rc internally when only one R wire is connected. Only two separate wires from the wall (one on Rh, one on Rc) mean a dual-transformer system.

For any combination not listed, tick your old labels in the wiring tool. It checks the result against each thermostat’s published wiring rules and draws the diagram.

8. Honeywell, Nest, ecobee and Amazon thermostat wiring

Honeywell thermostat wiring

Honeywell and Resideo (Honeywell Home) thermostats use classic labels: R, Rc, W, Y, G and C on conventional systems, with O/B, W2/Aux, E, Y2 and on some models L/A (fault light) for heat pumps. Two Honeywell-specific terminals cause the most questions:

  • K is a combined fan-and-cooling signal used by the Honeywell wire saver (THP9045). One wire on K carries both calls, and the module at the furnace splits it back into G and Y, which frees the old G wire to become a C wire. See K terminal and wire saver wiring.
  • R and Rc with a jumper or slider: older Honeywell models use a metal jumper or a switch (R/Rc “jumpered” vs. separate). Leave it in the jumpered position unless you have two transformers.

Model guide: Honeywell Home T9 wiring.

Nest thermostat wiring

The Nest Learning Thermostat (4th gen) has push-in connectors labelled Rh, Rc, C, W, W2, Y, Y2, G, *OB, AUX and E (the exact set varies by Nest model). A single R wire can go in either Rh or Rc. Nest can often run without a C wire by drawing small amounts of power through the heating or cooling wires. If that causes problems (a clicking system or a thermostat that loses power), Google’s Nest Power Connector or a C wire fixes it. See Nest Learning (4th gen) wiring.

ecobee thermostat wiring

ecobee thermostats use Rc, Rh, C, W1, W2, Y1, Y2, G and O/B, plus PEK for the Power Extender Kit and, on the Premium, ACC+ and ACC− for a humidifier or dehumidifier. A single R wire goes on Rc. On a heat pump, the W1 terminal becomes AUX for backup heat. Without a C wire, ecobee’s Power Extender Kit installs at the furnace and connects to the PEK terminal. See ecobee PEK wiring and ecobee Premium wiring.

Amazon Smart Thermostat wiring

The Amazon Smart Thermostat keeps things simple: R, C, W, Y, G and O/B, plus K for its C-wire adapter. It supports one stage of heat and cooling or a single-stage heat pump with one aux stage, so it is not a fit for two-stage, dual-transformer or emergency-heat wiring. Without a C wire, Amazon’s adapter is required. See Amazon Smart Thermostat wiring.

9. How to wire a thermostat, step by step

This sequence works for any 24 V thermostat. Allow 30 to 60 minutes.

  1. Check compatibility first. Pull the old faceplate off and note every label that has a wire. Enter them in the wiring tool to confirm your new thermostat supports your system before you disconnect anything.
  2. Turn off the power at the furnace or air handler service switch or breaker. Set the old thermostat to heat and confirm nothing turns on.
  3. Photograph the wiring from straight in front, so every letter and wire is readable.
  4. Label each wire with the letter it is connected to, using the stickers in the box or tape. If two wires share one terminal, label both.
  5. Disconnect the wires and remove the old base. Wrap the cable around a pencil so it can’t fall into the wall.
  6. Check the bare ends. Each needs about 1/4 to 3/8 inch of straight, clean copper. Trim and re-strip any that are bent or corroded.
  7. Mount the new base, leveling it if the model needs it, and patch or cover old screw holes with a trim plate.
  8. Connect each wire to its matching terminal using the conversion table above. Tug each one gently to make sure it holds.
  9. Attach the display, restore power and follow the setup prompts. Answer the equipment questions carefully: system type, heat pump or furnace, O or B, stages, and whether the fan is controlled by the furnace (gas) or the thermostat (electric).
  10. Test every mode. Run heat, cool and fan on their own. Expect a few minutes of delay before the compressor starts.

Detailed walk-through with photos: how to replace a thermostat, then settings to check after installing and the best everyday thermostat settings.

10. Thermostat wire: gauge and conductor count

Thermostat cable is named by gauge and number of conductors: 18/5 means five 18-gauge solid copper wires in one jacket. 18 AWG is the standard for residential runs; 20 AWG is found in older or bargain cable and works for short runs.

CableTypical use
18/2Indoor unit to AC condenser (Y and C), or a 2-wire boiler thermostat
18/5Furnace + AC with a C wire (R, W, Y, G, C)
18/6 or 18/7Heat pump, or a two-stage system, with one or two spares
18/8Heat pump with aux and emergency heat, multi-stage systems, or future-proofing

When you run new cable, buy at least one more conductor than you need today. A spare costs pennies and saves another pull through the wall later. Rules for running new wire, and why you should never share the cable with line-voltage wiring, are in the thermostat wire gauge guide.

11. Thermostat wiring mistakes and how to fix them

Symptom after wiringLikely causeFix
Blank screen, no powerBlown furnace fuse, panel door switch open, condensate float switch tripped, or no C wireCheck the 3 or 5 A fuse and the door; measure R to C (about 24 to 28 V AC)
Fuse blew the moment power came onR touching C, or a Trane B (common) wire on O/BFix the short, then replace the fuse with the same rating
Heat pump blows cold in heat modeO/B setting reversedSwitch between O and B in the equipment settings
Fan runs all the timeG wire on the wrong terminal, or the fan set to “on”Check G at both ends and the fan mode
AC clicks or chatters, thermostat rebootsPower stealing without a C wire, or a weak transformerAdd a C wire or the brand’s adapter
“Wire not detected” messageWire not fully seated, or a wire the thermostat didn’t expectRe-strip, re-seat, and confirm the system type

For deeper checks with a meter, see how to test thermostat wires with a multimeter, thermostat wire not detected and thermostat clicking but AC not turning on. Our troubleshooting checklist covers the rest.

12. Frequently asked questions

How do I wire a thermostat?

Turn off power at the furnace or air handler, photograph the old wiring, and label each wire with the letter of the terminal it is connected to. Remove the old thermostat, mount the new base, and connect each wire to the terminal with the same letter (R to R or Rc, W to W or W1, Y to Y or Y1, G to G, C to C). Set the system type in the new thermostat, restore power and test heat, cooling and fan. The wiring tool shows the exact terminal for each wire on Nest, ecobee, Honeywell and Amazon thermostats.

What color wire goes where on a thermostat?

By convention: red to R (24 V power), white to W (heat), yellow to Y (cooling compressor), green to G (fan), blue or black to C (common), and orange to O/B on heat pumps. Colors are not a code requirement, so always connect by the letter the wire came off, not by its color. See the wire colors guide.

Which wire is the C wire if I don’t have a blue wire?

The C wire is whatever wire is connected to the C terminal at both the thermostat and the furnace or air handler board. It is often blue or black but can be brown, purple or any spare color. If no wire is on C at the thermostat, check the furnace board: a spare wire may be folded back unused in the wall and can be connected to C at both ends.

Can I put the red wire on Rh or Rc?

With a single red R wire: on ecobee use Rc; on Nest either Rh or Rc works; on Honeywell T9 and Amazon use R. Leave behind any short jumper wire that joined Rh and Rc on the old thermostat, because smart thermostats join them internally. Only if two separate wires come from the wall (one on Rh, one on Rc) do you have a dual-transformer system, and each goes on its own terminal.

What happens if you wire a thermostat wrong?

Usually something simply doesn’t work: heat runs when you ask for cooling, the fan won’t stop, or the screen stays blank. The serious mistake is connecting R to C (or a Trane-style B common wire to O/B), which shorts the 24 V transformer and normally blows the 3 or 5 A fuse on the furnace board. Turning the power off before you move wires prevents most damage.

Can I install a 5-wire thermostat with only 4 wires?

Often yes. Most Nest models can run on R, W, Y and G without a C wire, ecobee includes a Power Extender Kit, and Honeywell and Amazon use a wire saver or C-wire adapter. A spare wire in the wall or a new 18/5 cable is the most reliable fix. See 4-wire thermostat wiring with no C wire.

What do I do with extra wires in the thermostat cable?

Leave unused wires disconnected at both ends, with the copper ends bent back or capped so they can’t touch a terminal. Don’t connect a wire at the thermostat unless you know where its other end lands on the furnace or air handler board. A spare is valuable: it can become your C wire later.

Why does my thermostat have 2 wires but the new one needs more?

Two wires (R and W) mean the thermostat only switches heat, which is common on boilers and older heat-only furnaces. A smart thermostat also needs constant power, so with two wires you need a C wire (new cable or a plug-in 24 V adapter) or a model designed for 2-wire systems. Check first that the two wires are not line-voltage or millivolt wiring.

What is the difference between O and B on a heat pump thermostat?

Both control the reversing valve. O energizes the valve in cooling and is used by most brands (Carrier, Trane, Lennox, Goodman and others). B energizes it in heating and is used by Rheem and Ruud. On a smart thermostat the wire goes on O/B either way; you then choose O or B in the settings. If heat blows cold air, the setting is reversed.

Is thermostat wire dangerous to touch?

Standard thermostat wiring carries about 24 V AC from a small transformer, which is not a shock hazard for a healthy adult. The risk is to the equipment: a short between R and C blows the control fuse. Line-voltage thermostats on baseboard heaters (120 or 240 V) are a different matter and can kill. Turn the power off either way.

Do I need an electrician or HVAC tech to wire a thermostat?

Replacing a 24 V thermostat with the same number of wires is a common DIY job. Call a licensed HVAC technician for dual-transformer (Rh and Rc) systems, communicating systems, running new wire to the furnace or outdoor unit, a fuse that keeps blowing, or any line-voltage (120/240 V) heating.

What thermostat wire should I buy?

18 AWG solid copper thermostat cable. Choose the number of conductors for your system plus at least one spare: 18/5 for a furnace and AC with a C wire, 18/8 for a heat pump with auxiliary and emergency heat. Most outdoor condensers only need 18/2 (Y and C). See the wire gauge guide.