Trew Landscape Blog
Building a Fence on a Slope: Stepped vs. Racked
How to fence a sloped yard in Kansas City: stepped or racked, which materials suit each, how to handle gates, drainage and gaps, and when to hire a pro.

You can put a good fence on almost any slope. The real decision is how the fence follows the ground. A stepped fence keeps every panel level and drops at each post like a staircase. A racked fence tilts the panels so the top and bottom rails run parallel to the grade. Which one you choose depends on how steep the yard is, what the fence is made of, and what the fence has to keep in or out.
This guide walks through that choice for Kansas City yards, then covers the details that decide whether the fence looks right in five years: post depth, gaps, gates, drainage and local rules.
TL;DR
- Gentle, even slopes (about 15 degrees or less) usually suit a racked fence. Steeper ground usually calls for a stepped one, according to Angi.
- Your material often makes the call. Rigid preassembled vinyl or composite panels generally have to be stepped. Board-by-board wood can be racked.
- Stepping leaves triangular gaps under each panel. If you have dogs or small children, plan how to close them.
- Never rack a gate. Hang it so it swings away from the hill, and set the hinges to be adjustable.
- Kansas City, MO does not require a building permit for a residential fence, but height and placement rules still apply. Check your exact address.
Table of Contents
- Why a slope changes everything
- Stepped or racked: how to choose
- Planning the fence line
- Setting posts on a slope
- Dealing with gaps
- Gates on a hill
- Local rules for Kansas City fences
- Our perspective: the slope should set the design
- Hire it out or build it yourself?
- FAQ
- Sources
Why a slope changes everything
A fence is built straight, but the ground is not. On flat land you set posts at the same height, hang panels, and you are done. On a hill, the same approach gives you panels that float above the soil at one end, crooked lines, and gaps that let dogs out and neighbors in.
Kansas City is hilly in a lot of places. Older neighborhoods on the bluffs, lots along creek corridors in Clay and Jackson County, and newer subdivisions graded for drainage all produce yards where one corner sits several feet above the other. Many of the homeowners we talk to did not think of their yard as a “slope” until the fence quote came back with extra line items.
Measure before you choose
Start with the numbers rather than a guess. Slope percentage is rise divided by run, times 100, and you can measure it with a builder’s level, a laser level, or a clinometer app, as Fence Guys explains. A practical way to do it:
- Drive a stake at the top and bottom of the fence line.
- Run a string between them and level it with a line level.
- Measure the vertical drop from the string to the ground at the low stake.
- Divide the drop by the horizontal distance, then multiply by 100.
Do this along every run, not just once. Yards rarely slope evenly. A fence line that is gentle for 40 feet and then drops sharply needs two different treatments, and a good installer will mix methods on one property.
Stepped or racked: how to choose
The two methods are not interchangeable. Here is how they compare.
| Stepped | Racked | |
|---|---|---|
| How it follows the slope | Panels stay level and drop at each post | Panels angle to match the ground |
| Best for | Steeper slopes, generally over 15 degrees | Gentle, consistent slopes, generally 15 degrees or less |
| Typical materials | Preassembled vinyl, composite, aluminum, wood panels | Custom board-by-board wood, some rail systems |
| Top line | Staircase | Smooth, follows the grade |
| Gaps | Triangular gaps under each panel | Small, even gap at the bottom |
| Gates | Fine, with a level opening | Not suitable for the gate itself |
The 15-degree guideline comes from Angi’s overview of raked and stepped methods, which also notes that racking a fence on a 30-degree slope is not practical and that stepping creates triangular gaps that grow as the slope gets steeper.
When material makes the decision
This is the part most guides skip. An installer in Connecticut points out that the choice is functional, not just cosmetic. Rigid preassembled panels, such as standard vinyl or composite, often cannot be racked and have to be stepped. Custom wood built board by board has the flexibility to rack, which closes the gaps that compromise privacy and pet security.

