Skip to content
CostToUpgrade
Decks & Fences

Fence Calculator

Plan your fence materials. Enter the total run, your post spacing, and the number of gates to get the posts and panels required, plus an estimated cost based on price per foot.

Updated June 2026 · Free · No sign-up

Your project

Layout

Most wood and vinyl fences use 6–8 ft spacing.

Each gate adds a post.

Pricing

Installed fencing commonly runs $15–$40 per linear foot.

Estimate

$3,750.00

Estimated installed cost

Posts needed
21posts
Panels / sections
19sections

Estimates are guidance only and exclude tax, labor, and site conditions unless stated. Confirm with a local pro.

How it's calculated

No black boxes — here is the exact math behind your estimate, so you can check it or adapt it for your own quote.

  1. 1Sections = ⌈ length ÷ post spacing ⌉
  2. 2Posts = sections + 1 + gates
  3. 3Cost = length × price per foot

Worked example

A 150 ft fence with 8 ft post spacing and 1 gate.

Inputs

Fence length
150 ft
Post spacing
8 ft
Gates
1
Price per foot
25 $/ft

Result

Estimated installed cost
$3,750.00
Posts needed
21 posts
Panels / sections
19 sections
Get real quotes

Compare local pros for a fence

An estimate gets you a budget. A few competing quotes get you the real price. Tell us about the job and we'll help you find vetted contractors nearby.

Get matched

Fence cost by state

Material and labor prices vary by region. See a localized estimate for a fence:

Frequently asked questions

How far apart should fence posts be?
Six to eight feet is standard for most residential fences. Closer spacing adds strength and material; pre-made panels usually fix the spacing for you.
Does the gate count change the post total?
Yes. Each gate opening needs its own pair of posts, so we add one extra post per gate on top of the run. Heavy gates may need reinforced posts.
Is labor included?
The price-per-foot estimate can represent materials only or installed cost, depending on the figure you enter. Get local quotes to confirm whether labor and post setting are included.