Skip to content
Goshen Exchange

Shelter and WorkshopLesson 4 of 6

Fencing and gates

Breakout About 18 min readNew to you

What you’ll learn

  • How to choose a fence type for each animal and what it costs per foot
  • How deep, how big and how far apart to set posts, and how to brace a corner
  • How to hang a gate that does not sag
  • Fence-in and fence-out law, who pays for a line fence and what happens if animals get out
  • Why to call 811 before you dig and how to stay safe stretching wire

The short version

  1. Know the law first. Is your state fence-in or fence-out, who pays for a line fence, and does your county zoning limit fence height?

  2. Match the fence to the animal. Cattle at least 54 inches, horses at least 5 feet, sheep and goats woven wire with 2-by-4-inch openings, pigs 35 inches plus a bottom wire, deer 8 feet.

  3. Posts and braces decide how long it lasts. Set corner and gate posts at least 3 1/2 feet deep, as big as you can set, and brace every corner.

  4. Use treated posts for ground contact. Georgia says 0.4 pound per cubic foot or more; builder's-store 0.25 lumber and landscape timbers are not acceptable.

  5. A gate opening is 14 feet. Wider strains the hanging post; use two gates.

  6. Use Class 3 galvanized wire. It lasts 5 to 10 years longer in humid climates.

  7. Budget $2 to $4 a foot for permanent wire fence. Missouri April 2026: $3.03 to $3.94; Iowa December 2024: $1.99 to $2.34.

  8. Electric fence is the cheapest fence per foot. Missouri priced a five-wire electrified high-tensile fence at $2.51 a foot against $3.94 for woven wire (April 2026), and Iowa put electrified at $1.21 against $2.34 for woven (December 2024).

  9. Fence law is local. Confirm with your county before you build on a line.

Choose the fence by animal

AnimalWhat the sources say (inches unless noted)
CattlePerimeter at least 54 in (Tennessee); NRCS Maryland: 48 in woven wire plus a top wire, or barbed wire with at least 3 strands
HorsesPerimeter at least 5 ft, dividing fences 4.5 ft, bottom 6 to 8 in off the ground (Georgia); no barbed wire; 2-by-4-inch welded wire is not recommended because the joints fail; mesh 12.5 gauge or better
Sheep and goatsWoven-wire openings no larger than 2 by 4 in so heads and horns don't stick; NRCS Maryland: at least 40 in with 5 horizontal woven wires plus one more; NRCS Alabama: 32 in woven plus 2 strands; barbed wire is a poor fit (wool clogs, they slip through)
PigsNRCS Maryland: woven wire at least 35 in with an extra bottom wire; hog and cattle panels (3 to 4 ft tall, 16 ft long) suit pigs, posts 10 to 12 ft apart, panel clipped on the inside of the post, T-posts capped
Llamas and alpacas60 in with 2-by-4-inch no-climb mesh (Washington State)
Chickens and turkeysNRCS Maryland: woven wire 72 in tall with 2-by-4-inch openings plus a top wire; Maine: daytime pen fully enclosed in 1-inch chicken wire over a frame
Rabbits and garden pestsGeorgia: rabbits 2 ft of 1-inch hex wire with a 12-inch outward apron buried a few inches; dogs and cats 3 ft with a 24-inch apron; raccoons and opossums 60 to 72 in with a 24-inch buried apron and the top 18 in left unattached to flop over
Deer8-foot woven wire built as two 4-ft widths on 12-ft posts (Penn State); 7 to 8 ft (Montana FWP); 6 to 8 ft (Maine); 8 ft (Arizona); keep any gap under a gate at 6 in or less
Coyotes and diggersMaine: 5-ft woven wire with outward extenders and either 8 in buried or a galvanized apron at least 15 in wide; NRCS Maryland: put the bottom wire at ground level
JavelinaAt least 4 ft tall (over 6 ft best) and buried 8 in (University of Arizona)

