Fence calculators

18 tools

Fence Calculators

Fencing comes down to length and spacing: posts, rails and panels depend on your run and post spacing. Plan it here before you buy.

Fence CalculatorFence CalculatorA fence calculator that turns your fence length, post spacing and rails per section into a post, section and rail count you can shop from. Miss a post and the run sags; order too many and the extras sit in the yard. Plan corners, gates and concrete from the same numbers, so the materials arrive in one trip and the build starts on time.Fence Post Concrete CalculatorFence Post Concrete CalculatorA fence post concrete calculator that works out how much concrete your posts need, in cubic feet, cubic yards and 60 lb bags, from the post count and the size of each hole. Too little concrete and posts lean within a season; too much and you pay for bags you never open. Enter your hole size and buy the count the job actually takes.Fence Panel CalculatorFence Panel CalculatorA fence panel calculator that turns your total fence length and the width of one panel into the number of pre-made panels to buy, how much length they cover and how many posts you need. Panels come in fixed widths, so a rough count leaves a gap at the end of the run or a panel you cannot use. Enter the length and get a panel count that fits.Fence Picket CalculatorFence Picket CalculatorA fence picket calculator that turns your fence length, the width of one picket and the gap between pickets into the number of pickets or fence boards you need. Count by the picket instead of the foot and the last board lands short, leaving a gap you cannot hide. Enter the real widths and get a count that closes the run.Fence Cost CalculatorFence Cost CalculatorA fence cost calculator that shows the installed cost per linear foot and the total, split into materials and labour, with gates, old-fence removal and a permit as separate line items. Enter the fence length, height and material, then compare all five fence materials side by side. A fence priced on a guess can run short on posts and panels, so price the whole job first.Chain Link Fence CalculatorChain Link Fence CalculatorA chain link fence calculator that turns your fence length and post spacing into the post count, the mesh length and the top rail length you need, then helps you plan the terminal posts, concrete, gates and ties. Mesh and rail run the full length, so a short measure leaves a gap in the run. Enter the length and spacing and get the full materials list.Fence Stain CalculatorFence Stain CalculatorA fence stain calculator that turns your fence length, height and number of coats into the gallons of stain or sealer you need for one face of the fence, then helps you adjust for both sides and your product's coverage. Rough wood drinks stain, so a guess leaves the last section bare. Enter the fence size and coats and get the gallon count.Gate PlannerGate PlannerA gate planner calculator that turns the number of gates and the width of each into the gate posts, hinges and latch sets you need, then helps you plan the opening, the posts and the sag prevention. A gate with the wrong hardware sags on its hinges within months. Enter the gate count and widths and get the hardware list before you build.Wood Fence CalculatorWood Fence CalculatorThis wood fence calculator turns your fence length and height into an exact shopping list: pickets, rails, posts, concrete bags and the materials cost. It counts by the real picket width, so a 1x6 counts as 5.5 in, not 6 in, and it compares cedar, pine and redwood before you commit to a species. Order what the job needs, nothing you will return.Picket Fence CalculatorPicket Fence CalculatorThis picket fence calculator counts exactly how many pickets your fence needs. Enter the fence length, the picket width and the gap between pickets, and get the picket count with waste, plus posts, rails, concrete bags and the materials cost, with pointed, flat-top and dog-ear picket options and a gap comparison built in. The gap is what most people forget, and it changes the count.Privacy Fence CalculatorPrivacy Fence CalculatorThis privacy fence calculator works out exactly what a 6 ft solid privacy fence needs. Enter the fence length and height, choose wood or vinyl, and get the picket or panel count, posts, rails, concrete bags and materials cost, with a wood-vs-vinyl comparison and height options from 4 ft to 8 ft built in. Solid means no gaps, so every board counts and the wind load is real.Home Depot Fence CalculatorHome Depot Fence CalculatorThis Home Depot fence calculator counts a panel fence the way the store sells it. Enter your fence length and this independent estimator counts the 6x8 ft panels, posts and bags of concrete you need, prices them at typical big-box panel prices, and shows an installed cost range, so you can walk into the store with a shopping list instead of a guess. It is not affiliated with or endorsed by The Home Depot.Vinyl Fence CalculatorVinyl Fence CalculatorThis vinyl fence calculator prices a PVC fence honestly: more up front than wood, then almost nothing for decades. Enter your fence length and it counts the panels, posts, rails, caps and concrete bags, prices the materials, shows the installed cost per linear foot, and compares the 20-year cost against a wood fence, so you can see when vinyl pays for itself.Board-on-Board Fence CalculatorBoard-on-Board Fence CalculatorThis board on board fence calculator counts a fence with pickets on both sides of the rails, each one overlapping its neighbour. Total privacy from both sides, and a fence that still looks good when the boards shrink. The counting is the trap: each picket only advances the fence by its width minus the overlap, so a 100 ft fence needs 267 pickets before waste, not the 219 a close-board fence needs.Concrete for Fence Post CalculatorConcrete for Fence Post CalculatorThis how much concrete for fence post calculator works out exactly how much concrete every fence post needs. Enter the hole diameter and depth, the post size, and how many posts you are setting, and get the cubic feet per post and for the whole fence, plus the bag count in 40, 50, 60 and 80 lb bags, with a fast-setting option and a waste allowance for hand-dug holes.How Many Fence Posts CalculatorHow Many Fence Posts CalculatorThis how many fence posts do I need calculator counts exactly how many fence posts your fence needs. Enter the total fence length and your post spacing, add the corners and gates, and get the post count, the section count, and the actual spacing between posts once the bays are evened out, plus a spacing comparison that shows what 6, 8 and 10 ft spacing each cost you in posts.How Much Fence Stain CalculatorHow Much Fence Stain CalculatorThis how much fence stain do I need calculator works out exactly how much fence stain to buy. Enter the fence length and height, whether you are staining one side or both, and how many coats, and get the gallons per coat and in total, plus the one-coat vs two-coat comparison, the number of 5-gallon pails, and a sealer coat if you want one.Fence Post Depth CalculatorFence Post Depth CalculatorThis fence post depth calculator works out how deep a fence post has to go before you dig the first hole, so posts stay upright through frost heave and high wind. Enter the fence height, your local frost line and the soil, and it compares the two rules that govern depth, the one-third rule from the fence height and the frost-line rule from your climate, and tells you which one wins, how long a post to buy, and how much concrete each hole takes.

