Do I Need a Permit to Build a Fence?

Quick answer

Most cities require a permit for fences over 6 feet tall, though some set the threshold as low as 3 feet. Shorter fences (typically under 6 feet in the backyard and under 4 feet in the front yard) are usually exempt. Rules vary significantly by city, so check with your local building department before you start digging post holes.

What Triggers a Fence Permit

Height is the main trigger. The International Residential Code (IRC), published by the International Code Council (ICC), exempts fences under 7 feet from building permits under Section R105.2. But most cities override this with a lower threshold (typically 6 feet) and many require permits for any fence in a front yard, floodplain, or utility easement regardless of height.

Beyond height, three other factors commonly trigger a permit requirement:

Whether you're replacing an existing fence matters too. Swapping out an old fence for one with the same height, material, and location generally does not require a new permit. But if you're changing the height, switching materials, or moving the fence line, most cities treat it as new construction.

Front Yard Fences vs. Backyard Fences

Almost every city in the US draws a line between front-yard and rear/side-yard fences. The pattern is remarkably consistent: 3–4 feet in the front yard, 6 feet in the back and side yards.

The reason is visibility. Front-yard fences sit close to sidewalks and streets, where tall barriers create blind spots for drivers and pedestrians. Cities want open sight lines at intersections and driveways.

Here's how the split looks in specific cities:

City Front Yard Max Rear/Side Yard Max
Los Angeles 3.5 ft (solid) 6 ft
Phoenix 3 ft 4 in 6 ft
Chicago 4.5 ft (solid) 5 ft
New York City 4 ft 6 ft
Portland, OR 3.5 ft 8 ft
Raleigh, NC 6.5 ft (50% open above 4 ft) 8 ft
Denver 4 ft 6 ft

Corner lots face even tighter restrictions because they border two streets. Most cities enforce a sight triangle, a zone near the intersection where nothing above 3–3.5 feet can block a driver's view. The size of the triangle varies (typically 10–45 feet measured from the curb), but the rule is the same everywhere: keep it low and keep it open.

When You Don't Need a Permit

Fences under the local height threshold in rear and side yards are the most common exemption. In most cities, that means a standard 6-foot privacy fence in your backyard does not need a permit.

Other common exemptions include minor repairs (replacing a few boards or a single post), like-for-like replacements that match the original fence's specifications, and temporary fences for construction or events. Some cities also exempt garden-protection fences made of plastic mesh or similar lightweight materials.

A few jurisdictions stand out for their permissiveness. Houston exempts all non-masonry fences under 8 feet, the most generous threshold among major US cities. Virginia goes even further at the state level, exempting fences of any height from building permits entirely (though local zoning rules still apply). On the other end, Arizona cities like Phoenix require a permit for any fence over just 3 feet.

One thing to be clear about: "no permit required" does not mean "no rules apply." Height limits, setback requirements (how far the fence must sit from the property line or sidewalk), and material restrictions still apply even when no permit is needed. You can build a 6-foot fence without a permit in many cities, but if it's 7 feet tall or made of barbed wire, you're in violation whether you have a permit or not.

Agricultural property is a separate category. States including Florida, Michigan, and Ohio exempt farm fences on bona fide agricultural land from building codes and permit fees entirely.

How Fence Permit Rules Differ Across States

No state sets statewide residential fence height limits. Every state defers the core questions (how tall, what materials, and whether a permit is needed) to cities and counties. But states do set the framework for boundary fence disputes, pool barriers, and spite fences in ways that affect homeowners.

Texas has no statewide fence code. Cities set all the rules, and they vary widely. Houston allows fences up to 8 feet without a permit, while Dallas requires permits for front-yard fences over 4 feet. Texas has no spite fence law and no requirement that neighbors share fence costs. You pay for your own fence unless your neighbor agrees in writing to split the cost.

California is home to the most detailed boundary fence law in the country. The Good Neighbor Fence Act (Civil Code §841) presumes that adjoining property owners share equal responsibility for the cost of a boundary fence. Before you incur any shared fence expense, you must give your neighbor 30 days' written notice. California also caps spite fences at 10 feet and has the strictest pool barrier rules, requiring two approved safety features and a 60-inch fence height, well above the IRC's 48-inch minimum.