Fence types

  • Woven wire (field fence). Line wires run from about 1.5 inches apart at the bottom to 9 inches at the top. Stay wires are 6 inches apart for small animals and 12 inches for large animals. Most rolls are 26 to 48 inches tall. "949-12-11" means 9 wires, 49 inches tall, 12-inch stays, 11 gauge.

  • High-tensile smooth wire. 12.5 gauge, tensioned to about 200 pounds with an in-line strainer; see the Livestock fencing and predator protection lesson for hot designs.

  • Barbed wire. Cheap for cattle; avoid for horses and small stock.

  • Board fence. Posts no more than 8 feet apart, boards at least nominal 1 by 6 inches with two 12d galvanized nails or two 3-inch screws, 3 to 4 boards. It is the dearest and lasts 10 to 20 years.

  • Chain link. At least 5 feet, 9 gauge with 2-inch mesh, line posts 2-inch pipe set 12 inches deep in concrete and no more than 10 feet apart.

  • Hog and cattle panels. Cheap, quick and strong; not for sheep or goats.

  • Cost and life compared (UGA). Electric about 25 years, barbed or woven about 33, boards 10 to 20, movable fence 1 to 3 years.

Diagram coming soonFence by animal
Figure 1. Minimum heights and wire spacing for each animal.
Sources: Cornell University, Code of Federal Regulations (eCFR) and 15 more

Plan the line

  1. Check the law and zoning (see Fence law, boundaries and liability below).

  2. Call 811 and have utilities marked.

  3. Use as few corners and gates as you can. A straight, continuous stretch is the cheapest, fastest and easiest; each extra corner, end, gate and water gap adds time and cost.

  4. Stay at least 10 feet from streams and avoid woven wire in flood zones; use single-strand high-tensile with flexible posts and hanging flood gates.

  5. Slopes raise the effective jump height: a 30 percent slope raises the effective height of a 42-inch fence to 62 inches, and Montana FWP's figure shows 48.6 inches for a gentler slope.

  6. Put gates in corners, not mid-line, and keep the number small.

Sources: Iowa Legislature, Washington State Legislature and 6 more

Build it, step by step

1. Posts

  • Wood species and life. Untreated black locust and Osage orange last 20 to 25 years (Georgia); Tennessee gives Osage 25 to 35 years and black locust and red cedar 15 to 25; untreated pine lasts 3 to 7 years and treated pine 25 to 30. In western Oregon no Osage-orange post had failed after 37 years. In a 30-year South Dakota test treated ponderosa pine posts showed no failures at the best treatments; untreated posts had a probable life of 11 to 13 years and wetter sites decayed treated posts faster.

  • Treatment. Georgia advises posts treated at 0.4 pound per cubic foot or more for ground contact; builder's-store lumber treated at 0.25 pound will not protect against termites or rot in soil. NRCS Maryland and Georgia say landscape timbers are not acceptable. NRCS Maryland says not to use red pine, while Minnesota and Georgia accept treated pine.

  • Sizes. Corner and gate posts at least 8 inches in diameter (Georgia, Tennessee), at least 6 inches (NRCS Maryland) or about 5 inches (NRCS Nebraska and Arkansas); brace posts about 5 inches; line posts 2.5 to 4 inches.

  • Depths. Line posts at least 2 to 2.5 feet and corner and gate posts at least 3 to 3.5 feet (NRCS Maryland: 2 1/2 and 3 1/2 feet); Penn State: 36 inches for line posts and 48 for corner posts; tension assemblies at least 4 feet (Washington State).

  • Spacing. Woven wire at most 10 feet (NRCS Maryland), 14 to 16 feet (Tennessee) or 16 feet (NRCS Alabama); barbed 12 to 16 feet; electric high-tensile 40 to 75 feet. Narrow to 12, 10 and 8 feet on curves.

  • Steel T-posts. Drive until the anchor plate is below the surface; NRCS wants at least 1.3 pounds per foot and 5 feet long, with a wood post every third or fourth post, or every 50 to 75 feet. Cap them so animals aren't impaled.

  • Frost. Set posts below the frost line; no zone-by-zone depth was found, so look up your local frost depth. Sandy or wet soil needs deeper posts, perhaps a concrete collar.

  • Rocky ground. Probe for solid spots, use steel pipe in rock cracks, drill with rock bits, or bury posts in 5-gallon concrete buckets.

  • Concrete is disputed. Georgia says do not put wood posts in concrete when they can be tamped; NRCS requires concrete where the specified depth cannot be reached (hole at least 3 times the post diameter and 24 inches deep; wire only after 5 days).

