How to Wire a Detached Garage and Why You Should Leave It to the Pros

Turn the lights—it’s worth it

Home garage with door open at night
Photo: Thomas Barwick / Stone / Getty Images
Home garage with door open at night
Photo: Thomas Barwick / Stone / Getty Images

This project requires a lot of experience, so we don’t recommend DIYing it. Hire a pro with the special skills and tools necessary to complete the job safely.

SKILL LEVEL
Expert
COMPLETION TIME
1 day
COST
$1,000–$2,500
Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon
What you'll need:
TOOLS
  • Trenching shovel
  • Spade
  • Electrical tape
SUPPLIES
  • New breaker box
  • UF-B cable
  • Conduit pipes
  • Sand
  • Dirt

Picture this—your detached garage, currently home to a bunch of power tools and storage boxes, suddenly has lights. You turn that additional living space into a home office or an entertainment center, or even a workspace for your home improvement projects.

Sounds pretty great, but getting electricity to a detached garage does require lots of know-how and hard work. It’s the type of job best left to a local electrician, but what does the process look like? This guide explains how an electrician runs power to a detached garage.

How to Wire a Detached Garage

Closeup of an electrician wiring circuit braker unit
Photo: grigvovan / Adobe Stock

Creating a safe and functional detached garage involves much more than running electrical wires. It requires the expertise of a professional electrician who understands the intricate details of electrical systems, local building codes, and safety standards. Here’s how they do it.  

  1. Select a Breaker Box

    Hiring an electrician to install a new breaker box costs between $200 and $2,000. An electrician determines your electrical needs and selects an electrical panel based on several critical factors.

    • Load calculation: The electrician will assess your specific electrical requirements by factors such as the size of the space, the number and type of electrical devices, lighting, and HVAC systems.

    • Local codes and regulations: Electricians will select a breaker box that complies with these codes that dictate the type of panel, its location, the number of circuits, grounding requirements, and other safety measures.

    • Wiring and conduit needs: Based on the load calculation and equipment requirements, the electrician will determine the size and type of wiring and conduit needed to connect the electrical panel to the various circuits and outlets in the garage.

    • Budget and cost considerations: Finally, the electrician will work within your budget constraints to select a breaker box that meets your needs while keeping costs reasonable.

  2. Call Your Local Utility Locating Service

    Red utility flag on a yard
    Photo: videotrinkets / Adobe Stock

    Before beginning the project, you or your electrician must call to ensure no buried gas lines or electric cables are already present beneath your yard. Failure to do so could result in serious injury, not to mention expensive repairs, fines, or disrupted utility services to your home.

    811 is the national call-before-you-dig hotline to call. Never skip this step before your pro starts this project.

  3. Dig a Trench

    Electric pipe line buried in trench
    Photo: lufeethebear / Adobe Stock

    Electricians rarely do the excavating themselves, but you’ll likely need to dig (or hire someone to dig) a foot-deep trench that runs from your home to the point of installation in your detached garage.

    Digging a trench usually costs between $800 for 100 linear feet of digging, although this price can change depending on the difficulty of the terrain. You can hire a local excavation company to do this job.

    Keep in mind this is just part of your budget. Powering up your outdoor living space will likely cost between $1,000 and $2,500 on average. In this trench, your electrician will bury a UF-B cable, which is a waterproof cable that transports electricity to your garage.

  4. Install a Pipe for Exposed Areas

    Electrician holding protective electric pipe
    Photo: Tomasz Zajda / Adobe Stock

    In many cases, especially for homes with a foundation that is just slightly outward away from the home, an electrician will need to install a pipe that runs from the insertion point of your home into the ground. Otherwise, you’ll have an exposed UF-B cable above the ground.

    Conduit pipes are a popular option here, as they can be heated up and bent to fit sleekly along the existing contours of your home. Once this is in place, the electrician can run the UF-B cable from the new breaker box to the existing panel inside your home.

  5. Lay Sand Down in the Trench

    Sand covering trench in a yard
    Photo: Stephen / Adobe Stock

    Your electrician or a local electrical company also won’t contribute to this part, but it will be a required step to complete this job. A local trench digging or excavation company can tackle this job, or maybe even a handyman if they have experience.

    Using a bag of sand to fill in the base of the trench you've dug serves as a warning for future diggers—possibly even the next homeowners of your current residence—that electric cables lay below it.

    It’s also a good idea to put down red electrical tape on top of the sand, then cover it with dirt.

  6. Wire Your New Electrical Box

    Hand testing a home electrical box
    Photo: The Toidi / Adobe Stock

    Your home’s electricity must be turned off before starting any wiring, which should always be tackled by a professional electrician.

    Finally, your electrician will connect your detached garage to the main power source. This job involves identifying and wiring together electrical cables and should only be tackled by someone with a true understanding of what they’re doing. Any other situation could pose a serious safety hazard.

    Once completed, turn your power back on and, well, let there be light! (Or a cold fridge, or whatever it is that you needed electricity for in your detached garage.)

