📋 Fencing Guides

Pig / Swine Fencing Guide

Pig / Swine Fencing Guide

Overview

Pig fencing is specifically designed to contain animals that root, push, test boundaries, and exploit weak points in fence lines. Unlike cattle or sheep, pigs challenge fences at ground level, making post stability, bottom wire placement, and soil conditions critical design factors.

This guide covers permanent and electric pig fencing systems, fence height requirements, rooting prevention strategies, post spacing, cost planning, and installation considerations. It is designed for small farms, pasture-raised operations, and commercial swine setups.

This page focuses only on pig and hog containment systems. For cattle, goats, sheep, poultry, or mixed livestock fencing, refer to the Cattle Fencing Guide, Goat Fencing Guide, and Sheep Fencing Guide.

YouTube search query: “pasture raised pig electric fencing setup tutorial”

What This Guide Covers

Best Fencing for Pigs and Hogs

Pigs require fencing that handles rooting pressure at the base, lateral pushing force from their muscular shoulders, and enough height to contain sows and boars that can be surprisingly athletic. The most effective permanent pig fencing combines woven wire field fence (6×6 inch spacing or tighter) with a continuous electric wire running 6–8 inches from the ground along the inside of the fence. The electric wire stops pigs from rooting under and pushing against the woven wire, dramatically extending fence life.

For smaller operations and pasture pig systems, a 3-strand electric fence with strands at 6, 14, and 22 inches is a cost-effective alternative to woven wire. Pigs trained to respect electric take the fence seriously, but the system requires consistent energizer maintenance and vegetation management. Commercial hog operations typically use concrete or wood panel barriers for confinement areas with electric for pasture.

Electric Fencing for Swine

Electric fencing is highly effective for pigs because they are sensitive to shock and quickly learn to avoid a hot wire. A 2-strand electric fence at 6 and 14 inches is the minimum for trained adult pigs; add a 22-inch strand for boars and gestating sows that may push fences when restless. Use a minimum 1-joule low-impedance energizer — pigs' thick, dry skin reduces conductivity, requiring adequate shock energy to be effective.

Pigs must be trained to electric fence in a controlled environment before relying on it for containment. Place a single strand in a small, familiar pen and allow pigs to investigate. Once trained, the same animals will respect electric fence reliably for years. Move trained pigs to pasture by first walking them along the energized perimeter before leaving them unsupervised. Never move untrained pigs directly into an electric-only enclosure.

Preventing Rooting Under Fences

Rooting is the primary fence failure mode for pig operations. Pigs follow their instinct to root regardless of feeding and will eventually work under any fence not specifically designed to resist it. The most effective solution is a continuous electric wire or board running 6 inches from the ground along the inside fence line — the shock or physical contact stops rooting behavior before pigs reach the fence.

An alternative is burying woven wire 6–8 inches underground at the base of the fence line, creating a buried apron that stops rooting under. This adds installation cost and labor but eliminates the ongoing management required with electric wire. For temporary pig paddocks, running a strand of electric fence along the ground inside the perimeter at 4–6 inches is the quickest fix.

Pig Fence Height Requirements

Adult pigs rarely jump but can climb or push over short fences. Minimum height for standard breed sows is 32–36 inches; boars require 36–42 inches. Gilts and growing pigs are contained by 30–36 inch fencing. Heritage breeds like Berkshires and Tamworths tend to be more athletic than commercial breeds and may require 42-inch fencing. Farrowing pens and areas with piglets need additional protection from predators at ground level.

Height is less critical than bottom containment for pigs — a 28-inch fence that doesn't allow rooting is more secure than a 48-inch fence with a 6-inch gap at the base. Prioritize bottom-of-fence design over height when choosing fence specifications for swine.

Woven Wire vs Electric for Pigs

Woven wire provides reliable containment without electrical maintenance but requires the addition of an inside electric strand to prevent rooting damage to the wire itself. Budget $4–$6 per linear foot for woven wire with electric offset installed. The system is labor-intensive to install but requires minimal ongoing management once established. It's the preferred choice for permanent pig facilities.

