DiversiTech programmable touchscreen thermostat

Replacing a thermostat is one of the most popular DIY home upgrades, whether you're swapping an old dial unit for a programmable model or installing a Wi-Fi smart thermostat. On most standard forced-air furnace and central air systems, the thermostat runs on low voltage (24 volts), and the job takes about an hour. The key is understanding the wires: what each terminal letter means, whether you have a C-wire, and how your new thermostat needs to be set up.

This beginner's guide explains thermostat wiring in plain English and then walks through the installation step by step.

Before you start: is this a DIY job?

Most central heating and cooling systems in US homes use low-voltage (24V) thermostats. These have thin, color-coded wires (usually 18-gauge) and are fine for a careful DIYer. Some systems are different:

  • Line-voltage systems (120V or 240V), such as electric baseboard heaters and some wall heaters. These thermostats have thick wires, often connected with wire nuts, and the old thermostat is usually labeled with its voltage. A 24V thermostat cannot be used on these systems, and the wiring carries dangerous voltage. Use a line-voltage thermostat and have a licensed electrician install it if you aren't qualified.
  • Heat pumps and multi-stage systems use extra terminals (O/B, Y2, W2, AUX/E) and need correct configuration. A mistake can cause poor performance, high energy bills or equipment damage. A licensed HVAC professional is the safest choice.
  • Millivolt systems (some gas wall furnaces and fireplaces) use a special type of thermostat. Check compatibility before you buy.

If you're not sure what you have, look at the old thermostat's label and wiring, and check the new thermostat's compatibility guide before you buy.

Thermostat terminal letters explained

Each wire connects to a terminal marked with a letter. The letter tells you what the wire controls. Wire colors are only a convention. Installers don't always follow them, so always go by the terminal the wire was connected to, not its color.

Terminal Common wire color What it does
R (Rh, Rc) Red 24V power from the system transformer. Rh is power for heating and Rc is power for cooling on systems with two transformers.
W (W1, W2) White Calls for heat (furnace or boiler). W2 is a second stage of heat.
Y (Y1, Y2) Yellow Calls for cooling (air conditioner compressor). Y2 is a second stage.
G Green Turns on the blower fan.
C Blue or black (varies) The "common" wire. It completes the 24V circuit and gives the thermostat continuous power.
O/B Orange or dark blue Heat pump reversing valve (switches between heating and cooling).
AUX / E Varies Auxiliary or emergency heat on heat pump systems.

Rh and Rc: Many furnace and AC systems have a single transformer and only one red wire. Many thermostats include a jumper between Rh and Rc, or set this automatically. If your old thermostat had a jumper between them and only one R wire, keep that setup. If you have two separate R wires, connect them to Rh and Rc separately and remove the jumper. Always follow your new thermostat's instructions.

What is a C-wire and do you need one?

The C-wire (common wire) gives the thermostat a constant 24V power supply. Basic battery-powered thermostats don't need one. Most Wi-Fi smart thermostats need one, or strongly recommend it, to power the screen and wireless connection reliably. Without a C-wire, some smart thermostats try to draw power through the heating or cooling wires. That can cause flickering screens, Wi-Fi dropouts, or equipment that cycles on and off unexpectedly.

If your thermostat has no wire on C, you have a few options:

  1. Look for an unused wire. Pull the wire bundle gently out of the wall. There may be an extra wire folded back behind the old thermostat. If the same wire is unused at the furnace control board, it can be connected to the C terminal at both ends.
  2. Use a C-wire adapter. Many smart thermostats include or offer a power adapter or extender kit that installs at the furnace and creates a C connection over your existing wires. Check your thermostat manufacturer for a compatible adapter.
  3. Run new thermostat wire. Replace the old cable with new multi-conductor wire that includes enough conductors for C and any future needs. 18-gauge cable with 5 to 8 conductors is common. See our thermostat wire selection.

Avoid improvised workarounds, such as moving the fan (G) wire to C, unless your thermostat's manufacturer specifically supports it. You can lose independent fan control, and the result depends on the system.

