Every year, thousands of homeowners and professionals accidentally drill into live electrical wires hidden behind walls. The consequences range from a tripped breaker to serious electrical shock, house fires, and repair bills that can run into thousands of dollars. The good news? Most of these accidents are entirely preventable.
Electrical wires carrying AC current generate magnetic fields. These fields are detectable with a magnetometer — the same sensor built into every modern iPhone. By scanning the wall before you drill, you can map the approximate path of wires and avoid disaster.
How Electrical Wires Create Magnetic Fields
Whenever electrical current flows through a wire, it generates a magnetic field perpendicular to the direction of current flow. This is basic electromagnetic physics — discovered by Hans Christian Oersted in 1820 and still the foundation of how electric motors, transformers, and generators work.
In household wiring, alternating current (AC) at 50 or 60 Hz creates a fluctuating magnetic field. This field passes through drywall, wood, and plaster. While the field strength from a single wire is relatively weak (typically 0.1 to 5 microteslas at a few inches), it's well within the detection range of a modern iPhone magnetometer.
The field strength depends on how much current is flowing. A circuit powering a running microwave or hair dryer will produce a much stronger field than an idle circuit. For best detection results, turn on lights and appliances on the circuit you're trying to trace.
Where Wires Typically Run in Walls
Understanding standard wiring practices helps you know where to look — and where to be careful. In residential construction, wires follow predictable paths based on building codes.
- Switches and outlets: Wires run vertically from the electrical box to the nearest top or bottom plate, then horizontally to the next fixture
- Horizontal runs typically follow the top plate (ceiling) or bottom plate (floor), staying within 12 inches of the ceiling or floor
- Wires passing through studs are drilled through holes in the center of the stud, typically 48 to 54 inches above the floor
- Kitchen and bathroom wires often run at counter height (36 inches) where GFCI outlets are clustered
- Light switch wires run straight up from the switch box to the ceiling
Step-by-Step Wire Detection
- Turn on the circuit you want to trace. Switch on lights, plug in an appliance, or run anything that draws current on the target circuit.
- Open Flux and note the baseline reading away from the wall. This is your reference point.
- Hold your phone flat against the wall near the electrical box or outlet you want to trace from.
- Slowly sweep outward from the known wire location. The magnetic field reading will spike when you're directly over the wire.
- Follow the signal by moving in the direction where readings increase. Mark the wire's path with painter's tape.
- When readings drop back to baseline, you've moved away from the wire. Back up and try a different direction.
- Once the path is mapped, plan your drill holes at least 2 inches away from any marked wire locations.
Get Flux
Download Flux to turn your iPhone into a precision metal detector and magnetometer. Available on the App Store.
Important Safety Warnings
While magnetometer detection is a valuable safety tool, it has limitations that you must understand. Not all wires carry enough current to generate detectable magnetic fields. An idle circuit with no load may produce very weak or undetectable fields. Always assume wires may be present even if you don't detect them.
Magnetometer apps cannot detect DC wiring, low-voltage communication cables (ethernet, coax), or plastic pipes. They also cannot determine if a wire is live or dead. If you're doing significant renovation work, hire a licensed electrician who can use professional-grade detection equipment.
Never rely solely on any app for safety-critical decisions. Use magnetometer scanning as one tool in a layered safety approach: visual inspection of electrical panel, knowledge of standard wiring paths, magnetometer scanning, and test drilling with a small bit before committing to a large hole.
What to Do If You Hit a Wire
If you do hit a wire while drilling, stop immediately. Do not pull the drill bit out — the bit may be the only thing preventing a short circuit. Go to your electrical panel and turn off the breaker for that circuit. If you're not sure which breaker, turn off the main breaker.
Once the power is off, carefully remove the drill bit. Inspect the damage. Even a nicked wire insulation can be a fire hazard and should be repaired by a licensed electrician. Do not simply tape over damaged wiring — this does not meet building codes and creates a hidden fire risk.
If you experience any electrical shock, seek medical attention immediately, even if you feel fine. Electrical injuries can cause internal damage that isn't immediately apparent.