
Electric Fencing
How an electric fence works and why most failures are ground failures: a pulse of more than 5,000 volts at under 300 milliamps, about one output joule per mile of fence, three or more galvanized 6-foot ground rods 10 feet apart and 33 feet from the house ground, 2,000 V at the far end in summer and 4,000 in winter (more for sheep), the shorted-fence ground test, steel wire for permanent runs and polytape only for temporary ones, braced corners and post spacing, wire heights for cattle, goats and sheep, pigs, and poultry, testing with a voltmeter and fault finder, and the safety rules around children, gates, roads, and barbed wire.
- 12 min
- 13 steps
- 8 questions
- 5 hands-on
- Expanded December 5
- Lesson 14 of 21 in Homesteading
In this lesson
- How it works
- Joules and miles
- Voltage
- Grounding
- Wire and polytape
- Building the fence
- Wire heights by animal
- Training
- Troubleshooting
- Safety around children and gates
- The Virginia Tech series
- Try it
Picking up where you left off.
A good electric fence holds cattle, goats, sheep, and pigs for a fraction of the cost of woven wire and moves wherever the grazing goes. A bad one teaches the animals that the wire is harmless, and then nothing holds them. The difference is almost always in parts you don’t see: the ground rods.
How it works
An energizer sends short, high-voltage pulses down the hot wire. When an animal touches it, current flows through the animal into the soil and back to the energizer through its ground rods, a brief, sharp shock it remembers 1. Virginia Tech puts numbers on the pulse: over 5,000 volts, under 300 milliamps, lasting 1/300 of a second or less, which is what makes the shock both sharp and safe 2. An electric fence is a psychological barrier, not a physical one, so it only works if every touch hurts.

