A fence looks simple from the street — posts, panels, done. The math behind it is less forgiving: one miscounted post or one forgotten bag of concrete turns a weekend project into a second trip to the lumber yard. Here is how to count it all before you buy.
Start with linear feet, not square feet
Fences are measured in linear feet: the total length of the fence line, not the area it encloses. Walk the property line with a tape measure or a measuring wheel and record every straight run separately, noting where gates, corners, and grade changes fall. A 100-foot fence is simply a fence that runs 100 feet along the ground, however many turns it makes.
Measure twice and add a small buffer. Property lines are rarely as straight as they look on a plat map, and slopes add length — a fence running up a hill is longer than its flat footprint. If your measurements come out to 97 feet, plan for 100. Fence panels come in fixed widths, usually 6 or 8 feet, and it is far better to trim one panel than to come up a panel short.
Counting posts: spacing is everything
Posts are the skeleton of the fence, and their spacing decides both the strength and the cost. The standard is one post every 6 to 8 feet, measured center to center. At 8-foot spacing a 100-foot run needs 13 posts (100 / 8 = 12.5, rounded up, plus one for the starting post). At 6-foot spacing the same run needs 17 posts. The shorter the spacing, the stronger the fence — and the higher the materials bill.
The formula is simple: number of posts = (total length / spacing) + 1, rounded up, plus one extra post for every corner and every gate. Corners and gates each need their own post, and gate posts should be set in extra concrete because they carry the weight and the daily swing of the gate. A run with two corners and one gate adds three posts on top of the straight-run count.
Post depth matters as much as spacing. The rule is to bury one-third of the post: a 6-foot fence needs 8-foot posts with 2 feet underground, and an 8-foot fence needs posts with nearly 3 feet buried. In frost country, the hole must reach below the frost line, or the winter freeze will heave the posts out of alignment within a year or two.
Panels, pickets, and rails
Once the posts are counted, the infill math depends on the fence style. Pre-built panels are the fastest option: a 100-foot run at 8-foot panels needs 12.5 panels, so buy 13 and trim the last one to fit. Pickets are the flexible option, but they need more arithmetic. A 6-inch picket with a small gap covers about 6.5 inches of run, so a 100-foot fence needs roughly 185 pickets — and that is before you account for the ones you will cut, split, or reject for warping. Order 10 percent extra.
Horizontal rails run between the posts and hold the pickets or panels. A 6-foot fence typically uses two rails; an 8-foot fence uses three. Multiply the number of rails per section by the number of sections: 13 sections at 2 rails each is 26 rails, each 8 feet long. Buy rails the same length as your panel spacing so every rail spans exactly one section.
Concrete per post: the number everyone forgets
Every post needs concrete, and this is the line item most first-time builders underestimate. A standard post hole is 10 to 12 inches wide and 24 inches deep. That volume works out to roughly one 50-pound bag of concrete mix per post for a 6-foot fence, and closer to two bags per post for an 8-foot fence or for gate posts. For 13 posts on a 100-foot run, that is 13 to 26 bags — a full pallet in the bigger case, and a line item worth $70 to $150 on its own.
Fast-setting concrete mix is the weekend builder's friend: pour the dry mix into the hole, add water, and it sets in under an hour. Standard mix is cheaper per bag but needs a full day to cure before you hang panels. Either way, do not skimp on the concrete. A post set in dirt instead of concrete will lean within a season, and straightening a leaning post means digging the whole thing out and starting over.
Worked example: a 100-foot privacy fence
Here is a complete materials list for a 100-foot run of 6-foot wood privacy fence, with 8-foot post spacing, one gate, and two corners:
- Posts: 100 / 8 = 12.5, rounded up to 13, plus 1 starting post = 14, plus 2 corners and 1 gate post = 17 posts (4x4, 8 feet long)
- Panels: 100 / 8 = 12.5, so 13 pre-built 8-foot panels
- Concrete: 17 posts at 1 bag each = 17 bags of 50-pound fast-setting mix, plus 2 extra for the gate posts = 19 bags
- Fasteners: about 3 pounds of exterior screws or nails, plus brackets if you are hanging panels rather than building in place
- Gravel: 2 to 3 bags of drainage gravel for the bottom of each hole
- Gate hardware: hinges, a latch, and a handle — budget $40 to $80 for a basic set
At typical 2026 prices, that materials list runs roughly $1,500 to $2,500 for wood, depending on the species and your region. Cedar costs more than pressure-treated pine but resists rot far longer without stain. Vinyl panels cost more up front, often $35 to $60 per linear foot installed, but need almost no maintenance. The math is the same either way: count the posts first, and the rest follows.
Where fence budgets go wrong
Three mistakes account for most blown fence budgets. The first is measuring the property line instead of the fence line — if the fence steps in from the line, or follows a slope, the real length is different from the deed. The second is forgetting gates: a gate needs its own posts, hardware, and often a wider opening than planned, and a second gate doubles that cost. The third is ignoring the ground. Rocky soil means rented augers or a hired crew; a steep slope means stepped panels, which use more posts and more cutting time.
Call your local utility locator before you dig — in most of the United States, dialing 811 gets the lines marked for free, and hitting a gas or fiber line is the most expensive mistake on this list. Check local rules too: many towns cap front-yard fences at 3 or 4 feet, require a permit above 6 feet, and require the finished side to face the neighbor. A fence built to the wrong height gets rebuilt, and that doubles the whole project cost.
Frequently asked questions
How many fence posts do I need for 100 feet?
At 8-foot spacing, a 100-foot straight run needs about 14 posts: 100 divided by 8 is 12.5, rounded up to 13 sections, plus one for the starting post. Add one post per corner and per gate, and use 6-foot spacing in windy areas or on slopes. Gate posts should be set in extra concrete because they carry the gate's weight.
How deep should fence posts be buried?
Bury one-third of the post: 2 feet underground for a 6-foot fence, and close to 3 feet for an 8-foot fence. In cold climates, the hole must reach below the frost line or winter freezing will heave the posts out of line. Always put a few inches of gravel at the bottom of the hole for drainage before pouring concrete.
How much concrete do I need per fence post?
Plan on one 50-pound bag of concrete mix per post for a standard 6-foot fence, with a hole about 10 to 12 inches wide and 24 inches deep. Taller fences and gate posts need closer to two bags each. Fast-setting mix costs a little more but lets you hang panels the same day; standard mix is cheaper and needs a full day to cure.
Should I use pre-built panels or individual pickets?
Pre-built panels are faster and give a consistent look, and they are the better choice for a straight, level run. Individual pickets cost less per foot and handle slopes better, because each picket can be cut to follow the grade. If your yard slopes or curves, pickets usually give a cleaner result despite the extra labor.