So if you have your heart set on a particular vinyl style, ask early whether the manufacturer’s panels can rack, and by how much. Some systems allow a limited angle and others do not. If you are weighing styles, our guide to privacy fence styles shows how different looks behave in a yard, and our page on vinyl fence installation in Kansas City covers that material specifically.
A third option: a hybrid
On a yard that changes character, the answer is often a hybrid. The fence is racked across the gentle stretches and stepped where the grade steepens. The transitions need planning so the top line does not look jumpy. This is a layout decision best made with stakes and string in the yard, not on paper.
Planning the fence line
Good slope fencing is 70 percent layout. Before any post goes in the ground:
- Confirm the property line. Find your survey or pins. A fence on a slope is harder to move than a flat one.
- Mark every post location. On a stepped fence, spacing is dictated by panel width. On a racked fence, the distance along the slope is longer than the horizontal distance, so panels have to be measured along the grade.
- Mark the high and low points. Decide where the fence top will sit relative to the ground at each end.
- Call 811 before digging. Utility lines run through slopes just as they do flat ground.
- Walk the yard in a rainstorm. More on this below.
Watch the water
Landscape professionals urge homeowners to look beyond the fence line. A fence installed without regard to drainage can block existing flow paths, which leads to ponding, erosion, or moisture problems against the fence base. Watch how water moves across the property during a heavy storm instead of simply following the property boundary.
In practice that means leaving room at the bottom of a solid fence where water travels, or building a gap or small opening that lets it pass. If runoff is already cutting channels in your slope, address it first. Our erosion control landscaping guide is a good place to begin, and if the soil is moving, a retaining wall may need to come before the fence.
Setting posts on a slope
Posts do the real work, and slopes are hard on them.
Depth. Kansas City’s frost depth is 30 inches, according to a local permitting guide. That figure is for permitted structures like deck footings, but it is a sensible reference point for fence posts too, since frost heave moves shallow posts. Measure your depth from the low side of the post on a slope, not the high side.
Angle on steep grades. On a steep grade, one installer’s guidance is to set posts perpendicular to the ground rather than plumb when the system is designed that way. If a post is driven plumb on a steep slope, the low side may not reach enough depth, which leads to instability. Follow the manufacturer’s instructions for your material, because many fence systems still call for plumb posts with racked rails.
Cutting wood posts. If posts need trimming to level heights, do not leave the cut end bare. University of Kentucky forestry guidance says to re-treat the exposed wood with a preservative such as copper naphthenate. Untreated interior wood rots quickly, and the failure often shows up years later.
Hole size for vinyl. Some variable-terrain vinyl systems require enlarged post holes or modified brackets on a slope. Bufftech’s installation sheet shows how to calculate enlargement from the slope’s rise per foot. Always check the specific product’s instructions.

Dealing with gaps
Gaps are the most common complaint about stepped fences, and the reason people choose racked ones.
On a stepped fence, each panel is level, so the ground falls away beneath the lower end and leaves a triangle of open space. You have a few ways to handle it:
- Kickboards or trim boards along the bottom of each section, cut to follow the grade.
- Grading or filling soil against the low side so the gap is closed with earth. This only works on modest drops and needs a plan for drainage.
- Smaller steps. More posts with narrower panels shrink each triangle.
- Switch to racked for the sections where the slope is gentle enough.
If you have dogs
A gap under a panel is an invitation to dig or squeeze through. If a fence is mostly for pets, plan the bottom edge as carefully as the top. Our guide to the best fence for dogs in Kansas City covers height, material and bottom clearances.
If you have young children
Families need to think about openings differently. Safety guidance for playground-adjacent fencing typically calls for vertical members spaced 4 inches apart or less, so a child cannot pass through. A stepped section with a wide triangular gap does not meet that spirit, even if the pickets above it do. Close the gaps with kickboards or choose a racked design. If you are designing a play space, see our backyard play area ideas for how fencing fits the larger layout. A pool is a different case: barrier rules for pools are set by local code, so confirm them with your city before choosing a design.

