
Running electricity to a detached garage or shed brings life to new areas of your home. If you’re building a workspace, an office, or a loft, you could even see a return on your investment by making that space liveable or useful for projects.
Upgrade your outlet(s) and protect your home and appliances from surges
Adding a ground wire to an outlet protects your home from electrical surges by directing excess electricity into the earth instead of through your wiring.
Expect to pay $130 to $170 per connection when hiring a professional electrician, though DIY parts like GFCI outlets cost as low as $4.
You need to shut off your circuit breaker before replacing any outlet, then use a circuit tester to confirm no electricity flows through the wires.
Hiring a local electrical professional provides reliable support for outlet upgrades and ensures your grounding work meets local building codes, keeping your home safe.
Grounding a wire means that your electrical wire runs from an outlet into the earth, protecting your home from a surge of electric energy. In a new home, grounded wires are mandatory—but in older homes, you may not have this type of protection. That prompts some savvy homeowners to tackle the project themselves or hire a professional electrician to upgrade their setup.
In this guide, learn how to ground a wire by installing new electrical outlets.
Note: this guide will walk you through how to ground a wire by replacing your old outlet with a new one.
To protect against shock and surges, a ground wire runs beneath your home and offers a path for electricity to flow into the earth instead of in your home. Without a ground wire, unsafe levels of electricity could harm you or your loved ones in the event of a short circuit.
Most modern homes have grounded outlets, but switches in older homes (built before 1970) are most likely not grounded.
It's highly advisable that you hire a local electrician or other professional to help you ground a wire. Don't chance it if you're unsure about the work. Better to be safe than sorry.
Some states or counties' local building codes may require grounding older wires. Do research to make sure this isn't the case for your area.
DIY electrical work often requires approval or permits from a local ordinance office or building department beforehand, even for minor work. Failure to obtain this could result in fines or other consequences.
You might also miss out on specific guidelines, such as how or where to install new electrical outlets. Failure to follow these guidelines could also result in fines or penalties.
For this project, you’ll need the following supplies:
Circuit tester
Screwdriver or power drill with screw bits
Clamps
Three-prong grounded electrical outlet
There are a few different methods you can use to ground a wire. No matter which option you go with, always follow safety practices when doing electrical work.

Shut off your circuit breaker, or at least the circuit that runs to the outlet you're planning to replace. Use a circuit tester to ensure there is no electricity running through the unit before moving on
Grab a new three-prong GFCI electrical outlet (as low as $4 at home improvement stores). You won't have the full protection of a grounded wire running into the outside of your home with this strategy, but you'll at least have ground poles inside your outlet that help better protect your home and appliances from electrical surges.
Carefully read the manufacturer's instructions on setting up your new electrical outlet.
With your power off, use a screwdriver or power drill to remove the old outlet. Unwire the hot (black) wire and take out any additional screws inside. Remove the box, then install the new one the opposite way. Reconnect the wires per instructions.
With your device installed on the wall, turn your circuit breaker back on. Your circuit tester should indicate if electricity is flowing through to the area. If not, shut the breaker off and repeat the steps to troubleshoot. Make sure all the wires are correctly and tightly bound together.
Grounding wires is specific to the type of home you live in and what needs to be grounded.
If your outlet box is metal instead of plastic, you can use a self-grounding metal clip (or grounding screw) to attach the grounding wire to the rim of the box. If the grounding clip has a paper washer on it, remove it before placing the outlet into the outlet box. This metal-to-metal contact provides the grounding path. Once the outlet is screwed into the metal box, the box and outlet are grounded for safety.
Again, we believe in safe DIYs. If performing advanced electrical work feels a little scary, call your local electrician for help with this grounding method.
Install a grounding rod on the breaker
Connect the ground wire and the neutral (white) pigtail wire to the grounding bar
Run the grounding wire to your new outlet
It’s important to understand what the colors on electrical wires mean. Every wire will have an insulated casing indicating its purpose. You must also use the right type of wire for your project—match the gauge to your electrical needs.
Finally, invest in a circuit tester, which will help ensure your new outlet functions properly. You can buy a tester for about $20 at your local home improvement store.
Most electrical projects are affordable—a DIY job only requires a few tools, wiring, and an outlet, which you can buy for $7 to $25. Ground wiring runs from $6 to $8 per foot.
If you choose to pay to hire a professional electrician, budget between $50 and $100 per hour. You can expect to pay between $130 to $170 per connection, though your final price will vary on the number of outlets you want to ground.
I recently had Mosby Electric perform an electrical installation on 8-14-2026, and I couldn’t be more satisfied with the service. From the moment I called, their team demonstrated fast arrival and professionalism. The electricians were highly knowledgeable, completing the installation...
Great company! Price was competitive, technician showed up on time and completed the job (exterior electric Radon fan replacement) quickly. Would hire them again.
I conferred with 2 other contractors before Armstrong Electric. Nick and his crew showed me that the project was not as convoluted as the other contractors made it appear to be. They completed the entire project on time. They were professional, friendly and cleaned up after at completion. I...
The techs on my project, Shawn and Cliff, were great. They were prompt, courteous, and efficient. I am very happy with the results and would definitely contact Mr. Electric for any future electrical projects.
Victor was wonderful. He was on time, professional, and explained everything he was doing. He was thorough and figured out that the problem was electrical instead of with my HVAC system. Very knowledgeable. I will be using this company in the future for any HVAC needs. Thanks!
They were excellent. They did a great job. I was totally satisfied. They put tremendous effort in making sure the work was completed. They were great. They provided immediate response to any inquires I made. I would hire them again. I would recommend them to anyone who needs electrical work....
Initially, the repairman could not find the problem. Apparently, there was some electrical shortage, but he could not find the definite problem. He left, but called back later to say he had a new idea. He returned and replaced the light switches on the doors. The refrigerator seemed to return...
The initial quoted price from a walk-through seemed high, but we discussed that the quote represented worst case scenario (re-wiring to two floors) and we were excited about the opportunity to have the work done in a timely manner with closing for fire safety reasons, etc. When the job was...
I have to tell you I am all about customer service - I will go out of my way and even pay more for it if you give me great customer service. <br> <br>In a world where this is hard to find, these guys were awesome! I can not sing their praises enough. They were prompt, personable, funny, got...
When I challenged the markup on the generator, Bruder Electric withdrew its bid. They only want naïve customers.
From average costs to expert advice, get all the answers you need to get your job done.

Running electricity to a detached garage or shed brings life to new areas of your home. If you’re building a workspace, an office, or a loft, you could even see a return on your investment by making that space liveable or useful for projects.

Keep pool-side dreams from getting short-circuited by being aware of pool electrical installation costs and how they can affect your overall budget.

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.

After installing an electric fence, you need to test it to ensure it’s keeping your property secure. Learn how to safely test an electric fence.

Adding an outlet to your home can be as straightforward as connecting to an existing circuit. Learn how to wire an outlet from another outlet in this advanced-level DIY guide.

Electrical boxes are a crucial part of your home’s electrical system, but it can be challenging to wrap your head around the various shapes, sizes, and types available. Keep reading to learn about the different types of electrical boxes and their uses.