2. Corners and braces

  • Why. Stretching wire puts about 3,000 pounds of pull on a corner, rising to 4,500 pounds in winter cold.

  • H-brace. A horizontal member between two posts, 6 to 10 feet long (NRCS Arkansas), at least 7 feet (NRCS Maryland) or 2 to 2.5 times the fence height (Georgia), set between the top two wires, with brace wire in two loops of 12.5-gauge wire, tightened by a twitch stick, running from the top of one post to the base of the other; pins 3/8 inch.

  • When. A corner assembly is needed where the line turns 20 degrees or more (NRCS Arkansas), 15 degrees (Minnesota) or more than 40 degrees (NRCS Maryland). Woven or barbed runs under 300 feet take a single span; 300 to 700 feet a double span; add a line brace at least every 700 feet (every 1,300 feet for non-electric high-tensile). Keep pulls under about 1,320 feet.

  • Alternative. A diagonal strainer in a 4-foot hole was 8 percent stronger than an H-brace on clay in a University of Maine test (author claim).

3. Wire

  • Tension. 12.5-gauge high-tensile at about 200 pounds, with in-line strainers. Re-tighten once or twice a year, especially in spring after winter contraction. On a 10-foot deer fence loosen the top wires in fall and tighten in spring.

  • Staples. 1.75 to 2 inch, 8 to 9 gauge, hot-dip galvanized; NRCS Maryland minimums are 1 1/4 inch for softwood and 1 inch for hardwood. Never staple woven-wire stays, and don't drive staples tight; the wire must slide.

  • Galvanizing. Class 3 wire lasts 5 to 10 years longer than lighter coatings in humid climates. Years to rust for 12.5-gauge: about 11 years (Class 1) against 30 (Class 3) in dry climates, and about 6 against 13 in humid ones.

4. Gates

  • Opening. The modern standard is 14 feet; wider strains the hanging post, so use two gates that meet in the middle. Equipment gates need 12 to 16 feet; walk-through gates at least 4 feet, with 5 preferred.

  • Posts. At least 8 feet long with one third in the ground (8 to 10 inches in diameter if wood). Don't drive a square wood post because it may twist.

  • Build order. Drive the hanging post, hang the gate, then drive the latching post.

  • Hinges. Through-bolt or adjustable hardware; plumb the hangers; offset to make a gate swing closed or stay open.

  • Economy gates last about 3 to 5 years; sag is the common failure.

  • Don't open or close a gate with a vehicle or climb over it; install a stile where only people need to pass.

5. Wildlife-friendly fence (cattle and sheep in deer and pronghorn country)

Top wire at most 40 to 42 inches, at least 12 inches between the top two wires, smooth bottom wire 16 to 18 inches above the ground, no vertical stays. For sheep, top wire 32 inches and bottom smooth wire at least 10 inches. NRCS uses 14 inches for pronghorn, and Arizona says under 12 inches to exclude javelina. Fences over 40 inches accounted for 70 percent of mortalities in a Utah State study of 600 miles. These designs do not exclude predators, so they are not for small stock.

Diagram coming soonH-brace
Figure 2. An H-brace: two posts, a horizontal member and a tightened brace wire.
Diagram coming soonPost depth chart
Figure 3. Line posts and corner posts, with the frost line and a concrete collar.
Diagram coming soonGate build order
Figure 4. Hanging post first, then the gate, then the latching post.
Sources: University of Georgia Extension, University of Tennessee Agricultural Extension Service and 16 more

Maintenance

  • After storms: inspect and repair loose wire, weak assemblies, tree limbs and erosion (NRCS).

  • Each spring: re-tension wire; keep vegetation off wires.

  • Electric deer fence: check every 2 days for the first 3 weeks, then every 2 weeks.

Sources: USDA NRCS, University of Georgia Extension and 2 more

Costs

