Thermostat Wire Colors: What Each Wire Means and Where It Goes

Thermostat wall plate with five colored wires fanned out, red, white, yellow, green and blue, with a magnified inset of the wire ends

Thermostat wire colors tell you what each wire does. Red usually means power (R), white means heat (W), yellow means cooling (Y), green means the fan (G), and blue or black usually means the common wire (C). Orange or dark blue usually controls a heat pump valve (O/B). Here is the rule that matters most: colors are a guide, not a law. Always match each wire to the letter on its terminal, because an installer may have used any color for any job. Once you know what each wire does, here is how to install a thermostat with them.

That one habit saves you from the most common replacement mistake. A blue wire on the C terminal is a common wire, but a blue wire on the B terminal runs a heat pump valve. Same color, two very different jobs. This guide gives you the full chart, explains each wire in plain words, and walks you through a safe swap, step by step.

Thermostat Wire Color Chart: The Quick Reference

Use this chart as your first stop. Find your wire color, check the terminal letter beside it, and read what it does. Then confirm the letter on your old thermostat before you move anything.

Standard thermostat wire colors and terminals at a glance

Wire Color (Usual) Terminal What It Does
Red R, Rc, or Rh Brings 24-volt power from the transformer
White W or W1 Calls for heat, first stage
White or brown W2 or Aux Calls for second-stage or backup heat
Yellow Y or Y1 Calls for cooling, first stage
Yellow or light blue Y2 Calls for second-stage cooling
Green G Runs the indoor fan on its own
Blue or black C Common wire, gives the thermostat steady power
Orange O Heat pump valve, energized for cooling
Dark blue B Heat pump valve, energized for heating
Brown E Emergency heat, manual backup only

Keep this chart open while you work. If a color in your wall does not match the chart, trust the terminal letter, not the color. Honeywell Home states this plainly in its own wiring guide: there is no standard for which color wire controls each function, and each wire should be identified by what terminal it connects to, never by color.

Five colored thermostat wire segments, red, white, yellow, green and blue, laid out in a row on a wooden table with a coiled cable and a magnified inset of the copper wire ends

How Thermostat Wires Actually Work

Most home thermostats run on low-voltage power, about 24 volts. A transformer inside your furnace or air handler steps the power down from normal household voltage. The thermostat then works like a set of switches. It connects the power wire to one of the other wires, and that connection tells your equipment what to do.

Think of the red wire as the power source. When the room gets cold, the thermostat connects red to white, and the furnace starts heating. When the room gets warm, it connects red to yellow, and the air conditioner starts cooling. When you switch the fan to On, it connects red to green, and the blower runs without heat or cooling.

The common wire, C, works differently. It does not switch anything on or off. It gives the thermostat a steady return path for power, so a smart thermostat can run its screen and Wi-Fi all day. Older battery thermostats often worked fine without a C wire. Most smart thermostats need one.

One more fact keeps you safe. These are low-voltage wires, but they still connect to equipment that runs on full household power. Turn the power off at the breaker before you touch any wire, and treat every wire as live until you prove the system is off.

The Core Five Wires, Explained One by One

Most homes with both heat and air conditioning have five wires. Learn these five first, and you can read almost any thermostat you meet. Each one below covers its color, its terminal, and what happens when it works.

Red Wire: R, Rc, or Rh (Power)

The red wire, or R wire, carries 24-volt power from the transformer to the thermostat. Every call your thermostat makes starts here. Without it, nothing runs.

You may see one red wire or two. A single red wire goes to the R terminal, and a small jumper joins R to Rc on many thermostats. Two red wires usually mean two transformers, one for heat and one for cooling. In that case, the heating power wire goes to Rh and the cooling power wire goes to Rc, and you must remove the jumper between them. If you see two red wires and you are not sure which is which, stop and call a heating and cooling pro. Mixing up two transformers can damage your equipment.

White Wire: W (Heat)

The white wire, or W wire, calls for heat. When the thermostat connects power to the white wire, your furnace or boiler starts its heating cycle. On a heat pump, the white wire often works with the yellow wire instead, because the heat pump compressor does the heating.

Most systems have one white wire on the W or W1 terminal for first-stage heat. A second white wire, or a brown wire, on W2 means second-stage heat. That second stage kicks in when the first stage cannot warm the house fast enough, such as on a very cold morning. If your home has heat only, with no air conditioning, red and white may be the only two wires in the wall. Our guide to a heat only thermostat covers that simple two-wire setup in full.

