Fence calculator
How many posts, rails and boards does your fence take? Give it a length, a height and a gate, and take the count to the store.

The plan
Every piece, sized and counted from the sizes you gave.
| Piece | Size | Length | How many |
|---|---|---|---|
| Fence post | 4×4 | 6 ft 3/8 in | 8 |
| Fence footing | 16 in square | 1 ft 2 in | 8 |
| Fence rail | 2×4 | 7 ft 4 in | 12 |
| Fence rail | 2×4 | 3 ft 11 in | 2 |
| Fence brace | 2×4 | 5 ft 7 3/16 in | 1 |
| Fence board | 1×6 | 5 ft 10 in | 96 |
In all 2×4: 102 ft · 4×4: 49 ft · 1×6: 560 ft
hauscraft.app/calculators/fence-calculator/
How it is worked out
- Posts stand at most 8 ft apart, evenly spaced along each stretch, with one at each end.
- Two rails run between the posts, one near the top and one near the bottom.
- Boards stand side by side, one every 6 in.
- A gate hangs between two of the fence’s posts, on two rails of its own with a brace across its back from corner to corner.
- A post’s length here is what shows above the ground. Add what you set in the ground, commonly a third of the post’s height.
We lay out and count the sizes you pick, close enough to plan a weekend and price the lumber. Span tables, your local code and, on a bigger job, an engineer settle what size each board has to be.
Questions
- How many fence posts do I need?
- One at each end and one every 8 ft or less between, with one each side of a gate. The list counts them.
- How many boards for a fence?
- Two for every foot of fence, with 5½ in boards set 6 in on centre.
- How deep do the posts go?
- Your ground and your frost line decide. The lengths here are what stands above the ground.
Talk it over
Ask other owners how they built theirs in Request a build, and when yours is done, show it in Builds and projects: how you went about it, what you’d do again and what you wouldn’t.
From an AI assistant
Add HausCraft’s MCP server, https://hauscraft.app/mcp, to Claude or any assistant that takes one, and ask it for this calculation: it answers with the same list. What it asks, and every calculator.
Other calculators

Rafter calculator
Know how long to cut each rafter. Every board of a gable roof, with its length.Open the rafter calculator
Wall framing calculator
Know how many studs to buy, and where they stand. Every stud, plate and header, around your door or window.Open the wall framing calculator
Stair calculator
Make a stair that fits the height you climb. Even risers, treads and stringers.Open the stair calculator
Deck framing calculator
Know what to buy before you dig a footing. Footings, posts, beams, joists and planks, counted.Open the deck framing calculator
Roof truss calculator
Know how many trusses to order. Every truss, with its chords and webs.Open the roof truss calculator
Shed roof calculator
Know how tall the high wall has to be. One slope of rafters and the wall under it.Open the shed roof calculator
Gambrel roof calculator
Get a barn roof’s two slopes to meet. Both slopes’ rafters, each with its length.Open the gambrel roof calculator
Saltbox roof calculator
See what moving the ridge does to the back slope. A short steep slope and a long shallow one.Open the saltbox roof calculator
Floor joist calculator
Know how many joists a floor takes. Joists, rim boards and the subfloor.Open the floor joist calculator
Plant spacing calculator
Know how many plants fill a bed. Every plant in its place, counted, and the mulch to cover the bed.Open the plant spacing calculator
Vegetables
Tomato24 in apart
Bell pepper15 in apart
Jalapeño15 in apart
Cucumber12 in apart
Zucchini24 in apart
Lettuce6 in apart
Carrot3 in apart
Green bean4 in apart
Pole bean6 in apart
Pea3 in apart
Radish3 in apart
Onion4 in apart
Garlic6 in apart
Potato12 in apart
Sweet corn15 in apart
Spinach4 in apart
Kale15 in apart
Broccoli15 in apart
Cabbage15 in apart
Cauliflower15 in apart
Beet4 in apart
Eggplant18 in apart
Pumpkin36 in apart
Butternut squash36 in apart
Sweet potato12 in apart
Swiss chard8 in apart
Okra15 in apart
Celery8 in apart
Brussels sprouts18 in apart
Asparagus18 in apart
Leek4 in apart
Rhubarb36 in apart
Herbs
Basil12 in apart
Parsley6 in apart
Cilantro6 in apart
Mint12 in apart
Rosemary24 in apart
Thyme6 in apart
Oregano12 in apart
Chives4 in apart
Dill12 in apart
Sage18 in apart
Lavender18 in apart
Fruit
Start from your address
Tell Klaus where your house is. He asks a couple of questions about it and lays it out with you.






