sodcalculator

07 Home and DIY

Deck Material Calculator: How to Estimate

Tag 07-2891 · Updated · Standard formula, shown below

Deck boards needed 52 boards
Joists needed
16 joists
Result
Fasteners (screws)
416 screws
Result
Deck length
20 ft
You entered
You enter
Deck length, Deck width, Joist spacing, Deck board width, Gap between boards
You get
Deck boards needed, Joists needed, Fasteners (screws)
Rounding
0 dp

A deck material calculator estimates the amount of lumber, fasteners, and decking boards you need for a new deck based on your deck’s dimensions and chosen materials. You enter the deck length, width, joist spacing, and board size, and the calculator returns the number of decking boards, joists, and fasteners required. This guide explains the math behind the calculator, how to use it, and common pitfalls to avoid.

Formula

The calculator uses two main formulas: one for the number of decking boards and one for the number of joists. For the decking boards, the number of boards across the width is calculated by dividing the deck width (in inches) by the sum of the board width and the gap between boards. Then, the number of rows along the length is calculated by dividing the deck length (in feet) by the length of a single board (assumed 10 feet here, but you can adjust). The total boards are the product of these two numbers, rounded up to the nearest whole board.

For joists, the number of joists is the deck length (in feet) converted to inches, divided by the joist spacing (in inches), plus one for the final joist. This gives the total number of joists needed to support the decking.

Variables:

  • l = deck length (feet)
  • w = deck width (feet)
  • j = joist spacing (inches, typically 12, 16, or 24)
  • b = deck board width (inches, typically 5.5 for a 2×6)
  • g = gap between boards (inches, often 0.125 for composite, 0.25 for wood)

Worked Example

Using the default values from the calculator: deck length = 20 ft, deck width = 12 ft, joist spacing = 16 in, board width = 5.5 in, gap = 0.125 in.

  1. Boards across width: (12 ft * 12 in/ft) / (5.5 in + 0.125 in) = 144 / 5.625 = 25.6 → round up to 26 boards.
  2. Rows along length: 20 ft / 10 ft per board = 2 rows.
  3. Total decking boards: 26 * 2 = 52 boards.
  4. Joists: (20 ft * 12 in/ft) / 16 in + 1 = 240 / 16 + 1 = 15 + 1 = 16 joists.
  5. Fasteners: 52 boards * 8 screws per board = 416 screws.

The calculator returns 52 boards, 16 joists, and 416 screws for these inputs.

How to Use the Calculator

Start by measuring the exact length and width of your proposed deck in feet. Use the actual dimensions of the deck surface, not the footprint of the house. Then, choose your joist spacing based on local building codes and the type of decking material (composite often requires 12-inch spacing, while wood can handle 16 or 24 inches). Enter the width of your decking board (a 2×6 is 5.5 inches wide, a 5/4×6 is 5.5 inches, composite boards vary). Finally, set the gap between boards: 1/8 inch for composite, 1/4 inch for wood to allow for expansion. The calculator will output the number of boards, joists, and screws.

Choosing the Right Materials

The calculator assumes you are using standard dimensional lumber for joists (2×8 or 2×10) and decking boards (2×6 or 5/4×6). If you are using composite decking, the board width is often 5.5 inches but can be wider (6 inches). The gap is critical: composite expands more than wood, so a 1/8-inch gap is standard. For wood, a 1/4-inch gap allows for swelling and prevents warping. The joist spacing also depends on the material: composite manufacturers often require 12-inch spacing to prevent sagging, while wood can span 16 or 24 inches. Check the manufacturer’s guidelines for your specific product.

Common Mistakes and How to Avoid Them

  • Unit mix-ups: Always convert feet to inches when necessary. The calculator does this, but if you are doing manual math, remember 1 ft = 12 in.
  • Forgetting the gap: Ignoring the gap between boards leads to overestimating the number of boards. Conversely, a larger gap means fewer boards.
  • Rounding too early: Round up only at the final step. Rounding intermediate results can lead to significant errors.
  • Not accounting for waste: The calculator gives a theoretical number. You should add 10% for waste due to cuts, knots, and defects.
  • Joist spacing: Using 24-inch spacing when your decking material requires 16-inch can cause sagging. Always verify with local codes.

Cost Considerations

The calculator does not include cost, but you can estimate by multiplying the number of boards by the price per board. Lumber prices vary by region and time, so check your local supplier. For a 20×12 deck, you might need about 52 boards (if using 10-foot lengths). If a 2×6 board costs $15, that’s $780 for decking. Joists (16 pieces) might cost $10 each, adding $160. Fasteners are relatively cheap. Remember to include the cost of concrete footings, posts, beams, and hardware, which are not covered by this calculator. Always get quotes from multiple suppliers.

Safety and Building Codes

Before building, check your local building codes. They dictate joist spacing, beam sizes, and post connections. The calculator provides a general estimate, but a structural engineer or local inspector must approve your design. For example, a deck attached to a house requires proper flashing and ledger board attachment. The height of the deck affects railing requirements. Never guess on structural elements—consult a professional. Also, use galvanized or stainless steel fasteners to prevent corrosion.

Alternatives to Traditional Lumber

If you are considering alternatives to pressure-treated wood, composite decking is popular. It requires less maintenance but is more expensive and often needs 12-inch joist spacing. PVC decking is similar. Aluminum decking is lightweight and fire-resistant but costly. The calculator works for any board width and gap, but the joist spacing must be adjusted accordingly. For a low-maintenance option, consider composite; for a budget option, use pressure-treated wood. Always compare the lifetime cost, not just the upfront price.

Frequently Asked Questions

How much waste should I add to the calculator result? Add 10% to the total boards to account for cuts, mistakes, and defective boards. For diagonal decking, add 15-20% because of more complex cuts.

What is the standard joist spacing for a deck? For wood decking, 16 inches on center is common. For composite, many manufacturers require 12 inches. Check your local code and the decking manufacturer’s specification.

Can I use this calculator for a deck with angles or curves? No, it assumes a rectangular deck. For irregular shapes, break the deck into rectangles, calculate each, and add them together. For curves, you’ll need more waste.

Why does the calculator ask for a gap between boards? The gap prevents water trapping and allows for wood expansion. Without it, boards can warp or rot. The gap also affects the number of boards needed.

Do I need to buy extra fasteners? Yes, add 10% for dropped screws and mistakes. The calculator uses an average of 8 screws per board, but you may need more for wider boards or if using hidden fasteners.

What if my decking boards are longer than 10 feet? The calculator assumes 10-foot boards. If you use 12-foot or 16-foot boards, divide the length by the actual board length to get the number of rows. For a 20-foot deck, 12-foot boards would give 2 rows (with waste), but 16-foot boards would require 2 rows as well (with a 4-foot cutoff).

Related

Formula used
in l | Deck length | ft | 20 | 0 | 100
in w | Deck width | ft | 12 | 0 | 100
in j | Joist spacing | in | 16 | 0 | 24
in b | Deck board width | in | 5.5 | 0 | 12
in g | Gap between boards | in | 0.125 | 0 | 1
out boards | Deck boards needed | boards | ceil(round((w * 12) / (b + g), 6)) * ceil(round(l / (10), 6)) | 0
out joists | Joists needed | joists | ceil(round((l * 12) / j, 6)) + 1 | 0
out fast | Fasteners (screws) | screws | boards * 8 | 0

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

The whole Home and DIY bed →