Gates on a hill
A gate is where a slope fence most often goes wrong.
Gates should not be racked. The weight makes them drag on the ground no matter how you adjust them, according to a composite fence installer’s handbook. That source also advises hanging the gate on the uphill post so it swings toward the downhill side, away from the hill, and using heavy-duty adjustable hinges so you can fine-tune clearance.
In practical terms:
- Put the gate where the ground is flattest, even if that is not the most convenient spot.
- If the opening has to sit on a slope, level a small landing area or step the grade under the swing path.
- Use a sturdier post for the hinge side. Slope gates carry more twisting load.
Local rules for Kansas City fences
In Kansas City, Missouri, residential fences do not require a building permit, though they must comply with the city’s fence ordinance (Chapter 27 in that source). Common limits are 6 feet for rear and side yards and 4 feet for front yards and corner lots. Some pool barriers or masonry walls over 4 feet can trigger separate requirements.
Two slope-specific points are worth raising with whoever builds your fence:
- How height is measured. On a slope, a fence can be within limits at one post and over at the next, depending on where grade is measured. Ask how your jurisdiction measures it.
- Neighboring cities differ. North Kansas City, Johnson County, Clay County and Jackson County communities each have their own rules, and HOAs add more. Our page on fence height limits in North Kansas City explains the 4 and 6 foot limits in detail. Verify requirements for your specific address before you sign anything.
When a retaining wall is in the picture
If the slope is steep enough that you are thinking about terracing, the rules change. Retaining walls often need permits at heights of roughly 3 to 4 feet, or when they carry extra load, such as a fence on top. One California city’s published rules show how common that threshold is, but your own city sets the real number. For Kansas City specifics, read our guide on whether you need a permit for a retaining wall in Kansas City. And if you already have a wall that is bowing, our leaning retaining wall triage guide helps you decide how urgent it is before a fence goes on or near it.
Our perspective: the slope should set the design
We build fences across Kansas City, and the slope jobs teach more than the flat ones. Our view is that you should never choose a fence style first and then fight the hill. Walk the line, look at the water, decide what the fence has to do, and only then pick a material.
Three things we tell homeowners:
- Pick the method for the yard, not the catalog. A staircase fence on a long gentle slope looks fussy, and a racked fence on a steep one looks like it is sliding. Combining methods on one property is normal.
- Plan the bottom edge as carefully as the top. The top line is what neighbors see. The bottom edge is what your dog, your kids and your drainage live with.
- Treat the fence as part of the landscape. A fence that ignores runoff will cost you in beds, turf and walls. That is why we plan fencing together with grading, retaining walls and drainage rather than as a separate trade.
Our approach is built on transparent communication and personalized service. Before we start, we explain which method we recommend and why, so there are no surprises in the line items.
— Trew Landscape LLC
Hire it out or build it yourself?
A flat, straight run of wood fence is a reasonable weekend project for someone with tools. A slope is a different job. The geometry is harder, the posts have to be set carefully, errors compound down the line, and a fence that does not follow the grade looks wrong from the street.
Hire a professional when:
- The grade changes by more than a foot or two over a run.
- You need a gate on a slope.
- Water crosses the fence line.
- The fence will sit on or near a retaining wall.
- You have children or pets that depend on a tight bottom edge.
We install fences for homeowners, families and commercial property owners throughout the Kansas City area. See our fence installation and residential fence installation pages for what is involved. If your slope needs grading, terracing or drainage work first, we handle that as part of the same project. To start a conversation, contact us through our site and we will look at the yard with you and walk through the options.
FAQ
Can a fence be installed on a slope?
Yes. Nearly any slope can be fenced if the method matches the grade and the material. Gentle slopes are usually racked, and steeper ones are usually stepped, with a hybrid used where the grade changes along the line.
What type of fence is best for a slope?
Custom board-by-board wood is the most flexible, since it can be racked to follow the ground and avoids bottom gaps. Rigid vinyl and composite panels generally have to be stepped. Aluminum and other metal systems vary by product, so ask about their racking range before you buy.
How steep can a slope be before I need to step the fence?
A common guideline is that racking works on slopes of about 15 degrees or less, and steeper ground calls for stepping, per Angi. Your fence material can lower that limit, so check what the manufacturer allows.
How do I fill the gaps under a stepped fence?
The usual fixes are kickboards cut to follow the grade, soil graded against the low side, or narrower panels with more posts. If you have pets or small children, choose a method that closes the opening completely, and keep drainage in mind so water can still leave the yard.
Do I need a permit for a fence on a slope in Kansas City?
Kansas City, Missouri does not require a building permit for a residential fence, according to local permit guidance, but height and placement rules still apply. Other cities and HOAs in the metro have their own rules, and retaining walls may need permits, so confirm with your city before building.
Sources
- How to Build a Fence on a Slope: Raked and Stepped Methods, Angi
- Building a Fence on a Hill or Slope, Fence Guys
- Fence Installation on Slopes: Step, Racked, and Level Methods
- Kansas City fence rules, permits, height limits, HOA requirements
- Complete Guide to Building Permits in Kansas City, MO
- Installing Wood Posts for Greatest Longevity, University of Kentucky
- Variable Terrain Installation, Bufftech
- Fencing safety guidance for play areas (ERSI)
- Composite Fencing Installation Guide: Slopes and Uneven Ground
- Retaining walls, City of Walnut Creek, CA
