FHB Logo Facebook LinkedIn Email Pinterest Twitter X Instagram Tiktok YouTube Plus Icon Close Icon Navigation Search Icon Navigation Search Icon Arrow Down Icon Video Guide Icon Article Guide Icon Modal Close Icon Guide Search Icon Skip to content
Subscribe
Log In
  • How-To
  • Design
  • Tools & Materials
  • Restoration
  • Videos
  • Blogs
  • Forum
  • Magazine
  • Members
  • FHB House
  • Podcast
Log In

Fine Homebuilding Project Guides

Wiring

Guide Home
  • Working with Electricity
  • Tools and Materials
  • Receptacles and Switches
  • Lights and Fans
  • Rough-In
  • Outdoor Wiring
  • Panels and Subpanels
How-To

How to Wire a Switch Box

An electrician walks you through step-by-step on how to wire a switch box.

By Brian Walo Issue 228 – June/July 2012
  • X
  • facebook
  • linkedin
  • pinterest
  • email
  • add to favorites Log in or Sign up to save your favorite articles

Part of my job as a professional electrician is keeping my work neat and organized. A tidy work box makes it easier to install lights, switches, and outlets, and it helps future electricians to see what’s going on inside the box. Inspectors look for tidiness, too, because neat wiring makes short circuits and arcing less likely.

For me, part of being organized is maintaining some conventions with regard to how I run the cables into a switch box. When possible, I run the cable that’s feeding power into the box through a bottom knockout. Cables going to lights or receptacles down line go through knockouts in the top. If there’s an exterior light and an interior light in the same switch box (a common scenario at exterior doors), the cable closer to the door goes to the outside light; a cable farther from the door feeds the interior light.

Nothing in the code says you have to run specific cables through specific knockouts, and never assume that somebody else’s wiring follows your conventions. Using your own conventions is simply a way to know what wires go where when you’re looking at your own work, which is handy when you have to make changes or troubleshoot down the road.

