sodcalculator

07 Home and DIY

Deck Board Layout Calculator: How to Plan

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

Number of boards 22 boards
Total board length
264.0 ft
Result
Number of joists
10 joists
Result
Deck length
12 ft
You entered
You enter
Deck length, Deck width, Board width, Gap between boards, Joist spacing (OC)
You get
Number of boards, Total board length, Number of joists
Rounding
0 dp · 1 dp

A deck board layout calculator works out how many deck boards you need for a given deck area, the spacing between boards, and the number of joists or supports required. You enter the deck length and width, board width, and desired gap, and it returns the number of boards, total board length, and suggested joist spacing. This page explains the math behind the calculator, how to use it correctly, and common pitfalls to avoid.

Formula

The calculator uses two basic formulas:

  • Number of boards = ceil( (deck width in inches) / (board width + gap) )
  • Total board length = number of boards × deck length
  • Number of joists = ceil( (deck length in inches) / (joist spacing) ) + 1

Variables:

  • Deck length (l) – the long dimension of the deck, in feet.
  • Deck width (w) – the dimension across which boards run, in feet.
  • Board width (bw) – the actual width of one deck board, in inches (e.g., 5.5″ for a 2×6).
  • Gap (gap) – the space between boards, in inches (typically 1/8″ to 1/4″).
  • Joist spacing (j) – the on-center distance between joists, in inches (usually 12, 16, or 24).

The ceil() function rounds up to the nearest whole number because you cannot buy a fraction of a board or joist.

Worked Example

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

  1. Convert deck width to inches: 10 ft × 12 = 120 in.
  2. Add board width and gap: 5.5 + 0.125 = 5.625 in.
  3. Divide: 120 / 5.625 = 21.333… → round up to 22 boards.
  4. Total board length: 22 × 12 ft = 264 ft.
  5. Joists: deck length in inches = 12 × 12 = 144 in. Divide by 16 = 9, round up to 9, then add 1 = 10 joists.

The calculator shows 22 boards, 264 ft total, and 10 joists.

How to Choose Board Width and Gap

The most common deck board sizes are 2×4 (actual width 3.5″), 2×6 (5.5″), and 5/4×6 (5.5″). Composite boards often come in 5.5″ or 7.25″ widths. The gap between boards depends on the material:

  • Pressure-treated pine: 1/8″ to 1/4″ gap to allow for shrinkage and expansion.
  • Cedar and redwood: 1/8″ gap is typical.
  • Composite decking: 1/8″ to 3/16″ gap, but follow the manufacturer’s recommendation.
  • If boards are wet or green, use a larger gap because they will shrink.

For a deck that runs diagonally, you will need more boards because the width of the deck is measured perpendicular to the boards, but the length of each board is longer than the deck length. The calculator assumes boards run perpendicular to the joists and parallel to the deck length.

Common Mistakes and How to Avoid Them

  • Mixing units: Always convert feet to inches before dividing. A common error is dividing feet by inches without conversion.
  • Forgetting the gap: If you ignore the gap, you will undercount boards. The gap adds up over a wide deck.
  • Rounding down: You must round up to the nearest whole board. Even if the calculation says 21.1 boards, you need 22.
  • Not accounting for waste: The calculator gives a theoretical minimum. Add 5–10% for cuts, mistakes, and defects.
  • Joist spacing: The number of joists is the number of spaces plus one. For a 12 ft deck with 16″ spacing, you have 9 spaces, but 10 joists.

Limitations of the Calculator

This calculator assumes a rectangular deck with straight, parallel boards. It does not account for:

  • Angled cuts, notches, or curved edges.
  • Board lengths shorter than the deck length – you may need to stagger joints, which adds waste.
  • Decking patterns like herringbone or diagonal, which require more cuts and material.
  • Rim joists or blocking – those are additional structural members not counted here.

Always check local building codes for joist spacing requirements, especially for composite decking, which often requires 12″ spacing for perpendicular installation.

Cost and Material Estimation

Once you have the number of boards, multiply by the price per board to get a rough material cost. For example, if a 12 ft 2×6 board costs $8, then 22 boards would cost $176. Add 10% for waste, so about $194. Remember to include fasteners, joist hangers, and concrete footings in your budget. Prices vary widely by region and material, so check local lumber yards or home centers.

Safety and Structural Considerations

Deck construction is structural work. Incorrect joist spacing or board attachment can lead to sagging or collapse. Always follow the International Residential Code (IRC) or your local code. For residential decks, joist spacing is typically 16″ on center for 2×6 joists, but 12″ for composite decking. Use galvanized or stainless steel screws or hidden fasteners designed for decking. Never use nails for deck boards – they can work loose over time. If you are unsure about any structural aspect, consult a licensed contractor or structural engineer.

Frequently Asked Questions

How much gap should I leave between deck boards?

For pressure-treated lumber, 1/8″ to 1/4″ is standard. For composite, follow the manufacturer’s recommendation, usually 1/8″ to 3/16″. If boards are wet, use a larger gap because they will shrink.

Do I need to add waste to the calculator result?

Yes, add 5–10% for cuts, mistakes, and defects. For diagonal installations, add 15–20%.

What is the difference between on-center and actual joist spacing?

On-center (OC) is the distance from the center of one joist to the center of the next. It is the standard way to specify spacing. The actual gap between joists is slightly less because of the joist thickness.

Can I use this calculator for composite decking?

Yes, but check the manufacturer’s recommended joist spacing and gap. Composite boards often require 12″ OC spacing, not 16″.

How do I measure the deck width if it is not a perfect rectangle?

Break the deck into rectangular sections, calculate each separately, and add the results. For irregular shapes, it is safer to draw a scale plan and count boards manually.

What is the best board width for a deck?

5.5″ (2×6) is the most common because it provides good strength and coverage. 3.5″ (2×4) is used for smaller decks or as trim. Wider boards like 7.25″ can be used but may require more support.

Related

Formula used
in l | Deck length | ft | 12 | 1 | 100
in w | Deck width | ft | 10 | 1 | 100
in bw | Board width | in | 5.5 | 1 | 12
in gap | Gap between boards | in | 0.125 | 0 | 1
in j | Joist spacing (OC) | in | 16 | 6 | 48
out boards | Number of boards | boards | ceil(w * 12 / (bw + gap)) | 0
out total_ft | Total board length | ft | ceil(w * 12 / (bw + gap)) * l | 1
out joists | Number of joists | joists | ceil(l * 12 / j) + 1 | 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 →