Designing Your Garage Wiring

Electrical work in a detached garage should start with thoroughly assessing your needs. Consider the intended use of the space, such as a workshop, storage area, or home office, and work with a licensed electrician to determine the electrical load requirements for lighting, outlets, and any power tools or appliances you plan to use. 

When wiring a detached garage, ask yourself the following questions to ensure a safe and functional electrical installation.

Garage wiring checklist questions, including asking if you will install a garage door opener and where do you need lighting

Average Cost to Wire a Garage

The price range for installing electrical wiring in a garage falls between $1,000 and $2,500. However, it's essential to remember that expenses may escalate in cases where you need to open up drywall or when extra outlets are required to power various appliances.

Hiring a Professional

The expense of extending electrical power to a detached garage falls within the range of $1,000 to $2,500, contingent upon factors like your electrical requirements and whether any drywall modifications are necessary for new wiring. If substantial electrical work is required, like an upgraded electrical panel, the project's cost may escalate, potentially reaching figures of $4,000 to $5,000 or even more. 

Consult with a local electrician who can assess your needs and provide a detailed cost breakdown based on your circumstances and local regulations.

Cost to DIY Electric to Your Detached Garage

If you plan to DIY, you must obtain a permit before beginning work and schedule an inspection afterward for code compliance. Only attempt the project if you have extensive electrical experience and a thorough understanding of how to be code-compliant. Remember, many licensed professionals guarantee their work, providing peace of mind.

Your out-of-pocket expense depends on the project. On average, you may save $162 to $535—the cost of hiring a licensed electrician. The exact amount depends on the scope of work, and your materials cost will be just as high. Unless you’re a pro, attempting DIY this project is not worth the savings.  

Why You Should Hire a Professional

Hiring a professional electrician in your area for electrical work in your garage is a wise decision for several important reasons.

  • Safety: Electrical work can be hazardous, especially if not done correctly. A professional electrician is trained and experienced in adhering to safety protocols, minimizing the risk of accidents, electrical shocks, and fires. 

  • Compliance: They will ensure that your garage's electrical installation complies with all the necessary codes and permits.

  • Work quality: Professionals have the expertise to perform high-quality work. They will use suitable materials, tools, and techniques to ensure a reliable and long-lasting electrical system in your garage.

  • Insurance and liability: In case of accidents, damage, or electrical failures, the electrician's insurance will typically cover the costs.

  • Efficiency: Professionals work efficiently and can complete the job in a reasonable timeframe. This means less disruption to your daily routine and faster access to electricity in your garage.

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to electrical services
From average costs to expert advice, get all the answers you need to get your job done.
A technician in a black shirt and khaki pants walks away from a house wall with utility boxes, a ladder, and a blue "X" marking on it.
Mar 25, 2025
Mar 25, 2025
Before you hire a licensed electrical contractor, you should learn the cost to run electric from the road to your house so you can budget for the project.
Technician smiling while using a multimeter to test wiring on an outdoor wall, enjoying his work on a sunny day with a lush background.
Mar 25, 2025
Mar 25, 2025
Rewiring a house can be a complex project but don’t let it catch you off guard. Read this to plan ahead and discover the cost to rewire a house.
A step stool holds electrical tools, outlet covers, and tape, while a tool bag and drill sit nearby, indicating electrical work in progress.
Mar 25, 2025
Mar 25, 2025
Looking to size up your electrical system to cover higher usage and improve efficiency? Use this guide to see the cost to upgrade an electrical panel.
A female electrician wiring in new apartment
Mar 26, 2025
Mar 26, 2025
Installing an electrical outlet in a home requires new hardware, wiring, and more. Here’s what you need to know about installing electrical outlets.
Electrical socket with multiple plugs
Mar 26, 2025
Mar 26, 2025
Electrical load calculation will help you estimate the needs of your home’s electrical service. Find out how to calculate your home’s electrical load.
Circuit breaker box
Mar 26, 2025
Mar 26, 2025
When you need to figure out how to find what is tripping your circuit breaker, our guide can walk you through the possible causes and how to identify them.
Share project details to get started.