Deck & Fence Calculators
Boards, joists, posts and pickets for decks and fences.
5 calculators: board feet, fence, deck, deck & fence stain and baluster spacing.
Which deck or fence calculator do I need?
- Building a deck: the deck calculator counts deck boards, joists and screws or hidden clips.
- Building a fence: the fence calculator works out posts, hole size, bags of concrete, rails and pickets.
- Buying lumber by the board foot: the board foot calculator handles hardwood in quarters and construction lumber.
- Railings: the baluster spacing calculator works out how many balusters fit between posts and the even gap that keeps you under the 4 in code limit.
- Staining a deck or fence? The deck stain calculator works out gallons for the floor, railings and both sides of a fence, with coats counted.
Quick numbers
- Set fence posts one third of their length in the ground, plus 6 in of gravel underneath (Quikrete).
- Deck joists are commonly 16 in on center; some composite boards need 12 in.
- One board foot is 144 cubic inches: thickness × width × length in inches ÷ 144.
Common deck and fence projects
| Project | Calculators to use |
|---|---|
| New deck | Deck for boards, joists and fasteners; concrete for the footings; deck stain to finish it |
| Replacing deck boards | Deck, boards only |
| Privacy or picket fence | Fence for posts, concrete, rails and pickets |
| Staining a fence | Deck stain in fence mode, one or both sides |
| Buying hardwood or rough lumber | Board foot |
| Deck railing | Baluster spacing for balusters per section and the marks |
| Deck or porch stairs | Stair for risers, treads and stringers |
Deck and fence guides
- Deck joist spacing, from the IRC span tables
- How deep fence posts should be
- How to calculate board feet
- Stair rise and run
Before you buy
- Check the board's joist spacing. Some composite decking needs joists closer than 16 in; the maker's instructions say.
- Buy lengths that land on joists so every butt joint is supported.
- Decks usually need a permit. Ask your building department before you build, especially for raised decks.
- Call 811 before digging post holes to have buried lines marked.
Common questions
How far apart should deck joists be?
16 inches on center is the most common spacing, and some composite decking needs 12 inches. The allowed span depends on the lumber size and species: see deck joist spacing, from the IRC tables.
How deep should fence posts be?
Quikrete's rule is one third of the post's length in the ground, plus about 6 inches of gravel underneath for drainage. A 6 ft fence uses 9 ft posts with 3 ft in the ground, in a hole about 42 inches deep including the gravel. More in how deep fence posts should be.
How many bags of concrete per fence post?
It depends on the hole and post size. The fence calculator works out the hole and the bags for every post at once.
What is a board foot?
A volume of wood 12 × 12 × 1 inches, or 144 cubic inches. Hardwood is priced by the board foot; the board foot calculator converts your boards.