CRITICAL MAINS SAFETY WARNING: Working inside a residential service panel involves lethal 120/240V AC mains voltage. Before removing any panel cover, you must de-energize the panel by shutting off the utility main breaker. If you are working on the line side of the main breaker, the utility feed remains live and deadly even when the main breaker is OFF. Lock out and tag out (LOTO) the main breaker, and verify the bus bars are completely dead using a CAT III or CAT IV non-contact voltage tester (NCVT) and a multimeter. Never bypass the utility meter or work on live bus bars. Local codes (and common sense) dictate that if you are not confident, you must hire a licensed electrician.

To wire a portable generator to a house panel safely and legally, you must install a mechanical generator interlock kit (such as the Siemens ECSBPK01 or Square D HOMCGK2C) on your main breaker panel, mount a matched 30A or 50A NEMA inlet box on the exterior, and connect them using a dedicated 2-pole backfeed breaker and correctly sized THHN conductors. This setup prevents your generator from backfeeding the utility grid—a scenario that can electrocute line workers and destroy your generator when utility power is restored.

Sizing Your Generator Inlet, Breaker, and Wire

The most frequent mistake DIYers make when figuring out how to wire a generator to house panel infrastructure is mismatching the inlet box rating to the generator's maximum continuous output. The backfeed breaker must protect the wire, and the wire must handle the inlet's maximum rated current. The table below provides the exact specifications based on the 75°C column of NEC Table 310.16 for copper conductors.

Generator Max Output Inlet Box Rating NEMA Receptacle Backfeed Breaker Size Min. Copper Wire Gauge (75°C)
≤ 7,500W (120/240V) 30 Amp L14-30R 30A 2-Pole 10 AWG THHN
≤ 10,000W (120/240V) 40 Amp L14-40R (Rare) 40A 2-Pole 8 AWG THHN
≤ 12,500W (120/240V) 50 Amp L14-50R 50A 2-Pole 6 AWG THHN
> 12,500W (120/240V) 60 Amp 14-60R (Custom) 60A 2-Pole 4 AWG THHN

Note: If your run from the inlet box to the panel exceeds 50 feet, you must calculate voltage drop and likely upsize your wire by one gauge to maintain less than 3% drop at full load.

Tools and Materials List

Do not start this job until you have the exact components on your bench. Substituting a main lug panel for a main breaker panel will change your interlock kit requirements entirely.

  • Interlock Kit: Brand and panel-specific (e.g., Siemens ECSBPK01 for Siemens load centers, Square D HOMCGK2C for Homeline panels).
  • Generator Inlet Box: 30A or 50A, NEMA 3R rated (rain-tight) with a flip cover.
  • 2-Pole Backfeed Breaker: Matched to your panel brand (e.g., Siemens Q23030 for 30A, Eaton BR250 for 50A). Never use a breaker from a different manufacturer in your panel.
  • Wire: 4 individual THHN/THWN-2 copper conductors (Black, Red, White, Green) sized per the table above.
  • Conduit: 1/2-inch EMT or PVC for 10 AWG; 3/4-inch for 6 AWG, plus fittings and straps.
  • Tools: Insulated screwdrivers, wire strippers, conduit benders, torque screwdriver (inch-pound rated), CAT III digital multimeter, NCVT, and a cordless drill with step bits for knockout punching.

Step-by-Step: Wiring the Inlet Box to the Main Panel

