Free Fence Calculator Widget
The embedded Fence Calculator takes a fence's length, height, style and gate count and returns posts, rails, pickets or panels, post-hole concrete, hardware, a waste allowance and a DIY-materials vs. professionally-installed cost range. It is a natural fit for fence contractors, fence-panel and lumber suppliers, and home-improvement how-to sites.
It's a single iframe plus a one-line credit link — free, responsive, no registration, and no ads or tracking scripts on your page.
Live preview
The embed adds no ads and no tracking to your page. Prefer a guided version with a preview? Use the embed builder.
Credit line included
The code ends with a one-line credit under the calculator: “Fence Calculator by Build Material Planner”, linking to the full calculator. Please keep it. It's what keeps these calculators free to build and maintain, and it helps other people find them.
Why add it to your page
Fence budgets go wrong because the pickets are only part of the list. Posts, rails, concrete and gate hardware all add up, so the calculator lists them together and sets a DIY figure beside an installed one, which helps a reader decide how to do the job.
What your visitors get
A 100 ft wood privacy fence, 6 ft tall, with one 4 ft gate comes back as:
- Fence posts: 14 posts
- Concrete (post-hole): 28 60 lb bags
- Rails: 40 rails
- Pickets/boards: 231 pickets
- Exterior screws: 3 boxes
- Gate hardware set (hinges + latch): 1 set
- DIY materials estimate: $1,562 – $2,598
Where the Fence Calculator widget fits
- A fence contractor's "planning your fence" or quote-request page
- A "how far apart should fence posts be" or "fence cost per foot" article
- A lumber, fence-panel or hardware supplier's product page
How to add it to your site
Copy the code above and paste it where the calculator should appear. See the install notes for WordPress, Squarespace, Wix and Webflow, plus sizing and common questions.
Questions from site owners
Does it handle gates and post spacing?
Yes — each gate opening becomes its own section with an extra post, and post spacing is adjustable (default 8 ft) under "Advanced assumptions".
Does it cover vinyl as well as wood?
Yes — wood privacy, spaced wood picket and vinyl panel styles, each with its own material list and pricing.
Does it include the post-hole concrete?
Yes. It sizes each hole at 10 in wide and 24 in deep around a 4 in post, then converts that volume into bags of concrete.
Just need to run the numbers yourself? Use the full Fence Calculator — it has the formulas, a worked example and an FAQ. Also for your readers: Baluster Calculator widget, Concrete Slab Calculator widget. Or see all embeddable calculators.