ItemCost
Woven wire plus one barbed strand$3.94 per foot adjusted (Missouri, April 2026); $2.34 (Iowa, December 2024)
Five-strand barbed wire$3.03 (Missouri 2026); $1.99 (Iowa 2024); $2.83 installed (NC 2011) and $2.90 for 6-strand (NC 2015)
Electrified high-tensile$2.51 (Missouri 2026; summary table prints $2.86); $1.21 (Iowa 2024)
Portable two-strand polywire$1.05 (Missouri 2026); $0.25 interior (Iowa 2024)
Labor, 1,320 ft22.5 hours woven, 20.5 barbed, 19.5 electrified, 3.8 portable: about 1.5 to 1.7 hours per 100 feet permanent (derived)
NRCS EQIP Fence 382, Montana FY2025 per footBarbed $2.76, woven $3.24, 5-wire electric $2.40, 96-inch woven $6.43, chain link $12.37
North Carolina cost shareUp to 75 percent of stream-exclusion fencing (confirm locally)

Each extra corner, gate and water gap adds time and money. Clearing and removing old fence is not included. Costs are for a straight, gently rolling line. We found no current per-foot cost for deer fence, chain link, panels or welded-wire poultry and rabbit fence.

Diagram coming soonCost ladder
Figure 5. Per-foot costs, with the year each was priced.
Sources: University of Missouri Extension, Iowa State University Extension and 2 more

Fence law, boundaries and liability

First, find out which kind of state or county you are in

  • Closed range (fence-in): the animal owner must keep animals in. Ohio (including poultry) and North Carolina make it a crime to let livestock run at large; Maryland is closed range by court decision. A 2021 compilation reports the same for Georgia, Tennessee, Missouri, Oklahoma and Minnesota.

  • Open range (fence-out): a neighbor must fence your animals out, or cannot recover damages. Texas, Arizona, Colorado and Washington outside restricted areas; a 2021 compilation reports New Mexico, Oregon, Idaho and (cattle only) Montana. Arizona's statute says no recovery for animal trespass unless the land is enclosed within a lawful fence, except in no-fence districts.

  • Virginia is fence-out by default but a county may adopt a no-fence law.

  • County stock laws exist in Texas, Utah and Virginia; there is no central list.

  • Assume you must keep your animals in wherever your land is not open range, and that you must pay for any damage or road accident if they get out.

Lawful fence specs read in statute

StateLawful fence
IdahoWire fence at least 47 inches, three barbed wires or four coiled spring wires, bottom wire not over 21 inches, posts not over 24 feet apart with three stays between
MissouriPosts and wire or boards at least 4 feet high, posts not over 12 feet apart
WashingtonFour barbed wires, top wire 48 inches plus or minus 4, other wires 12, 22 and 32 inches below, posts not over 24 feet apart
IowaThree rails or boards, three barbed wires, or four coated high-tensile wires with top wire at least 40 inches and posts 2 rods apart; "tight fence" for sheep or swine is woven wire plus barbed
Ohio"Preferred partition fence": 48-inch woven wire plus one or two barbed strands, or non-electric 7-strand high-tensile to NRCS standard
2021 compilationArizona four barbed wires, top 50 inches; Colorado three barbed wires; Florida at least 3 feet and three strands; Maine 4 feet; New York four strands, posts 14 feet; Oklahoma 54 inches; Virginia 5 feet or 4-strand barbed 42 inches; Wisconsin 50 inches