New York exempts fences 6 feet and under from permits in New York City for one- and two-family homes. The state has a codified spite fence statute that treats any fence over 10 feet built maliciously as a private nuisance. Rural areas still use "fence viewers," town-appointed officials who resolve boundary fence disputes.

Colorado takes a tiered approach through Denver's rules: fences between 4 and 6 feet need a zoning permit, fences over 6 feet need an over-height fence permit, and anything over 8 feet requires a variance from the Board of Adjustment. Colorado law requires neighbors to split boundary fence costs 50/50.

Illinois regulates fences primarily through Chicago's code, which issues permits for fences up to 5 feet that meet zoning rules. Front-yard solid fences max out at 4.5 feet, but fences that are at least 80% open can reach 6 feet. Cook County requires permits for all fences at any height.

Florida has no statewide fence height limits, but its Residential Swimming Pool Safety Act (Chapter 515) is among the strictest in the country. Failure to install required pool barriers is a criminal misdemeanor. Agricultural fences on farm property are fully exempt from building codes and fees under Florida Statute §604.50.

Massachusetts has the lowest spite fence threshold in the US at just 6 feet. The state's partition fence law mandates fence viewers in every city and town, and an aggrieved property owner can recover double the cost of deficient fence repairs from a negligent neighbor.

Virginia is unique: the state building code exempts fences of any height from building permits entirely, except for pool barriers. Local zoning still limits height (typically 4 feet in front, 6 feet in back), but you won't need a building permit for a standard residential fence anywhere in the state.

How to Apply for a Fence Permit

Most major cities now accept fence permit applications online. Philadelphia uses eCLIPSE, Austin uses Build + Connect, San Antonio uses BuildSA, Denver has an e-permits portal, and Portland accepts applications through its website. Smaller cities may still require in-person applications at the building department.

A typical fence permit application requires:

Fees for residential fence permits typically fall between $30 and $200. Philadelphia charges a flat $50 for one- and two-family homes. Green Bay, Wisconsin charges $75. Denver runs $50–$100 depending on valuation. The national average is around $150. Complex projects involving masonry, engineering review, or variance hearings can push costs above $500.

Review timelines range from same-day approval to a few weeks. San Antonio approves most fence permits within two business days. Denver takes 5–7 business days. Philadelphia's standard review is 15 business days. If your property falls in a historic district, expect longer. Cities like Charleston and Coral Gables require design review board approval, which can add weeks.

Most cities require one inspection after the fence is built to verify it matches the permit. A few jurisdictions also require a pre-construction check to confirm the fence location before you start building.

Permit Costs and What You're Really Paying For

A fence permit is one of the cheapest permits you'll ever pull. At $30–$200 in most cities, the fee covers the city's administrative time to review your site plan, check zoning compliance, and send an inspector after construction. Compare that to a deck or garage permit, which can run $500–$2,000.

Some cities use flat fees: Philadelphia charges $50, Green Bay charges $75, and Inver Grove Heights, Minnesota charges $50. Others calculate fees based on the project's construction valuation using a sliding scale. Houston doesn't charge anything. Most residential fences under 8 feet require no permit and no fee at all.

Additional costs to watch for include inspection fees ($25–$85 if billed separately), credit card processing surcharges (2.5% in Denver), and expedited review fees if you need faster approval. If your fence requires a zoning variance (say, you want a 7-foot fence where the code allows 6), the variance application fee adds $200–$1,000 depending on the city, plus a public hearing process.

What Happens If You Build a Fence Without a Permit

The consequences range from modest fines to forced removal and real trouble when you sell your home.

Fines vary dramatically by city. New York City charges up to six times the permit fee (capped at $10,000) for one- and two-family homes, and up to 14 times the permit fee (capped at $25,000) for other buildings. Los Angeles can impose up to $1,000 and/or six months imprisonment. Washington, DC charges $2,000 per violation with $4,000 for repeat offenses.

Forced removal is a real possibility when fences violate height limits, encroach on rights-of-way, or block sight triangles. The city orders the fence taken down, and you pay for the removal. There is no grandfather clause for fences built in knowing violation of code.

