Fence & sloped yard calculator

Posts, rails, pickets and gates on flat, stepped or sloped yards.

  1. 1 Measure
  2. 2 Set your price
  3. 3 Quote & PDF
New cedar privacy fence stepping down a sloped backyard

1 Measure

End to end, including any gates
ft / in
Height difference from high end to low end
in
Wood pickets or chain-link mesh
How fence sections follow sloped ground
Use 6 ft spacing in high-wind areas
Walk gates (42″) and drive gates (10′)

2 Set your price

USD
Per lin ft (62 lin ft total)
$ / lin ft
Delivery, haul-off, or site prep
USD
Added on materials & labor
%
Local store material tax rate
%
Live layout answer
10 posts across 8 bays

Covers 62' 0" total run (6 ft tall) with post concrete included.

ELEVATION & POST CENTERS • 7 FULL 8' BAYS + 2' 6" END BAY Total Run: 62' 0" GRADE (STEPPED) GATE Height: 6' | Spacing: 8' O.C. | Footings: 30" Concrete | Gates: 1 Walk, 0 Drive
Fence bays
8 bays @ 8' OC
Wood pickets
138 pickets
Post concrete
18 bags
Balanced Post Center Layout: 7 full 8' bays + 2' 6" closing bay.

3 Quote

Rounded to real store units. Edit any unit price to match your local supplier:

MaterialBuy qtyUnit (USD)Cost
4×4×8 ft Pressure-Treated Posts
Ground-contact rated • 7 full 8' bays + 1 custom 2' 6" end bay
10 posts$159.50
2×4×8 ft Pressure-Treated Stringer Rails
3 rails per bay (6 ft fence height)
26 rails$180.70
1×6×6 ft Cedar / PT Fence Pickets
Edge-to-Edge Privacy (+10% cull/waste)
138 pickets$503.70
1-7/8" Ring-Shank Exterior Screw/Nail Box (1,000 ct)
Hot-dipped galvanized / stainless for cedar & ACQ lumber
1 boxes$38.00
50-lb Fast-Setting Post-Hole Concrete Bags
~1.75 bags avg per post hole (10" dia × 30" frost depth)
18 bags$123.30
Heavy-Duty Walk Gate Frame & Latch Kit (42" Opening)
Anti-sag corner brackets, strap hinges & gravity latch
1 kits$49.00
Store materials
$1,054.20
Labor & setup
$1,490.00
Your take-home
$1,876.05
Customer total
$3,288.96
Customer quote
$3,288.96

Sloped fence & gate reference

Post spacing, stepped vs. raked grades, and footing depth.

Formula & waste allowance

Net panel run = Total fence length − Gate openings Bay count = ceil(Net panel run ÷ Post spacing) | Posts = Bays + 1 + Gate posts

Always subtract walk and drive gate widths before dividing by post spacing so every fence bay lands on an even width without a narrow stub section at the end.

Quick sizing chart

Fence stylePost & spacingFooting depthPer 8-ft bay
6-ft wood privacy4×4 PT @ 8 ft30″–36″ deep · 2 bags (80-lb)18 pickets (5.5″) + three 2×4 rails
6-ft board-on-board4×4 or 4×6 @ 6–8 ft36″ deep · 2 bags per post25 overlapping pickets + three rails
8-ft tall privacy4×6 or 6×6 @ 6 ft36″–42″ deep · 3 bags per post14–19 pickets + four 2×4 rails
Walk (42″) & drive (10′) gates4×6 / 6×6 hinge posts36″+ deep · 3 bags per postStrap hinges, latch & compression brace

Worked example: 62-ft fence, 18″ slope drop, one 42″ gate

  1. Net panel run: 62 ft (744″) minus one 42″ walk gate leaves 58′ 6″ (702″) of panel run.
  2. Even bays & posts: 58.5 ft ÷ 8 ft = 7.31 → 8 equal bays using 9 line posts plus 4×6 gate posts.
  3. Step drop per post: 18″ total yard drop ÷ 8 bays = a uniform 2 1/4″ step at every post.
  4. Rails & pickets: 8 bays × 3 rails = 24 rails; 702″ ÷ 5.5″ + 10% waste = 141 cedar pickets.

Jobsite checklist

  • Verify property pins and HOA height rules before augering.
  • Bell post footings below local frost depth and crown concrete top.
  • Use hot-dipped galvanized or stainless ring-shank fasteners on cedar.
  • Hold wood pickets 1.5″–2″ above soil to prevent rot.

Common questions

Should I build a stepped fence or a raked fence on a sloped yard?

Use stepped (stair-step) panels on gentle-to-moderate grades up to roughly 6 to 8 inches of drop per 8-foot bay when using solid wood privacy pickets, keeping picket tops level. Switch to raked (contoured) rails on steeper hills or aluminum/chain-link runs so the bottom rail follows the ground line without leaving large triangular pet gaps.

How deep should 4×4 or 4×6 wood fence posts be set in concrete?

Set fence posts at least one-third to one-half of the above-ground fence height (typically 30 to 36 inches deep for a 6-foot privacy fence, or 6 inches below the local frost line in cold climates), resting on 4 inches of drainage gravel with 1.5 to 2 bags of concrete per post hole.

When should fence post spacing drop from 8 feet on-center to 6 feet on-center?

Standard 6-foot residential wood fences use 8-foot on-center post spacing on sheltered lots. Drop post spacing to 6 feet on-center for 8-foot-tall privacy fences, board-on-board heavy wind zones, or sandy soils to prevent 2×4 horizontal rails from sagging and posts from leaning.

How many 5.5-inch wood fence pickets do I need per 8-foot section?

For standard side-by-side butt-joint privacy fencing using nominal 1×6 (actual 5.5-inch wide) dog-ear pickets, divide 96 inches by 5.5 inches to get 17.45 pickets per 8-foot bay before waste. For overlapping board-on-board privacy fences with a 1.5-inch overlap, plan on approximately 24 to 26 pickets per 8-foot section.

Why do gate hinge posts require heavier lumber and extra concrete?

Walk gates and double drive gates exert continuous cantilevered torque on the hinge post. Upgrading gate posts to 4×6 or 6×6 pressure-treated timbers set 36+ inches deep with 3 bags of concrete prevents gate latch misalignment after seasonal freeze-thaw cycles.