Who pays for a line fence

  • Ohio: a builder of a new fence where none existed pays alone; for existing or removed fences, shares are equitable under six factors (a 30/70 split is an example). The builder can bill a neighbor who later uses it to hold livestock within 30 years. A neighbor or contractor may enter 10 feet onto adjoining land to build or maintain it, and 28 days' notice is required before removing a line fence.

  • Iowa: on written request adjoining owners must build or contribute; township trustees act as fence viewers; unpaid costs become a lien.

  • Minnesota: where both lands are used for livestock and one owner wants a fence, equal shares.

  • Washington: a neighbor who encloses against your boundary fence owes half its value.

  • 2021 compilation: equal shares in Pennsylvania (no work compelled December through March) and Maine; New York equitable with a 5-year animal-use rule; Wisconsin equal.

  • No statute: Texas (the payer owns the fence; removal of an attached fence needs consent or six months' written notice) and Maryland.

  • Tennessee lets a non-agricultural neighbor with a residence and no livestock disclaim responsibility by registered mail (2021 compilation).

If your animals get out

  • Damage to the neighbor's land and animals. Iowa makes the owner liable for trespass damage and custody costs unless the animals came through a fence the neighbor had to maintain; three trespasses in 12 months is "habitual trespass". Washington frees an owner whose animals escaped through a lawful fence damaged by wildlife, but owners of known fence-breakers are liable.

  • Roads. Ohio bars livestock at large on roads. A 2021 compilation reports: Florida owners are liable if they negligently permit livestock on a road; Missouri owners are not liable if the animal was out through no fault of theirs; Idaho open-range owners have no duty to keep animals off the highway; Montana limits liability to gross negligence outside interstates; Texas makes knowingly permitting livestock on a US or state highway right-of-way a Class C misdemeanor.

  • Impounding. North Carolina lets any person impound livestock at large and recover costs and damages.

Boundaries, spite fences and zoning

  • Fence viewers decide fence disputes, not boundaries. A fence's location does not by itself set the boundary. Iowa recognizes a boundary by acquiescence after 10 years of mutual recognition. Wisconsin requires a misplaced fence to be relocated within 30 days of written notice, not during an annual crop. For a real boundary question, hire a licensed surveyor.

  • Spite fences. Maine treats a fence unnecessarily exceeding 6 feet, kept maliciously to annoy a neighbor, as a private nuisance. A Vermont supreme court case ordered a 6-foot stockade fence cut down.

  • Zoning. Ohio townships may not regulate agriculture on lots over 5 acres or require a zoning certificate for agricultural buildings, but can regulate inside platted subdivisions on smaller lots. Jefferson County, Colorado, caps fences at 7 feet in agricultural zones and bars electric fence as a perimeter on lot lines against residential zones. Santa Cruz County, California, caps most front-yard fences at 3 feet but allows agricultural fencing to 6 feet in agricultural zones. Only two county codes were read; call your county zoning office.

  • Deer. Ohio and Florida issue deer damage permits on application; they are not guaranteed.

  • Dog liability for guardian dogs. See the predator sections of the Livestock fencing and predator protection lesson.

Diagram coming soonOpen range versus closed range
Figure 6. Open range and closed range, with example states.
Sources: Ohio Legislature, North Carolina General Assembly and 20 more

Electric fence rules

Only a few states regulate electric-fence controllers, and no state livestock-fence statute read requires warning signs (read 2026-10-05).

StateRule
VirginiaAgricultural electric fence only with a UL 69 or IEC 60335-2-76 controller, one controller per connected fence, grounded; Class 1 misdemeanor
CaliforniaController must meet NEC, IEC or UL standards; cities and counties may require permits
MaineUL-approved controller; fine up to $100 or 90 days
WisconsinInstall per manufacturer's instructions; a 2-strand electric fence is a legal fence only by written agreement of the neighbors, top wire 34 to 36 inches
MontanaLegal electric fence: 3 strands of 12.5-gauge high-tensile steel, posts averaging 50 feet apart, charger at least 0.5 joule
KansasOne 14-gauge wire at or under 48 inches if fence viewers agree; not in contact with utility lines
FloridaBattens up to 150 feet apart for electric fence

Signs are advised: every 200 feet or closer near roads (Oregon, Washington and Idaho extension), and signs that warn children and visitors (Montana FWP). A Colorado county bars electric fence as a perimeter fence on lot lines next to residential zones. Bees: a bee-yard bear fence needs at least 4,000 volts, 3 ground rods of 6 feet at 10 feet apart and hives 3 feet inside the wires (Minnesota DNR).

Sources: Virginia General Assembly / Virginia Law, California Legislative Counsel and 11 more

Common mistakes

  1. Skipping 811. A post hole can hit a gas line.

  2. Undersized corner posts and no braces. Wire pulls 3,000 pounds, 4,500 in cold.

  3. Landscape timbers or 0.25 treated lumber in the ground.

  4. Stapling woven-wire stays or driving staples tight.

  5. Barbed wire for goats, sheep or horses.

  6. Gates wider than 14 feet on one post.

  7. Using a tractor to stretch wire.

  8. Assuming your neighbor will pay half. Cost-sharing rules differ and Texas has none.

  9. Building on a line without a survey.

  10. Forgetting to re-tension in spring.

Sources: Iowa Legislature, Washington State Legislature and 8 more

Troubleshooting

ProblemWhat to try
Posts heave in springSet deeper below frost, use a collar in wet or sandy soil
Gate sagsBigger, deeper hanging post; through-bolt hinges; brace the gate frame; replace an economy gate (3 to 5 years)
Wire sags or snapsRe-tension each spring; check for corner-brace slip; replace Class 1 wire
Fence floods outSingle-strand high-tensile and hanging flood gates in flood zones
Rocky groundDrill, set steel pipe in cracks or use concrete buckets
Livestock escaped onto a roadNotify authorities, fix the fence, check your state's liability rule
Deer jump the fenceEight feet, or electric with a baited training period
Neighbor disputes the lineHire a surveyor; fence viewers do not decide boundaries
Dog digs underBuried apron 8 in or a galvanized apron at least 15 in wide (Maine)
Sources: Penn State Extension, University of Georgia Extension and 7 more

Resources

By zone

Frost depth sets how deep posts go in the cold zones, and humid climates rust wire faster than dry ones. Fence law changes by state and often by county.

3–4
Frost heave and snow; deeper posts, retension each spring, winter contraction raises corner pull to 4,500 lb
5–6
Frost heave in wet soils; same spring routine
7–8
Less heave; humid regions rust wire faster (Class 1 about 6 years, Class 3 about 13)
9–10
Dry-climate wire lasts about 11 years (Class 1) to 30 (Class 3)
Northeast
Maine and New York fence law (2021 compilation), Pennsylvania equal shares with December to March pause; Maryland closed range
Southeast
Closed range in North Carolina; Virginia county no-fence option; Florida lawful fence 3 feet; Georgia and Tennessee compilation
Midwest
Ohio, Iowa, Minnesota and Missouri statutes read; Wisconsin neighbor-agreement electric fence
Southwest
Open range; Arizona lawful fence; University of Arizona 8-foot deer fence and javelina barrier; rocky ground methods
Pacific Northwest
Washington lawful fence and half-value rule; wet ground shortens post life (Oregon posts); Oregon open range (2021 compilation)
Mountain West
Idaho 47-inch wire fence; Colorado open range and county rules; Montana legal electric fence; Wyoming and Montana wildlife-friendly fence heights; NRCS Montana payments

Where this comes from

Every fact in this lesson was checked against 96 published sources: 75 from extension services, the USDA and research journals and 21 from experienced growers and practitioners. Each section lists its own at the bottom.

See all 96 sources
National Agricultural Law Center
Colorado Department of Agriculture, Brands
Colorado State University Extension
Maine Department of Inland Fisheries and Wildlife
Minnesota DNR Wildlife Damage Management Program
Ohio Department of Natural Resources, Division of Wildlife
University of Arizona Extension
University of California Agriculture and Natural Resources
University of Tennessee Agricultural Extension Service

Summary

The whole lesson on one page. Print it or come back to it.

Key information

  • Call 811 before you dig a post hole. Rules vary, so call and ask.
  • Set corner and gate posts at least 3 1/2 feet deep, as big as you can set, and brace every corner. Stretched wire puts about 3,000 pounds of pull on a corner, rising to 4,500 pounds in winter cold.
  • Use treated posts for ground contact: 0.4 pound per cubic foot or more. Builder's-store 0.25 lumber and landscape timbers are not acceptable.
  • A gate opening is 14 feet. Wider strains the hanging post, so use two gates.
  • Budget $2 to $4 a foot for permanent wire fence. Electric is the cheapest per foot and boards the dearest.
  • Fence law is local. Find out whether your state is fence-in or fence-out and who pays for a line fence, and hire a surveyor for a real boundary question.
  • Never use a vehicle or tractor to tighten wire. Wear long pants, leather gloves and safety glasses.

Step by step

  1. 1.Check your state and county fence law and zoning.
  2. 2.Call 811 and have utilities marked.
  3. 3.Plan a straight line with as few corners and gates as you can.
  4. 4.Set treated corner and gate posts deep, brace every corner, then stretch the wire.
  5. 5.Drive the hanging post, hang the gate, then drive the latching post.

Made it to the end? I’ll keep track for you on this device.