Finally, always check with a voltage tester to make sure power is off to each switch (see “Make Sure the Power Is Off,” FHB #196). Some boxes contain more than one circuit.

Online Extra: Watch the companion video series

Step by Step

diagram of how to wire a switchbox

1. Run the cable.Cables running parallel to framing members should be stapled no less than every 4-1⁄2 ft. near the center of the board. Although there are no hard-and-fast rules, be consistent with box placement. A distance of 44-in. from the floor works for adults, kids, and people in wheelchairs. Code requires that cables be protected from damage and installed in a neat or “workmanlike” manner. Keep the cable free of loops and twists to make pulling easier. Running the cable
2. Label your cable. Untwist each cable, and label it so that the writing will be below the box when the cable is in the box and stapled. Although labels may seem like an unnecessary hassle, using them in boxes with multiple switches makes it easier to hook up the switches later.
Person holding labeled cables
3. Bring the cables into the box.A plastic box has tabs that secure the wires. The tabs are often connected to the box from the molding process. Pull up the tab a little bit with needle-nose pliers or a flat screwdriver, and give the cable a slight bend before pushing it into the box.
Putting cables into the box
4. Secure cables all at once. Make sure all the cables extend 3 in. or 4 in. beyond the front of the box. It’s best to feed in all the cables, making sure they’re neat and untwisted, and then to staple them no more than 8 in. from the box. A cable stacker is a great tool for arranging four or more cables.
Person securing the cables
5. Prepare the conductors. With the wires in the box and secured with staples, clip off the labels with an insulation cutter, and tuck them into the knockouts where the cables enter the box. Remove the rest of the insulation by cutting it with a utility knife, starting about 2 in. from the end. (Be sure to cut away from yourself.) While holding the conductors, pull down the outer insulation. When you’re done, cut off the insulation with side cutters, and slip the label on the cable’s hot conductor.
Preparing the conductors
6. Connect neutrals first. White (neutral) wires often are connected together in a switch box. Route them along the back of the box to a central location, cut them to length, and use wire strippers to expose about 3/4-in. to 1 in. of copper conductor on each wire. Twist the conductors with pliers, trim the bundle, and cap it with a wire nut. Carefully fold the bundle so that it lies flat in the back of the box. Consult the wire-nut package for guidance on properly sizing wire connectors.
Connecting the neutrals
7. Connect ground wires next. Run bare copper ground wires along the back of the box, and route them to a single point. Twist the wires together as a single unit, and cap them with a wire nut or crimping sleeve. Make sure there’s a 4-in.-long length of wire (a pigtail) for every grounded switch in the box.
Connecting ground cables
8. Hot wires are last. On a single-pole switch, the black (hot) wire feeding power to the switch is connected to one of the terminals, and the load wire is connected to the other. You can have a single feed supply power to more than one switch by adding pigtails under a wire nut. The box also contains a cable for a three-way switch. Its red conductor is treated the same as the black conductors.
The hot wires are last

9. Fold the wires inside. Each single-pole switch will have a pair (line and load) of black wires. Near exterior doors, put the black wire feeding outdoor light fixtures closest to the door. Carefully fold the wires into the box without tangling them. Push the wires to the back of the box so that they’re not damaged during drywalling. When it’s time to install the switches, pull out the black and ground wires, and connect them to their respective switch terminals.

Tools of the Trade

From Fine Homebuilding #228

Previous: Wire-Stripping Tips for Roughing in an Electrical Box Next: How to Strip Cable Inside Electrical Boxes

Guide

Wiring

Chapter

Rough-In

Sign up for eletters today and get the latest how-to from Fine Homebuilding, plus special offers.

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters
See all newsletters

Log in or create an account to post a comment.

Sign up Log in

Become a member and get full access to FineHomebuilding.com

Wiring

Wiring

Trusted, code-compliant guidance from the pros for working safely on any wiring project

View Project Guide

View All Project Guides »

Become a member and get unlimited site access, including the Wiring Project Guide.

Start Free Trial

Working with Electricity
  • Basics
  • Safety
  • Troubleshooting and Upgrades
Tools and Materials
  • Electrical Tools
  • Electrical Boxes
  • Cables and Wires
Receptacles and Switches
  • Materials
  • Wiring Receptacles
  • Wiring Switches
Lights and Fans
  • Lighting Design
  • Installing Lights
  • Fans
Rough-In
  • Planning
  • Installing Electrical Boxes
  • Running Cable
  • Retrofit Work
  • Making Connections in Boxes
  • Electrical Conduit
Outdoor Wiring
  • Basics
  • Outlets
  • Installing Lighting
Panels and Subpanels
  • Understanding Panels
  • Circuits
  • Installing a Subpanel

Fine Home Building

Newsletter Sign-up

  • Fine Homebuilding

    Home building tips, offers, and expert advice in your inbox.

  • Green Building Advisor

    Building science and energy efficiency advice, plus special offers, in your inbox.

  • Old House Journal

    Repair, renovation, and restoration tips, plus special offers, in your inbox.

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters

Follow

  • Fine Homebuilding

    Dig into cutting-edge approaches and decades of proven solutions with total access to our experts and tradespeople.

    Start Free Trial Now
    • Facebook
    • Instagram
    • X
    • LinkedIn
  • GBA Prime

    Get instant access to the latest developments in green building, research, and reports from the field.

    Start Free Trial Now
    • Facebook
    • YouTube
  • Old House Journal

    Learn how to restore, repair, update, and decorate your home.

    Subscribe Now
    • Facebook
    • Instagram
    • X
  • Fine Homebuilding

    Dig into cutting-edge approaches and decades of proven solutions with total access to our experts and tradespeople.

    Start Free Trial Now
    • Facebook
    • Instagram
    • X
    • LinkedIn
  • GBA Prime

    Get instant access to the latest developments in green building, research, and reports from the field.

    Start Free Trial Now
    • Facebook
    • YouTube
  • Old House Journal

    Learn how to restore, repair, update, and decorate your home.

    Subscribe Now
    • Facebook
    • Instagram
    • X

Membership & Magazine

  • Online Archive
  • Start Free Trial
  • Magazine Subscription
  • Magazine Renewal
  • Gift a Subscription
  • Customer Support
  • Privacy Preferences
  • About
  • Contact
  • Advertise
  • Careers
  • Terms of Use
  • Site Map
  • Do not sell or share my information
  • Privacy Policy
  • Accessibility
  • California Privacy Rights

© 2025 Active Interest Media. All rights reserved.

Fine Homebuilding receives a commission for items purchased through links on this site, including Amazon Associates and other affiliate advertising programs.

  • Home Group
  • Antique Trader
  • Arts & Crafts Homes
  • Bank Note Reporter
  • Cabin Life
  • Cuisine at Home
  • Fine Gardening
  • Fine Woodworking
  • Green Building Advisor
  • Garden Gate
  • Horticulture
  • Keep Craft Alive
  • Log Home Living
  • Military Trader/Vehicles
  • Numismatic News
  • Numismaster
  • Old Cars Weekly
  • Old House Journal
  • Period Homes
  • Popular Woodworking
  • Script
  • ShopNotes
  • Sports Collectors Digest
  • Threads
  • Timber Home Living
  • Traditional Building
  • Woodsmith
  • World Coin News
  • Writer's Digest
Active Interest Media logo
X
X
This is a dialog window which overlays the main content of the page. The modal window is a 'site map' of the most critical areas of the site. Pressing the Escape (ESC) button will close the modal and bring you back to where you were on the page.

Main Menu

  • How-To
  • Design
  • Tools & Materials
  • Video
  • Blogs
  • Forum
  • Project Guides
  • Reader Projects
  • Magazine
  • Members
  • FHB House

Podcasts

  • FHB Podcast
  • ProTalk

Webinars

  • Upcoming and On-Demand

Podcasts

  • FHB Podcast
  • ProTalk

Webinars

  • Upcoming and On-Demand

Popular Topics

  • Kitchens
  • Business
  • Bedrooms
  • Roofs
  • Architecture and Design
  • Green Building
  • Decks
  • Framing
  • Safety
  • Remodeling
  • Bathrooms
  • Windows
  • Tilework
  • Ceilings
  • HVAC

Magazine

  • Current Issue
  • Past Issues
  • Magazine Index
  • Subscribe
  • Online Archive
  • Author Guidelines

All Access

  • Member Home
  • Start Free Trial
  • Gift Membership

Online Learning

  • Courses
  • Project Guides
  • Reader Projects
  • Podcast

More

  • FHB Ambassadors
  • FHB House
  • Customer Support

Account

  • Log In
  • Join

Newsletter

Get home building tips, offers, and expert advice in your inbox

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters
See all newsletters

Follow

  • X
  • YouTube
  • instagram
  • facebook
  • pinterest
  • Tiktok

Join All Access

Become a member and get instant access to thousands of videos, how-tos, tool reviews, and design features.

Start Your Free Trial

Subscribe

FHB Magazine

Start your subscription today and save up to 81%

Subscribe

We hope you’ve enjoyed your free articles. To keep reading, become a member today.

Get complete site access to expert advice, how-to videos, Code Check, and more, plus the print magazine.

Start your FREE trial

Already a member? Log in

Privacy Policy Update

We use cookies, pixels, script and other tracking technologies to analyze and improve our service, to improve and personalize content, and for advertising to you. We also share information about your use of our site with third-party social media, advertising and analytics partners. You can view our Privacy Policy here and our Terms of Use here.

Cookies

Analytics

These cookies help us track site metrics to improve our sites and provide a better user experience.

Advertising/Social Media

These cookies are used to serve advertisements aligned with your interests.

Essential

These cookies are required to provide basic functions like page navigation and access to secure areas of the website.

Delete My Data

Delete all cookies and associated data