Home › Fence Calculator

Timber, fencing & layout

Fence Calculator

Plan a wood picket or privacy fence. Enter the total length, the post spacing and any gates to see how many posts, rails and pickets to buy.

US & metric · No account needed · Calculations stay in your browser

View the measurement guide
Measurement guideNot to scale
Measurement guide for Fence CalculatorMeasure the entire run and gate opening. Bay spacing and actual gate position affect the takeoff. All geometry is schematic and does not depict a structural design.GateTotal runGate width
Measure the entire run and gate opening. Bay spacing and actual gate position affect the takeoff. View detailed drawings
  1. MeasureEnter your project measurements.
  2. CheckReview units and project assumptions.
  3. ReviewRead the estimate and its limitations.

Your project

Change an input to update the estimate. Check units and product assumptions before ordering.

Units
Fence layout
Gates
Rails and pickets

YOUR MATERIALS

Purchase estimate

Assumes a straight line. If gates are present, clear runs are assumed equally long because gate positions are unknown. Actual post, rail and picket orders must be adjusted for each measured bay, corners and gate framing.

Detailed drawings & current dimensions

Not to scale. Dimension values follow your inputs; the drawing proportions do not. Displayed numbers may be rounded. This is a measurement aid, not an approved construction detail.

Measurement overview

Measurement overviewSchematic measurement view, not to scale. Lettered dimensions correspond to the current input list. Layer heights and repeated items are illustrative, not design details.GateTotal runGate width

Current calculator inputs

Hidden shape inputs are omitted. These values are entered assumptions, not independently verified product data.

Keep this estimate

Export the current estimate as a visual report. Print it or save as PDF. Local saving is optional; no account is required.

Back up or restore saved projects

Data files (JSON) are for restoring editable projects, not for reading or printing. They include saved projects only; save the current estimate first if you want it in the backup.

UNDERSTAND THE ESTIMATE

Gate position changes a post takeoff

The model removes gate width and divides the remaining fence into equal clear runs on either side of the entered gates. It then rounds the number of bays and the number of pickets within each bay.

Before ordering, draw the actual run lengths, corners and gate posts. An offcut in one bay cannot always replace a full picket or rail elsewhere. Gate hardware, special hinge posts and foundations are not included.

Try a checked example

A 100 ft straight line with one 4 ft gate leaves 96 ft of fence. The model splits this equally on both sides of the gate: twelve 8 ft bays, fourteen posts and 36 rails at three per bay. Each bay rounds its pickets separately to give 216. Different gate locations can change these counts.

Show all example inputs
Inputs used in this example
UnitsUS customary
Total fence length (ft)100
Post spacing (ft)8
Number of gates1
Gate width (ft)4
Rails per section3
Picket width (in)5.5
Gap between pickets (in)0
  • Fenced length excluding gate (ft): 96
  • Fence bays: 12
  • Posts: 14
  • Rails: 36
  • Pickets: 216

Illustrative project geometry and stated assumptions; not a product endorsement or construction specification.

Example checked on October 22, 2026. Calculation method and limits.

How to use the fence calculator

  1. Measure the full length of the fence line, including where the gates will go.
  2. Enter the post spacing. Wood fences commonly use 6 to 8 ft (about 1.8 to 2.4 m) between posts.
  3. Enter the number of gates and their width. Gate openings are not filled with rails or pickets.
  4. Enter the rails per section (often 2 for short fences and 3 for 6 ft privacy fences), the picket width and any gap between pickets. Use a gap of 0 for a privacy fence.

The formulas

Fence length = total length − (gates × gate width) Sections = sum of rounded-up bay counts in each clear run (gate positions assumed equal unless measured) Posts = sections + 1 + one extra post per gate Rails = sections × rails per section Pickets = sum of rounded-up pickets needed in each bay (no combining offcuts across bays)

Worked example

A 100 ft fence with one 4 ft gate, posts every 8 ft, 3 rails per section and 5.5 in pickets with no gap:

How many pickets per foot?

Divide 12 by the picket width plus the gap, both in inches. In this calculator’s metric mode, divide 100 by the width plus the gap in centimetres to get pickets per metre.

Picket widthNo gap1 in gap2 in gap3.5 in gap
3.5 in (1×4)3.432.672.181.71
5.5 in (1×6)2.181.851.601.33

To space pickets evenly between two posts, with the same gap at each post, use the picket spacing calculator.

Tips

Calculation basis, defaults & source review

What this model calculates

Subtract gate openings; divide remaining length into assumed equal clear runs. Round bays up for maximum spacing, then count posts, rails and pickets by bay.

Fixed assumptions and limits

  • Gate placement: Equal-length clear runs around gates. Actual positions are unknown; layout is a planning assumption.

Check actual bays, post thickness, gaps, gates and connections. The model does not select safe post sizes, foundations or wind resistance.

Reset inputs for comparison

These are starting values, not a prescription or a record of your current inputs. Your estimate and exported report show the values actually used. Select a matching manufacturer reference or enter exact product data where supported.

ParameterUS reset / unitMetric reset / unitStatus
Total fence length100 ft30 mIllustrative project input; not a prescribed value
Post spacing8 ft2.4 mIllustrative project input; not a prescribed value
Number of gates1 1 Illustrative project input; not a prescribed value
Gate width4 ft1.2 mIllustrative project input; not a prescribed value
Rails per section3 3 Illustrative project input; not a prescribed value
Picket width5.5 in14 cmIllustrative project input; not a prescribed value
Gap between pickets0 in0 cmIllustrative project input; not a prescribed value

Evidence and applicability

  • American Wood Council — decks and DCA 6 resources — Resource index including DCA 6 (2015); not a selected local code. Construction/design context, not validation of fence/deck/stud default quantities or structural adequacy. Review status: primary resource index reviewed.
  • NIST — revised unit conversion factors — International foot definitions; web reference checked 22 October 2026. Unit definitions and conversion factors only; not material density or product coverage. Review status: primary content reviewed.

Arithmetic, model and source-scope review: 22 October 2026. Indexed-only or access-limited sources are identified explicitly. Review does not verify your measurements, every product or every possible input. Independent professional engineering approval has not been obtained.

Sources and technical limitations

The AWC deck resource is only general outdoor-wood context. It is not a fence specification, a post-foundation design or an approval of an entered span.

Frequently asked questions

How far apart should fence posts be?

Wood fence posts are commonly spaced 6 to 8 feet apart. Closer spacing makes a stronger fence, especially in windy areas or for heavy privacy panels.

How many posts do I need for a 100 ft fence?

With posts every 8 ft and no gates, 100 ÷ 8 = 12.5, which rounds up to 13 sections and 14 posts. Each gate adds about one more post.

How deep should fence posts be set?

A common rule of thumb is to bury about one-third of the post's total length. In cold climates the hole should also go below the frost line, so check your local building code.

How many pickets per foot of fence?

Divide 12 by the picket width plus the gap in inches. 5.5 in pickets with no gap need about 2.2 per foot; 3.5 in pickets with 1 in gaps need about 2.7 per foot.

Should pickets have a gap?

Privacy fences are usually built with no gap, or with boards that overlap. Decorative picket fences usually leave a gap of a couple of inches between pickets for a lighter look.

Related calculators

Browse all calculators by task