Home Improvement Ideas DIY Home Electrical Tips & Guides How to Install an Electrical Box in Framing Take this important electrical step before putting up your drywall. You'll thank yourself later! By Caitlin Sole Caitlin Sole Instagram Caitlin Sole is the senior home editor at BHG. She is a writer and editor with nearly a decade of interior design expertise. She has vast experience with digital media, including SEO, photo shoot production, video production, eCommerce content, print collaboration, and custom sales content. Learn about BHG's Editorial Process Published on June 1, 2018 Share Tweet Pin Email Project Overview Total Time: 30 minutes Skill Level: Kid-friendly Wiring is easier before the walls and ceilings become covered with drywall or plaster. Installing electrical boxes while studs and joists are exposed is a handy and simple solution for homeowners. To do this on your own, buy switch and receptacle boxes that meet local codes and are large enough for the wires they hold. It's easy to underestimate, so buy extra supplies. At the same time you install boxes, attach fans, lights, or other fixtures that need to be hardwired. Local codes specify where cable should run and at what height to place receptacles and switch boxes. Check codes before you begin. What You'll Need Equipment / Tools 1 Hammer 1 Measuring tape 1 Drill 1 Screwdriver Materials 1 New-work electrical boxes 1 1 1/4-inch wood screws Instructions Measure Height Receptacle boxes typically sit 12 inches up from the floor. Measure with a tape measure or set your hammer upright on the floor and rest the box on top. Position Box The front edge of the box must be flush with the finished wall surface, usually 1/2-inch-thick drywall. Some boxes have depth gauges. You can use a scrap of drywall to position the box. Related: How to Install an Electrical Box in a Finished Wall Attach to Stud or Joist Drive the box's nails into the stud or joist. If the box attaches with a flange, drive screws or nails to anchor the box.Project tip: If desired, use a mud ring to attach the box. Adapter rings, also called mud rings, are typically 1/2 inch or 5/8 inch thick. Choose a ring that matches the thickness of the drywall or paneling you install. Attach the box flush with the front edge of the framing member, then add the ring.