When nothing touches the wire, the pulse bleeds off into the air and nearby objects by induction. That is why a gate near the fence can bite you, and why a cow seems to smell the wire: her wet muzzle feels the induced charge 2.
Four things decide whether the fence works 1: an energizer big enough for the fence; a robust grounding system; good insulators and connections; and regular checking.
Joules and miles
There’s no standard rating for comparing energizers between brands. “Miles of fence” on the box depends on soil, weeds, and how the fence is built, so treat it as advertising 3. The box usually lists stored joules, the energy in the capacitor, and output joules, what reaches the fence; output is always lower, and it is the figure to compare. Virginia Tech’s guideline is about one output joule per mile of fence. Several hot wires tied together at both ends of each run don’t need more joules; they lower the resistance 3.
Plug-in (mains) energizers give the most joules for the money and come up to about 30 output joules. Solar energizers mostly give less than one, up to about two, and suit temporary paddocks far from power 3. Buy a little larger than you need today so the fence holds voltage when grass grows into it and when you add paddocks 1. Mount it out of rodents’ reach, with a lightning arrestor.
Voltage
Measure at the far end of the fence, not next to the energizer 1:
- ≥ 2,000 V in summer.
- ≥ 4,000 V in winter, when thick hair coats and frozen, snowy ground make the shock weaker.
- About 5,000 V for training.
Those are Manitoba’s minimums for cattle. Virginia Tech aims higher, ideally 5,000 volts for cattle and 7,000 for sheep 3, whose wool doesn’t conduct 4. Zareba asks at least 2,000 for pigs and 4,000 to 5,000 for goats and sheep, and 5,000 where coyotes or dogs are the problem 5 4.
Grounding
Grounding is the most critical part of the system 1:
- At least three ground rods, 6–8 ft long.
- At least 10 ft apart, and at least 6 ft from the energizer.
- Galvanized rods, clamps, and wire. Never copper, which corrodes where it touches galvanized steel.
Virginia Tech scales the rods to the energizer: three rods driven 6 feet into moist soil for up to 15 joules, five for up to 25, seven for up to 35. Only rod in moist soil counts, so if rods stop at 4 feet, add more until the total length matches. Put the ground field at least 33 feet from the house’s electrical ground, the service box, and metal water pipes, somewhere that stays damp in a drought, such as under an eave. In very dry or sandy soil, a slurry of two parts bentonite to one part rock salt poured around each rod helps, but it corrodes galvanizing, so use stainless rods with it 6.
Test it: far out on the fence, short the hot wire to the ground with a metal bar, then read the voltage at the ground rods. A good ground reads near 0 V; over 200 V means add rods 1. Dry, sandy ground needs more rods than wet clay.
Quick check
Galvanized rods and connectors; copper corrodes against galvanized steel.
Work it out
This exercise needs JavaScript.
Three rods driven 6 feet into moist soil serve energizers up to 15 joules, five up to 25, and seven up to 35. If the rods won’t go 6 feet deep, add rods until the total length in moist soil matches.
Wire and polytape
For permanent fence, use 12½-gauge high-tensile smooth wire with a Class 3 galvanized coat, about three times the zinc of Class 1, which conducts better and lasts longer 2. Current travels on the wire’s surface as well as inside it, so rusty or flaking wire is a poor conductor. From the energizer to the fence, run insulated lead-out cable; aluminum-coated cable carries about three times what galvanized wire does. Never use house wiring such as Romex, which is rated for 600 volts 3.
Polywire and polytape weave fine metal filaments into plastic. They have less metal and more resistance than a steel wire, so voltage falls the farther you go from the energizer. Use them for temporary paddocks, not long permanent runs 2. Temporary tape or rope should have at least six conductive strands 1.
Building the fence
From Manitoba’s guide 1:
- 12½-gauge galvanized high-tensile wire. Take out the slack, don’t overtighten, and loosen it for winter, since contracting wire pulls braces out of line.
- A two-wire cattle fence at 22 and 40 inches from the ground. Bond top and bottom wires together at least every half mile.
- Braced corners: the horizontal brace about 2.5 times the height of the post; corner posts 4–5 inches thick set 3.5 ft deep.
- Line posts up to 60–75 ft apart on level ground, 30–40 ft on hills.
- Two-nail insulators. Single-nail ones tilt and leak power.
- At gates, carry the power across in insulated cable buried in conduit, not overhead gate wire.
Connect every hot wire to the others at the start and end of each run, and use clamps or crimps rather than hand wraps; poor joints add resistance all over a farm 2.
Wire heights by animal
A hot wire has to meet the animal’s face. Wires more than 10 inches apart let an animal push its head between them and take the shock on its neck, and it jumps forward, through the fence 2.
| Animal | Hot wires, inches above ground |
|---|---|
| Cattle, 2 wires | 20, 32 2 |
| Cattle, 3 wires | 18, 30, 42 2 |
| Goats and sheep, 4 wires | 6, 16, 26, 36 2 |
| Pigs, 3 or more | lowest 6 or less, the rest close up to the nose; fence at least 24 5 |
| Poultry, 2 wires | 4 to 6 and 10, or electric netting 7 |
Pigs root under a fence before they go through it; Penn State adds one strand at ground level inside a pig pen, never across the entrance 8. Poultry two-wire fences suit birds on big ranges, not tight runs 7. Pigs, Goats, and Chickens cover the animals; sheep have Shelter, Fencing, and Predators.

