A free deck board calculator works out how many deck boards you need for a rectangular deck when you enter the deck length, deck width, board width, and the gap between boards. It returns the number of boards required, the total linear feet of lumber, and the total square footage of decking. This article explains the math behind the calculator, how to use it correctly, and the common mistakes that lead to under- or over-ordering.
Formula
The core formula counts how many boards fit across the deck width, then multiplies by the deck length to get total lumber. In words:
- Convert deck width from feet to inches: Width (in) = Deck width (ft) × 12
- Divide by the combined board width plus gap: Number of boards = ⌈Width (in) / (Board width (in) + Gap (in))⌉
- Multiply by deck length to get linear feet: Total linear feet = Number of boards × Deck length (ft)
Variables:
- l = deck length in feet (the direction the boards run)
- w = deck width in feet (the direction you count boards across)
- bw = actual board width in inches (not the nominal size)
- gap = spacing between boards in inches (typically 1/8 inch for composite, 1/4 inch for wood)
The ceiling function (⌈ ⌉) rounds up to the next whole board because you cannot buy a fraction of a board. The result is the minimum number of boards needed for a straight, rectangular layout with no waste.
Worked Example
Using the default values from the calculator above: deck length 20 ft, deck width 12 ft, board width 5.5 in, gap 0.125 in.
- Deck width in inches: 12 ft × 12 = 144 in
- Board width plus gap: 5.5 + 0.125 = 5.625 in
- Number of boards: 144 / 5.625 = 25.6 → round up to 26 boards
- Linear feet of lumber: 26 × 20 = 520 linear feet
- Deck area: 20 × 12 = 240 ft²
The calculator shows 26 boards, 520 linear feet, and 240 ft². That matches the manual calculation exactly.
When to Use This Calculator
Use this calculator when you are planning a new deck, replacing decking boards, or estimating material for a quote. It works for any straight, rectangular deck where boards run parallel to one side. Common scenarios:
- Building a ground-level deck with pressure-treated lumber
- Replacing old wood decking with composite boards
- Estimating how much Ipe or cedar you need for a custom project
- Getting a rough material list before talking to a lumberyard
The calculator assumes the deck is a simple rectangle and that you lay boards perpendicular to the joists. If your deck has angles, curves, or a diagonal pattern, the result will be low because you need extra boards for cutting and fitting.
Choosing the Right Board Width and Gap
The most common mistake is using the nominal board size instead of the actual size. A 2×6 board is called a 2×6, but it actually measures 1.5 inches thick and 5.5 inches wide. A 5/4×6 deck board (often used for decking) is actually 5.5 inches wide as well. Composite boards come in various widths, typically 5.5 or 7.25 inches. Always measure the actual board before calculating.
The gap between boards matters more than most people think. For wood decking, a 1/4-inch gap is typical to allow for expansion and drying. For composite, 1/8 inch is common. If you use a smaller gap, you need more boards; a larger gap means fewer boards but more space for debris and small feet to catch.
Common Problems and How to Avoid Them
Several issues lead to underestimating lumber:
- Not accounting for waste: The calculator gives a perfect-fit number. In reality, you need 5–10% extra for cuts, knots, warped boards, and mistakes. For a 240 ft² deck, add 12–24 ft² of extra material.
- Forgetting the rim board and fascia: The perimeter of the deck needs trim pieces that are not included in the board count.
- Mixing units: If you measure the deck in feet and the board width in inches, you must convert one to the other. The calculator does this automatically, but doing it by hand often leads to errors.
- Rounding too early: If you round the number of boards down to 25 in the example, you would be short by one board. Always round up.
Cost and Waste Considerations
Deck board prices vary widely by material and region. Pressure-treated pine is the least expensive, while cedar, redwood, and tropical hardwoods cost more. Composite and PVC decking are typically the most expensive but require less maintenance. The calculator gives you the quantity, so you can multiply by the local price per board to get a rough material cost.
For waste, a common rule of thumb is to add 10% for straight rectangular decks and 15–20% for decks with angles or curves. Some contractors order 10% extra for wood and 5% for composite because composite boards are often sold in exact lengths and are more uniform. If you are ordering from a lumberyard, ask about their return policy for unused boards; some allow returns, others do not.
Limitations of the Formula
This calculator is a planning tool, not a substitute for a professional takeoff. It assumes:
- The deck is a perfect rectangle with no notches, bays, or irregular corners.
- Boards are laid perpendicular to the joists with no diagonal pattern.
- All boards are the same width and are installed with a uniform gap.
- There are no obstructions like posts, stairs, or built-in planters that require cutting boards.
If your deck has any of these features, you need to add extra boards for cutting and fitting. For complex layouts, a professional deck builder or lumberyard estimator can provide a more accurate count.
Frequently Asked Questions
How many deck boards do I need for a 12×12 deck?
Using the default values (board width 5.5 in, gap 0.125 in), a 12×12 deck needs 26 boards. The calculation: 12 ft width × 12 = 144 in; 144 / 5.625 = 25.6, round up to 26. Each board is 12 ft long, so you need 26 boards of 12 ft, or 312 linear feet. Add 10% waste → about 29 boards.
What is the difference between nominal and actual board width?
Nominal size is the name of the lumber (e.g., 2×6), but actual size is what you measure after planing and drying. A 2×6 is actually 1.5 in × 5.5 in. For decking, 5/4×6 is actually 1 in × 5.5 in. Always use the actual width in the calculator, not the nominal size.
Should I use a 1/8 or 1/4 inch gap between deck boards?
It depends on the material. Wood decking expands and contracts with moisture, so a 1/4 in gap is common to prevent cupping and to allow water to drain. Composite decking expands and contracts with temperature, and most manufacturers recommend 1/8 in gap. Check the manufacturer’s instructions for your specific product.
How much extra decking should I buy?
Add 10% for a simple rectangular deck. For decks with angles, curves, or a diagonal pattern, add 15–20%. This covers cuts, defective boards, and mistakes. If you are using a material that is hard to match (e.g., tropical hardwood), consider buying extra and storing it for future repairs.
Does the calculator work for composite decking?
Yes, it works the same way. Just enter the actual width of the composite board (often 5.5 in or 7.25 in) and the recommended gap (usually 0.125 in). Composite boards are often sold in fixed lengths (12, 16, 20 ft), so you may need to adjust the number of boards to minimize waste by choosing a length that divides the deck length evenly.
Why is my calculated number different from what the lumberyard gives me?
Lumberyards often add waste and factor in the actual board lengths available. They may also account for the fact that you cannot use a 16 ft board to cover a 20 ft deck without a splice. The calculator gives the theoretical minimum; the lumberyard gives a practical order. Always confirm with the supplier.
Related
Formula used
in l | Deck length | ft | 20 | 0 | 1000 in w | Deck width | ft | 12 | 0 | 1000 in bw | Board width (actual) | in | 5.5 | 0.5 | 12 in gap | Gap between boards | in | 0.125 | 0 | 1 out boards | Number of boards | pieces | ceil(round((w * 12) / (bw + gap), 6)) | 0 out linft | Linear feet of lumber | ft | boards * l | 0 out sqft | Deck area | ft² | l * w | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More in this bed
- Calculate Lumber Requirements for a Fence14
- How to Calculate Deck Paint Needed300.0 sq ft
- How to Turn a Wood Fence Panel into a Gate
- Wood Fence to Vinyl: Conversion Guide
- Mass Retirement Board Calculator: How It Works18,000 $
- Wood Defender Stain Calculator: How Much Do You Need?10.00 gal