Yellow Wire: Y (Cooling)

The yellow wire, or Y wire, calls for cooling. When the thermostat connects power to the yellow wire, it tells the outdoor compressor to start, and cool air follows. On a heat pump, the yellow wire runs the compressor for heating too, because the same compressor moves heat in both directions.

A second yellow wire, or a light blue wire, on Y2 means second-stage cooling. Two-stage systems run at a low level most of the time and step up only when the house needs extra cooling. If your yellow wire is missing, your thermostat cannot call for cooling at all, so check that it sits firmly in the Y terminal.

Green Wire: G (Fan)

The green wire, or G wire, runs the indoor fan by itself. It lets you circulate air through the house without heating or cooling, which helps on mild days and evens out warm and cool rooms.

When heat or cooling runs, the fan usually starts on its own, even without a separate fan call. The green wire matters most when you switch the fan to On at the thermostat. If the fan works during heating and cooling but not on its own, check the green wire first. It may sit loose in the G terminal, or it may not connect at the furnace end.

Blue or Black Wire: C (Common)

The blue wire, or C wire, is the common wire. It completes the 24-volt circuit and gives your thermostat steady power around the clock. Black is the other common color for this wire. Smart thermostats need it most, because their screens and Wi-Fi radios draw power all day.

So where does the blue wire go? It goes to the C terminal on the thermostat, and to the C terminal on the furnace control board at the other end. That sounds simple, but blue has a trap. On some heat pump systems, especially Rheem and Ruud, a blue wire on the B terminal runs the reversing valve, not the common. That is why the terminal letter decides, never the color alone. If your blue wire sat on B on the old thermostat, it belongs on the O/B terminal of the new one, not on C.

White thermostat wall plate with five colored wires, red, white, yellow, green and blue, connected to terminal screws, screwdriver on a side table

The 5-Wire Thermostat Wiring Color Code

The five-wire setup is the modern standard for a home with a furnace and air conditioning. It covers power, heat, cooling, fan, and steady power in five wires. If you count five wires in your wall, this is almost certainly what you have.

The standard 5-wire thermostat wiring color code

Wire Terminal Job
Red R 24-volt power
White W Heat
Yellow Y Cooling
Green G Fan
Blue or black C Common, steady power

Count your wires before you shop for a new thermostat. Four wires usually mean no C wire, so many smart thermostats will need an adapter or an extra wire. Two wires usually mean heat only. Eight wires usually mean a two-stage system or a heat pump with backup heat. The wire count tells you how complex the swap will be before you buy anything.

Heat Pump Wires: O/B, W2, Aux, and E

Heat pumps add wires that a furnace-and-air-conditioner home never needs. If you have a heat pump, read this section before you touch anything, because these wires cause the most confusion.

Orange Wire and Dark Blue Wire: O/B (Reversing Valve)

The O/B wire, usually orange, controls the reversing valve in a heat pump. This valve flips the flow of refrigerant so the same system can heat in winter and cool in summer. Most brands energize the valve for cooling, and that wire goes to the O terminal. Rheem and Ruud systems energize it for heating instead, and that wire, usually dark blue, goes to the B terminal.

Many new thermostats have one O/B terminal that you set up in the settings menu. During setup, the thermostat asks whether your valve energizes in cooling or heating. Pick the wrong answer, and the system blows cold air when you ask for heat. If that happens after a swap, check this setting first, before you rewire anything.

White or Brown Wire: W2 and Aux (Second-Stage and Backup Heat)

The W2 wire calls for second-stage heat. On a furnace, that means a second burner stage. On a heat pump, the same terminal often carries Aux, short for auxiliary heat. Auxiliary heat is electric backup heat that steps in automatically when the heat pump cannot keep up in very cold weather.

White is the usual color for W2, but brown shows up often too. The color does not matter. What matters is the terminal letter on the old thermostat and the control board. If the wire sat on W2 or Aux before, it goes to W2 or Aux on the new thermostat.

Brown or Black Wire: E (Emergency Heat)

The E wire runs emergency heat. This is a manual backup mode that you switch on yourself. It locks out the heat pump compressor and runs only the backup heat, usually electric strips. You use it when the heat pump fails, not on a normal cold day.

Emergency heat costs far more to run than the heat pump, so use it only until a pro fixes the problem. If your thermostat has no E terminal, the emergency heat wire may share the Aux terminal instead. Your thermostat manual shows which setup fits your model.