All-electric systems cost 50–70% less to install but require consistent maintenance — vegetation management, monthly voltage testing, and energizer upkeep. They work well for rotational pasture pig systems where portability and low cost outweigh the management overhead. Many pasture pork producers use electric for summer grazing and move pigs to hardened facilities for winter.

Best Fencing for Pigs and Hogs

The most effective pig fencing systems include woven wire, electric, and hybrid designs that combine physical barriers with behavioral deterrents.

Read more →
📐

Electric Fencing for Swine

Electric fencing for pigs requires higher voltage than systems used for cattle or sheep, typically between 3,000 and 5,0

Read more →

Preventing Rooting Under Fences

Pigs naturally root and dig, making ground-level security the most important aspect of pig fence design.

Read more →
🐎

Pig Fence Height Requirements

Most pig fencing height ranges from 30 to 40 inches depending on the breed, age, and weight of the animals.

Read more →
🌿

Woven Wire vs Electric for Pigs

The choice between woven wire and electric fencing for pigs depends on budget, maintenance capacity, and containment goals.

Read more →
🔧

Pig Fence Post Spacing

Proper post spacing for pig fencing is critical to prevent sagging and maintain ground-level tension where pigs exert the most pressure.

Read more →
💰

Perimeter vs Cross Fencing for Pigs

Most pig operations require both perimeter fencing and interior cross fencing to manage different age groups, breeding s

Read more →
📋

Pasture-Raised Pig Fencing

Pasture-raised pig fencing systems must balance containment with the flexibility needed for rotational grazing and soil management.

Read more →
🏗️

Fencing on Uneven or Muddy Ground

Installing pig fencing on uneven or muddy ground presents unique challenges because pigs exploit any gap or weak point c

Read more →
🛡️

Common Pig Fencing Mistakes

The most common pig fencing mistakes include setting posts too shallow, spacing bottom wires too high above ground, unde

Read more →

Common Decision Scenarios

If Rooting Is a Major Problem

For serious rooting problems, the most effective solution is a buried concrete footer or galvanized apron at the fence base combined with an inside electric wire. Pour a 6-inch-wide concrete band along the inside base of the fence, or bury 12-inch galvanized mesh horizontally outward from the fence base. Add the electric offset wire as a secondary deterrent. This combination stops even the most determined rooters.

If infrastructure investment isn't feasible, rotate pigs through paddocks on a schedule that moves them before they concentrate their rooting on fence lines. In temporary paddocks, surround the inside of the fence with a series of large rocks or concrete blocks at the base — this doesn't stop rooting but slows it enough that pigs typically lose interest before creating an escape route.

If You Plan Rotational Grazing

Rotational pigs require portable fencing that moves quickly and contains animals reliably between moves. A 3-strand electric system with step-in posts is the standard solution — the entire system for a 1-acre paddock sets up in under 2 hours and moves in 45 minutes. Solar energizers with sufficient battery backup handle remote paddocks without power access.

Divide total pasture into more paddocks than you think necessary — pigs convert pasture to mud quickly, and adequate recovery time (60–90 days minimum) prevents permanent pasture damage. Many producers find that 8–12 paddocks with 3–4 day rotation intervals balance productivity with pasture health.

If You Need a Low-Cost Setup

For operations with limited upfront budgets, temporary electric fencing can significantly reduce material costs compared

Read more →
📐

If Rooting Is a Major Problem

When pigs consistently root under fence lines, the most effective solutions involve reinforcing the bottom 12 inches of

Read more →

If Terrain Is Uneven or Muddy

On sloped or hilly terrain, pig fencing must follow ground contours closely because even small gaps allow pigs to root and push through.

Read more →
🐎

If You Want Minimal Maintenance

For low-maintenance pig containment, permanent high-tensile wire or woven wire systems with proper corner bracing and ad

Read more →
🌿

If You Plan Rotational Grazing

Rotational grazing systems for pigs benefit from permanent perimeter fencing combined with temporary electric interior d

Read more →

Key Design & Planning Considerations