What you can calculate with fence tools

Fence materials counted to the post, rail, picket and bag. Every calculator on this page shows the formula it uses, adds a waste allowance you can change and works in imperial or metric units. Open any tool below to get a quantity you can order, then use the matching unit converters or browse all construction calculators.

Fence calculators: how to plan and order

A fence estimate depends on the total run, the post spacing and the number of gates and corners. Posts are set at regular intervals, usually 6 to 8 feet apart, with rails between them and pickets or panels on top. The fence calculators count posts, rails, pickets and bags of post-hole concrete, and show how the numbers change if you move the spacing or change the height. Privacy and vinyl fences use the same counts, so you can price the full run, including gates and corners, before you buy a single board.

How a fence estimate is built

Start with the total run length and subtract gate openings. Divide the remaining length by the post spacing and add one for the end post to get the number of line posts, then add extra posts for corners and gates. A 96 foot fence with 8 foot spacing has 12 sections and needs 13 posts. Rails, pickets or panels, screws and post concrete are then counted from the same layout.

Post depth, height and concrete

A fence post should be buried at least one third of its total length, and deeper than the local frost line where freezing is a concern. For a 6 foot privacy fence that means an 8 foot post set about 2 to 2.5 feet deep. A typical hole is 10 to 12 inches wide and takes two to three 50 lb bags of fast-setting concrete. Gate posts carry more load and deserve larger posts and deeper holes.

Before you build

Check property lines, local height limits and whether a permit is required. Many areas limit front-yard fences to 3 or 4 feet and back-yard fences to 6 feet. Call the utility locating service before digging, and decide which side of the fence faces the neighbour, since many rules require the finished side to face outward.

Mistakes that cost the most

Forgetting the extra post at each end and gate, ignoring slope, and setting posts too shallow. A common rule is to bury about a third of the post length, set it in concrete, and check local height limits and property lines before ordering.

What the fence calculators cover

This category covers a whole fence project from the first post to the last coat of stain. The fence calculator counts posts, rails, pickets or panels and concrete for any run length, the post calculator works out spacing and concrete for a single run, and the picket calculator counts boards from picket width and gap. The chain link calculator handles mesh, posts and top rail, the post-hole concrete calculator gives bag counts for any hole size, and the stain and paint calculator works out gallons for one or both sides. The cost calculator adds it all up with prices you enter, so the estimate matches your local supplier.