Outdoor heat pump unit beside a brick house wall with a magnified inset of orange and dark blue wires at a brass valve fitting

What If Your Wire Colors Do Not Match the Chart?

Do not panic. Mismatched colors are common, especially in older homes. Installers sometimes used whatever wire they had on the truck, and a past repair may have spliced in a different color halfway. The fix is simple, but it takes patience.

First, read the terminal letters on your old thermostat. Label each wire with masking tape and a marker before you remove anything, using the letter, not the color. Write R on the red wire only if it sat on R. If a green wire sat on Y, label it Y.

Next, take a clear photo of the old wiring with the terminal letters visible. Take a second photo from a different angle. These photos save you if a label falls off or a wire slips back into the wall.

Then trace the wires to the furnace control board if you still feel unsure. Open the furnace panel with the power off, find the low-voltage terminal strip, and read the letters there. The same color wire should land on the same letter at both ends. That check settles almost every color mystery. Aire Serv gives the same advice in its thermostat wire color guide: label each wire by its terminal letter, take photos, and trace the wires to the control board when the colors do not match.

Faded or dirty wires need the same treatment. Clean the wire ends gently and look again. If the color still stays unclear, the terminal letter and the control board check give you the answer. Never guess a wire by color alone. A wrong guess can blow the small fuse on the control board, or damage the thermostat.

How to Replace a Thermostat Safely Using the Wire Colors

This is a wire-identity job, not a full installation manual. Follow your new thermostat’s own manual for its exact steps and settings. The steps below show how the wire colors fit into a safe swap.

  1. Turn off the power to your heating and cooling system at the breaker. Then set the old thermostat to heat or cool and wait five minutes. If nothing starts, the power is off.
  2. Remove the old thermostat cover and take a photo of the wiring with the terminal letters visible.
  3. Label each wire with masking tape, using its terminal letter. Take a second photo after labeling.
  4. Loosen each terminal screw and pull the wires free, one at a time. Keep the wires from slipping back into the wall with tape or a pencil behind them.
  5. Remove the old wall plate, mount the new plate level, and feed the wires through it.
  6. Connect each wire to the same-letter terminal on the new thermostat. Red to R, white to W, yellow to Y, green to G, blue or black to C, orange or dark blue to O/B.
  7. If you have two red wires, Rc and Rh, remove the jumper between them. If you have one red wire, leave the jumper in place.
  8. Mount the thermostat on the plate, restore power at the breaker, and test heat, cooling, and fan, one at a time.

Test each mode and wait a few minutes for the equipment to respond. Heat should blow warm air, cooling should blow cool air, and the fan setting should run the blower alone. If a mode fails, turn the power off again and recheck the wire letters against your photo.

Stop and call a pro if you see thick black or red wires, terminals marked with numbers or letters like A, B, and C, or a bundle with no labels at all. Thick wires mean a line-voltage system, which needs a different type of thermostat and is not a DIY job. If you are swapping in a basic model rather than a smart one, our guide to a non-programmable thermostat explains what that simpler thermostat can and cannot do.

Thermostat swap in progress, colored wires taped to the wall so they cannot slip back, old cover and screwdriver on a wooden table

No C Wire? Here Are Your Options

A missing C wire is the most common surprise in a thermostat swap. Older thermostats ran on batteries and never needed one. Smart thermostats do. If you open the wall and find only four wires, you still have choices.

First, look for a spare wire. Many thermostat cables hold an extra wire, often blue, tucked behind the wall plate and unused at both ends. If you find one, connect it to C at the furnace control board first, then to C on the thermostat. Never connect a spare wire at one end only.

Second, check whether your thermostat maker sells a C-wire adapter. Honeywell Home, for example, offers C-wire adapters for its thermostats. The adapter sits at the furnace and repurposes one wire to carry both jobs. Follow the adapter instructions exactly, because the wiring changes at both ends.

Third, ask a heating and cooling pro to run a new cable. This costs more, but it gives you a clean five-wire setup with no adapter and no shared wire. It is the best choice when the wall cable is old, short, or damaged.

Do not use the green fan wire as a C wire unless the thermostat maker tells you to. That trick steals the fan wire, so you lose the fan-only setting, and some thermostats stop working well without it. A spare wire or a proper adapter beats a borrowed wire every time.

Common Thermostat Wiring Mistakes to Avoid

