How to Hook Up a Generator to Your House Safely
The only safe way to hook a portable generator up to your house is through a transfer switch installed by a licensed electrician, with a generator inlet box on the outside wall and a matching power cord. Never plug a generator into a wall outlet: OSHA warns that connecting a generator to a building’s wiring without a properly installed transfer switch can energize wiring for great distances and electrocute utility workers. If you don’t have a transfer switch, plug appliances straight into the generator with outdoor-rated extension cords instead. This page is part of our generator transfer switch guide.
Two safe options
| Option | What you can power | What you need |
|---|---|---|
| Transfer switch and inlet | Selected household circuits, including hardwired items | Electrician-installed switch and inlet box, a generator cord |
| Extension cords | Appliances you can unplug and move | Heavy-duty outdoor cords rated above the load |
Hooking up with a transfer switch: the usual steps
Follow the instructions for your switch and generator. Typical steps:
- Place the generator outside, at least 20 feet from the house with the exhaust pointed away, as the CPSC advises.
- With the generator off, connect the generator cord to the generator and then to the inlet box on your house.
- Start the generator and let it warm up.
- At the transfer switch, move the selected circuits from utility (line) to generator. Turn them on one at a time, starting with the largest motor loads.
- When utility power returns, switch the circuits back to utility, then shut down the generator and disconnect the cord once it cools.
The CDC also advises turning off and locking the main breaker before starting a generator connected to a home’s wiring, to protect utility workers. Your electrician can show you how your switch handles this.
Hooking up with extension cords
- Use heavy-duty outdoor cords. The CPSC says each cord’s wattage rating must exceed the total of everything plugged into it.
- Check cords for cuts and make sure every plug has three prongs.
- Use cords long enough to keep the generator well away from doors and windows, and don’t pinch them in a door or window.
Mistakes to avoid
- Never use a double-male “suicide cord” in a wall outlet.
- Never run the generator in a garage, porch or carport, even with the door open.
- Don’t exceed the generator’s rated watts. See what size generator you need.
Choosing a generator for a transfer switch
Look for a model with a transfer-switch-ready outlet sized to the circuits you’ll run. See the best dual-fuel generators.
FAQ
Can I use a dryer outlet to connect a generator?
No. That backfeeds your home’s wiring without a transfer switch.
How much does it cost to hook up a generator to a house?
It depends on your panel, the switch and local permit rules. Ask a licensed electrician for a quote.
Do I need to tell my power company?
Wisconsin’s consumer protection agency advises telling your utility if you install a permanent standby generator.

