How to Wire a Generator to a Breaker Box Safely
The safe way to connect a generator to a breaker box is through a transfer switch or a code-approved interlock kit, wired to a power inlet box outside your home. Both stop the generator and the utility from feeding the panel at the same time. Because this work involves live service wiring, have a licensed electrician do the panel connections and check your local permit rules first.
Why you can't just plug a generator into the panel
Never connect a generator to your home with a cord that has a plug on both ends, sometimes called a suicide cord. It can send power backward through the panel and out to the utility lines. That is called backfeed, and it can seriously injure or kill utility workers and neighbors. It can also damage the generator and your wiring when grid power returns.
The fix is a device that guarantees the house is connected to only one power source at a time. That is the job of a transfer switch or an interlock kit. Both are standard, code-recognized parts, and both need correct sizing and installation.
Three safe ways to connect
Which method fits depends on how many circuits you want to power, how your panel is built and whether you want the switchover to happen automatically. The table gives a quick comparison.
In every case, the generator connects to the house through a dedicated inlet box and a heavy-duty cord rated for the generator's outlet. Ask your electrician to confirm the right parts for your panel brand and local code.
| Method | How it works | Good fit for | Things to know |
|---|---|---|---|
| Interlock kit | A sliding plate on the main panel keeps the main breaker and the generator breaker from being on together | Whole-panel backup where you manage loads by hand | Must be made for your exact panel model and installed correctly |
| Manual transfer switch | A separate sub-panel holds a chosen set of circuits that you flip to generator power | Powering a set list of circuits such as a furnace fan, fridge and lights | Only the wired circuits get power, which also limits generator load |
| Automatic transfer switch | Senses an outage and moves the load to the generator without you touching it | Homes that need backup while no one is there | Needs a generator that supports it, plus careful setup |
| Cords to appliances | Heavy-duty extension cords run from the generator to individual items | Short outages with only a few loads | No panel wiring at all, which makes it the simplest option |
The wiring path, step by step
Think of the connection as a chain. Power leaves the generator, passes through an inlet outside, travels to the switching device and only then reaches the panel. The numbered list below works as a text diagram of that path.
Your electrician handles steps 3 to 5. You handle the rest.
- Generator outlet (30A or 50A) feeds a heavy-duty generator cord.
- The cord plugs into a weatherproof power inlet box mounted on an exterior wall.
- Wiring runs from the inlet box to the transfer switch or to the dedicated generator breaker in the panel.
- The interlock plate or transfer switch blocks utility power whenever generator power is on.
- The panel feeds your circuits as usual, within the generator's capacity.
- When the utility returns, you shut off the generator, move the switch back to utility and unplug the cord.
Match the generator to your panel
Check the outlet first. A 50A, 120/240V outlet is the usual choice for panel connections, and a 30A outlet can work with the right inlet and cord. For example, the Westinghouse WGen10500TFc lists 50A and 30A outlets that pair with an interlock kit, a manual transfer switch or the WATS200 automatic transfer switch, which is sold separately. The iGen8200TFc lists one 120/240V 14-50R 50A outlet for home backup, and the iGen12000TFc lists a 50A outlet plus an L14-30R 30A twist-lock outlet.
Next, check the watts. Add up the running watts of everything you plan to power at once, then allow for motor starts. The Westinghouse WGen10500TFc lists 10,500 running watts and 13,500 peak on gasoline, while the iGen8200TFc lists 6,600 running and 8,200 peak. A larger generator can carry more circuits at once, but you still choose which loads to run. Our best generator page puts these numbers side by side.
If you also camp or travel, a 30A outlet matters for RV hookups, and our best generator for rv page covers models with that outlet. For heavy 240V loads on a job site, see the best generator for construction page.
Safety rules that matter most
Carbon monoxide kills quickly and without warning. Run the generator outdoors only, well away from windows, doors and vents. Never run one in a garage, even with the door open. A built-in CO shutoff sensor is a useful backup, and several models listed on our pages include one, but it does not replace a battery-powered CO alarm inside the house.
- Get a permit and inspection where your local code requires them.
- Turn off the main breaker before connecting generator power, and never reverse that order.
- Keep the generator dry, on level ground and under a proper cover that allows airflow.
- Let the engine cool before refueling, and store fuel in approved containers away from ignition sources.
- Use cords rated for the outlet's amperage and replace any with cuts or damaged plugs.
- Wear hearing protection when working near a running open-frame generator.
Off grid and wall socket questions
Off grid, there is no utility to backfeed, but the panel still needs proper grounding, correct breaker sizing and a code-compliant installation. Many off-grid homes use a permanent power source with a dedicated generator input. Because bonding of neutral and ground depends on how the system is set up, follow the generator manual and the transfer equipment instructions, and have an electrician confirm it.
Connecting a generator to a house socket by plugging into a wall outlet is not safe. A wall outlet is not designed to receive power from a generator, and it creates the same backfeed risk. If you want to power a few items, run extension cords from the generator to the appliances. If you want to power the house, use an inlet box with an interlock kit or transfer switch.
Frequently asked questions
Do I need a permit to install a transfer switch or interlock kit?
Often yes. Rules vary by city and county, so call your local building department before starting. An inspection also helps confirm the work is safe.
Can I install an interlock kit myself?
Working inside a live panel is dangerous, and the service lugs stay energized even with the main breaker off. Most people hire a licensed electrician, and some areas require one.
Will a portable generator run my whole house?
Only if the loads you use at the same time stay within its running watts. You can manage this by choosing which large items run, such as the dryer, oven or air conditioner, rather than running everything together.
Can I use natural gas or propane for home backup?
Some models run on more than one fuel. For example, the Westinghouse WGen10500TFc lists gasoline, propane and natural gas, but output differs by fuel, so check the rating for the fuel you plan to use.
Westinghouse WGen10500TFcBest overall
Westinghouse WGen11500DFcHigher output, cleaner power
Westinghouse iGen8200TFcLight and quiet inverter