Most wiring failures come from a few small slips. Avoid these, and your swap goes far more smoothly.

  • Trusting color instead of the terminal letter. The letter is the truth. The color is a hint.
  • Skipping the photo and the labels. Five loose wires all look alike once they hang free.
  • Leaving the jumper in place with two red wires, or removing it with one. The jumper must match your transformer setup.
  • Letting a wire slip back into the wall. Tape the bundle to the wall before you remove the old plate.
  • Connecting a blue wire to C when it sat on B. On a Rheem or Ruud heat pump, that mistake can blow a fuse or run the system backwards.
  • Restoring power before you check every connection. A loose wire can short against its neighbor.
  • Forgetting to test all three modes. Heat, cooling, and fan each use different wires, so test all three.

When to Call a Professional

A basic swap on a standard five-wire system is a fair DIY job for a careful homeowner. Some situations are not. Call a heating and cooling pro if you see two transformers, a dual-fuel system with a heat pump and a furnace, a communicating thermostat with numbered terminals, thick line-voltage wires, or a control board with a blown fuse.

Call a pro too if the wiring does not match any chart, if a wire is damaged or too short to reach, or if the system still fails after you recheck every letter. A short service visit costs far less than a damaged control board or a burned-out thermostat. Test your heat early, before cold weather arrives, and our home winterization checklist walks you through the rest of the heating checks to do at the same time.

Disclaimer: This guide covers low-voltage thermostat wiring only, about 24 volts, and it is general information, not a substitute for your thermostat and equipment manuals. Always turn off power at the breaker before you touch any wire, and follow your maker’s instructions for your exact model. If you feel unsure at any step, or your wiring does not match this guide, call a qualified heating and cooling professional. Homes, systems, and wiring vary, and a pro can check your setup safely.

Related Guides

If your thermostat work is part of a wider cold-weather prep, these guides help next. Our home winterization checklist covers the heating test, filters, and freeze protection to do before winter. If rooms still feel cold after the thermostat works fine, our guide to improving home insulation shows where heat escapes first and which fix to do first.

Frequently Asked Questions About Thermostat Wire Colors

Why are there different colored wires on a thermostat?

The different colors form a simple code that identifies each wire’s job. Color coding helps you make the right connections during installation, troubleshooting, and repairs, and it helps prevent miswiring and damage to the system. The colors are a widely used convention, not an enforced standard, so always confirm each wire by its terminal letter.

Why don’t my wire colors match the standard thermostat wiring guide?

Variations exist because installers do not always follow the standard colors. Check the wiring diagram in your thermostat and equipment manuals, label each wire by its terminal letter before you remove it, take photos, and trace the wires to the furnace control board if you still feel unsure. A pro can map them for you if the colors stay unclear.

What color is the C-wire on the thermostat?

The C-wire is usually blue on the thermostat, and black is the other common color. The C-wire, also called the common wire, provides a constant 24-volt power supply that many smart thermostats need for Wi-Fi, touchscreens, and scheduling. If there is no blue or black wire, check for a spare wire, or ask a pro to check the control board.

What is the orange wire on the thermostat?

The orange wire is used in heat pump systems to control the reversing valve, which switches the flow of refrigerant so the system can heat or cool. On most brands, the orange wire connects to the O terminal and energizes the valve for cooling. If your valve energizes for heating instead, the wire is usually dark blue and connects to the B terminal.

Where can I find a thermostat wiring guide for my thermostat and HVAC system?

Start with the wiring diagram in your thermostat installation manual, then check the manuals for your furnace, air conditioner, or heat pump. Wiring diagrams often sit inside the control panel access doors too. You can also find manuals by searching the model numbers of your thermostat and equipment on the maker’s website, such as Honeywell Home’s wiring guide.

How do I identify thermostat wires if the colors are dirty or faded?

Clean the wire ends carefully and look again. If the color still stays unclear, trace each wire back to the terminal it sat on and note the terminal label, such as R, Y, G, W, C, or O/B. If you still cannot identify a wire, contact a professional. A wrong guess can damage your thermostat or your heating and cooling system.

Warm living room with a white thermostat with a blank glowing screen above a sofa, reading lamp and houseplant in golden afternoon light

Now you can read the wires in your wall with confidence. Match each wire by its terminal letter, label everything before you remove it, and test all three modes when you finish. If anything looks different from this guide, your thermostat manual and a qualified pro are the next stops, not a guess.