How to Wire a Generator Transfer Switch: A Step-by-Step Guide
What a transfer switch does and why you need one
A transfer switch is a device that lets you safely connect a portable generator to your home's electrical panel without backfeeding power into the utility lines — a situation that can electrocute utility workers or damage equipment. When you flip the switch, it disconnects your home from the grid and connects it to the generator instead. Without one, plugging a generator directly into outlets or the panel is dangerous and illegal in most jurisdictions.
If you own a portable generator, a transfer switch is not optional. It protects both your household and the people working on power lines. The switch itself costs between $300 and $1,500 depending on the amperage rating, but the installation is where most homeowners need to decide: hire a licensed electrician or do the work yourself if you have electrical experience.
This guide explains what the wiring process looks like, what tools and materials you need, and the points where mistakes are most costly. If you are not comfortable working inside an electrical panel, hiring a professional is the safer choice — the cost of an electrician is far less than the cost of a house fire or a lawsuit.
Key Takeaways
- A transfer switch prevents backfeeding by disconnecting your home from the grid and connecting it to the generator, protecting utility workers and your equipment.
- You will need a manual or automatic transfer switch rated for your home's amperage, a generator with matching output capacity, and proper breakers or fuses for the circuits you want to back up.
- The switch mounts next to your electrical panel, and the wiring runs from the panel to the switch, then from the switch to the generator inlet box on your home's exterior.
- Most jurisdictions require a licensed electrician to install a transfer switch and inspect the work before you can use it legally.
- Common mistakes include undersizing the switch, failing to disconnect the utility before connecting the generator, and wiring the switch incorrectly to the panel ground and neutral.
Manual versus automatic transfer switches
A manual transfer switch requires you to physically flip a lever to switch between grid and generator power. You must be home and awake to do this, and you have to start the generator yourself. Manual switches are cheaper — usually $300 to $600 — and simpler to wire because they have fewer components.
An automatic transfer switch senses when the grid goes down, starts the generator automatically, and switches power over without you doing anything. These cost $1,000 to $1,500 or more and require a hardwired connection to the generator's starter, but they are far more convenient during an outage at night or when you are away. Automatic switches are also more complex to wire because they include relays and control circuits.
For a first-time installation, a manual switch is the more forgiving choice. You control when the switch happens, which means you can verify the generator is running and stable before you flip it. Automatic switches are worth the extra cost and complexity if you want the generator to run without your involvement, but they demand more precise wiring and a generator with an electric starter.
Tools and materials you will need
Before you open the electrical panel, gather the right tools. You will need a voltage tester or multimeter to confirm the power is off, a screwdriver set (both Phillips and flathead), wire strippers, a crimper for terminal lugs, and a wrench or socket set for breaker connections. A headlamp or work light is essential because the inside of a panel is dark.
For materials, you need the transfer switch itself (rated for your home's amperage — typically 100, 150, or 200 amps), appropriately sized wire (usually 6 or 4 gauge for the main connections), a generator inlet box that matches your generator's plug type, a breaker or fused disconnect rated for the switch, and terminal lugs rated for the wire gauge you are using. The wire gauge and breaker size depend on the distance from the panel to the inlet box and the generator's output — this is where a mistake can cause a fire.
Do not guess at wire size or breaker rating. Check your generator's manual for the recommended wire gauge and breaker size, then verify it against the National Electrical Code (NEC) Table 310.15(B)(2)(a) or ask an electrician. Using wire that is too small for the current will cause it to overheat.
The basic wiring layout and connection points
The transfer switch sits in or next to your electrical panel and has three main connection points: the utility input (from the grid), the generator input (from the inlet box), and the load terminals (to the circuits you want to back up). Some switches back up the entire house; others back up only critical circuits like the refrigerator, furnace, and lights.
The utility input connects to the main breaker or a breaker downstream of the main. The generator input connects to the inlet box on your home's exterior via a conduit run. The load terminals connect to individual breakers for the circuits you want to protect, or to a sub-panel if you are backing up many circuits at once.
The neutral and ground wires are the most common source of mistakes. In a transfer switch, the neutral and ground must be bonded (connected together) on the generator side but kept separate on the utility side. If you bond them on the utility side, you create a parallel path for current that can damage equipment or cause shock. The switch itself handles this separation — your job is to wire to the correct terminals.
Step-by-step wiring process
Before you begin, turn off the main breaker and test the panel with a voltage tester to confirm there is no power. Even with the main breaker off, some parts of the panel may still be live.
Step 1: Mount the transfer switch. Install the switch in a location that is accessible and close to the electrical panel — usually on the wall next to it. Follow the manufacturer's instructions for mounting height and orientation. Leave enough space to work on the connections.
Step 2: Run the conduit. Run a conduit from the transfer switch to the exterior inlet box location. The conduit protects the wire from damage and is required by code. The distance and wire gauge determine the size of the conduit — typically 1 inch for a 100-amp circuit.
Step 3: Pull the wire. Pull the appropriately sized wire through the conduit from the switch to the inlet box. Use four wires: two hots (red and black), one neutral (white), and one ground (bare copper). Label each wire at both ends so you do not confuse them during connection.
Step 4: Connect to the utility input. At the transfer switch, connect the utility input terminals to the main breaker or a breaker downstream of the main. Use terminal lugs crimped to the wire ends, and tighten the connections firmly. The utility neutral and ground both connect to the panel's main neutral and ground bus.
Step 5: Connect to the generator input. Connect the generator input terminals to the wires coming from the inlet box. The two hots connect to the two hot terminals, the neutral to the neutral terminal, and the ground to the ground terminal. Do not bond the neutral and ground together at this end — the switch does that internally.
Step 6: Connect the load terminals. Connect the load terminals to the individual breakers for the circuits you want to back up, or to a sub-panel breaker if you are backing up multiple circuits. Each load terminal connects to one breaker. If you are backing up the entire house, the load terminals connect to a breaker rated for the switch's amperage.
Step 7: Install the inlet box. Mount the generator inlet box on the exterior wall, usually near where the generator will sit. Wire the inlet box to the conduit run, and install a weatherproof cover. The inlet box should be at least 12 inches above ground to prevent water damage.
Step 8: Test and inspect. Before you use the system, have a licensed electrician inspect the installation. They will verify that the wiring is correct, the breaker sizes are appropriate, and the switch operates properly. Many jurisdictions require this inspection before the system is legal to use.
Common wiring mistakes and how to avoid them
The most frequent error is bonding the neutral and ground on the utility side of the switch. This creates a ground loop that can damage equipment or cause electric shock. The switch itself bonds them on the generator side — your job is to keep them separate on the utility side. If you are unsure, ask an electrician to review your work before you close the panel.
Undersizing the wire or breaker is another common mistake. A generator produces high current, and wire that is too small will overheat and potentially start a fire. Use the wire size and breaker rating specified in your generator's manual, not a guess based on what you have on hand.
Failing to disconnect the utility before connecting the generator is dangerous and illegal. The transfer switch must physically disconnect the grid before the generator connects. If it does not, backfeeding occurs and utility workers can be electrocuted. Test the switch mechanism before you use it, and verify that the utility breaker opens when you flip the switch to generator mode.
Running the conduit through walls or attics without proper support or protection is a code violation and a fire hazard. The conduit must be secured every 3 feet and supported at bends. Do not run it through insulation or where it can be damaged by nails or rodents.
When to hire a licensed electrician
If you have never worked inside an electrical panel, hiring a licensed electrician is the right choice. The cost — typically $1,000 to $2,500 for the full installation — is far less than the cost of a house fire, electrocution, or a lawsuit from a utility worker injured by backfeeding. An electrician will also handle the permit and inspection, which are required in most jurisdictions.
Even if you are comfortable with electrical work, many jurisdictions require a licensed electrician to install a transfer switch. Check with your local building department or electrical inspector before you start. If you do the work yourself and it fails inspection, you will have to hire an electrician to fix it anyway, which costs more than doing it right the first time.
An electrician can also help you size the switch and generator correctly for your home's needs. If you want to back up your entire house, the generator and switch must be large enough to handle the peak load — usually 100 to 200 amps. If you want to back up only critical circuits, an electrician can help you choose which ones and size the system accordingly.
Frequently Asked Questions
Do I need a permit to install a transfer switch?
Yes, in most jurisdictions. A permit ensures the work is inspected and meets code. The cost is usually $50 to $200, and the inspection is free. Skipping the permit can result in fines, insurance claims being denied, or the work being ordered torn out. Check with your local building department before you start.
Can I use a transfer switch with a portable generator that does not have an inlet box?
No. A portable generator without an inlet box must be plugged into outlets using extension cords, which is not safe for a transfer switch. You need a generator with a twist-lock or hardwired inlet that matches the inlet box you install. Some generators can be retrofitted with an inlet box, but this requires opening the generator and is best done by the manufacturer or a may have access to technician.
What size transfer switch do I need?
The switch must be rated for the amperage of your home's main service — typically 100, 150, or 200 amps. Check your electrical panel for the main breaker rating. The generator must also be large enough to handle the circuits you want to back up. If you want to back up the entire house, the generator output must match or exceed your home's peak load, which is usually 50 to 100 amps for a typical household.
Can I wire a transfer switch to back up only some circuits?
Yes. A partial-house transfer switch backs up only the circuits you choose — usually the furnace, refrigerator, well pump, and lights. This lets you use a smaller and cheaper generator. The switch connects to individual breakers for those circuits instead of the main breaker. An electrician can help you choose which circuits to back up and size the system accordingly.
What happens if I forget to turn off the main breaker before flipping the transfer switch?
If the main breaker is still on when you flip the switch to generator mode, the utility and generator will both be connected to your home at the same time. This causes backfeeding — current flows from the generator back into the utility lines, which can electrocute a utility worker. The transfer switch is designed to prevent this by disconnecting the utility before connecting the generator, but only if it is wired correctly. Always turn off the main breaker before you flip the switch, and test the switch to confirm it opens the utility connection.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.