Works on this device
Garden Structure Calculator
Count the parts for things that you build in a garden: posts for a fence, a trellis or netting, boards for a raised bed, edging, and the timber of a pergola. The tool counts and measures. It does not size posts, boards or footings.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to build, for example Fence, trellis or netting: posts and spacing.
- Type the sizes. A length can be typed as feet and inches, such as 12 ft 6 in, or in metres.
- Some boxes start empty, because the figure comes from your product, your plan or your builder. Choose Try an example to see how the tool works.
- Choose Calculate. Open More options to add prices.
What each option does
- Fence, trellis or netting: list the straight runs between ends, corners and gates. You get the posts, the even distance between them, rails or wire, netting area and the length of a post.
- Raised bed: boards to buy with a cut list, corner posts and the space inside for soil.
- Edging for a bed or a path: the length of edging, the pieces or rolls, and the stakes.
- Pergola or arbour: counts and lengths of posts, beams, rafters and top slats.
The formulas
- Bays in a run of fence = run length ÷ largest distance between posts, rounded up. A bay is the space between two posts.
- Even distance between posts = run length ÷ bays.
- Posts = (bays − 1) for each run, plus the posts at the ends and corners, plus 1 for each gate opening between two runs. Runs in one line share a post where they meet, so they have runs + 1 such posts. A closed loop has one for each run.
- Boards one above the other in a raised bed = height of the sides ÷ width of one board, rounded up.
- Short pieces of a raised bed = outside width − 2 × board thickness. They fit between the long sides.
- Space for soil = inside length × inside width × (height of the sides − gap at the top).
- Edging round a rectangle = 2 × (length + width). Round a circle = π × diameter.
- Rafters of a pergola = length ÷ largest distance between rafters, rounded up, plus 1. Posts on each side = length ÷ largest distance between posts, rounded up, plus 1.
Worked examples
A fence of one run of 100 ft, with at most 8 ft between posts. Bays = 100 ÷ 8 = 12.5, so 13. The posts are 100 ÷ 13 = 7.69 ft apart. Posts = 12 inside the run + 2 at the ends = 14.
A raised bed 8 ft by 4 ft with sides 12 inches high, from boards 6 inches wide, 2 inches thick and 8 ft long. The sides are 2 boards high. You need 4 long pieces of 8 ft and 4 short pieces of 44 inches (3.667 ft). Two short pieces come from one board, so you buy 6 boards. With soil to 1 inch below the top, the space for soil is 92 in × 44 in × 11 in = 25.77 cubic feet.
Edging round a bed 10 ft by 4 ft. Length = 2 × (10 + 4) = 28 ft. Rolls of 20 ft: 28 ÷ 20 = 1.4, so 2 rolls.
A pergola 12 ft by 10 ft with an overhang of 12 inches. With at most 16 inches between rafters: 144 ÷ 16 = 9, plus 1 = 10 rafters, each 12 ft long. With at most 8 ft between posts: 12 ÷ 8 = 1.5, rounded up to 2, plus 1 = 3 posts on each side, 6 in all. The beams are 14 ft long.
Limits you should know
- This tool counts parts. It is not a structural design. It does not say how thick a post or a board must be, how deep a post must go, or how far a beam or a rail may span.
- Wind, soil, frost and building rules differ by place. Ask a builder or your local building office for anything that must carry a load, hold back soil or stand in wind. This page is not professional advice.
- It holds no post spacing, no post depth and no price. The example values that Try an example fills in are for trying the tool. They are not recommendations.
- The cut list of a raised bed does not count the width of the saw cut, and it does not join boards end to end.
- A fence on a slope, a curved fence and a stepped fence are not planned. Measure each straight run along the ground.
- Concrete for post holes, fence boards and pickets, stain, pavers for a patio and the volume of a pond are worked out by other tools on this site.