How to connect a generator to your house safely

The three legal hookups, the parts you need, the switch-over steps and why you must never backfeed.

By  7 min read

Quick answer: To hook a generator to your home safely, have an electrician install a transfer switch or a panel interlock kit with an outdoor power inlet. You then run a heavy-duty cord from the generator to the inlet and switch your panel to generator power. Never plug a generator into a wall outlet. That backfeeds the grid and can kill utility workers.

How to hook a generator to your home: manual transfer switch, interlock kit with inlet box, or automatic transfer switch for standby generators
The three legal ways to connect a generator to house wiring. All three stop power from flowing back onto the utility lines.

There are three code-approved ways, and they all do the same job. They make it physically impossible for the house to draw from the grid and the generator at the same time. The U.S. National Electrical Code requires one of them for any generator connected to home wiring.

Method Works with What you do in an outage Typical installed cost
Manual transfer switch Portable generators Plug in, start, flip selected circuits $400 to $1,300
Interlock kit + inlet box Portable generators Plug in, start, switch main breaker off and generator breaker on $400 to $850
Automatic transfer switch Standby generators Nothing. It switches by itself in seconds $600 to $2,500, usually part of a standby install

Connecting with a transfer switch

A manual transfer switch is a small subpanel mounted next to your main panel. An electrician moves the circuits you want backed up, such as the fridge, furnace, well pump and a few lights, onto it. Each circuit gets its own switch, set to “line” for utility power or “generator.”

Because only chosen circuits are wired in, a transfer switch keeps you from overloading a smaller generator. Honda, which makes some of the most widely used portable generators, calls a transfer switch the only safe way to connect a generator directly to a home.

An automatic transfer switch does the same thing without you. It senses the outage, starts a standby generator and moves the house over within seconds. Our home generator cost guide covers what those systems cost installed.

How to connect a generator without a transfer switch

The legal alternative is an interlock kit. It’s a metal plate bolted onto your main panel that lets you turn on a dedicated generator breaker only after the main breaker is off. The two can never be on together, so no power can leak out to the street.

How to connect generator to house panel with an interlock kit: generator, cord, outdoor inlet box, generator breaker, main breaker locked off
With an interlock, the whole panel can run from the generator. You decide which breakers stay on.

An interlock is usually the cheapest legal option, and it lets you power any circuit in the panel. The trade-off is that nothing stops you from turning on too much at once, so you have to manage the load yourself. Interlock kits are made for specific panel brands and models, and some local inspectors don’t accept them, so your electrician will check both.

What do you need to connect a generator to a house?

  • A generator with a locking outlet, usually an L14-30 (30 amp, 120/240 volt) or a 14-50 (50 amp).
  • A power inlet box, mounted on the outside wall and wired to the panel.
  • A generator cord rated for the generator’s outlet, often 20 to 30 feet long.
  • A transfer switch or an interlock kit listed for your panel.
  • A double-pole breaker sized for the inlet, if you use an interlock.
  • A permit and inspection, required in most towns for this work.
  • Working carbon monoxide alarms on every level of the home.

Step by step: running your house on a portable generator

Once the inlet and transfer switch or interlock are installed, switching over takes a few minutes. These steps follow the usual order for an interlock setup. A manual transfer switch works the same way, using its own switches instead of the main breaker.

  1. Place the generator outdoors, at least 20 feet from the house, with the exhaust pointing away from doors and windows.
  2. Connect the generator cord to the generator, then to the inlet box.
  3. Turn off the main breaker, then turn off most branch breakers.
  4. Start the generator and let it warm up for a minute or two.
  5. Slide the interlock plate and turn on the generator breaker.
  6. Turn circuits on one at a time, starting with the largest motor loads like the well pump or furnace.
  7. Watch the total. Stay under about 80% of the generator’s running watts.

When utility power returns, reverse the order. Turn off the generator breaker, turn the main breaker back on, then shut the generator down and unplug the cord once it has stopped.

Where should the generator and inlet go?

