Skip to content

How to Hook Up a Generator to Your House the Legal Way

Figures last verified

How to hook up a generator to your house

There are two legal ways. Run extension cords from the generator to individual appliances, or have a licensed electrician install a transfer switch or an interlock kit with an inlet box, so the house can only draw from one source at a time. Either way, the generator sits outdoors, at least 20 feet from windows and doors.

What you must never do is plug the generator into a wall outlet or a dryer outlet to feed the house. That shortcut is illegal in most jurisdictions and it can kill a utility line worker, and it is covered in detail below because it is the method people reach for first.

This page is the overview: what the options are, what an electrician does and does not need from you, and how to run the setup safely once it exists. If you have already narrowed it to cords versus an interlock versus a transfer switch, transfer switch, interlock or extension cords compares the three in more depth.

There are three legal methods for a portable generator and one for a standby unit. All of them share one property: the house can never be connected to the utility and the generator at the same moment.

MethodWhat it powersWho installs itPermit usually needed
Extension cordsIndividual appliances plugged into the cordsYouNo
Interlock kit and inlet boxThe whole panel, with loads managed by handLicensed electricianYes
Manual transfer switch and inlet boxA chosen set of circuitsLicensed electricianYes
Automatic transfer switchThe circuits the standby generator is sized forLicensed electricianYes
Backfeed cord into an outletNothing legallyNobodyIllegal in most jurisdictions

The first row needs no wiring at all, which is why it is the right starting point for many households. The middle rows let you run hardwired loads such as a furnace blower or a well pump, which cords cannot reach. The last row is there because it is common, not because it is an option.

Why is backfeeding through a dryer outlet illegal?

Because it sends generator power backwards through your panel and out onto the utility's lines, where it can electrocute a line worker who believes the line is dead. Backfeeding through a dryer outlet or with a so-called suicide cord is illegal in most jurisdictions for exactly that reason.

A suicide cord is an extension cord with a male plug on both ends. One end goes into the generator, the other into a household outlet, often the dryer's because it is the heaviest outlet in the house. It earns the name honestly: while it is plugged into the generator, the exposed prongs on the other end are live.

The danger travels further than people imagine. OSHA's portable generator fact sheet warns that attaching a generator directly to a building electrical system without a properly installed transfer switch can energize wiring systems for great distances, and that this creates a risk of electrocution for utility workers and others in the area. The transformer on the pole works in both directions, so the low voltage your generator pushes into the service drop comes out the other side stepped up to distribution voltage.

Utilities say the same thing in plainer words. GVEC, a Texas electric cooperative, describes plugging into a wall outlet or tying directly into the panel and says: This practice is known as “backfeed,” and it’s a serious danger. Generac's owner's manual recommends a manual transfer switch when connecting to a building's electrical system to prevent hazardous backfeeding and avoid injuring utility line workers.

Backfeeding is also dangerous to you. When the utility restores power, the grid and your generator are suddenly connected through the house wiring with nothing to separate them. That can destroy the generator, start a fire in the panel or the outlet, and the main breaker you remembered to switch off is the only thing standing between you and it. People forget, especially at night, in the cold, on the third day of an outage.

There is no safe version of this. The interlock kit exists precisely because it is the cheap, legal way to get the result the backfeed cord promises.

How to connect a generator to your house with extension cords

Plug each appliance into a heavy-duty, grounded extension cord that runs from the generator. This is the only method you can set up yourself, and it is entirely legal because nothing connects to the house wiring.

OSHA's guidance is to plug electrical appliances directly into the generator using the manufacturer's supplied cords or extension cords that are grounded (3-pronged). Generac's manual specifies cord sets rated for 125 Volts at 20 Amps or greater for its standard household outlets.

The rating on the cord matters more than people expect. A long run of thin cord carrying a refrigerator and a freezer overheats and drops voltage, which is hard on compressor motors. The generator extension cord calculator works out the gauge for your load and distance, and it is worth running before you buy cords rather than after.

The practical limits of the cord method:

  • It cannot reach hardwired loads. A gas furnace blower, a well pump, and most ceiling lights are wired into circuits and have no plug.
  • Cords run through a door or window that then cannot close properly, which lets in cold and, if the generator is placed badly, exhaust.
  • It is fiddly to rearrange loads, which is the main reason households upgrade to a panel connection after their first long outage.

For a refrigerator, a freezer, lights on lamps and some charging, it is often all you need.

Transfer switch vs interlock kit: which should you get?

Both are legal, both are installed by a licensed electrician, and both make it physically impossible to be connected to the utility and the generator at once. An interlock kit is usually cheaper and powers the whole panel; a manual transfer switch costs more but limits the generator to circuits you chose in advance.

An interlock kit is, in Champion's description, a mechanical safety device that mounts on the main electrical panel, physically preventing the main utility breaker and a generator breaker from being switched on at the same time. The generator feeds the panel through a dedicated breaker and an outdoor inlet box. Because the whole panel is live, you decide what runs by switching breakers off and on, and you have to stay within the generator's capacity yourself.

A manual transfer switch is a separate small panel beside the main one, wired to a set of circuits chosen with the electrician: typically the furnace, the refrigerator, the well pump and some lights. Honda explains that the switch disconnects those circuits from the utility while the generator feeds them, which stops the generator's power from back-feeding down utility lines. You cannot accidentally overload it with a circuit that was never connected to it.

Which suits you depends mostly on how you want to manage load. If you are comfortable switching breakers and want flexibility, the interlock wins on cost. If anyone else in the household might be running the setup, the transfer switch is harder to get wrong. OSHA's grounding guidance specifies a properly installed open-transition transfer switch for a portable generator connected to a structure, and either approach, installed correctly, achieves that separation.

