Fence & Deck Calculators
Free fence and deck calculators for posts, panels, boards, screws, balusters and stain.
All fence & deck calculators
- Fence CalculatorFence material calculator
- Deck CalculatorDeck material calculator
- Deck Stain CalculatorFence stain calculator
- Baluster Spacing CalculatorSpindle spacing calculator
- Vinyl Fence CalculatorVinyl fence material calculator
- Chain Link Fence CalculatorChain link fence material calculator
- Deck Screw CalculatorHow many deck screws per board
Our free fence and deck calculators turn a tape-measure reading into a shopping list. Enter the length of a fence line or the size of a deck, and each tool tells you how many posts, rails, boards, balusters, screws or gallons of stain to buy. Start with the fence calculator for wood fences or the deck calculator for decking and framing, then use the specialist tools below for the details.
Fence Calculators
A fence is counted by its length, its height and its post spacing. These tools handle the three most common fence types in the US.
- Fence calculator: posts, rails, pickets and bags of concrete for a wood fence of any length and height.
- Vinyl fence calculator: panels and posts for vinyl privacy or picket fencing, based on the panel width.
- Chain link fence calculator: rolls of fabric, posts and top rail for any fence height.
Every fence starts with the post holes. The post hole concrete calculator works out the concrete per hole, and our guides on fence post spacing and how deep fence post holes should be cover the layout.
Deck Calculators
A deck has three layers to plan: the framing, the decking boards and the railing. These tools cover each one.
- Deck calculator: decking boards, rim and ledger boards, and screws or hidden fasteners for a rectangular deck.
- Deck screw calculator: how many deck screws or hidden fasteners you need, rounded up to whole boxes.
- Baluster spacing calculator: how many balusters fit between two posts and the exact even gap, kept under the 4 in limit.
- Deck stain calculator: gallons of stain or sealer for the deck floor, railings and stairs, or for a fence.
For the footings under the posts, use the concrete footing calculator. For the steps, use the stair stringer calculator. Our deck board spacing guide explains the gap to leave between boards.
What It Will Cost
Once you know the size, the cost tools give you a budget to test quotes against:
- Fence cost calculator: installed price for chain link, wood, vinyl, aluminum or wrought iron, plus gates and removal.
- Deck cost calculator: installed price for pressure-treated, cedar, composite or PVC decking, plus railing and stairs.
Which Calculator Do I Need?
| If you want to know… | Use |
|---|---|
| How many posts and pickets for a wood fence | Fence calculator |
| How many vinyl panels to order | Vinyl fence calculator |
| How many rolls of chain link fabric | Chain link fence calculator |
| How many deck boards to buy | Deck calculator |
| How many boxes of deck screws | Deck screw calculator |
| How far apart to put balusters | Baluster spacing calculator |
| How much stain to buy | Deck stain calculator |
Measuring Tips for Fences and Decks
- Measure the fence line on the ground with a long tape or a measuring wheel, and mark the corners and gates. Treat each straight run as its own section.
- Find your property line before you set a fence post, and call 811 so buried utility lines are marked before you dig.
- Measure a deck by its finished outside size, and note which sides will need a railing.
- Check the rules. Many towns limit fence height and require permits for decks that are attached to the house or more than 30 in above the ground. Our guide to baluster spacing code sums up the railing rules.
- Buy a little extra. Each calculator includes a waste setting, because boards split, posts get cut short and a few screws always go missing.
Frequently Asked Questions
How do I calculate how much fencing I need?
Measure the total length of the fence line in feet. Divide by the post spacing, usually 6 to 8 ft, to get the number of sections, and add one post. The fence calculator then counts the rails, pickets and concrete for you.
How do I calculate decking boards?
Divide the deck width by the board width plus the gap to get the number of rows, then work out how many boards each row needs from the deck length and the board length. The deck calculator does this and adds waste.
What is the 4 inch rule for balusters?
Residential codes based on the IRC require that a 4 in sphere cannot pass through the gaps in a guard. That keeps young children from slipping through. Use the baluster spacing calculator to keep every gap equal and under 4 in.
Are these fence and deck calculators free?
Yes. Every calculator on SquareCalcs is free, works in US or metric units and needs no sign-up.