Tools you'll need

  • Screwdrivers (small flat and Phillips)
  • Drill with small bit and drywall anchors (usually included with the thermostat)
  • Small level
  • Painter's tape and a pen for labeling wires
  • Your phone, to photograph the old wiring
  • Non-contact voltage tester (recommended)

Step-by-step: how to install a thermostat

Step 1: Turn off power at the breaker

Turn off power to the furnace or air handler at the circuit breaker panel. Many systems also have a service switch near the furnace that looks like a light switch. The outdoor AC or heat pump unit is often on a separate breaker, so turn that off too. Don't rely on switching the thermostat to "Off." Set the old thermostat to Off and confirm that nothing turns on, then use a voltage tester if you have one.

Step 2: Remove the old thermostat cover and photograph the wiring

Pull off or unscrew the front cover. Take a clear photo of the wires and the letters they connect to. Write down any jumpers between terminals. This photo is your reference if anything goes wrong.

Mercury warning: Older dial and lever thermostats may contain a small glass vial of mercury. Don't throw it in the trash. Take it to a household hazardous waste site or thermostat recycling drop-off.

Step 3: Label and disconnect the wires

Wrap a small piece of tape around each wire and write the letter of the terminal it was connected to, even if your new thermostat includes labels. Loosen the terminal screws and disconnect the wires one at a time. Wrap the cable around a pencil, or tape it to the wall, so it can't slip back into the wall cavity.

Step 4: Remove the old base and mount the new one

Unscrew the old wallplate. Pass the wires through the new base, level it, mark the screw holes, and fasten it with the supplied screws and anchors. Some thermostats include a trim plate to cover old screw holes or paint marks. Seal the wall hole behind the thermostat with a little putty or insulation. Drafts from inside the wall can affect the temperature reading.

Step 5: Connect the wires to matching terminals

Strip about 1/4 inch of insulation if the wire ends are damaged, and connect each wire to the terminal matching its label. A typical gas furnace with central air has R, W, Y, G and, ideally, C. Heat pumps use O/B in place of (or in addition to) W, plus Y, and often AUX/E. Push in any wires the thermostat doesn't use, and leave them disconnected. Tuck the wires neatly so the thermostat body sits flat.

Step 6: Attach the thermostat and restore power

Snap or screw the thermostat onto the base, install batteries if it uses them, and turn the breaker and service switch back on.

Step 7: Configure the installer settings

Most new thermostats run a setup wizard or have an installer menu. Tell it your system type (gas or electric furnace, boiler, heat pump), the number of heating and cooling stages, and, for heat pumps, whether the reversing valve is energized in cooling (O) or heating (B). Wrong settings are the most common cause of "it's wired right but doesn't work." Check your thermostat's manual and your equipment documentation.

Step 8: Test every mode

  • Heat: Raise the setpoint a few degrees above room temperature. The heating system should start within a few minutes.
  • Cool: Lower the setpoint below room temperature. Many thermostats and outdoor units have a built-in compressor delay of several minutes, so be patient.
  • Fan: Switch the fan to "On." The blower should run.

If something doesn't work, turn the power back off and compare your connections with the photo you took.

Common wiring mistakes

  • Going by wire color instead of the terminal letter
  • Leaving the Rh/Rc jumper in place on a two-transformer system, or removing it on a single-transformer system
  • Choosing the wrong system type or O/B setting in the installer menu
  • Loose wire connections, or bare wire ends touching each other
  • Installing a 24V thermostat on a line-voltage heater

Choosing your new thermostat

Basic non-programmable thermostats are simple and reliable, and many don't need a C-wire. Programmable models let you set schedules. Smart thermostats add Wi-Fi, app control and features such as remote sensors, but usually need a C-wire or adapter. Browse every style in our thermostats collection, and check each model's compatibility with your system before you buy.

Safety reminder: Always turn off power at the breaker before you touch thermostat wiring. Hire a licensed HVAC professional or electrician for line-voltage systems, heat pumps, multi-stage equipment, or any time you're unsure about the wiring.

How-to, Hvac, Thermostats