An automatic transfer switch belongs with a permanently installed standby generator. It senses the outage, starts the generator and switches over without anyone at home.

What does the installation involve?

An electrician fits the interlock or transfer switch, mounts an inlet box on the outside wall, and runs a dedicated circuit between them; you supply the generator and a matching inlet cord. Honda says installation typically takes a few hours, depending on the complexity of your system, and that you may need a permit or inspection.

What you can usefully do before the electrician arrives:

  1. Know your generator's output and its outlet type, because the inlet box and cord have to match it.
  2. Decide what has to run. The generator sizing guide works through running and starting watts, and the answer shapes which circuits a transfer switch should carry.
  3. Choose where the generator will stand when it runs, outdoors and well away from openings, so the inlet box goes on the wall nearest that spot.
  4. Ask about the permit. Most jurisdictions require one for panel work, and an inspected installation is what your insurer will expect if anything goes wrong.

What you should not do is attempt the panel work yourself. OSHA's fact sheet says never to attach a generator directly to the electrical system of a structure unless a qualified electrician has properly installed the generator with a transfer switch. The work involves the service panel, where the utility side stays live even with the main breaker off.

Where should the generator sit while it is connected?

Outdoors, away from the house, and never in a garage, even with the door open. Ready.gov's rule is that generators and fuel should always be used outdoors and at least 20 feet away from windows, doors and attached garages. OSHA adds that the generator needs 3 to 4 feet of clear space on all sides and above it for ventilation.

Manufacturers do not all give the same distance, which is worth knowing before you trust the shortest one. Champion's hook-up guide says at least 25 feet from windows, doors and vents, while Generac's iQ3500 manual gives a minimum placement distance of five feet. Use the federal guidance, not the manufacturer minimum.

Carbon monoxide is the real killer in this category, and a tidy panel connection does nothing about it. A CPSC staff report on carbon monoxide deaths from engine-driven tools counted 770 fatalities associated with generators alone over the decade it covered. In 68 percent of the home deaths where information was available, no ventilation of the exhaust was attempted at all. In 7 percent, the generator was outdoors but too close to windows or other openings. And only 17% of the deaths in that report were known to have had a carbon monoxide alarm present.

Fit a battery-powered carbon monoxide alarm on every sleeping floor before the first outage, not during it.

How do you switch over when the power goes out?

Follow the switching order your electrician shows you for your installation. The principle is always the same: the utility side is disconnected before the generator side is connected, and loads come on one at a time after the generator is running.

In outline, for a typical portable setup:

  1. Place the generator outdoors at the safe distance, check the oil and fuel, and start it with nothing connected.
  2. Connect the inlet cord at the generator and at the inlet box.
  3. Switch the house to the generator using the interlock or transfer switch, in the order the installation requires. The device is designed so that you cannot do this while the utility side is still connected.
  4. Bring loads on one at a time, the largest motor first, so each start has the generator's full surge capacity to itself.

When the power comes back, reverse it: shed the large loads, switch the house back to the utility, then shut the generator down and let it cool before refuelling. Running it in blocks rather than continuously makes the fuel last much longer, and how much fuel a generator uses over a three-day outage works out what to store.

The short version

Use cords if the loads that matter have plugs. Hire a licensed electrician to fit an interlock kit or a transfer switch if you need the furnace, the well pump or hardwired lights. Never backfeed through an outlet: it is illegal in most jurisdictions and it can electrocute the people restoring your power. Keep the generator outside and well away from the house, with a carbon monoxide alarm inside. If you are still choosing the machine itself, what an inverter generator is explains the quieter option, and the power section covers the rest of the outage. Ready.gov's power outage guidance and OSHA's portable generator fact sheet are the primary references, and Honda's transfer switch explainer is a clear manufacturer overview. GVEC's generator safety page gives the utility's view.

This page is general information, not electrical instructions. Generator connection to a building is regulated in most jurisdictions and is work for a licensed electrician.

Frequently asked questions

Is it illegal to plug a generator into a dryer outlet?

Yes, in most jurisdictions, and it is dangerous whether or not anyone enforces it. Feeding power backwards through an outlet energises the utility line outside your house. OSHA warns that connecting a generator to a building's wiring without a properly installed transfer switch great distances, creating a risk of electrocution for utility workers.

Do I need an electrician to install a transfer switch or interlock kit?

Yes. OSHA says never attach a generator directly to a building's electrical system unless a qualified electrician has properly installed the generator with a transfer switch. An interlock kit is panel work too. Most areas also require a permit and an inspection, and your electrician will know the local rules.

Is an interlock kit as safe as a transfer switch?

Both do the job that matters, which is making it impossible for the house to be connected to the utility and the generator at once. An interlock is at the same time. It must be a kit listed for your specific panel and installed by an electrician, and it puts the whole panel on the generator, so you manage the load by hand.

Can I use extension cords instead of connecting to the house?

Yes, and it is the simplest legal method. OSHA says to plug appliances directly into the generator using the manufacturer's cords or extension cords that are grounded (3-pronged). Size each cord for its load and length; an undersized cord overheats.

How far from the house should the generator be?

Ready.gov says generators and fuel should always be used outdoors and at least 20 feet away from windows, doors and attached garages. That applies however the generator is connected. A transfer switch does nothing about carbon monoxide.

How long does a transfer switch installation take?

Honda says installation typically takes a few hours, depending on the complexity of your system, and you may need a permit or inspection. Arrange it well before storm season, because electricians are hardest to book in the week before a forecast storm.