Fence calculator
Give it a fence’s length and height, and a gate if it has one. It stands the posts, rails and boards and counts them.
Create an account to print and save what you build.
Building…
| Piece | Size | Length | How many |
|---|---|---|---|
| Post | 4×4 | 6 ft 2 3/8 in | 8 |
| Rail | 2×4 | 7 ft 4 in | 12 |
| Rail | 2×4 | 4 ft | 2 |
| Brace | 2×4 | 5 ft 7 7/8 in | 1 |
| Board | 1×6 | 6 ft | 96 |
In all 2×4: 102 ft · 4×4: 50 ft · 1×6: 576 ft
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.
Other calculators

Rafter calculator
The walls it sits on and where the ridge goes. Rafters or trusses, laid out to the eaves.Open the rafter calculator
Wall framing calculator
A length, a height, and where the doors and windows go. The studs, plates and headers, laid out.Open the wall framing calculator
Stair calculator
The height to climb and the room you have. Risers, treads and stringers that fit.Open the stair calculator
Deck framing calculator
An outline and a height off the ground. Footings, posts, beams, joists and planks.Open the deck framing calculator
Roof truss calculator
A building’s width and length, and a pitch. Every truss, with its chords and webs.Open the roof truss calculator
Shed roof calculator
A width, a length and a pitch. One slope of rafters and the tall wall under it.Open the shed roof calculator
Gambrel roof calculator
A width, a length and its two pitches. Both slopes’ rafters, each side.Open the gambrel roof calculator
Saltbox roof calculator
A width, a length and where the ridge sits. A short steep slope and a long shallow one.Open the saltbox roof calculator
Floor joist calculator
A floor’s width and length. Joists, rim boards and the subfloor.Open the floor joist calculator
Plant spacing calculator
A bed’s size, a plant and how far apart. 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