How to choose the right fence tool

Start with the full fence calculator: enter the total run, subtract the gate openings, set the post spacing and height, and you get the whole shopping list. Then use the post calculator to check a tricky run, such as a slope or a corner, and the picket calculator if you are using a picket width or gap the main tool does not offer. Use the post-hole concrete calculator when your holes are wider or deeper than standard, and the stain calculator last, once the fence is built and you know the total face area. Working in this order means each tool feeds the next one instead of repeating it.

Worked example: a 120 foot privacy fence

A 120 foot privacy fence with posts 8 feet apart has 120 / 8 = 15 sections and needs 16 posts, one more than the number of sections. A 6 foot fence needs 3 rails per section, so 15 x 3 = 45 rails. Pickets 5.5 inches wide with a small gap cover about 5.625 inches each, so 120 x 12 / 5.625 = 256 pickets, and with 10 percent waste that is 282 pickets. Each post hole is 10 inches wide and 2 feet deep and takes about 2 bags of 50 lb fast-setting concrete, so 16 holes need 32 bags. Add one extra post and a few extra pickets for corners and gates.

Common fence mistakes

The first mistake is digging before calling the utility locating service; in the US that is 811, and hitting a buried line is dangerous and expensive. The second is setting posts too shallow: a post should be buried at least one third of its length and below the local frost line, or frost will lift it. The third is ignoring slope: a fence on a slope must be stepped or racked, and a stepped fence needs more pickets and longer posts on the downhill side. Gate posts carry far more load than line posts, so they need larger posts, deeper holes and bracing. Finally, never concrete a post into a hole with no drainage, or water will sit against the wood.

Buying, delivery and metric notes

Fence panels are commonly sold in 6 or 8 foot widths, which sets your post spacing, and an 8 foot post is the usual choice for a 6 foot fence, leaving 2 feet in the ground. Buy posts rated for ground contact and check that boards are straight before you load them, since warped pickets show up on every fence. In metric units, a 1.8 metre fence is the common privacy height, posts are spaced up to 2.4 metres apart and set about 600 mm deep, and a 2.4 metre post leaves 600 mm in the ground. One foot equals 304.8 mm, so an 8 foot panel is 2,438 mm wide.

Frequently asked questions

Wood privacy fences are usually spaced 6 to 8 feet on center. Pre-built panels set the spacing to the panel width, and heavy or tall fences use closer spacing.

A typical 4x4 post in a 10 inch hole uses about two 50 lb bags. Larger posts or deeper holes need more; use the post-hole calculator for exact numbers.

Yes. A privacy fence is a style, not a different count: posts every 8 ft and 3 rails per section on a 6 ft fence. Vinyl panels are pre-made, so use the fence panel calculator for the panel count.

Yes. The counts are brand-neutral, so buy the posts, rails, pickets or panels the calculator gives you at Home Depot or any other supplier.

With 3.5 inch pickets and a small gap, plan for about 3 pickets per linear foot of privacy fence, and about 2 with 5.5 inch pickets. The picket calculator uses your actual picket width and gap.

Pressure-treated pine rated for ground contact is the common choice. Cedar and redwood resist rot naturally, and steel posts last longest but cost more.

Eight feet is common for wood and vinyl privacy fences, six feet for heavier or taller fences, and up to ten feet for chain link.

As a guide, bury about one third of the post length, and below the frost line in cold climates. Local code and soil conditions can change this.

Many areas require a permit or limit height and style, especially at the front of a property. Check with your local building department and any homeowners association.

At 8 foot spacing, 100 / 8 = 12.5 sections, rounded up to 13 sections, and posts are sections plus one, so 14 posts. Add one extra post for each corner and each gate, and use larger posts for gates.

A typical 4x4 post in a 10 inch hole 2 feet deep takes about 2 bags of 50 lb fast-setting concrete. A 12 inch hole 3 feet deep takes about 4 bags, and a 6x6 post needs more. The post-hole calculator gives the exact count for your hole size.

Most areas allow 6 feet in a backyard and 3 to 4 feet in a front yard, but the limit varies by city, county and homeowners association. Check the local rules and any permit requirement before you buy materials, since a fence that is too tall may have to come down.