Skip to content

Fence Calculator

Estimate the number of posts, rails, and pickets needed for a fence based on its length, post spacing, and picket size.

Fence Calculator tool

Loading...

Example

Input: 100 ft fence, 6 ft high, posts every 8 ft, rails on Auto, 3.5 in pickets with 1.75 in gaps

Result: 14 posts (8 ft long, 2 ft in the ground), 39 rails (300 linear ft), 229 pickets, 13 sections

100 / 8 = 12.5, so 13 sections need 14 posts; a 6 ft fence gets 3 rails per section, so 13 x 3 = 39 rails; pickets = 1,200 in / (3.5 + 1.75) in = 228.6, rounded up to 229.

  1. Enter the total linear footage of your fence line and the fence height.
  2. Set the post spacing, typically 6 to 8 feet, and leave rails on Auto or choose 2, 3 or 4 per section.
  3. Enter the picket width and the gap between pickets, using a gap of 0 for a solid privacy fence.
  4. Turn on the gate option if your fence includes a 4-foot gate opening.
  5. Review the materials list showing post count and length, sections, rails, total rail length, pickets, and fence face area.

Estimating Posts, Rails and Pickets for a Fence

For a fence, you need one post per section plus one extra, a set of rails for each section, and enough pickets to fill the length. A 100 ft fence with posts every 8 ft has 13 sections, so it needs 14 posts. A 6 ft fence gets 3 rails per section, so that is 39 rails, and 3.5 in pickets with 1.75 in gaps need 229 pickets.

Posts come from dividing the length by the post spacing and rounding up, plus one for the far end. Spacing of 6 to 8 ft is common, since standard rails come in 8 ft lengths. Closer posts make a stiffer fence. The height sets the rail count on Auto: 2 rails up to 4 ft, 3 rails up to 6 ft and 4 rails above that, which helps stop tall pickets from warping. You can also pick a rail count yourself. The total rail length is the number of rails per section times the fenced length.

Pickets are the length in inches divided by the picket width plus the gap. Set the gap to 0 for a solid privacy fence. Board-on-board styles need extra, so plan those by hand. Turn on the gate option to leave a 4 ft opening. The opening comes out of the rails and pickets, and the tool adds a post so the gate has one on each side. Use sturdier posts there, since they carry the gate. The height also sets the post length. Each post goes one third of the fence height into the ground, but at least 2 ft, so a 6 ft fence needs 8 ft posts. You also get the face area of the fence for buying stain or paint.

Posts are usually set in concrete. The Concrete Calculator in column mode works out the mix for all the holes at once. For a fence line measured in meters, convert it first with the Length Converter.

Formula / How It Works

Fenced Length = Fence Length - Gate Width | Sections = Fenced Length / Post Spacing, rounded up | Posts = Sections + 1 (+1 with a gate) | Rails = Sections x Rails per Section | Pickets = Fenced Length x 12 / (Picket Width + Gap), rounded up | Post Length = Height + max(2 ft, Height / 3)

Frequently Asked Questions

With posts every 8 ft, 100 ft makes 12.5 sections, which rounds up to 13. That needs 14 posts, one for each section plus the end post. At 6 ft spacing, you need 17 sections and 18 posts. Add a post for each corner if your fence turns, since the tool assumes a straight run.
A common rule of thumb is to bury about one third of the post, and at least 2 ft. So a 6 ft fence often uses 8 ft posts set 2 ft deep, or longer posts in soft soil or windy areas. The calculator uses one third of the fence height, with a 2 ft minimum, to suggest a post length. In cold areas, dig below the frost line. Check local codes and call to locate buried lines before you dig.
Divide 12 inches by the picket width plus the gap. For 3.5 in pickets with 1.75 in gaps, that is 12 / 5.25 = 2.3 pickets per foot. For a solid fence of 5.5 in boards with no gap, it is about 2.2 per foot. Buy a few extra for splits and bad boards.
Two rails are fine for fences up to about 4 ft tall. For 5 to 6 ft privacy fences, three rails keep long pickets straight and make the fence stronger in wind. On Auto, the calculator picks the rail count from the fence height. You can also choose 2, 3 or 4 rails yourself, and it multiplies them by the number of sections.

Related Tools

Length Converter

Convert between meters, feet, inches, centimeters, kilometers, miles, yards, and nautical miles instantly.

Unit Converters

Concrete Calculator

Calculate cubic yards or meters of concrete needed for slabs, footings, and columns with optional waste factor.

Construction and Home

Paint Calculator

Estimate gallons or liters of paint needed per room based on wall dimensions, coats, and door or window deductions.

Construction and Home

Area Converter

Convert between square feet, square meters, acres, hectares, square kilometers, and square miles.

Unit Converters

Tile Calculator

Calculate the number of tiles needed for any floor or wall area, accounting for grout gaps and waste percentage.

Construction and Home

Wallpaper Calculator

Calculate the number of wallpaper rolls needed for a room with pattern repeat and door or window deductions.

Construction and Home