This procedure assumes a standard main-breaker panel with a knock-out available near the bottom right or left corner, adjacent to the main breaker.

  1. Mount the Inlet Box: Secure the exterior inlet box to your siding or masonry within 6 feet of the main panel's location. Use a step bit to punch a 1-inch knockout in the back of the inlet box and the exterior wall, aligning it with a knockout on the side of your main electrical panel.
  2. Run Conduit and Pull Wire: Install your 1/2" or 3/4" conduit between the inlet box and the panel. Pull your four THHN wires through the conduit: Black (Hot 1), Red (Hot 2), White (Neutral), and Green (Equipment Ground). Leave 8 inches of slack inside both enclosures.
  3. Terminate the Inlet Box: Strip 3/4 inch of insulation from the wire ends. Land the Black wire on the X terminal (brass screw), the Red wire on the Y terminal (brass screw), the White wire on the W terminal (silver screw), and the Green wire on the G terminal (green grounding screw). Torque to the manufacturer's spec (usually 45 in-lbs for 10 AWG).
  4. Install the Backfeed Breaker: With the panel de-energized and verified dead, snap your new 2-pole breaker into an available slot at the opposite end of the bus bars from the main breaker (required for the interlock slide plate to reach). Land the Black wire on one breaker lug and the Red wire on the other. Torque the breaker lugs to exactly 45 in-lbs (for Siemens QP) or 40 in-lbs (for Square D Homeline). Loose lugs cause high-resistance arcing and melted breakers under heavy generator loads.
  5. Terminate Neutral and Ground: Land the White neutral wire on an available lug on the Neutral Bar (the bar with the white wires, bonded to the panel enclosure). Land the Green ground wire on the Ground Bar (the bar with bare/green wires, isolated from the neutral if this is a subpanel, but bonded if this is the main service disconnect). In a main panel, neutral and ground bars are often the same physical bar; just ensure you are using a dedicated screw hole for each wire. Never double-lug two wires under one screw.
  6. Install the Interlock Plate: Follow the kit's specific drilling template. You will typically drill two 3/16" holes into the panel dead-front cover to mount the sliding metal interlock plate. This plate physically blocks the generator breaker from being pushed ON unless the utility main breaker is pulled OFF first.

The Most Common Botch: The Neutral-Ground Bond Conflict

The single most dangerous and confusing mistake when wiring a portable generator to a house panel is ignoring the neutral-to-ground bond. According to OSHA electrical safety guidelines and NEC Article 250, a residential main panel is a 'separately derived system' where the neutral and ground are bonded together at the main disconnect.

Most off-the-shelf portable generators also have the neutral bonded to the frame at the alternator. If you plug a bonded-neutral generator into a standard 4-prong inlet box (which does not switch the neutral), you create a parallel path. Neutral return current will split, traveling back to the generator on both the white neutral wire and the green ground wire.

The Symptom: Your house's GFCI and AFCI breakers will trip instantly the moment the generator starts and takes load, or you will feel the ground wire at the inlet box getting warm. GFCI breakers detect this current imbalance on the ground wire and assume there is a ground fault, shutting down the circuit.

The Fix: Your portable generator must be configured as a 'floating neutral' (non-separately derived system) before connecting it to a house inlet box. This usually involves opening the generator's alternator terminal box and removing the neutral-to-ground bonding jumper or screw. Consult your generator's manual for the exact 'floating neutral conversion' procedure. Once the generator's bond is removed, the house panel's main bond handles the grounding safely, and your GFCI breakers will function normally.

Verify and Test: Meter Readings Before Energizing

Never blindly flip the breakers after wiring. Grab your multimeter and verify the physical and electrical integrity of the installation.

  1. Interlock Mechanical Test: With both the Main Breaker and Generator Breaker in the OFF position, try to turn the Generator Breaker ON. The interlock plate should physically block it. Now, turn the Main Breaker ON. The interlock should slide down, locking the Generator Breaker in the OFF position. This confirms you cannot backfeed the grid.
  2. Continuity Check (De-energized): Set your multimeter to Ohms/Continuity. Place one probe on the inlet box X terminal and the other on the panel's ground bar. You should read 'OL' (infinite resistance). If you read near 0 ohms, you have a short circuit between your hot leg and ground. Stop and re-inspect your wire routing.
  3. Generator Open-Circuit Voltage Test: Start your generator outside (never indoors or in a garage due to carbon monoxide). Before plugging the generator cord into the house inlet, measure the voltage at the generator's receptacle. You should read 120V AC between X and W, 120V AC between Y and W, and 240V AC between X and Y. If you read 240V between X and Ground, your generator's neutral bond is still intact and must be removed.
  4. Panel Energization: Plug the heavy-duty SOOW generator cord into the inlet. Turn the utility Main Breaker OFF. Slide the interlock plate up. Turn the Generator Backfeed Breaker ON. Measure the voltage at a standard 120V receptacle inside the house. You should read a stable 118V-122V AC. Turn on a heavy load (like a space heater) and verify the voltage does not sag below 114V, which would indicate an undersized generator or excessive voltage drop in your wiring.

Wiring a generator inlet requires precision, respect for mains voltage, and strict adherence to NEC Article 702 (Optional Standby Systems). By matching your wire gauge to the inlet rating, torquing every lug to spec, and resolving the neutral-ground bond, you ensure your backup power system is safe for your family, your appliances, and the utility workers on your street.