Match up
This exercise needs JavaScript.
Each layout puts a hot wire where the animal’s nose meets the fence and keeps the gaps small enough that it can’t push its head through and get shocked on the neck, which drives it forward.
Training
New animals, and animals that have never seen electric fence, need to learn it before you trust it 1:
- Use a small training paddock with 3–4 hot wires, at about 5,000 V.
- Tie foil or flagging to the wire so they investigate it with their noses.
- Most cattle learn after one shock and stay away from the fence within 3–4 days.
Some keepers run a temporary hot strand a few feet inside a permanent fence, near feed or water, so every animal meets it on the way 2.
Quick check
An electric fence is a psychological barrier, not a physical one. Most cattle learn after one shock and avoid the fence within 3–4 days.
Troubleshooting
Low voltage is the common complaint. In order of likelihood 1:
- Vegetation touching the wire: walk the line and clear it.
- Broken, cracked, or cheap insulators.
- Poor grounding: run the shorted-fence test above.
- Low battery or a misaimed panel on a solar energizer.
- An energizer too small for the fence.
Buy a voltmeter with a number on it, not a row of lights, and read the fence through the year while it works, so you know its normal 9. To test the energizer alone, unplug it, take both wires off its terminals, plug it back in, and read across the terminals: a sound unit pulses about 7,000 to 9,000 volts. Gallagher returns a unit for service if it reads under 5,000 9 10. If the energizer is fine, a fault finder that also reads amps does the rest. A healthy fence leaks 1 or 2 milliamps; near a fault, 10 to 30 or more, and the arrow points toward it. The meter only sees about 100 feet either way, so test on both sides of gates and lane crossings 9.
Never: electrify barbed wire or run electric wire alongside it, carry power across a brace with gate wire, or turn untrained animals into a new paddock 1.
Quick check
Walk the line for grass and branches, and short the fence to read the ground rods. Vegetation touching the wire is the most common cause of low voltage; broken insulators and poor grounding come next.
Put in order
This exercise needs JavaScript.
An energizer tested alone should pulse about 7,000 to 9,000 volts. If it does, the fault is in the ground system or the fence, and a fault finder’s amp reading points toward it.
Safety around children and gates
The safety page in a Gallagher energizer manual, taken from the international standard IEC 60335-2-76, sets the rules 10:
- Don’t touch the wire with the head, neck, or torso, and don’t climb over, through, or under a multi-wire fence; use a gate.
- Where unsupervised children may be about, fit a current-limiting device of at least 500 ohms between the energizer and that part of the fence.
- One fence, one energizer. Two energizers’ pulses can overlap and remove the pause that makes a pulsed fence safe 3.
- Never electrify barbed wire. A barbed fence can carry an offset hot wire at least 150 millimeters (6 inches) out.
- Keep the ground system 10 meters (33 feet) from any power or telephone ground, never put fence wire in the same conduit as house wiring, and never cross over a power line.
- Along a public road or path, hang yellow warning signs at least 100 by 200 millimeters reading “CAUTION: Electric Fence.” Where a path crosses, put in a non-electric gate or a stile.
Gates are where people touch fences. Bury the crossing cable in conduit, so hooves and tires can’t wear through the insulation 9, and ground a metal gate that picks up a charge by induction 2.
Select all that apply
This exercise needs JavaScript.
Barbed wire can’t be electrified, one fence takes one energizer, and lead-out runs in cable rated for fence voltage. Signs along roads and paths, and a dead gate where a footpath crosses, are what the rules require.
The Virginia Tech series
Matt Booher’s five short Virginia Tech publications, revised in April 2025, are the clearest free manual on the subject: how a fence works, choosing and installing an energizer, lightning protection, grounding, and troubleshooting (SPES-688P to SPES-692P) 2 3. The wire-height table in the first is adapted from Virginia NRCS’s fence standard, Technical Guide 382 2.
Try it
If you already have an electric fence, buy a digital voltmeter and walk it: read the voltage at the far end, short it and read the ground rods, and note every insulator and weed touching the wire. Count the energizer’s output joules against your miles of wire and its ground rods against Virginia Tech’s table. If you’re building one, set the corner braces first, drive the ground rods, and test before the animals arrive.
Lesson complete
Nice work.
Teach it back
In two sentences, explain Electric Fencing to a friend who missed it.
Related lessons
Among the starsLessons that point here
Sources for this lesson
- 1Electric Fencing for Livestock: A Practical, Professional Guide. Manitoba Agriculture. verifiedReliable performance depends on a powerful energizer, a robust grounding system (the most critical component), good insulation and connections, and maintenance. Target at the far end: at least 2,000 V summer, 4,000 V winter, about 5,000 V for training. Grounding: at least three galvanized rods 6-8 ft long, at least 2 m from the energizer and 3 m apart; galvanized clamps and wire, never copper; short the fence and if the ground rods read over 200 V add rods. 12.5-gauge high-tensile wire; two-wire cattle fence at 22 and 40 in; bond wires every half mile; two-nail insulators; underground coated cable under gates; horizontal brace 2.5 times the vertical post height, corner posts 4-5 in diameter set 3.5 ft deep; line posts 60-75 ft on level ground, 30-40 ft on hills. Train cattle in a 3-4 acre paddock with 3-4 hot wires and flagging; most learn after one shock, avoiding the fence after 3-4 days. Don't electrify barbed wire or run electric alongside barbed wire; don't overtighten; don't leave wire tight over winter; vegetation is the most common cause of low voltage.
- 2Electric Fencing: How Does an Electric Fence Work? (SPES-688P). Virginia Cooperative Extension, Virginia Tech. 2025. verifiedRead December 5, 2026 (VT/0425). An energizer produces over 5,000 volts at under 300 milliamps in pulses of 1/300 second or less. An animal touching the wire bridges it to the soil; ground rods return the electrons to the energizer. With nothing touching, the pulse dissipates by induction, which can electrify a nearby gate (ground the gate) and which livestock sense with wet muzzles. Lead-out should be large (12.5 gauge), ideally insulated; aluminum-coated lead-out cable is about three times as conductive as galvanized steel. Current flows on the surface, so rusty or flaking wire conducts poorly. Connect all hot wires at the beginning and end of each run. Polywire and polytape have more resistance than 12.5-gauge wire and should be temporary, not permanent over long distances. Keep at least 5,000 volts even in dry weather. Training: first exposure in a low-stress area near feed or water; some run a temporary hot strand several feet inside a permanent fence; at least 5,000 volts during training. Wires no more than 10 inches apart, or livestock put their heads between the wires and are shocked on the chest or neck and move forward through the fence. Table 1, adapted from VA-NRCS Technical Guide 382, inches above ground: cattle 1-wire 26-32; 2-wire 20, 32; 3-wire 18, 30, 42; 4-wire 12, 22, 32, 42; 5-wire 12, 20, 28, 36, 44; goats and sheep 3-wire 8, 18, 30; 4-wire 6, 16, 26, 36; 5-wire 6, 12, 18, 28, 38. Use 12.5-gauge high-tensile smooth wire with Class 3 galvanizing (about three times the zinc of Class 1); quality clamps rather than hand wraps; no copper; sleeve buried lead-out under gates in conduit or use double-insulated cable.
- 3Electric Fencing: How to Select and Install an Energizer (SPES-689P). Virginia Cooperative Extension, Virginia Tech. 2025. verifiedRead December 5, 2026 (VT/0425). No standard rating lets consumers compare energizers across companies; mileage ratings are subjective. Stored joules (in the capacitor) exceed output joules (delivered by the transformer); compare output joules. A good guideline is one output joule per mile of fence; multiple hot wires connected at both ends of each run need no more joules and reduce resistance. More joules require more ground rods. Ideally 5,000 volts for cattle and 7,000 for sheep; an underpowered energizer is one of the biggest mistakes; buy larger than needed. Mains energizers are most cost-effective per output joule, up to about 30 output joules; nearly all are now low impedance. Solar energizers mostly give under 1 output joule, larger ones about 2. Deep-cycle batteries discharged below 50% (11.6 volts) have greatly reduced life. Use 12.5-gauge insulated lead-out; aluminum-coated lead-out cable is three times as conductive; never residential cable (12-gauge Romex is rated 600 volts). Never install more than one energizer on a fence: it damages the energizers and the pulses can overlap, removing the safety of a pulsed current. Site the energizer more than 33 feet from utility or residential grounding systems.
Also cited in Off-Grid Power Basics.
- 4Electric Fence for Sheep and Goats. Zareba Systems (Woodstream Corporation). verifiedRead December 5, 2026. Goats and sheep need a charger that maintains 4,000-5,000 volts on the fence line; a minimum of 5,000 volts where predators such as wolves, coyotes, or stray dogs must be deterred. Wool does not conduct electricity. A hot wire at the animal's shoulder height.
- 5Electric Fence for Pigs and Hogs. Zareba Systems (Woodstream Corporation). verifiedRead December 5, 2026. Pigs root, so the lowest wire should start 6 inches or less from the ground, with the next wires closely spaced at even intervals up to the pig's nose (for example 8, 10 inches); a minimum of 3 strands and a fence height of at least 24 inches; a charger that maintains at least 2,000 volts on the line; pigs learn quickly to respect an electric fence.
- 6Electric Fencing: How to Install a Grounding System (SPES-691P). Virginia Cooperative Extension, Virginia Tech. 2025. verifiedRead December 5, 2026 (VT/0425). Locate the grounding system at least 33 feet from utility grounds, the service box ground, and metal water pipes, where it stays moist in drought (under a roof eave). Industry guidelines: at least three ground rods driven 6 feet into moist soil for energizers up to 15 joules, five rods up to 25 joules, seven up to 35; a rod should have at least 6 feet in moist soil, so if rods can't go 6 feet deep, add rods to reach the total length; a single 3-foot portable rod for most small solar energizers. Rods at least 10 feet apart, one unbroken wire with clamps; galvanized steel rods with galvanized wire and stainless or bronze clamps; don't mix copper and galvanized steel; no rebar. In very dry or sandy soil water the rods or pour a slurry of two parts bentonite to one part coarse rock salt; it is corrosive, so use stainless rods.
- 7Electric Fence for Poultry, Chickens, and Turkeys. Zareba Systems (Woodstream Corporation). verifiedRead December 5, 2026. Two-wire system: one wire 4-6 inches off the ground and a second at 10 inches; aluminum wire works well; suited to chickens kept on large areas, not tightly fenced runs. Electrified mesh netting is the other option. Added to an existing fence, the most important wire is 4-6 inches off the ground; a wire at the top deters climbing predators; galvanized steel wire recommended, especially for the bottom wire.
- 8Raising Small Groups of Pigs. Penn State Extension. 2026. verifiedRead December 5, 2026 (updated March 9, 2026). 50-lb pigs started in May are likely to reach 250-280 lb by November. Pigs grow best around 70 F; under 50 lb they need help staying warm, over 150 lb help cooling above 70 F. About 8 sq ft per growing pig; outdoor pigs need more; a three-sided shelter open on the fourth side is enough for pigs with pasture. One strand of electric wire inside the pen at ground level stops digging under the fence; don't run it across the entrance. Rectangular pens rather than square or round, to put distance between bedding and water. Free-choice feed 24 hours a day from a self-feeder; premixed rations unless you grow grain; phase feeding. Table scraps a treat only, never meat products that are not thoroughly cooked. Constant fresh water from automatic waterers (nipples or attachments on a 55-gallon drum), not buckets. Buy healthy pigs from a reputable breeder; at auction choose pigs with a premises identification number; establish a relationship with a veterinarian. Crossbreds grow faster and more efficiently. Load with a solid-sided ramp and a panel behind the pigs; never take sick pigs to the butcher; get a clean bill of health from the vet. Each pig has about two of each whole cut: if you eat four hams a year, raise at least two pigs.
Also cited in Pigs.
- 9Electric Fencing: Troubleshooting (SPES-692P). Virginia Cooperative Extension, Virginia Tech. 2025. verifiedRead December 5, 2026 (VT/0425). Keep fences at a minimum of 3,000-5,000 volts for cattle or 7,000 for sheep; buy a voltmeter with a numerical reading and test periodically to learn the fence's normal range. Steps: survey for obvious faults (downed trees, loose wires); test the energizer with both terminals disconnected, which should pulse about 7,000-9,000 volts; check the grounding system, lead-out, lightning diverter, and connections; then survey with a fault finder. Normal leakage is 1 or 2 milliamps; near a fault 10 to 30 milliamps or more; arrows point toward the fault; meters read only about a hundred feet either way; test both sides of gates and lane crossings; sleeve buried insulated wire in conduit at gates because rocks and traffic wear the insulation.
- 10S20 Portable Solar Fence Energizer: Instructions, USA Edition (3E5488, Edition 1). Gallagher Group Limited. 2021. verifiedRead December 5, 2026 (October 2021). Important information reproduced from IEC 60335-2-76 ed. 2.2: avoid contact with the head, mouth, neck, or torso; don't climb over, through, or under a multi-wire fence, use a gate or crossing point; where unsupervised children are likely, connect a current-limiting device of not less than 500 ohms between the energizer and the fence; not for unsupervised young children; a fence shall not be supplied from two separate energizers; barbed or razor wire shall not be electrified, though a non-electrified barbed fence may carry offset electrified wires at least 150 mm out, the barbed wire earthed at intervals; no earth system within 10 m (33 ft) of any power, telecommunications, or other system; household cable not to be used; underground leads in insulating conduit or insulated high-voltage cable, never in the same conduit as mains or data cables; fence wires shall not cross above power lines; where a fence crosses a public pathway, a non-electrified gate or stile; along a public road or pathway, yellow warning signs at least 100 x 200 mm reading 'CAUTION: Electric Fence' or the symbol, lettering at least 25 mm. Troubleshooting: disconnect and measure across the terminals; under 5 kV return the energizer for service; over 5 kV the fault is in the fence or earth.