Can You Put a Fence on Top of a Retaining Wall?

You can have a fence on a retaining wall, but in most cases it should not be mounted to the wall itself. The preferred approach is to set the fence behind the wall. Allan Block, a retaining wall block manufacturer, states in its technical guidance that "placing the fence or railing a minimum of 3 feet (0.9 m) or further behind the wall is the preferred location." Fences can go closer than that, the company says, "but a design professional should be involved."
The reason is load, and it is tied to a permit detail many Pennsylvania homeowners miss. The state's Uniform Construction Code exempts retaining walls that are not over 4 feet in height from its permit requirement "unless the wall supports a surcharge," and it separately exempts fences that are no more than 6 feet high. Each exemption stands alone. A wall built without a permit or an engineer was designed to hold soil, and Allan Block notes that when fence posts sit within 3 feet of the wall, the designer must consider the overturning force at the top of the wall. This post covers where the fence can go, how it is anchored, and what to ask the township.

Why Is a Fence on Top of a Retaining Wall a Problem?
A retaining wall is a structure built to hold back soil. Everything about it, from the base to the batter of the face, is sized for the weight of the earth behind it.
A fence adds a different kind of force. Wind pushes on the fence, the fence acts as a lever, and the load arrives at the very top of the wall where the wall has the least mass above it to resist. Allan Block's guidance points out that a typical fence has the capacity to withstand loads from wind, pedestrians or even vehicles. Whatever the fence withstands, it passes to whatever it is anchored to.
A solid 6-foot privacy fence catches far more wind than an open picket or ornamental fence. That is why the style of fence matters as much as its location.
Gravity walls, the common landscape walls that rely on the weight of stacked block, are the most limited. Allan Block states that in most cases gravity walls cannot be used once the fence is within 3 feet of the back of the wall.
Where Should the Fence Go?
There are three workable arrangements.
Behind the wall, 3 feet or more. This is the preferred location in the manufacturer guidance. The fence posts are set in the ground like any other fence, far enough back that their footings do not load the wall. You give up a strip of yard between the fence and the wall, which can be planted.
Close to the wall, with an engineered connection. Where the yard cannot spare 3 feet, the fence can sit near the wall face if the wall is designed for it. Allan Block's best practices say that if posts must be placed within 3 feet of the back of the wall facing, the designer must consider the localized top-of-wall overturning force.
At the bottom of the wall. If the goal is to enclose the lower yard, a fence at the base of the wall avoids the question. It does not provide a barrier along the top edge.
Bolting post brackets to the cap blocks of a segmental wall is not on that list.
On a sloped lot, the fence and the wall are usually part of the same plan. Our post on installing a fence on a sloped yard covers the layout choices.
How Is a Fence Anchored Near a Retaining Wall?
For a new wall, the cleanest answer is to build the post anchors into it.
Sleeve systems are made for this. Allan Block describes Sleeve-It as a product designed for use in segmental retaining walls to resist top-of-wall overturning forces from fences and railings. A manufacturer's installation detail for the system shows how it goes in:
The sleeves are installed when the wall has been built to two feet from the top, not counting the cap.
Fence posts extend a minimum of 18 inches into the sleeve.
Sleeves are spaced no farther apart than 10 feet on center.
The detail states that it is for conceptual design and should not be used without the signature of a professional engineer.
For an existing wall, the work is harder. Reinforced walls have layers of geogrid running back into the soil behind the face. Allan Block warns that post holes there must be hand dug, because using a power auger will cause severe damage to the geogrid layers.
Tell the fence contractor how the wall was built, and share the wall drawings if you have them. If nobody knows what is behind the wall, plan on the 3-foot setback.
Do You Need a Permit for a Fence on a Retaining Wall in Pennsylvania?
Ask your municipality, because two sets of rules apply.
State building code. Under 34 Pa. Code Section 403.62, residential retaining walls that are not over 4 feet in height, measured from the lowest level of grade to the top of the wall, do not need a building permit unless the wall supports a surcharge. Fences that are no more than 6 feet high are also exempt. Both exemptions apply only if the work does not violate another law or ordinance.
Local zoning. Townships add their own requirements. Hempfield Township's ordinance makes it unlawful to construct or alter any fence, screening wall or retaining wall without a Zoning Permit. North Huntingdon Township's permit FAQ lists retaining walls above 4 feet among the projects that need a permit.
Fence height is the other question. Zoning height limits are measured from grade, and a fence on or near a wall raises the question of which grade. A 6-foot fence standing above a 4-foot wall is 10 feet tall from the neighbor's side. Ask the zoning officer how height is measured in that situation before you design anything. Our guide to whether you need a permit to install a fence in Pennsylvania covers the general permit picture.
Does the Top of a Retaining Wall Need a Guard or Railing?
It may, and a fence chosen for privacy may not qualify as one.
Building codes require guards along open-sided walking surfaces that sit more than 30 inches above the grade below. Pennsylvania's code uses the same 30-inch figure when it exempts uncovered decks whose floor is no more than 30 inches above grade. A guard has to meet specific height, opening and strength requirements.
Whether a guard is required at the top of a yard retaining wall depends on what is at the top, such as a walkway, patio or driveway, and on how your building code official reads the code. Ask that question directly when you call about the permit.
If a guard is required, the wall designer has to account for it. Allan Block's best practices list common lateral loads from railings so that designers can size the top of the wall to resist them.
Which Fence Types Work Best Near a Retaining Wall?
Lighter and more open is easier.
Ornamental aluminum: open pickets let wind through, and the material is light. It is the common choice along the top of a wall. See what ornamental fencing is and where it is used.
Chain link: also open to wind, and practical where the wall borders a utility area or a steep drop.
Semi-privacy styles: spaced pickets or shadowbox panels reduce wind load compared with a solid panel.
Solid privacy panels: the highest wind load. These are the fences that most need the 3-foot setback or an engineered connection.
Post depth still matters behind a wall. Footings have to reach below the frost line, and they have to avoid drainage stone and pipe behind the wall. See how deep fence posts should be in PA soil.
What Should You Ask Before You Build?
Ask the wall builder or engineer:
Is this a gravity wall or a reinforced wall with geogrid?
How far back does the reinforcement run, and at what depths?
Was the wall designed for a fence or railing load?
Ask the township:
Does the wall, the fence or the combination need a permit?
How is fence height measured next to a retaining wall?
Is a guard required along the top?
Ask the fence contractor:
How far behind the wall will the posts be set?
How will the holes be dug near the wall?
Which fence style do you recommend for the wind exposure?
For a property with a steep grade, our post on fence installation for sloped yards in Pittsburgh has more on planning.
FAQ
Can I attach a fence directly to the top of a block retaining wall?
Not without a design that accounts for it. Manufacturer guidance prefers posts set at least 3 feet behind the wall, or an engineered connection built into the wall.
How far behind a retaining wall should a fence be?
Allan Block gives a minimum of 3 feet as the preferred location.
Does a retaining wall under 4 feet need a permit in Pennsylvania?
The state building code exempts residential retaining walls not over 4 feet in height unless the wall supports a surcharge. Local zoning can still require a permit. Hempfield Township, for example, requires a Zoning Permit for any retaining wall.
Can fence posts be augered behind a reinforced wall?
Allan Block says holes in a geogrid-reinforced zone must be hand dug because a power auger will severely damage the geogrid layers.
What kind of fence puts the least load on a wall?
Open styles such as ornamental aluminum and chain link, because wind passes through them.
Does my fence count toward the height of the wall?
Ask your zoning officer. Municipalities measure fence height from grade, and the answer next to a wall depends on the ordinance.
Fence Planning for Sloped and Terraced Yards
Just Fences is a locally owned fence company in Harrison City that has installed vinyl, aluminum, wood, chain link and custom fences in Westmoreland County and Greater Pittsburgh since 2007. Free quotes are available, and installations carry a 2-year workmanship warranty. For yards with walls, slopes and other complications, start with the custom fencing solutions page, or look at open styles on the aluminum fences page.
Visit Just Fences or call (724) 392-4416 today. Contact us for more information.





Comments