Selling your home gets complicated. Building code violations "run with the land." They attach to the property, not the person who built the fence. You'll need to disclose unpermitted work to buyers in most states. Lenders may refuse mortgages for properties with unresolved permit issues. Appraisers may not count unpermitted improvements toward your home's value.

Insurance claims related to unpermitted fences are routinely denied. If a windstorm topples your unpermitted fence onto a neighbor's car, your homeowner's insurance may refuse to cover the damage.

The most common way unpermitted fences get caught is through neighbor complaints. A neighbor calls code enforcement, the city investigates, issues a notice of violation, and gives you 30–90 days to fix the problem. If you don't, daily fines and removal orders follow.

Fence Permit Myths That Trip Up Homeowners

"I can build any fence I want on my own property." Your property, your rules, except it doesn't work that way. Height limits, material restrictions, setback requirements, and sight triangle rules all apply whether you have a permit or not. Building a 7-foot solid fence in your front yard will draw a code violation in virtually every US city.

"I don't need a permit for a short fence." It depends on where "short" falls in your city. Most cities exempt backyard fences under 6 feet, but Phoenix requires a permit above just 3 feet 4 inches. Front-yard fences face even lower thresholds, typically 3 to 4 feet. And pool fences always need a permit regardless of height.

"Replacing my old fence doesn't need a permit." True only if the replacement matches the original in height, material, and location. Change any of those (taller, different material, new position), and most cities treat it as new construction requiring a permit.

"My neighbor has to pay for half the fence." Only in some states. California, Colorado, and Virginia require shared costs for boundary fences. Texas and Florida impose no cost-sharing obligation at all. Don't assume your neighbor owes anything unless your state law says so.

"My HOA approved it, so I don't need a city permit." HOA approval and building permits are completely separate legal processes. An HOA governs aesthetics and community rules. A building permit governs structural safety and code compliance. You may need both, and getting one does not satisfy the other.

Pool Fence Requirements Are Different From Regular Fences

If you have a swimming pool, your fence is subject to a separate, and much stricter, set of rules. The IRC references the International Swimming Pool and Spa Code (ISPSC), which sets a national baseline that most states follow and some exceed.

The minimum pool barrier height under the ISPSC is 48 inches, measured on the side facing away from the pool. Openings in the fence cannot allow a 4-inch sphere to pass through, so picket spacing must be under 4 inches. When horizontal rails are less than 45 inches apart, the maximum gap between vertical members drops to just 1¾ inches to prevent climbing.

Gates in pool fences must open outward (away from the pool), be self-closing and self-latching, and accommodate a lock. If the latch is less than 54 inches from the ground, it must be on the pool side of the gate, at least 3 inches below the top.

Several states exceed these minimums. Arizona requires pool barriers to be at least 60 inches tall under ARS §36-1681. California also requires 60-inch fences and mandates two approved pool safety features rather than one. Pool fences always require a permit. They're explicitly excluded from the IRC's general fence exemption.

For more on pool permitting specifically, see our guide to swimming pool permits.

Material Restrictions in Residential Areas

Your city's code may limit what your fence can be made of, even if you don't need a permit.

Barbed wire is banned in residential zones in virtually every US city. Chicago prohibits it below 6 feet. Whittier, California bans it outright with no exceptions. Washington, DC allows it only on non-residential property where the lowest strand is at least 6 feet above ground.

Electric fences face similar restrictions. California Civil Code §835 specifically prohibits electrified fences on residential property. Portland bans them on any property zoned or used for residential purposes. Houston limits them to commercial outdoor storage.

Chain-link fencing is legal in most cities but restricted in some. Philadelphia bans chain-link in residential areas through municipal code. Many HOAs also prohibit it. If your neighborhood has an HOA, check the CC&Rs before assuming chain-link is an option.

Some cities go further. Aurora, Colorado explicitly bans chicken wire, corrugated metal, fabric, plywood, and other materials "not commonly associated with residential fences." Historic districts like Charleston, South Carolina prohibit dog-ear tops, horizontal slats, unfinished wood, vinyl, and PVC fencing.

HOA Fence Rules Are Separate From Building Permits

