Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Fence Calculator

estimate posts, rails and boards

  • Free
  • Runs in your browser
  • No account needed

Use this calculator to get a quick materials count. Example: a 20 m straight run with 2.0 m post spacing and 10 cm boards with 0.5 cm gaps gives 10 sections, 11 posts, 10x rails and 191 boards.

Posts
14
Sections (panels)
13
Rails
39
Boards or pickets
250

Gates, corners and slopes change the count. Check any height limits and boundary rules with your local council or building department.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Fence Calculator

This tool estimates the basic materials for a straight fence run. You enter units and currency, total fence length, post spacing, rails per section, board or picket width, gap and an optional board price. The calculator shows sections (panels), posts, rails, boards or pickets, the cost of boards and a Check note. Results update instantly as you type and there is no calculate button. The page runs in your browser and no data is uploaded to our servers; it will work offline after the page loads. You can copy results or share a link that reopens with your numbers. The tool focuses on simple straight runs and does not attempt gate geometry, corner joins or concrete volume calculations, so you handle those by hand.

How to use it

  1. 1Select units (Metric or US) and pick a currency
  2. 2Enter fence length and post spacing, set rails per section
  3. 3Enter board width and gap, and optional price per board
  4. 4View posts, sections, rails, boards, cost and the Check note; copy or share the link
Advertisement

Worked example

Inputs: Units Metric, Fence length 20 m, Post spacing 2.0 m, Rails per section 1, Board width 10 cm, Gap 0.5 cm, Price per board 5 USD. Results: Sections = ceil(20 / 2.0) = 10. Posts = 10 + 1 = 11. Rails = 10 x 1 = 10. Boards = ceil(20 / 0.105) = 191. Cost of boards = 191 x 5 USD = 955 USD. Check: Gates, corners and slopes change the count.

The formula

Sections = length / post spacing, rounded upPosts = sections + 1 for a straight run (add one for each corner or gate post)Rails = sections x rails per sectionBoards = length / (board width + gap), rounded up

Source: MeasureTheBuild fence calculator and methodologyQuikrete concrete mix data sheet (bag yields). Last checked 13 November 2026.

What it is good for

  • Instant results as you type, no calculate button
  • Runs in your browser and works offline after load
  • Copy or share a link that reopens with your inputs
  • Does not calculate gate openings, corner posts or slope adjustments
  • No concrete volume or post-hole bag counts provided
Advertisement

Questions people ask

How does the tool count posts?

The tool makes sections by dividing length by post spacing and rounding up. It then adds one post for a straight run. Add extra posts yourself for gates or corners.

How many boards do I need per metre or foot?

Boards = fence length divided by (board width plus gap), rounded up. For example with a 10 cm board and 0.5 cm gap you use length ÷ 0.105 m, then round up.

How deep should my posts be set?

This calculator does not set post depth. Typical guidance is to embed about one third of the post above ground or follow local frost-depth rules. For detailed standards see ASTM or manufacturer guidance and Quikrete data.

Do gates change the material count?

Yes. Subtract gate opening width from the run for boards, and add two gate posts plus any brace posts. This calculator does not auto-adjust for gates, so edit your run or handle gates manually.

Can I use the tool on slopes or around corners?

You can use it for the straight-line length only. Slopes and corners change section geometry and post counts. Account for extra posts and cutting when you plan those areas.

Is the cost exact?

Cost shown uses the optional price per board you enter and is an estimate. Prices vary by supplier and region. Treat the total as an estimate, check local supplier prices.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement