STATEWIDE FENCE LAWS IN VIRGINIA
OVERVIEW
This page summarizes Virginia laws and statewide requirements that may affect residential fence projects, even when a city, county, or town does not require a local fence permit.
Virginia uses a statewide building-code framework through the Virginia Uniform Statewide Building Code. Under the Virginia Construction Code, a building permit is generally not required for fences of any height, unless the fence is required for pedestrian safety during construction or is used as the barrier for a swimming pool. This is a significant statewide building-code rule, but it is not a statewide zoning approval, not a statewide right to place a fence anywhere on a residential lot, and not a statewide override of local fence ordinances, easements, floodplain rules, Chesapeake Bay Preservation Area requirements, right-of-way controls, historic-district review, HOA restrictions, or private covenants.
Virginia does not appear to establish a single general statewide residential fence code that controls ordinary homeowner fence height, placement, materials, finished-side orientation, front-yard placement, corner visibility, or local zoning approval in every city, county, and town. Instead, the statewide layer is issue-specific. It includes the Virginia 811 excavation-notice framework, the Virginia Uniform Statewide Building Code fence permit exemption, swimming pool barrier exceptions, local zoning and historic-district authority, flood-hazard review, Chesapeake Bay Preservation Areas, erosion and stormwater rules, wetlands and shoreline regulation, VDOT right-of-way permits, lawful-fence and livestock laws, division-fence rules, agricultural electric-fence rules, dangerous-dog enclosure rules, and survey or boundary context.
This information is provided for general orientation and does not replace official statutes, local ordinances, permits, surveys, HOA governing documents, deed restrictions, utility-location requirements, floodplain determinations, environmental approvals, right-of-way approvals, or professional guidance.
See: FENCE RULES IN VIRGINIA BY CITY & COUNTY
CALL BEFORE YOU DIG / VIRGINIA 811
Virginia has a statewide underground utility damage-prevention law. For fence projects, this may matter when the work involves digging, drilling, augering, trenching, grading, or other movement of earth. Virginia law defines “excavation” broadly to include digging, drilling, augering, trenching, grading, and other work that moves or displaces earth, rock, or other material in the ground. The same statute defines “hand digging” to include excavation with nonmechanized tools, including shovels, picks, and manual post-hole diggers.
Before excavation or demolition begins, Virginia law generally requires the person excavating to submit a locate request to the notification center. The excavator may begin only after reviewing the positive-response information showing that operators have marked their utility lines, reported that lines are not present, or otherwise posted a response indicating that excavation may begin, or after the notification center states that no operators are to be notified. A locate request is generally valid for 15 working days, and re-marking may be required before that period ends or when markings become illegible.
Virginia has an important owner/occupant hand-digging exemption. The Underground Utility Damage Prevention Act states that nothing in that chapter applies to any hand digging performed by an owner or occupant of a property. This exemption should not be confused with a local fence approval, a property-line determination, a utility-easement release, or permission to damage underground facilities. It also does not necessarily apply to contractors, mechanized excavation, augers, or work outside the exemption.
This statewide utility-location framework is separate from local fence permitting. A local fence permit or zoning approval does not replace Virginia 811 requirements, and a Virginia 811 locate request does not replace local fence permits, zoning approvals, floodplain approvals, Chesapeake Bay Preservation Area review, right-of-way permits, easement restrictions, HOA approvals, or private restrictions.
VIRGINIA UNIFORM STATEWIDE BUILDING CODE AND FENCE BUILDING-PERMIT EXEMPTION
Virginia has a statewide building-code framework. The Uniform Statewide Building Code supersedes local building codes and regulations, but it does not supersede every local land-use condition, historic-district rule, airport or highway overlay requirement, proffered condition, special-use condition, variance condition, clustering/open-space condition, or local floodplain regulation adopted for National Flood Insurance Program participation.
The key statewide fence rule appears in the Virginia Construction Code permit-exemption section. The code states that application for a permit and related inspections are not required for “fences of any height” unless the fence is required for pedestrian safety under the construction-safety provisions or is used as the barrier for a swimming pool. The same section states that permit exemptions do not exempt the activity from other applicable code requirements.
This is the primary statewide Virginia building-code baseline for ordinary residential fences: an ordinary fence is generally exempt from the Virginia Construction Code building-permit application requirement, regardless of height, unless it falls into the listed exceptions. This should not be read as a statewide fence-height permission, a statewide zoning approval, a statewide lot-line rule, or a statewide override of local ordinances.
The same permit-exemption section treats concrete or masonry walls and retaining walls separately. Concrete or masonry walls are exempt only when they do not exceed six feet above finished grade, and retaining walls are exempt only when they support less than three feet of unbalanced fill and are not used for certain liquid impoundment or surcharge conditions. A fence, wall, column, retaining wall, gate structure, or combined fence/wall feature may therefore be reviewed differently depending on what is being built.
LOCAL ZONING, HISTORIC DISTRICTS, AND LAND-USE APPROVALS
The Virginia building-code fence exemption does not answer every fence question. Virginia localities have zoning authority to regulate the use of land, buildings, structures, and premises; the size, height, bulk, location, erection, construction, alteration, repair, maintenance, razing, or removal of structures; yards and open spaces; and excavation or mining of soil and other natural resources.
For residential fences, this means a city, county, or town may still regulate fence placement, height, setbacks, front yards, side yards, rear yards, corner-lot visibility, driveway sight distance, materials, design, screening, buffering, easements, walls, retaining walls, drainage, and permit routing through its zoning ordinance or land-use procedures.
Virginia also authorizes local historic-district and architectural-review ordinances. A locality may create historic districts or architectural areas and may require approval before a building or structure, including signs, is erected, reconstructed, altered, or restored within the district. Fence work in a historic district, conservation area, entrance corridor, architectural-control district, or locally regulated design area may therefore need review even when an ordinary fence is exempt from the statewide building-code permit requirement.
SWIMMING POOL BARRIERS
Virginia’s fence building-permit exemption expressly excludes fences used as the barrier for a swimming pool. A fence that functions as a pool barrier may be reviewed differently from an ordinary yard fence and may require building-code review, inspection, or compliance with pool-barrier requirements.
Pool-barrier requirements are not general fence rules for every residential fence project. They matter when the fence or barrier is part of the safety enclosure for a swimming pool, spa, hot tub, or similar regulated water feature. Local pool permits, zoning setbacks, floodplain review, Chesapeake Bay Preservation Area review, inspections, and private restrictions may also apply.
FLOODPLAINS AND SPECIAL FLOOD HAZARD AREAS
Floodplain location can change how a fence project is reviewed. The Virginia Uniform Statewide Building Code does not supersede local floodplain regulations adopted as a condition of participation in the National Flood Insurance Program. The Virginia Construction Code permit-exemption section also states that application for a permit may be required by the building official for exempt items located in a special flood hazard area.
For residential fences, this means an ordinary fence that is exempt from the statewide building-code permit requirement may still require local floodplain review if it is located in a mapped special flood hazard area, floodplain, floodway, drainage corridor, stream corridor, or other area where the fence could obstruct flow, collect debris, affect drainage, or interfere with floodplain management standards.
Floodplain rules are location-based and impact-based. They should not be treated as ordinary fence-height or fence-setback rules unless a local ordinance, floodplain administrator, building official, or other governing authority applies them to the property.
CHESAPEAKE BAY PRESERVATION AREAS AND RESOURCE PROTECTION AREAS
Virginia has a major state-level environmental framework that may affect fences in Tidewater Virginia and in other localities that use the Chesapeake Bay Preservation framework. The Chesapeake Bay Preservation Area regulations apply to local governments in Tidewater Virginia, and Chesapeake Bay Preservation Areas consist of Resource Protection Areas and Resource Management Areas. The regulations define “development” to include construction or substantial alteration of residential, commercial, industrial, institutional, recreational, transportation, or utility facilities or structures.
Resource Protection Areas include tidal wetlands, certain connected nontidal wetlands, tidal shores, other locally designated lands necessary to protect state waters, and a buffer area not less than 100 feet wide located landward of those components and along both sides of perennial water bodies.
Within Chesapeake Bay Preservation Areas, local governments must require development to meet performance criteria. These include disturbing no more land than necessary, preserving indigenous vegetation and mature trees to the maximum extent practicable, minimizing impervious cover, using plan-of-development review for development exceeding 2,500 square feet of land disturbance, and requiring compliance with local erosion and stormwater rules for land disturbance over applicable thresholds.
For residential fence projects, this layer matters most near tidal waters, perennial streams, shorelines, wetlands, Resource Protection Areas, buffer areas, mature trees, and protected vegetation. A fence that is ordinary on an upland residential lot may need additional review if it is proposed in or near a Chesapeake Bay Preservation Area, Resource Protection Area, 100-foot buffer, shoreline, stream corridor, or protected vegetation area.
These rules are not a general statewide fence-height code. They are location-based environmental and water-quality rules that may operate through local Chesapeake Bay Preservation ordinances, site-plan review, buffer-encroachment procedures, mitigation requirements, or water-quality-impact review.
EROSION, STORMWATER, AND LAND-DISTURBING ACTIVITY
Virginia’s erosion and stormwater framework defines “land disturbance” or “land-disturbing activity” as a man-made change to the land surface that may result in soil erosion or has the potential to change runoff characteristics, including clearing, grading, excavating, or filling land.
State regulations generally regulate land-disturbing activities at 10,000 square feet or more, at 2,500 square feet or more in Chesapeake Bay Preservation Areas, when the disturbance is part of a larger common plan of development or sale, and when one acre or more is disturbed. Localities may also adopt more stringent local requirements.
For ordinary fence work, Virginia has an important narrow exception. The Virginia Erosion and Stormwater Management Regulation lists installation, maintenance, or repair of fence posts among activities not required to comply with the Virginia Erosion and Stormwater Management Act, unless otherwise required by federal law.
This exception should not be read too broadly. It is about fence posts in the erosion and stormwater framework. It does not necessarily exempt clearing, grading, fill, retaining walls, driveway changes, shoreline work, wetland impacts, Resource Protection Area encroachments, floodplain work, or larger land-disturbing activity connected to a broader project.
WETLANDS, TIDAL WETLANDS, STATE WATERS, AND SHORELINE FENCES
Virginia has separate wetland and water-resource laws that may matter for residential fences near wetlands, streams, rivers, bays, tidal waters, shorelines, or state-owned submerged lands.
Virginia’s wetlands zoning statute allows localities to regulate the use and development of wetlands through a wetlands zoning ordinance. Within that ordinance framework, certain noncommercial structures, including fences, are listed as authorized uses if otherwise permitted by law and constructed on pilings so that the tide can flow reasonably unobstructed and the natural contour of the wetlands is preserved. Other uses or development of wetlands generally require a permit application to the wetlands board or the Virginia Marine Resources Commission.
Virginia also regulates encroachments on or over beds of bays, oceans, rivers, streams, or creeks that are property of the Commonwealth. Work affecting nontidal waters may require a Virginia Water Protection Permit and compliance with the Virginia Water Resources and Wetlands Protection Program.
The Virginia Water Protection Permit statute makes it unlawful, except in compliance with an individual or general permit, to excavate in a wetland, conduct certain draining, filling, dumping, permanent flooding, impounding, or significantly altering activities in a wetland, or alter the physical, chemical, or biological properties of state waters in a harmful way.
Virginia’s water-protection regulations also include a useful residential nuance. “Normal residential gardening and lawn and landscape maintenance” includes placement of decorative stone, fencing, and play equipment, along with other ongoing noncommercial residential activities, when the activity does not convert a wetland to upland or to a different wetland type.
For residential fence projects, this means wetland and shoreline rules are highly fact-specific. Minimal residential fencing may be treated differently from fill, excavation, wetland conversion, shoreline alteration, or work over state-owned submerged lands. A property owner should not assume that an upland fence rule applies to a fence in a wetland, tidal area, shoreline buffer, stream corridor, or state-water setting.
STATE HIGHWAY RIGHTS-OF-WAY AND VDOT PERMITS
Virginia Department of Transportation right-of-way rules may affect fences, walls, gates, columns, driveway features, landscaping, drainage work, or related improvements near public roads. VDOT regulations define a highway, street, or road as the public way for vehicular travel, including the entire area within the right-of-way. The regulations define VDOT right-of-way to include property within the state highway system that is open or may be opened for public travel or use, including the travel way, boundary lines, subsurface, airspace, and certain associated easements.
VDOT land-use permits cover work within limited-access or nonlimited-access right-of-way or VDOT property. Single-use permits may be required for activities such as work within limited-access right-of-way, trimming or cutting trees in the right-of-way, landscaping in the right-of-way, construction of a permanent entrance to a highway, cutting or disturbing pavement, shoulders, or ditches, and grading within the right-of-way beyond the immediate area of a temporary entrance.
Objects placed on, above, or under the right-of-way in violation of VDOT rules may be required to be removed, and objects requiring immediate removal for public safety, highway use, or maintenance may be moved immediately at the owner’s expense.
For residential fences, this is a location-based infrastructure issue. A fence outside the right-of-way may not require VDOT review simply because it is near a road. But a fence, wall, gate, column, landscape feature, driveway entrance, drainage feature, or related improvement proposed within or affecting VDOT right-of-way may require VDOT review or a land-use permit. Local streets, municipal roads, private roads, and county-controlled areas may have separate local procedures.
LAWFUL FENCES, LIVESTOCK, NO-FENCE LAW, AND DIVISION FENCES
Virginia has a statewide property-law chapter titled “Trespasses; Fences.” It includes articles on electric fences, lawful fences, cattle guards and gates, animal trespass, no-fence law, division fences, unincorporated communities, and timber cutting.
Virginia’s lawful-fence statute is mainly a livestock-control rule. For domesticated livestock, a fence is deemed lawful if livestock could not creep through it and if it meets one of the statutory forms. These include a fence at least five feet high, certain barbed-wire fences at least 42 inches high with specified strands and supports, board/plank/rail fences at least 42 inches high with at least three boards, certain town fences at least three feet high, or other fences at least 42 inches high that are made from fencing materials or accepted livestock-confinement systems and installed so that the applicable livestock cannot creep through. A reasonably sufficient cattle guard may also be treated as a lawful fence for domesticated livestock.
These lawful-fence standards should not be treated as ordinary residential subdivision fence rules. They are most relevant to rural residential, agricultural residential, pasture, livestock, farm-adjacent, large-lot, or shared-boundary contexts. They do not create a general statewide rule that every city-lot fence must be five feet tall, 42 inches tall, made of listed livestock materials, or located on a particular property line.
Virginia also allows a county governing body to adopt a local no-fence law by ordinance, including declaring boundary lines, streams, or other kinds of fences to be lawful fences as to domesticated livestock. However, Virginia law states that counties do not have authority under that no-fence-law section to require a more stringent lawful fence than the statewide lawful-fence statute.
Virginia’s division-fence statute states that adjoining landowners shall build and maintain division fences between their lands at joint and equal expense unless one landowner chooses to let the land lie open or unless the landowners agree otherwise.
These division-fence and livestock provisions can matter where a residential property borders agricultural land, pasture, livestock areas, rural acreage, or open land. They should not be used as a substitute for local zoning, local fence permits, subdivision covenants, HOA rules, surveys, easements, or ordinary city-lot fence standards.
ELECTRIC FENCES IN AGRICULTURAL CONTEXTS
Virginia law defines an electric fence as a fence designed to conduct electric current along one or more wires so that a person or animal touching the wire receives an electric shock.
Virginia’s electric-fence statute is focused on agricultural land. It is unlawful to sell, distribute, construct, install, maintain, or use an electric fence on land used for agricultural purposes unless the charge is regulated by a controlling device meeting specified safety standards. The statute also limits metallically continuous fences or electrically connected fences to one controlling device and requires the controlling device to be suitably grounded when placed in service.
This is a specialized agricultural electric-fence safety rule. It should not be treated as general permission for electric fencing in standard residential neighborhoods. Local zoning, subdivision rules, HOA restrictions, animal-control rules, and private restrictions may still prohibit or restrict electric fences.
SPECIALIZED ANIMAL-CONTROL ENCLOSURES
Virginia dangerous-dog law can create fence or enclosure requirements in specific animal-control situations. After a dog is found to be dangerous, the owner must comply with registration, signage, insurance or bond, identification, and confinement requirements. If the dangerous dog is kept outdoors and not in the owner’s immediate physical presence, the owner must construct a secure, locked enclosure of sufficient height and design to prevent escape by the animal, entry by people or other animals, and direct physical contact with people or other animals.
Virginia also maintains a Dangerous Dog Registry through the Department, with information provided by local animal-control officials.
These provisions are not general residential fence rules. They apply in the dangerous-dog context and may operate alongside local animal-control ordinances, zoning rules, HOA restrictions, lease restrictions, insurance requirements, and court or animal-control orders.
SURVEYS, PROPERTY LINES, AND BOUNDARY CONTEXT
Virginia fence placement depends on the property boundary and property-specific conditions. The statewide fence building-permit exemption does not determine where a property line is, whether an existing fence follows the boundary, whether an easement limits fence placement, or whether a fence encroaches on a neighbor, right-of-way, drainage easement, utility easement, or public area.
Virginia law generally requires a valid license before a person engages in the practice of land surveying, unless an exemption applies. Virginia survey regulations also require certain survey products to show physical improvements and visible evidence of underground features and utilities when visible based on methodology and scale.
For fence projects, an existing fence line, tree line, mowing line, driveway edge, ditch, landscape bed, hedge, or utility marker should not be assumed to be the legal property boundary. Local ordinances may require a survey, plat, site plan, easement review, or zoning approval before or during fence review.
NO GENERAL STATEWIDE RESIDENTIAL FENCE CODE
Virginia does not appear to establish a single general statewide residential fence code that sets ordinary homeowner fence height limits, lot-line placement rules, finished-side requirements, front-yard restrictions, material standards, visibility-triangle rules, or universal local zoning approvals for every city, county, and town.
Instead, Virginia’s statewide layer is issue-specific. The main statewide items are Virginia 811 excavation notice, the Virginia Uniform Statewide Building Code exemption for fences of any height from the building-permit application requirement, swimming pool barrier exceptions, local zoning and historic-district authority, flood-hazard review, Chesapeake Bay Preservation Area and Resource Protection Area requirements, erosion and stormwater rules, wetland and shoreline rules, VDOT right-of-way permitting, lawful-fence and livestock provisions, no-fence-law and division-fence statutes, agricultural electric-fence rules, dangerous-dog enclosure requirements, and survey or boundary context.
For typical city lots or subdivision fences, ordinary placement, height, materials, finished-side orientation, design review, permit routing, visibility, setbacks, and enforcement remain primarily local or property-specific. A fence that is exempt from the statewide building-code permit requirement may still be regulated by local zoning, local fence ordinances, floodplain rules, Chesapeake Bay Preservation Area rules, environmental approvals, VDOT or local right-of-way controls, easements, subdivision plats, HOA rules, private covenants, and site-specific conditions.
USING THIS INFORMATION
This page provides general orientation on Virginia statewide laws that may affect residential fence projects.
It is not legal advice and does not replace official statutes, local ordinances, permits, surveys, HOA governing documents, deed restrictions, agricultural agreements, utility-location requirements, floodplain determinations, Chesapeake Bay Preservation Area review, wetland or shoreline approvals, right-of-way permits, or professional guidance.
Rules and interpretations may change, and application depends on facts, property conditions, location, local ordinances, and the governing authority. Before purchasing materials or beginning construction, confirm applicable requirements with the relevant city, county, town, building official, zoning office, Virginia 811, floodplain administrator, Chesapeake Bay Preservation administrator, wetlands or environmental authority, VDOT or local road authority, HOA, and any applicable private agreements.
If this page conflicts with official statutes, published regulations, permit conditions, or direction from an applicable authority, the official sources control. For legal advice or legal interpretation, consult a licensed attorney.