STATEWIDE FENCE LAWS IN TEXAS
OVERVIEW
This page summarizes Texas laws and statewide requirements that may affect a residential fence project, even when a local fence permit is not required.
Texas does not set one ordinary yard-fence height, property-line setback, material list or finished-side rule for every residential property. It does, however, adopt a municipal residential building-code baseline that includes a fence building-permit exemption, subject to applicable local changes and separate approval requirements. City and unincorporated-county rules must be distinguished.
State law still matters. Utility-location requirements, pool safety, homeowners-association protections, shared-fence rights, drainage and public rights-of-way can affect a backyard fence, a replacement boundary fence or a driveway gate.
This information provides general orientation and does not replace official laws, local ordinances, permits, surveys, recorded plats, easements, HOA documents, private agreements or professional guidance. Updated November 3, 2026.
See: FENCE RULES IN TEXAS BY CITY & COUNTY
CALL BEFORE YOU DIG / TEXAS 811
Before digging fence-post holes, contact Texas811 to request utility locations. Allow the required notice period, check the affected operators’ responses and preserve the markings during construction.
Under Utilities Code Chapter 251, covered excavation generally includes powered or mechanized digging that disturbs soil to a depth of 16 inches or more. The definition expressly includes augering. The chapter contains exceptions, but a powered post-hole auger should not be treated as ordinary shallow hand digging.
For covered excavation, notice generally must be given at least 48 hours before work, excluding Saturdays, Sundays and legal holidays, and no earlier than 14 days before work begins. A special Saturday-notification provision can affect the start time. Use the lawful start information for the actual ticket.
An 811 request does not necessarily locate every underground line. Customer-owned irrigation, pool, outbuilding and other private lines may need separate locating. A fence permit does not replace utility notice, and utility notice does not replace a permit or HOA approval.
PIPELINES AND OVERHEAD POWER LINES
The Railroad Commission’s underground pipeline damage-prevention rules can apply separately to work near covered gas, hazardous-liquid and carbon-dioxide pipelines. Their excavation definition can include hand digging deeper than 16 inches. Follow the applicable response, marking, careful-excavation and ticket-renewal requirements before starting or continuing work.
A pipeline easement may also require more than a locate ticket. Health and Safety Code Chapter 756 requires operator notice and satisfaction of the applicable protective conditions for covered construction on, across, over or under a pipeline easement or right-of-way. Written agreements and statutory exceptions can affect the process.
Long fence posts, ladders and equipment also create overhead hazards. Texas high-voltage line law restricts covered work within six feet of a high-voltage overhead line unless the required safety arrangements have been made. For covered temporary work, notify the line operator at least 48 hours before starting and complete the required safety arrangements. This is separate from an 811 request.
LOCAL FENCE RULES AND PERMITS
Start with the government that has authority over the property. A mailing address does not necessarily tell you whether the lot is inside a city, in unincorporated county territory or in a city’s extraterritorial jurisdiction.
Inside a city: Municipal zoning authority can cover structure height, location, yards and land use. Local fence ordinances may also address front-yard fences, corner visibility, materials, gates, historic districts and permits.
Texas’s municipal residential-code law adopts the International Residential Code as it existed on May 1, 2012. Under unchanged 2012 IRC Section R105.2, fences not over seven feet high are exempt from that code’s building permit. This is the municipal baseline, not a universal exemption from every fence approval. A city may add, modify or remove code requirements through the required public hearing and ordinance, and may consider later ICC amendments. Check applicable local amendments and separate fence-permit rules. A building-permit exemption does not waive zoning, pool, floodplain, right-of-way or other applicable requirements.
Outside a city: Counties have specific statutory powers rather than the same general zoning framework as municipalities. Subdivision requirements, floodplain programs, county roads, special districts and geographically limited county zoning laws may still affect a fence. An unincorporated location is not an automatic approval. The separate county residential-code framework depends on a county’s adopting resolution or order and covers defined new house or duplex construction and qualifying additions that increase the square footage or value of the existing residential building by more than 50 percent. That subchapter does not itself require prior county approval or establish a general standalone fence-permit process. Other applicable county or district approvals remain separate.
In an extraterritorial jurisdiction: State law limits the city regulations that extend beyond its boundaries. Confirm which city or county office administers the particular requirement rather than assuming every city fence rule applies there.
PROPERTY LINES AND SHARED FENCE COSTS
Confirm the property boundary before setting posts. An existing fence, curb, ditch or mowing line may not follow the legal boundary. A property line, building setback, public right-of-way and easement can each be in a different place.
Texas generally does not require a neighbor to pay half the cost of a fence merely because it stands on the dividing property line. The Texas State Law Library explains that an adjoining owner ordinarily has no obligation to share construction or future maintenance costs unless that owner agreed to do so. Recorded restrictions and existing agreements may also assign responsibilities.
Before building or replacing a shared fence, settle its location, ownership, design, cost sharing and future maintenance with the neighbor. A written agreement helps avoid later disagreements. Obtain permission before entering the neighbor’s land or attaching work to the neighbor’s fence.
An old fence does not automatically resolve a disputed boundary or establish ownership of the land beside it. Boundary and adverse-possession questions depend on the facts and applicable law. A survey and advice from a Texas attorney may be needed when ownership is disputed.
REMOVING OR DISCONNECTING AN EXISTING FENCE
Agriculture Code Sections 143.121 through 143.123 protect certain dividing and attached fences. Except by mutual consent or the statutory process, a person may not remove a dividing fence in which the person is a joint owner, or a fence attached to one owned or controlled by someone else.
The law provides six months’ written notice for an owner withdrawing a qualifying attached fence. It also provides six months’ written notice when the owner of a fence wholly on that owner’s land requires another owner’s attached fence to be disconnected. These are specific attached-fence provisions, not a general six-month notice rule for every residential fence replacement.
HOA SECURITY FENCES AND DRIVEWAY GATES
Property Code Section 202.023 limits HOA restrictions that prevent owners from installing security measures, including perimeter fences. It does not apply to condominiums under the specified condominium laws or master mixed-use associations governed by Chapter 215.
The law, amended effective September 1, 2025, still allows an association to regulate fence type and prohibit fencing that obstructs a defined license area, public or community sidewalk, drainage easement or drainage area. An HOA may require a driveway gate to be set back at least 10 feet from the right-of-way where the driveway meets a laned roadway. A restrictive covenant may prohibit new fencing in front of the dwelling’s front-most building line.
Owners may maintain perimeter fencing or fencing in front of that building line installed or constructed before September 1, 2025. The front-building-line prohibition also cannot be used against qualifying owners whose residential addresses are exempt from public disclosure or who provide law-enforcement documentation of a need for enhanced security.
These HOA protections do not establish a universal fence height or replace local safety rules, permits, easements or other property rights. Review the association’s current documents and any required application before construction.
HOA APPROVALS AND ADJACENT LOTS
For associations covered by Property Code Section 209.00505, an architectural denial must explain its basis and any required changes, and advise the owner of the right to request a board hearing. The section applies only to associations with more than 40 lots and excludes development periods and specified periods of developer control. The notice must identify the 30-day hearing-request deadline.
If you own the lot beside your home, Section 209.015 protects residential uses, including fencing, on qualifying adjacent lots in covered subdivisions. Prior association or architectural approval is still required, and reasonable restrictions on size, location, shielding and appearance may apply. The statute also imposes conditions when the home lot or adjacent lot is later sold or transferred. Not every lot touching another lot meets its definition of an adjacent lot.
SWIMMING POOL AND SPA BARRIERS
A yard fence used as a pool barrier must satisfy the applicable pool rules as well as ordinary fence requirements. Those rules may address height, openings, climbability, gates, latches and access from the house.
Texas municipal pool law adopts the International Swimming Pool and Spa Code as it existed on May 1, 2019, for municipalities that elect to regulate pools or spas. Cities may adopt newer editions and local amendments. Confirm the actual requirements with the responsible permitting office before choosing a barrier or replacing a gate.
The separate enclosure requirements in Health and Safety Code Chapter 757 apply to specified association and multiunit-rental pools. They should not be treated as the universal barrier rules for a private single-family backyard pool.
HOAs also have limits on restricting qualifying pool-safety fences. Section 202.022 protects nonclimbable enclosures made of transparent mesh or clear panels in metal frames, no more than six feet high, that meet applicable state or local safety requirements. Associations may regulate appearance but cannot prohibit the specified black transparent-mesh enclosure in metal frames.
EASEMENTS, ROADS AND DRAINAGE
Owning the land does not necessarily give you an unrestricted right to fence it. Recorded utility, drainage, access and other easements may preserve access or limit obstructions. Read the recorded instrument and confirm any required consent before building across an easement.
A public right-of-way may extend beyond the pavement, curb or ditch. Keep the proposed fence and gate clear of public roads and required access. Work affecting a state highway right-of-way is subject to TxDOT’s right-of-way requirements; county and municipal roads have their own responsible authorities.
Water Code Section 11.086 prohibits diverting or impounding the natural flow of surface water in a way that damages another person’s property by overflow, subject to statutory qualifications. Solid fence bases, masonry walls and associated grading can change drainage.
In a floodplain or floodway, ask the local floodplain administrator whether the fence requires a development permit or special design. State law authorizes local floodplain-management measures. A fence that needs no ordinary building permit can still require floodplain review.
Maintain the fence after installation. State law allows a municipality to require repair or removal of a fence found likely to endanger people or property.
LIVESTOCK AND PET ENCLOSURES
Livestock and rural boundaries: Texas livestock and stock laws can affect properties beside grazing or cultivated land. Local stock-law elections, the species involved and the property’s location matter. Agricultural sufficient-fence standards are not statewide height rules for an ordinary backyard privacy fence. Check the applicable county stock-law orders rather than assuming the same open-range rule applies everywhere.
Pet containment: Local animal-control rules may require secure fencing or other restraint. For dogs covered by the state dangerous-dog law, state law imposes specific secure-enclosure requirements, including locking, escape prevention, warning identification and applicable local animal-control requirements. An ordinary yard fence may not be enough.
COASTAL BEACHES AND DUNES
A fence near a Gulf beach or protected dunes can require additional approval. The Open Beaches Act restricts unlawful barriers to public beach access. Dune-protection law and certified local plans can also require a permit or beachfront construction certificate. Confirm the local coastal requirements before placing posts or disturbing dunes.
HIRING A FENCE CONTRACTOR
Use a written contract identifying the work, materials, location, price, payment schedule, responsibility for approvals and utility locating, and removal of the old fence. Keep the approved plans, change orders, receipts and warranties.
Texas mechanic’s-lien law expressly includes fencing. For a qualifying residential construction contract, the original contractor must provide the statutory disclosure before the owner signs. Other protections address subcontractor lists and payment documentation, subject to the law’s conditions. A lien against a homestead has additional requirements, including a written contract executed before labor is performed or materials are furnished, both spouses’ signatures if the owner is married, and county-clerk filing. This does not mean every fence contract must be recorded. Review any lien-related contract, notice or payment demand carefully.
A personally solicited fence sale signed at home or another off-premises location may also qualify for cancellation rights under Business and Commerce Code Chapter 601. Covered transactions may be canceled through midnight of the third business day after signing. Price, location, solicitation and statutory exceptions determine coverage; the right does not apply to every fence contract.
STATE AND LOCAL FENCE RULES
Texas does not give every homeowner the same yard-fence height or setback. The municipal residential-code permit baseline described above is one part of the answer. Apply the controlling state provisions, local amendments and separate local rules together with the property’s recorded restrictions.
USING THIS INFORMATION
This page is a general guide, not legal advice. Laws and local requirements can change, and the requirements for one property may differ from those for another.
Before buying materials or scheduling installation, confirm the boundary, local approvals, utility locations, easements, drainage and any HOA requirements. For a boundary dispute, shared-fence disagreement or question about enforceable legal rights, consult a licensed Texas attorney.