STATEWIDE FENCE LAWS IN MARYLAND
OVERVIEW
Maryland fence projects usually require two separate checks: the local rules governing the property and the state requirements that apply to the work. County and municipal rules supply many of the practical answers about height, placement, materials and approvals. State law adds building-code administration, utility-damage prevention, pool safety and protections when hiring a home-improvement contractor.
This page addresses fences at existing homes, including properties with pools, rural acreage or waterfront conditions. A building-permit exemption is not permission to disregard zoning, an easement or a separate safety requirement. Updated November 2026.
LOCAL AUTHORITY AND BUILDING PERMITS
Maryland does not supply one ordinary yard-fence specification that replaces the local ordinance. Identify the actual county or incorporated municipality, not just the mailing address. Baltimore City and Baltimore County are separate jurisdictions. The state building-enforcement statute assigns responsibilities to counties while recognizing municipal enforcement and agreements. Zoning and construction enforcement need not be handled by the same office.
The Maryland Building Performance Standards currently incorporate the 2021 International Residential Code and International Building Code, with Maryland modifications. The Department of Labor reports that its proposed 2024 building-code update was withdrawn in October 2026. Do not treat that proposal as an adopted statewide change.
The 2021 residential model code includes a building-permit exemption for fences no higher than seven feet. That is a starting point for checking the locally adopted code, not a statewide guarantee that a seven-foot fence needs no approval. Local amendments and separate zoning or fence permits can change the practical answer. For example, Rockville’s official code bulletin distinguishes that building exemption from required zoning and planning approval. Pool barriers and work involving a retaining wall require their own review.
Before ordering materials, resolve the permitted height in each yard, the measurement method, corner and driveway visibility, allowable materials, line offsets and treatment of replacement fences. Approval for an old fence does not by itself establish that a taller or relocated replacement is allowed.
PROPERTY LINES AND SHARED FENCES
A fence’s present location is not a substitute for locating the legal boundary. Review the survey, recorded plat, easements and any agreement affecting the fence before rebuilding it. Government permission does not transfer ownership or settle a disputed boundary. Maryland provides a court procedure for disputed boundaries; do not assume that replacing an old fence resolves a title dispute.
Do not assume that a neighbor must pay half of every new residential fence. Local Government §10-318 authorizes county regulation of fences, party-line responsibilities and certain maintenance remedies; the enabling provision is not itself a universal equal-cost invoice. Its title excludes Baltimore City. Check the applicable local law and any actual agreement before requesting contribution or altering a shared fence.
Livestock properties require a separate check. University of Maryland Extension explains Maryland’s fence-in background and important county differences in its Maryland agricultural fencing guide. A rule about containing animals should not be converted into a general suburban fence-height limit or automatic neighbor-payment obligation.
DIGGING AND UNDERGROUND UTILITIES
Fence-post holes can trigger Maryland’s underground-facility law even when no building permit is needed. Its excavation definition covers moving earth with any tool, subject to its stated exclusions. Do not assume hand digging is outside the law.
For ordinary covered excavation, Public Utilities §12-124 requires one-call notice at least three, but not more than twelve, business days before starting. The ticket remains valid for twelve business days after the selected start date. Use the ticket’s lawful start and expiration information rather than treating the wait as seventy-two clock hours. The statutory business-day definition excludes weekends and legal holidays.
Before digging, obtain and check the required responses and protect the marks. The excavator’s duties include safely exposing a facility before mechanized work within eighteen inches of its marks, and avoiding mechanized equipment within eighteen inches of the outside edge of the exposed facility. Those are distinct measurements. Do not treat a clear ticket as proof that every privately owned line on the lot has been located.
Repeat or renew the notification when the job exceeds the ticket’s time or location, or when adding a temporary excavator; request remarking for lost marks or evidence of unmarked facilities under §12-125. Promptly report any damage, dislocation or disturbance to the facility owner. If it releases flammable, toxic or corrosive gas or liquid, immediately report it to 911. A contractor’s schedule does not create an emergency exception.
PRIVATE POOL AND SPA BARRIERS
A yard fence is not automatically a compliant pool barrier. Maryland’s separate pool and spa regulations incorporate the 2024 International Swimming Pool and Spa Code with state changes effective March 30, 2026. Local governments have a statutory implementation period and can adopt qualifying amendments. Confirm the edition and local amendments applicable to the permit and existing pool before modifying its enclosure.
The state framework generally applies to pools and spas for which a construction permit application was received on or after December 31, 2023. It also covers qualifying later structural changes to older pools. It does not mean every unchanged older pool immediately acquired the same new-construction requirements.
For a nonpublic residential pool governed by this framework, the model barrier provisions generally require at least forty-eight inches of height measured from the outside, controlled openings and nonclimbable design. Pedestrian gates open away from the pool, close and latch themselves, and accommodate locking. The code also regulates ground gaps, latch access and nearby equipment; ordinary yard-fence dimensions alone are insufficient.
Maryland changes the model’s general safety-cover relief. A powered swimming-pool cover is not a blanket substitute for the required barrier. The state retains a specific exception for a nonpublic spa or hot tub with a lockable ASTM F1346 safety cover. A house wall, aboveground pool wall or natural feature serves as protection only under its applicable conditions, not merely because it is already present. Construction fencing is also required during covered in-ground pool work.
ROADS WATERFRONTS AND OTHER SITE CONDITIONS
Keep the proposed fence out of a road right-of-way unless the responsible road authority permits the work. The right-of-way can extend beyond the paved surface. Maryland State Highway Administration permit guidance requires authorization for work within state right-of-way; county and municipal roads have their own administrators. Preserve sight lines and access required by the actual local rules.
On waterfront property, check both the mapped Critical Area and any protected buffer before clearing or building. The Critical Area Commission’s guidance describes the broader thousand-foot tidal-water and tidal-wetland area and the separate buffer restrictions. The thousand-foot designation is not a universal fence setback. Local Critical Area approval, wetlands authorization and floodplain requirements can apply independently.
For fences crossing streams, wetlands or flood-prone land, determine whether the work needs Maryland wetlands or waterways authorization and local floodplain approval. A fence can obstruct water or collect debris even when its posts disturb little ground. Grading and clearing also have separate erosion-control rules; a small-project exception in one program does not waive every other requirement.
When handling tall posts, panels or equipment near overhead lines, Maryland’s high-voltage safety law requires the protective arrangements in §6-107 before covered activity brings a person or object within ten feet of a high-voltage line. Contact the line owner or operator for those arrangements rather than relying on an underground locate.
SPECIAL HOME USES AND PRIVATE RESTRICTIONS
For a registered family child-care home, child-care safety rules can require an enclosure where nearby hazards make it necessary and impose specific protection for accessible pools. These requirements depend on the regulated home use; they are not a universal fence mandate for every home.
For a dog classified as dangerous under Criminal Law §10-619, an owner may leave the dog unattended on the owner’s property only if it is confined indoors, in a securely enclosed and locked pen, or in another structure designed to restrain the dog. This is not the rule for every ordinary household pet, and local animal-control provisions can also matter.
Recorded covenants, easements, homeowners’ association standards and agreements may impose additional limits. Review the instruments that actually bind the property, including approval requirements, materials and maintenance responsibilities. A government permit does not cancel private restrictions or authorize interference with an existing access right.
HIRING A FENCE CONTRACTOR
Fence work at a qualifying existing residence can be a home improvement under Business Regulation §8-101. Check that the person contracting with you holds the required Maryland Home Improvement Commission license under §8-301. The statutory scope has exclusions, including new-home construction and certain larger residential properties; licensing is not a guarantee of workmanship.
Covered contracts must meet §8-501, including written terms, signatures, work and material descriptions, approximate dates, price and required contractor information and notices. Agree on the fence layout, height, materials, gates, removal and responsibility for permits and utility notification in the written scope. Obtain your copy before work begins.
Under §8-617, a contractor may not demand or receive payment before signing the home-improvement contract, and the deposit received at or before execution cannot exceed one-third of the contract price. Do not mistake that deposit rule for approval of every later payment demand.
For a covered personally solicited home-improvement sale signed away from the seller’s business, Commercial Law §14-302.1 provides cancellation through midnight of the fifth business day, or the seventh business day if the buyer is at least sixty-five. The law’s definitions include invited solicitations and use a business-day definition that excludes Sundays and listed holidays, not Saturdays. Read the required cancellation notice and applicable transaction terms; do not assume every contract has the same cancellation period.
USING THIS INFORMATION
This page provides general orientation on Maryland laws that may affect a residential fence. Updated November 2026. Start with Fence Rules in Maryland and the rules for the property’s actual local jurisdiction.
It is not legal advice and does not replace statutes, regulations, ordinances, permits, surveys, recorded documents or professional guidance. Requirements depend on the applicable code edition, local amendments, property conditions and the proposed work. If this page conflicts with controlling law or official requirements, those authorities govern.