Do you need a permit for a fence in Virginia?
Usually not a building permit. Virginia's building code exempts fences of any height, unless the fence is a swimming pool barrier or is required for pedestrian safety. Your city or county's zoning rules still apply: they limit height, often to 42 inches or four feet in a front yard, and some localities, such as Prince William County and Colonial Heights, require zoning approval or a fence permit.
Free to ask. Local shops send quotes, and you pay only when you book one.
By Kasra Taheri, Founder, LoclisPublished
Researched and drafted with AI, then checked claim by claim against the sources listed below before it was published. Prices and rules change; the dates beside each source say when it was last checked.
Step by step
Read when to stop and call a pro, further down this page, before you start.
Step 1: Look up your zoning rules
Find your locality's fence height limits for front, side and rear yards, and whether it asks for zoning approval or a fence permit before you build.
Step 2: Check whether the fence is a pool barrier
A fence used as the barrier for a swimming pool is not exempt from Virginia's building permit rule.[1]
Step 3: Find your property lines
Use your house location survey or plat to place the fence and to measure setbacks, which some localities ask you to show on the application.[3]
Step 4: Check for easements
If the fence crosses a utility or other easement, the easement holder's written approval may be required.[3]
Step 5: Check your HOA or condominium rules
Read your community's covenants for fence styles and heights, and get any approval it requires before you apply to the county.
Step 6: Apply where required
Submit the zoning application or fence permit with the fence's location, height and material, and pay the fee.
Step 7: Contact Miss Utility before digging post holes
Virginia law says no one may dig without first submitting a locate request, so call 811 and wait for the utility lines to be marked.[5]
The short version
Virginia has one building code for the whole state, the Uniform Statewide Building Code. Its list of work that needs no permit includes fences of any height, unless the fence is required for pedestrian safety under Section 3306 or is used as the barrier for a swimming pool.[1] For an ordinary yard fence, that means no building permit. The code adds that the exemption does not exempt the work from other applicable requirements of the code, and if an owner asks for a permit for exempt work, one has to be issued.[1]
Fairfax County puts it plainly: building permits are not typically required for fences of any height, but a fence required for pedestrian safety or as a barrier for a swimming pool needs one.[2]
Concrete or masonry walls are treated differently from fences. The statewide exemption covers them only up to six feet above finished grade, and retaining walls are exempt only when they support less than three feet of unbalanced fill.[1]

Zoning is the rule that usually applies
The building code is not the only rule. Fence height and placement are set by each city or county's zoning ordinance, and some localities ask you to apply before you build. Three examples:
- Fairfax County. In Fairfax County, a fence or wall in a front yard cannot exceed four feet, and one in a side or rear yard is limited to seven feet.[2] The Board of Zoning Appeals can approve a front-yard fence up to six feet by special permit, and on lots of two or more acres in the R-A through R-1 districts, seven feet is allowed in any yard.[2]
- Prince William County. Prince William County says zoning approval is required for fences of any height in all residential districts.[3] Its application asks for the house location survey plat with the fence drawn to scale, plus the fence's height and material.[3] In the county's R-4, R-6, RPC and PMR districts, a front-yard fence cannot exceed 42 inches and cannot be solid or opaque, and side and rear fences are limited to six feet unless set back from the property line.[3]
- Colonial Heights. The City of Colonial Heights requires a written fence permit before any fence goes up.[4] When we checked on October 27, 2026, it cost $50 with an estimated turnaround of 10 business days.[4] Fences in front of the building line there cannot exceed 42 inches, no solid, privacy or chain link fencing is allowed in the front yard, and side and rear fences can be up to seven feet.[4]
Other limits show up in zoning codes too. In Prince William County, electrified fences, other than underground ones, and barbed wire are prohibited in residential districts and on agricultural lots under three acres.[3] Fences also have to be set back ten feet from a private well and septic system.[3] Your homeowners' association may have its own rules on style and height, separate from the county's.
Before you dig
Fence posts mean digging, and Virginia law says no one may begin any excavation without first submitting a locate request to the notification center.[5] That is Miss Utility: call 811 and wait for the lines to be marked before the first post hole.
Stop and call a pro if
- The fence will be the barrier around a swimming pool, which needs a building permit.
- You want a concrete, brick or block wall six feet or taller, or a retaining wall holding back three feet of soil or more.
- The fence line runs near buried utilities, a drainage easement or a slope you are not sure of.
- You are not sure where your property line is. A licensed land surveyor can mark it.
If you hire an installer, Virginia's Board for Contractors says work valued at $1,000 or more needs a valid Virginia contractor's licence in the right category.[6] Where a permit is needed, the board says the contractor should apply for and obtain any necessary building permits, and the contract should say so.[6] Be wary of being asked to pull it in your own name: the permit holder becomes the general contractor and takes on responsibility for the overall job.[6] Check the installer's licence before you sign.
Find a fence installer on Loclis
Loclis lists licensed businesses from Virginia's DPOR register, with each one's licence number and class. Browse fence installation or decks and fences, look up exterior contractors in Blacksburg, or describe your fence once and local installers quote it. Ask each one whether the quote includes the zoning approval or permit your locality requires.
Common questions
- How tall can a fence be in Virginia?
- There is no single state limit, because height is set by each locality's zoning ordinance. As examples, Fairfax County allows four feet in a front yard and seven feet in side and rear yards, while Prince William County's R-4, R-6 and planned residential districts allow 42 inches in front and six feet at the side and back. Check your own city or county before you buy materials.
- Do I need a permit for a fence around a pool?
- Yes. Virginia's building code exempts most fences from permits, but not a fence used as the barrier for a swimming pool. Apply to your building department before you build it.
- Do I need a permit to replace an existing fence?
- The statewide building code exempts fences of any height, other than pool barriers and fences required for pedestrian safety, and does not treat a replacement differently. Zoning rules can still apply: Prince William County, for example, requires zoning approval for fences of any height in residential districts. Ask your zoning office.
- Does a fence installer need a licence in Virginia?
- Yes, when the job is valued at $1,000 or more. The installer needs a Virginia contractor's licence in the right category, which you can check on DPOR's lookup.
Sources
- [1] 13VAC5-63-80, Virginia Uniform Statewide Building Code, Section 108 Application for permit, Virginia Administrative Code, Legislative Information System. Checked October 27, 2026.
- [2] Residential Fences and Walls, Fairfax County Department of Code Compliance. Checked October 27, 2026.
- [3] Fences, Prince William County Land Development Division. Checked October 27, 2026.
- [4] Fence Permit Application, City of Colonial Heights Planning and Community Development. Checked October 27, 2026.
- [5] Va. Code § 56-265.17, Notification required prior to excavation or demolition, Code of Virginia, Legislative Information System. Checked October 27, 2026.
- [6] What You Should Know Before You Hire a Contractor, Virginia Board for Contractors, DPOR. Checked October 27, 2026.
Want a pro to handle it?
Describe the job once. Licensed local businesses send quotes, and you pay only when you book one.
Get a quote from a local pro