The inlet box goes on an outside wall, usually close to the panel to keep the wire run short. The generator itself needs much more distance. The U.S. Consumer Product Safety Commission recommends keeping a portable generator’s exhaust at least 20 feet from the home, pointed away from doors, windows and vents.

Where to connect generator to house: generator outdoors 20 feet from the home, exhaust pointed away, cord to inlet box, CO alarms inside
Run the generator in the open, never in a garage, shed, basement or crawlspace, even with the door open.

Carbon monoxide from portable generators kills about 100 people in the U.S. each year, according to the CPSC. It has no smell or color, and it can kill within minutes, so working CO alarms inside are not optional.

Connecting a 120-volt vs 240-volt generator

Most homes need 240 volts for well pumps, some furnaces and larger appliances. A generator with an L14-30 or 14-50 outlet supplies both 120 and 240 volts through the inlet. A generator with only 120-volt outlets, including the TT-30 RV outlet, can’t power 240-volt loads. Hooking one to a home panel needs a setup an electrician designs for it, so check the outlets before you buy.

Can you connect a generator with an extension cord?

Yes, but only to plug appliances directly into the generator. Use heavy-duty outdoor cords rated for the load, such as 12-gauge for a fridge. Run them through a gap in a window or door that you can seal around. Hardwired loads like a furnace, well pump or water heater can’t be powered this way.

If you only need phones, a router and a lamp, you may not need a generator at all. Power banks and battery stations run safely indoors, and our guide to keeping a phone charged when the power is out compares them.

What you must never do is use a double-ended cord, sometimes called a “suicide cord,” to plug the generator into a household outlet. It’s illegal, it can start a fire, and it puts the live plug prongs within reach.

Why you should never backfeed your house

Backfeeding means sending generator power into your home wiring without a transfer switch or interlock. The power flows out through your meter onto the utility lines, where the transformer steps it up to thousands of volts. A lineworker who believes the line is dead can be electrocuted. When the grid power returns, it can also destroy your generator and start a fire.

Do you need an electrician and a permit?

In most places, yes. Installing an inlet, transfer switch or interlock is panel work, and most towns require a permit and an inspection. Some allow homeowners to do their own wiring on a property they live in, but the inspection still applies. A licensed electrician knows what your local inspector accepts and gets the job signed off, which also matters for insurance.

Before you buy, check that your generator is big enough for what you plan to run. The same running-watt and surge-watt math in our inverter sizing guide works for generators too.

Frequently asked questions

Can I connect a generator directly to house wiring?

Only through a transfer switch or an approved interlock kit. Connecting a generator to your wiring any other way can backfeed the utility lines, which is illegal and can electrocute lineworkers or start a fire.

How do you hook up a generator to your house without a transfer switch?

Use a panel interlock kit with an outdoor power inlet. The interlock lets the generator breaker turn on only when the main breaker is off. If an interlock isn’t available for your panel, run appliances directly from the generator with extension cords instead.

Do I need an electrician to connect a generator to my house?

For the permanent part, yes in most areas. An electrician installs the inlet and the transfer switch or interlock and gets the permit. After that, connecting the cord and switching over is something you do yourself during each outage.

How big of a generator is needed to run an entire house?

Running a whole house with central air usually takes a 15 to 22 kW standby generator. Large portable generators, around 7,500 to 12,000 watts, can run essential circuits and sometimes a small AC unit if you manage the load.

Can you connect two generators to a house?

Only with a parallel kit made for those exact generator models, which combines them into one output before it reaches the inlet. You can’t feed two separate generators into the same house wiring.

Can I plug my generator into my dryer outlet?

No. Plugging a generator into a dryer outlet with a double-ended cord is backfeeding, even if you turn off the main breaker. One mistake can energize the street lines, and the exposed plug is live.

Written by

· Senior editor, charging and home power
James Charles is a senior editor at powermatters.org with more than 10 years of experience with phone chargers, batteries and home power. He writes and fact-checks our charging guides against manufacturer specs and standards documents. Based in the United States.
↑