Fence Calculator

A 150-foot, 6-foot-tall wood privacy fence with one gate needs 21 posts, 57 rails, 328 boards and 42 bags of concrete. Enter your own measurements below.

Your fence updates live
Default 8 ft — standard for wood fences up to 6 ft tall. See the spacing table below.
Appears only when you have at least one gate. Drive gates need heavier 6×6 posts.
Materials needed Reviewed 2 Sep 2026

Complete result. No email gate, now or later.

Scale elevation drawing of the fence described by your inputs

FreeNo email required Formulas published Assumptions stated beside every number Reviewed 2 Sep 2026

The five parts of a fence

Every diagram on this site is drawn in the same line weight and palette. Read these once and the calculator inputs will make sense.

Diagram of a fence post set in a concrete footing, showing the buried depth below ground level PostThe upright. One third of its length goes underground, in concrete.
Diagram of three horizontal rails spanning between two fence posts RailHorizontal timber between posts. Two under 4 ft, three from 4 to 8 ft.
Diagram of vertical fence boards with the gap between them marked Board / picketThe vertical face. Boards butt together; pickets leave a gap.
Diagram of a fence gate with a diagonal brace between two gate posts GateNeeds its own pair of posts, so each gate adds one post to the count.
Diagram showing one fence section as the span between two adjacent posts SectionOne span between two posts. Post spacing is the width of a section.
CalculateFence component diagrams. Dimensions follow standard US residential practice — see methodology.

What this estimate does not include

These are real costs on almost every fence project. None of them are in the numbers above.

Post spacing and hole depth by fence height

These are the defaults this calculator uses. Local wind load, frost line and soil conditions override them — check your municipal code before ordering.

Fence heightMax post spacingRails per sectionHole depthPost length needed
3–4 ft8 ft224 in6 ft
5–6 ft8 ft324 in8 ft
7–8 ft6 ft330 in10 ft
Over 8 ft6 ft436 in12 ft

Standard US residential practice. Frost-line depth governs in cold regions and may exceed these figures — see methodology.

Common questions

How far apart should fence posts be?

Eight feet is the standard spacing for wood fences up to six feet tall. Drop to six feet in high-wind areas or for fences taller than six feet. Chain link and wire fences can run wider, up to about ten feet.

How many bags of concrete do I need per fence post?

Two 50 lb bags per post for a 24 inch deep hole, or three bags for a 30 inch hole. This assumes a 4×4 post in a 10 inch diameter hole. A wider hole or a 6×6 gate post needs more.

How deep should a fence post go?

Set the post one third of the fence height into the ground, with a 24 inch minimum. A 6 ft fence needs a 24 inch hole and an 8 ft post. In cold regions the hole must also reach below the frost line, which can be 42–48 inches in the north-east.

What is a linear foot of fence?

A linear foot is one foot measured along the ground where the fence will run. Height is not part of the measurement, which is why fencing is quoted per linear foot regardless of how tall it is. A guide to measuring linear feet is coming.

How much extra material should I order?

Ten percent over the exact count. Boards warp, ends split, and cuts at corners and gates waste material. The order figure beside each result already includes this.

Who writes this

Every page here carries a named author. No staff-writer bylines.

Written by
Farah Jameel
Home improvement project coordinator · Co-owner
Reviewed by
REVIEWER — REPLACE
Second name and credential required before this page ships

Last reviewed 2 September 2026 · Next review 2 March 2027

Related calculators and guides

MethodologyEvery formula and default on this site

More calculators and guides are being added. The fence post calculator and cost guide are next.