Quantra ElectricalGet a quote

Thermostat Wiring: Terminals, Colors and Safe Setup (2026)

Thermostat wiring is the set of low-voltage wires that connect your thermostat to the furnace, air handler, air conditioner or heat pump, with each wire landing on a lettered terminal. This guide explains what each terminal does, how to read wire colors, and how the setup changes for basic, heat pump and dual-transformer systems.

It also lists the steps for a safe swap and the signs that you need a licensed electrician.

Key points

  • Terminal letters are widely used, but wire colors are only typical conventions, so identify every wire by the terminal it connects to.
  • The R terminal carries 24VAC power from the transformer to the thermostat.
  • Heat pumps use O or B for the reversing valve and AUX or E for supplemental heat rather than W.
  • Turn the system off at the breaker before touching any wire, and call a licensed electrician if anything looks burned or damaged.
TermMeaningWhy it matters
R / Rc / Rh24VAC power from the transformerWithout it the thermostat has no power or cannot call for heat or cooling.
WHeating call on a conventional systemTells the furnace or boiler to start heating.
YCooling call to the compressorStarts the air conditioner or heat pump compressor.
GFan controlRuns the blower independent of heating or cooling.
CCommon return for 24VACGives smart thermostats continuous power.
O / BHeat pump reversing valveSwitches the system between heating and cooling.

Thermostat Wiring Chart for Basic Systems

A conventional furnace and air conditioner system uses a small set of terminals. Match each wire to its terminal letter, not its color.

  1. Connect the wire from the R terminal on the control board to the thermostat R terminal, since it carries the 24VAC power the thermostat needs.
  2. Land the W wire on the thermostat W terminal so a heating call reaches the furnace, and confirm the other end matches the board label.
  3. Land the Y wire on the Y terminal for cooling, checking that the wire is not nicked where it passes through the wall opening.
  4. Connect the G wire to the G terminal so the thermostat can run the blower fan on its own or during heating and cooling calls.
  5. Add the C wire to the C terminal if your thermostat needs continuous power, and match it to the C terminal at the equipment.
  6. Photograph the old wiring and label each wire with tape by terminal letter before disconnecting anything, so you can verify the new layout.

Thermostat Wiring Colors Explained

Colors help, but they are conventions only. Manufacturer guidance states there is no standard color for each function.

  1. Treat red as a likely power wire, but confirm it lands on an R-type terminal at the equipment before you connect it to the thermostat.
  2. Treat white as a likely heat wire, but verify it at the control board, since installers sometimes reuse whatever color was available.
  3. Treat yellow as a likely cooling wire, and check the board label for Y before assuming the old thermostat was wired correctly.
  4. Treat green as a likely fan wire, and confirm the G terminal at the equipment, especially in older homes with earlier repairs.
  5. Treat blue or black as a possible common wire, but read the terminal label at the board, because those colors vary widely between installers.
  6. Write down any wire that does not match the usual colors and trace it to its board terminal before you cap, move or reuse it.

Thermostat Wiring for Heat Pumps

Heat pumps use different terminals than a furnace and air conditioner. Supplemental heat replaces the simple W call.

  1. Use the O terminal if your reversing valve energizes for cooling, because power to the valve then selects cooling mode on that system.
  2. Use the B terminal instead only if the valve energizes for heating, and remember that when O is used, B is not.
  3. Connect the AUX or E wire to the matching terminal for supplemental heat, rather than placing it on W as you would on a furnace.
  4. Keep the Y wire on the Y terminal, since it still calls the compressor for both heating and cooling on most heat pumps.
  5. Check the thermostat setting for heat pump type during setup, because the wrong setting can run the system in the opposite mode.
  6. Read the equipment wiring diagram before any change, and ask a licensed electrician or HVAC technician if the reversing valve type is unclear.

Thermostat Wiring for R, Rc and Rh Terminals

Many thermostats have separate R terminals for heating and cooling transformers. How you wire them depends on how many R-type wires you have.

  1. Count the R-type wires at the equipment first, since the count decides whether you use a jumper or two separate connections.
  2. Use a single wire labeled R, Rc or Rh on one terminal when the system has a single transformer, and keep the jumper between R and Rc in place.
  3. Remove the jumper only when you have two separate R-type wires, and land them on the R and Rc terminals individually.
  4. Do not leave the jumper in place with two transformer wires connected, because it ties two separate power sources together.
  5. Check the label on each wire at the control board rather than guessing from color when two R wires appear in the cable.
  6. Stop and call a licensed electrician if the transformer feels hot, buzzes loudly, or the thermostat loses power repeatedly after wiring.

Thermostat Wiring Cable and Wire Gauge

Thermostat cable is low voltage, and the wire itself is thin. Its condition affects how reliably the system runs.

  1. Expect 18-gauge solid core wire in most homes, often in a five-wire configuration, and check the jacket marking if you are replacing a run.
  2. Count the conductors in the cable before buying a smart thermostat, because a model needing a C wire cannot use a cable that lacks one.
  3. Use a spare conductor in the existing cable for the C wire when one is available, and connect it at both ends to the same labeled terminal.
  4. Strip about a quarter inch of insulation, and make sure no stray copper strands touch neighboring terminals.
  5. Replace cable with cracked or brittle insulation instead of taping it, since damaged low-voltage cable can short and blow the control board fuse.
  6. Keep new cable runs away from line-voltage wiring, and have a licensed electrician route any run that must pass through a panel or junction box.

Thermostat Wiring Safety and Permits

Thermostat wires are low voltage, but the equipment they connect to is not. Treat the job accordingly.

  1. Turn off the furnace or air handler at the breaker and the service switch before removing the old thermostat, then confirm the display is dead.
  2. Stay away from the equipment and call a qualified person if you see exposed wires, scorch marks or smell burning near the thermostat or control board.
  3. Do not touch bare conductors if you feel a shock or tingle, and have a licensed electrician inspect the circuit before you restore power.
  4. Leave line-voltage thermostats, such as baseboard heater models, to a licensed electrician, since they carry full household voltage.
  5. Check with your local building department about whether a thermostat swap needs a permit, since rules vary by state and city.
  6. Budget for permits when the work goes beyond a swap, since fees vary with scope of work. Permit fees for residential electrical work typically range from $50 to $500 depending on the scope of work.

Frequently asked questions

Can I wire a thermostat by wire color?

Not reliably. Terminal letters are widely used, but colors are only typical conventions, and previous installers may have used any color available.

Identify each wire by the terminal it connects to at the equipment, label it, and then match it to the same letter on the new thermostat.

What does the R wire do on a thermostat?

The R terminal carries 24VAC power from the transformer to the thermostat. Without it the thermostat cannot power up or send a call for heating or cooling.

If you have two R-type wires, they usually go to separate R and Rc terminals.

How is heat pump thermostat wiring different?

Heat pumps use O or B for the reversing valve and AUX or E for supplemental heat rather than W. If the valve energizes for cooling, you use O and not B.

Check the equipment diagram and the thermostat's heat pump setting before powering up.

When should I call a licensed electrician?

Call one if you find exposed wires, burn marks, a burning smell, a shock, a hot transformer, or a line-voltage thermostat. Also call if the wiring does not match the diagram or the system keeps losing power.

Check local rules on permits for larger changes.

Next step for your thermostat wiring

If your thermostat wiring is confusing, damaged or missing a wire, Quantra Electrician can send a licensed electrician to trace the connections and make the correction. Bring a photo of the existing terminals and the equipment label so the visit goes faster.

Ask about local permit requirements before any work beyond a simple thermostat swap.

Related guides

Request a quote

Tell us what you need and we will get back to you.