Virginia fence laws, set out mainly in Title 55.1, Chapter 28 of the Virginia Code, define what counts as a lawful fence, require neighbors to share the cost of a boundary fence equally, and add penalties for livestock trespass, unauthorized timber cutting, and noncompliant electric fences. Local zoning and homeowners association rules sit on top of the state statutes, and for most suburban fences those local rules do more of the work than the code does.
What Counts as a Lawful Fence
A fence qualifies as a “lawful fence” under Virginia law if it meets one of these descriptions:1Virginia Code Commission. Virginia Code 55.1-2804 – Description of Lawful Fence
- At least five feet tall, measured from the bottom of any adjacent ditch to the top, including any mound the fence sits on.
- Barbed wire at least 42 inches high with a minimum of four strands, on posts set no more than 12 feet apart. If posts are farther apart, a brace or stay must sit halfway between them.
- Boards, planks, or rails at least 42 inches high with at least three boards firmly attached to posts set in the ground.
- At least three feet high inside a town whose charter does not prescribe fence standards or give the town council authority to do so.
- At least 42 inches high, built from materials sold for fencing or using technology generally accepted for confining livestock, and installed so livestock cannot pass through.
A cattle guard that reasonably turns all types of livestock also qualifies.1Virginia Code Commission. Virginia Code 55.1-2804 – Description of Lawful Fence The “other fencing materials” category leaves room for woven wire, high-tensile polymer, and mesh systems, as long as the 42-inch height is met and the fence actually contains livestock.
The lawful fence label is not just descriptive. It controls who pays when animals get loose and when a neighbor has to chip in for repairs.
Division Fences Between Neighbors
A division fence sits on the boundary between two properties. Virginia assigns its cost and maintenance equally to both landowners unless one owner chooses to leave their land unfenced or the neighbors agree to something different.2Virginia Code Commission. Virginia Code Article 6 – Division Fences
Building a New Division Fence
If no division fence exists yet, you have to give your neighbor written notice that you intend to build one and ask them to build their half. Your neighbor has 10 days to respond in writing with a decision to leave their land open. If they choose that, you can build the whole fence yourself. If that neighbor, or a later owner of that property, ever encloses their land, they owe you or your successors half the value of the fence at the time of enclosure.2Virginia Code Commission. Virginia Code Article 6 – Division Fences That reimbursement right runs with the land and survives a sale.
Repairing an Existing Division Fence
When a division fence drops below the lawful fence standard, either neighbor can give the other written notice demanding repairs. If the notified neighbor does not finish their half within 30 days, the neighbor who gave notice can repair the entire fence and recover half the cost.2Virginia Code Commission. Virginia Code Article 6 – Division Fences
Written notice is what preserves your right to reimbursement. Skip it, repair the whole fence on your own initiative, and the statute gives you nothing to sue on. When the notice process stalls, mediation through a local court program or community dispute resolution center is usually cheaper than litigation.
Local Zoning, Permits, and HOA Rules
The state code is mostly about livestock and cost-sharing. For a typical residential fence, the rules that actually decide height, materials, and placement come from your locality and your HOA.
Building Permits
Under the Virginia Uniform Statewide Building Code, fences of any height are generally exempt from building permit requirements. The exceptions are fences required for pedestrian safety at construction sites and barriers for swimming pools.3Virginia Code Commission. 13VAC5-63-80 – Section 108 Application for Permit That exemption is only about the state building permit, though. Localities can and do impose zoning rules on fences, covering height limits, setbacks from property lines, and material restrictions. Call your county or city zoning office before you order materials.
HOA Restrictions
If you live in a community with a homeowners association, the CC&Rs will usually be stricter than anything in state or local law. Common HOA rules cap materials (wood or vinyl only, no chain link), dictate approved colors and styles, set maximum heights, and require minimum setbacks. Most HOAs require architectural review committee approval before construction. Building first and seeking approval afterward often ends with an order to modify or remove the fence at your own expense.
Spite Fences
Virginia has no specific statute against spite fences built mainly to annoy a neighbor. Local height and setback rules effectively limit them in many jurisdictions. Where no local rule catches a spite fence, the affected neighbor’s remedy is a civil nuisance claim, which requires showing the fence has no reasonable purpose and causes real harm.
Boundary Surveys and Adverse Possession
Get a boundary survey before you build anything near a property line. A licensed surveyor will mark your actual lines, catch encroachments from neighboring structures, and flag utility easements, drainage channels, and setbacks that affect where posts can go.
The bigger reason to survey is what happens if you build on your neighbor’s land. A misplaced fence can force you to tear it down, and if it goes unchallenged long enough, it can support an adverse possession claim. Virginia’s adverse possession period is 15 years of open, continuous occupation without the owner’s permission.4Virginia Code Commission. Virginia Code 8.01-236 – Limitation of Entry on or Action for Land If you discover a neighbor’s fence or structure encroaching on your land, giving written permission (a license or easement) stops the clock, because the use is no longer hostile. Doing nothing is where the trouble compounds.
Livestock Trespass and Owner Liability
Where property boundaries in a county or district constitute a lawful fence, the owner of any domesticated livestock found trespassing on another person’s land is liable for all damage the animals cause to crops or property, whether they wandered from within the county or across a county line.5Virginia Code Commission. Virginia Code 55.1-2834 – Owner of Domesticated Livestock Liable for Trespasses
There is a carve-out for adjoining counties where only one county’s boundaries qualify as a lawful fence. If livestock escapes across the county line, the owner is not liable for trespass on lands immediately next to the county boundary unless those lands are themselves enclosed by a lawful fence. Rural landowners near county borders should confirm whether their own property meets the lawful fence definition, because that determines whether they can recover damages from a neighbor’s roaming cattle or horses.
Electric Fence Rules
Electric fences on agricultural land have their own set of requirements. The core rule: any electric fence controlling device must meet safety standards set by Underwriters Laboratories (UL) or the International Electrotechnical Commission (IEC). Devices without UL or IEC certification are allowed, but only if they meet the strict technical limits on current output, pulse duration, and off-period timing set out in the statute.6Virginia Code Commission. Virginia Code 55.1-2802 – Unlawful to Sell Other Controlling Devices Unless They Meet Certain Standards
Regardless of certification, no device may allow an uninterrupted current on the fence for longer than one second with an effective value exceeding five milliamperes under standard resistance conditions.6Virginia Code Commission. Virginia Code 55.1-2802 – Unlawful to Sell Other Controlling Devices Unless They Meet Certain Standards7Virginia Code Commission. Virginia Code 55.1-2803 – Penalty8Virginia Code Commission. Virginia Code 18.2-11 – Punishment for Conviction of Misdemeanor Checking for UL or IEC certification on the charger is the simplest way to stay compliant.
Cutting Trees Near the Boundary
Fence work sometimes brings out chainsaws, and the penalties for guessing wrong about the property line are steep. If someone cuts timber on your land without legal right or permission, and was not acting under a genuine, good-faith belief they had the right to do so, you can recover three times the value of the timber as it stood on the stump.9Virginia Code Commission. Virginia Code Article 8 – Cutting Timber
On top of treble damages, the trespasser owes reforestation costs up to $450 per acre, plus appraisal costs, directly associated legal costs, and reasonable attorney fees.9Virginia Code Commission. Virginia Code Article 8 – Cutting Timber The defendant carries the burden of proving they acted prudently and under a good-faith claim of right.10Virginia Code Commission. Virginia Code 55.1-2835 – Damages Recoverable for Timber Cutting If your property line is unclear, cutting anything near it is a bad bet.
Steps to Take Before You Build
- Hire a licensed surveyor to mark your property lines. This matters most for division fences, where a small placement error can produce cost-sharing disputes or encroachment claims.
- Call your county or city zoning office to confirm height limits, setbacks, and material restrictions. These vary a lot across Virginia.
- If you have an HOA, pull the CC&Rs and submit your fence plan for architectural review before ordering materials.
- For a division fence, deliver written notice to your neighbor asking them to build their half. Keep a copy. That written record is what supports a later claim for reimbursement.
- For an electric fence, confirm the controlling device carries UL or IEC certification, or verify that a non-certified device meets the statute’s current and timing limits.