Fence Height & Spacing

Pig fencing typically ranges from 30–40 inches for most operations, though mature boars may require reinforced lower sections rather than additional height. Bottom wires should be positioned no more than 6 inches above ground to prevent rooting escapes, with tighter spacing than cattle or sheep fencing.

Post spacing should be closer in soft soil to maintain tension—typically 8–10 feet rather than the 12–16 feet used for cattle fencing. For comprehensive height recommendations across different livestock types, see the Fence Height Guide.

Rural agricultural pasture showcasing a properly installed swine fencing system with sturdy galvanized metal posts and welded wire mesh

Safety Factors

Electric fences for pigs must deliver consistent voltage, usually 3,000–5,000 volts, to effectively deter animals that test boundaries repeatedly. Lower voltage allows pigs to learn they can push through with minimal discomfort.

Avoid sharp protrusions, loose wire ends, or panel edges that can cause injury when pigs push or rub against the fence. Proper grounding is especially critical in muddy conditions where soil moisture varies significantly throughout the season.

Cost & Maintenance

Pig fencing costs vary significantly based on system type, terrain, and labor requirements. Electric fencing reduces upfront material cost per acre but increases ongoing monitoring and maintenance needs compared to permanent woven wire systems.

Long-term costs include post replacement, wire tightening, energizer maintenance, and vegetation control. For detailed breakdowns of material versus labor expenses, consult the Fence Cost Breakdown guide.

Installation Complexity

Woven wire installation for pig fencing is more complex than for other livestock because it requires precise tensioning, strong corner bracing, and tight ground-level spacing. Proper installation demands specialized toolsincluding fence stretchers and tensioning equipment.

Electric systems require energizers, grounding rods, and careful planning around corners and elevation changes. For step-by-step instructions, see the Farm Fence Installation guide and Electric Fence Installation guide.

Legal & Boundary Considerations

Fence liability and boundary laws vary significantly by region, and some jurisdictions have specific requirements for livestock containment that may affect design choices. In many areas, landowners are legally requiredto fence their livestock to prevent trespassing.

Property line disputes can arise if fences are installed too close to boundaries or if shared fence responsibilities are unclear. For planning guidance and legal considerations, refer to the Property Line Fence Placement guide.

Related Fence Systems

A close-up of a fence post in an outdoor agricultural pasture with visible wooden post material, galvanized wire tightly attached to it by a metal bracket, and a ceramic insulator at the connection point, all bathed in natural daylight

Frequently Asked Questions

What is the best fence for pigs?

Woven wire with a low hot wire is the most secure permanent system, combining physical strength with behavioral deterrence to prevent pushing and rooting.

Can pigs be kept with electric fencing only?

Yes, pigs can be contained with electric fencing alone if voltage and grounding are maintained properly and animals are trained to respect the fence line.

How do you stop pigs from digging under fences?

Lower hot wires positioned 4–6 inches off the ground, buried wire mesh aprons, and tight bottom wire spacing help prevent rooting escapes.

How tall should pig fencing be?

Most pig fencing ranges between 30–40 inches depending on breed, weight, and whether the fence includes electric reinforcement.

Is woven wire better than electric fencing for pigs?

Woven wire provides stronger physical containment, while electric fencing adds behavioral reinforcement and reduces material costs—many operations use both together.

Final Recommendations

Pig fencing must prioritize ground-level containment, post stability, and consistent tension to prevent the rooting and pushing behavior that causes most containment failures. For permanent perimeter fencing, woven wire reinforced with electric offset wires provides the highest level of long-term security and requires the least maintenance once properly installed.

For rotational grazing or small-scale systems, temporary electric fencing can be highly effective when voltage is maintained consistently and pigs are properly trained. Choose your system based on soil type, rooting behavior intensity, herd size, budget constraints, and long-term maintenance capacity. Use the linked guides above for detailed material comparisons, cost planning tools, and step-by-step installation methods.

Explore More Fencing Guides

Find the right fence for your farm — browse by livestock type, material, or project need.

Browse Livestock Guides Compare Materials