If you live in a neighborhood with a Homeowners Association (HOA), you need two separate approvals: one from the HOA and one from your city (if a permit is required). HOA approval does not replace a building permit, and a building permit does not satisfy your HOA.

HOAs can be more restrictive than city code — and they usually are. Your city may allow a 6-foot chain-link fence, but your HOA may limit fences to 4 feet of painted wood picket. Common HOA restrictions include approved materials (wood, vinyl, or wrought iron only), approved colors (neutral tones), maximum height (often 4–5 feet even when the city allows 6), and specific style requirements.

The legal hierarchy works like this: HOA rules cannot authorize what city code prohibits (an HOA can't approve a 10-foot fence if the city caps at 6), but HOAs can prohibit what city code allows (banning chain-link that's perfectly legal under municipal code). If you build a fence that meets city code but violates your HOA, you face HOA fines, forced removal at your expense, and potential legal action.

In Texas, state law (Senate Bill 1588) prevents HOAs from outright banning perimeter fences, but they can still regulate materials and appearance.

Property Line Fences and Who Pays

Where your fence sits relative to the property line, and who pays for it, depends on your state's fence laws.

Most cities allow you to build a fence directly on the property line in rear and side yards, though experts recommend placing it 2–8 inches inside your line to avoid encroachment disputes. Front-yard setbacks from sidewalks vary: 6 inches in Denver, 18 inches in Boulder, and up to 3 feet in San Francisco.

Cost-sharing rules differ by state. California presumes neighbors split boundary fence costs equally and requires 30 days' written notice before incurring shared expenses. Colorado requires 50/50 cost-sharing for partition fences. Ohio took a different approach in 2008. The person who wants the fence pays, with a 30-year window for reimbursement if the neighbor later benefits from it. Texas and Florida have no shared-cost obligation at all.

Before building on or near a property line, get a property survey to confirm where the line actually falls. The cost of a survey ($300–$800) is cheap compared to the cost of tearing down and rebuilding a fence that encroaches on your neighbor's land.



Ready to build your fence?

Professional fence plans and site plans that meet building code requirements. Permit-ready drawings you can submit with your application.

Ready to build your fence?

Professional fence plans that meet building code requirements. Permit-ready drawings you can submit with your application.

Get Fence Plans

Frequently asked questions

Do I need a permit to replace an existing fence?

Generally, no — if the replacement matches the original fence in height, material, and location. But if you're changing any of those (taller fence, different material, new location), most cities treat it as new construction and require a permit. When in doubt, call your local building department.

How tall can I build a fence without a permit?

The most common threshold is 6 feet, but it ranges from 3 feet (Phoenix) to 8 feet (Houston) depending on your city. Front-yard fences typically have a lower limit of 3–4 feet. The IRC sets a national baseline of 7 feet, but most cities override this with a stricter standard.

Can my neighbor make me take down my fence?

Your neighbor can file a complaint with code enforcement if your fence violates local height limits, setback requirements, or material restrictions. If the city finds a violation, they can order removal at your expense. Your neighbor can also sue under spite fence laws if the fence was built maliciously. Thresholds range from 6 feet (Massachusetts) to 10 feet (California, New York).

Does my neighbor have to pay for half the fence?

It depends on your state. California, Colorado, and Virginia require neighbors to share boundary fence costs. Texas, Florida, and many other states impose no cost-sharing obligation. Your neighbor doesn't owe anything unless they agree to pay. Check your state's partition fence law before assuming shared costs.

Do I need a permit for a pool fence?

Yes, always. Pool barriers are explicitly excluded from the general fence permit exemption in both the IRC and the IBC. The permit is typically part of your swimming pool permit application. Pool fences must meet specific height, gate, and spacing requirements that are stricter than regular fence code.

Is a zoning permit the same as a building permit?

No. A zoning permit confirms your fence complies with land-use rules: height limits, setbacks, and allowed locations. A building permit confirms it meets structural and safety standards. Some cities require both for the same fence. In Philadelphia, the zoning permit always comes first.

Permit requirements vary by city, county, and state. The information in this guide provides general guidance based on common building codes and practices across the US. Always verify requirements with your local building department before starting your project.