Wooden fence calculation: boards, posts and rails

Wooden fence calculation: boards, posts and rails

A wooden fence has three parts: posts, rails and boards. Once you know the fence length, height and post spacing, it all takes a couple of minutes to work out. Below is the formula and an example — or let the fence calculator do it: it shows boards, posts, rails and the price and adds the whole kit to the cart.

1. Posts

Posts = fence length ÷ post spacing + 1. Posts usually go every 2–2.5 m. Post length = fence height + about 0.6 m in the ground (more for tall fences or windy spots). 100×100 mm or thicker beams work for posts; protect the buried part with bitumen or set it in concrete.

2. Rails

Two rows of rails are enough for fences up to 1.5 m, three for taller ones. Total length = rows × fence length; pieces = total length ÷ beam length. Rails are usually 50×100 mm beams.

3. Boards

For vertical boards: boards = fence length ÷ (board width + gap). For a dense fence towards the neighbours leave 0–1 cm, for an airy fence 2–5 cm; along a street in Riga, enough for at least 30 % see-through (see below). If a board is twice the fence height, one board gives two pieces — less waste and a lower price.

4. Allowance

Add 5–10% for cuts and rejects, more on uneven ground.

Example: a 20 m fence, 1.8 m high

Posts every 2.5 m, 25×100 mm boards with a 2 cm gap, 10% allowance.

WhatCalculationResult
Posts 100×10020 ÷ 2.5 + 19 pcs, 2.4 m each (2 from one 4.8 m beam)
Rails 50×1003 rows × 20 m × 1.1 ÷ 6 m11 pcs
Boards 25×10020,000 ÷ (100 + 20) × 1.1184 pcs of 1.8 m = 92 boards of 3.6 m

The fence calculator works the same way and picks the lengths with the least waste.

Which timber to choose

A fence stands outdoors, so pressure-treated or antiseptic-treated timber lasts longer. Boards come in 25×50, 25×100, 25×150, 32×100 and 40×100 mm, lengths 3.0, 3.6, 4.2, 4.8 and 6.0 m. The difference between treatments is explained in fresh-sawn, antiseptic or pressure-treated timber. We deliver in Riga and the surrounding area (delivery).

How tall can a fence be

In Riga a street-side fence is up to 1.8 m high and at least 30 % see-through (point 355.3 of the Riga Land Use and Building Regulations). On the street side the fence stands on the red line, and its height and colour match the house and the neighbouring fences. No documents need to be filed with the Riga Building Board for a fence. Other municipalities have their own rules — see your municipality’s land use and building regulations.

30 % see-through means a gap of at least 3/7 of the board width: from 4.3 cm for a 100 mm board, 5.2 cm for 120 mm, 6.5 cm for 150 mm. The fence calculator shows the see-through share for every result.

Frequently asked questions

How many boards per metre of fence?

With 100 mm boards and a 2 cm gap, about 8.3 boards per metre; with no gap, 10.

How far apart should posts be?

Usually 2–2.5 m; wider spacing needs stiffer rails.

How deep should posts go?

About 0.6 m or a third of the post height above ground.

How many rows of rails?

Two for fences up to 1.5 m, three for taller ones.

How tall can a street-side fence be?

In Riga up to 1.8 m and at least 30 % see-through. Elsewhere, check your municipality’s building rules.