STATEWIDE FENCE LAWS IN MONTANA
OVERVIEW
Montana does not set one height for every residential fence. Seven feet is a building-permit threshold where the residential code applies. The often-quoted 42 to 48 inches describes most statutory livestock fences. Neither number tells you how high a privacy fence may be at your address. For that, check the zoning rules for the city, town or unincorporated county area where the lot lies.
RESIDENTIAL PERMITS, LOCATION AND POOL SAFETY
Montana adopted the 2024 International Residential Code and Swimming Pool and Spa Code effective September 26, 2026, with state amendments. First establish whether the local government applies the residential building code. For example, Montana Code § 50-60-102 generally excludes residential buildings with fewer than five dwellings and their attached structures unless the local government opts in. It does not say every freestanding fence is exempt. The state directory of certified programs lists jurisdiction boundaries and the work each office handles.
- Ordinary fence. Where the residential code governs, IRC § R105.2 generally exempts a fence seven feet high or less from the building permit. It does not waive zoning: a city can still regulate a lower front fence, or require a separate fence or land-use approval. A retaining wall has its own height measurement and extra-load rules; do not count the panels alone when the posts sit on a wall.
- Pool enclosure. A privacy fence is not necessarily a safety barrier. Under the state’s final adoption notice, Montana’s pool-code amendment, ARM 24.301.175, omits the model code’s residential-specific chapters 7 through 10. Do not assume the unamended book supplies one private-pool answer for every home. Ask the official serving your parcel what barrier height, openings, gate hardware and house-door protection apply. Confirm any temporary protection before removing the old enclosure. A shared pool may instead come under public-pool barrier rules.
- Private restrictions. Check recorded covenants, access rights and any association approval separately. The city’s ability to issue a permit does not give you permission to use adjoining land or build across an easement.
SHARED BOUNDARIES: WHO BUILDS, PAYS AND MAINTAINS?
The first question is whether the fence separates two enclosures. Montana does not give one neighbor a general right to choose a privacy fence and send the other a bill. Different rules apply when both properties are enclosed, one parcel is left open or a neighbor later encloses it.
- Both sides stay enclosed. Section 70-16-206 generally requires the occupants to build and maintain the partition fence in equal shares and keep it in repair year-round unless they agree otherwise. Under the maintenance rule in § 70-16-205, the usual way to divide the work is to face the shared boundary from your own land and maintain the portion to the right of the midpoint. Agreement, custom or legally established use can change that. Substantially different terrain calls for an agreement accounting for cost and time. A parcel completely surrounded by the other has a different starting point.
- One parcel is open. An owner who leaves land unfenced may fall outside the shared fence obligation; grazing or pasture is not treated as idle land. If an occupant later encloses onto the neighbor’s existing enclosure, § 70-16-207 allows three months to build their share or reimburse a proportion of the fence’s then-current value.
- A fence needs replacing or repair. When the other party already has a legal duty and neglects or refuses it, § 70-16-209 distinguishes 60 days’ notice for a new fence from five days’ written notice for repairs before doing the work at that party’s expense. This is not a way to charge a neighbor for an elective upgrade.
- An occupant wants to open the land. Where the occupants built their respective portions, § 70-16-210 requires at least six months’ notice before removing one’s portion. The adjoining occupant can prevent removal by paying or tendering its value.
An old fence is evidence, not a survey. If work is likely to disturb a protected survey monument or its reference markers, Montana’s monument-preservation law requires professional survey work and a corner record before disturbance, then restoration and filing within 30 days of completing work that disturbs it. Do not move a marker yourself. A dispute about a fence’s impact on neighboring land can also involve the private-nuisance statute, which has exclusions for government-authorized conditions and qualifying established farming operations. It is not a separate statewide fence-height rule.
LIVESTOCK, OPEN RANGE AND HERD DISTRICTS
For rural property, find out which animals are involved and whether the parcel is in a county herd district. Ask the county clerk and recorder for the boundaries and months it is in effect. “Open range” alone does not tell you who must fence or who owes damages.
Montana’s legal livestock fence statute recognizes several designs. Most must be at least 42 inches and no more than 48 inches high, but there are exceptions for certain stack corrals and natural barriers. Wire number, spacing, posts and, for electric designs, other specifications matter. A 48-inch garden fence is not automatically a legal livestock enclosure.
Under the livestock trespass law, damage to a legally fenced enclosure can depend on negligence by the animal’s owner or handler. A legal fence is not a prerequisite for a claim involving animals unlawfully at large; trespass in a herd district has separate rules. If you own a barbed-wire fence, keep it in repair. Ignoring written notice that downed or damaged wire threatens livestock can create liability.
BEFORE YOU DIG: MONTANA 811
The person digging the fence posts must notify Montana 811 before excavation. Call 811 or file a free Montana 811 homeowner locate request. Identify the post line, not just the address. Montana 811’s timing guidance is to request at least three business days before digging so operators have two full business days after the day of the request. Do not count weekends or holidays. A normal ticket covers work intended to start within 10 days and finish within 30 days of notice.
Check that all affected operators have marked their lines or confirmed that no marking is needed. State law requires information from each affected member operator, not just a ticket number and an expired waiting period. Private lines, such as electricity from the house to a shed, may need a separate locator. Utility paint does not mark a property boundary.
Keep the marks legible. If marks fade or the work is delayed, check the relocation rules before digging. Stop in the area of any unmarked facility you find, and notify its owner or 811. If a facility is damaged, notify the owner as soon as practicable, or the center if the owner cannot be reached. For a release of gas or hazardous liquid, get clear and call 911 immediately.
ROADS, RAIL LINES, DITCHES AND STREAMS
- Road frontage. A shoulder or strip beyond the pavement may be public right-of-way. Montana can require a fence in a state highway right-of-way to be permitted or removed. County-road encroachments have a different process. At county-road bridges where the public has authorized access, livestock or property-management fences attached to or abutting bridge features must preserve passage to the water. This is not general permission to cross a private yard.
- Beside a railroad. Montana’s railroad fencing law generally assigns the livestock-protection fence to the railroad unless terrain or other protection already keeps animals out. An affected landowner’s construction or repair is subject to railroad approval; it is not an ordinary neighbor’s half of a division fence.
- Irrigation access. A fence or locked gate must not impair a canal or ditch easement without the holder’s written consent. Inspection and maintenance access can survive conversion to a conspicuously marked pipeline. Do not assume a buried ditch means the access route is free to fence.
- Streams and floodways. If posts or equipment would alter the bed or immediate banks of a natural perennial stream, ask the conservation district about a 310 stream permit before work. Floodplain review is separate. In a designated floodway, state minimum rules generally allow fences without a floodway permit except permanent fences crossing channels. Local rules can be stricter, particularly for a solid or chain-link fence that can catch debris. Ask the floodplain administrator about the actual design and parcel.
USING THIS INFORMATION
Use Fence Rules in Montana by location for local height, placement, materials and permits. If the project will change a shared enclosure, resolve where the boundary lies and who has the maintenance duty before removing posts. When hiring an installer, verify the firm through Montana’s contractor licensing program or check the claimed exemption. This guide is not a survey, a ruling on a private dispute or approval to build.