How to Install a Gas or Electric Stovetop

Replacing a stovetop is one of those kitchen projects that looks straightforward until you're staring at the connections underneath. The actual swap is manageable for a confident homeowner with basic tools, but the electrical or gas hookup is where you need to slow down and think clearly. A gas stovetop demands respect—improper connections create real danger. An electric unit means dealing with high-amperage circuits that can hurt you if you're careless. The difference between a stovetop that works beautifully and one that doesn't cook evenly (or at all) often comes down to how carefully you handle the prep work and connections. Done right, your new stovetop will sit flush, connect safely, and cook reliably for fifteen years or more.

  1. Kill the Power First. For electric units, switch off the circuit breaker that controls the stovetop. Leave the breaker off and place a piece of tape over it so nobody accidentally turns it back on while you work. For gas units, locate the shutoff valve on the gas line feeding the stovetop (usually behind or beside the unit) and turn it clockwise until it stops. If you can't locate it or it won't turn, call a plumber or your gas utility. Do not proceed without confirming the power or gas is off.
  2. Muscle Out the Old Unit. Pull the old unit forward and away from the wall. It will be heavy—recruit a second person to guide it and prevent damage to cabinetry. Once it's clear of the cutout, set it on a blanket or tarp on the floor to protect both the appliance and your kitchen. Disconnect any remaining electrical or gas connections (see step 3 or 4 depending on your unit type). If the old unit is bolted down from underneath, unscrew those bolts first before pulling.
  3. Cap That Gas Line Now. Using an adjustable wrench, hold the fitting on the stovetop's inlet with one wrench while turning the connecting nut counterclockwise with another. Once loose, carefully pull the connection free. Immediately cap the open gas line with a threaded brass plug and wrap the threads with plumber's tape to prevent leaks. If gas escapes and you smell it, stop work, turn off the main gas valve, open windows, and call your gas utility. Do not use lighters, matches, or anything that could ignite escaping gas.
  4. Document Every Wire. Most electric stovetops hardwire directly into a junction box built into the cabinet (not a plug). Loosen the terminal screws holding the three or four wires (typically red, black, white, and bare copper ground). Note the color and position of each wire—photograph it if you're unsure. Once the wires are loose, pull them free from the terminal block. If your stovetop has a plug, simply unplug it. Do not touch the wires or terminals with bare hands while the breaker is off and back on repeatedly—use insulated pliers.
  5. Clean the Opening Completely. Wipe away grease, crumbs, and debris from the countertop cutout and the rim of the cabinets. Inspect the opening for damage, rot, or gaps. If the opening is larger or smaller than your new stovetop requires, you'll need to trim or fill the space—this is a cabinet job and typically requires a handyperson. Most modern stovetops slide into a standard 30-inch or 36-inch opening. If the opening is irregular or the countertop is warped, the new unit won't sit flush and may rock slightly.
  6. Unbox and Inspect Carefully. Unbox the new stovetop and place it on a blanket in the kitchen. Remove any packaging material, plastic guards, or cardboard spacers from inside the unit. Do not remove the black trim ring or any insulation boards underneath—those stay on. For gas units, check that the burner caps and grates are seated correctly, and ensure the control knobs are in the off position. For electric units, confirm that no wires are pinched or folded during packaging.
  7. Seat the New Unit Flush. With a helper, lift the stovetop and carefully guide it toward the opening. Align the front edge with the countertop so the trim ring sits flush. Lower the unit slowly and slide it fully into place. The stovetop should sit level and centered in the opening with no gaps between the trim ring and the countertop edge. If the opening is tight, apply a thin bead of caulk around the rim of the cabinet cutout first—this will help seal the gap and make the unit easier to slide. Do not force the stovetop; if it jams, pull it out and investigate what's blocking it.
  8. Seal Gas Connections Tight. Using two adjustable wrenches, apply plumber's tape (4–5 wraps) to the threaded inlet fitting on the new stovetop's gas connection. Connect the flexible gas line to the inlet and tighten the nut by hand first, then snug it with a wrench. Do not overtighten—you'll strip the fitting. Once connected, mix a small batch of soapy water and brush it over the connection. If bubbles form, the connection is leaking; tighten slightly and retest. If it still leaks, disconnect and reapply tape. Do not use the stovetop until all connections test bubble-free.
  9. Match Wires Precisely. This step assumes a hardwired connection into a junction box. If your stovetop has a plug, simply plug it in and skip to the next step. For hardwired units: identify the wires on the new stovetop (red, black, white, ground) and match them to the corresponding wires in the junction box based on your earlier photos or the wiring diagram on the stovetop's installation sheet. Loosen the terminal screws, insert each wire into its correct terminal, and tighten the screw firmly—not so hard you crush the wire, but hard enough that the wire won't pull out. Replace the junction box cover. If you're unsure about wire color or position, call an electrician.
  10. Restore Power or Gas. For electric units, switch the circuit breaker back on. For gas units, turn the shutoff valve counterclockwise until it stops. Wait 30 seconds for gas to flow through the line, then turn on one burner control briefly to bleed air from the line—you may hear a hiss, and that's normal. If you smell strong gas odor and it doesn't fade after a minute, turn the valve back off and check for leaks with your soapy water test. Do not use lighters or open flames to search for gas leaks.
  11. Fire Up Every Burner. Turn each burner to a medium heat setting and watch for ignition and flame. Gas burners should ignite within 2–3 seconds. Electric coils or smoothtop elements should glow red within a few seconds. If a burner won't ignite or heat, turn off the stovetop and stop using it—this usually means an air pocket in the gas line (for gas models) or a wiring issue (for electric models). Let the unit cool, and try again. Electric units may need 10–15 minutes to warm up fully on first use. If problems persist, call the manufacturer or a technician.
  12. Caulk and Lock It Down. Once the stovetop is confirmed to be working safely, caulk any gaps between the trim ring and the countertop using 100% silicone or paintable caulk (not acrylic, which can absorb grease). Apply a thin, continuous bead around the entire perimeter. Smooth it with a wet finger or caulk tool. This prevents crumbs and liquids from seeping into the cabinet. Some stovetops come with mounting brackets that screw into the underside of the countertop to prevent tipping—install these according to the manufacturer's instructions. Let caulk cure for 24 hours before heavy use.