The Build Calculator

Deck Calculator

Deck boards = rows (deck width ÷ board width plus gap) × deck length, plus 10% waste. Enter your deck's length and width, board size, gap and joist spacing to get the 16 ft deck boards, linear feet, joists, hangers, screws and footings for your deck build, plus a decking cost estimate.

The direction the deck boards run

Deck materials (incl. 10% waste)
— deck boards
—
sq ft of deck
—
linear ft decking
—
joists
—
screws
—
joist hangers
—
footings (8 ft spacing)

—

Enter a decking price to estimate cost.

You might also need:Board Foot Calculator·Sonotube Calculator

Deck material math

board rows = deck width in inches ÷ (board width + gap)
linear feet = rows × deck length × 1.10 waste
joists = (deck length ÷ spacing) + 1

A 16 × 12 ft deck with 5/4 × 6 boards and ¼-inch gaps: 26 rows of decking, 416 linear feet before waste, about 458 with. Joists at 16 inches on center across 16 ft means 13 joists, each 12 ft long, plus hangers at each end and roughly 750 screws.

Decking coverage per board width

BoardActual widthCoverage with ¼″ gapRows per 12 ft width
2 × 43½″3.75″39
5/4 × 65½″5.75″26
2 × 65½″5.75″26
Composite 5¼″5¼″5.5″27

How many deck boards do I need?

The calculator counts 16 ft boards, the most common stock length. For other lengths, divide the linear feet by the board length and round up: the 458 linear feet above is 29 sixteen-foot boards, 39 twelve-foot boards or 23 twenty-foot boards. Pick a length that matches your deck or divides into it evenly, so butt joints land on joists and offcuts stay short.

Diagonal, picture-frame and odd-shaped decks

  • L-shaped or odd decks: split the deck into rectangles, run each one through the calculator and add the results.
  • Diagonal decking: boards laid at 45° waste more at the ends. Plan on about 15% waste instead of the 10% built in, and use the 12-inch joist spacing option.
  • Picture-frame borders and fascia: add the deck perimeter in linear feet for each border row, plus fascia boards if you're cladding the rim joists.
  • Stairs: treads aren't in the count. Work out the number of steps with the stair calculator and add two or three boards per tread.

What a deck costs by size

Deck sizeAreaPressure-treated materialsBuilt, woodBuilt, composite
10 × 10 ft100 sq ft$1,500–$3,500$3,000–$6,000$5,000–$9,000
12 × 12 ft144 sq ft$2,160–$5,040$4,320–$8,640$7,200–$12,960
12 × 16 ft192 sq ft$2,880–$6,720$5,760–$11,520$9,600–$17,280
14 × 20 ft280 sq ft$4,200–$9,800$8,400–$16,800$14,000–$25,200
20 × 20 ft400 sq ft$6,000–$14,000$12,000–$24,000$20,000–$36,000

Based on $15–$35 per sq ft for pressure-treated materials and $30–$60 (wood) or $50–$90 (composite) per sq ft professionally built. Height, stairs, railing length and local labor rates move real quotes, so treat these as ballpark figures.

Building notes

  • Footings come first: below frost line, sized for the load — pour them with the Sonotube calculator or the concrete calculator.
  • Ledger flashing is non-negotiable: water getting behind a ledger board rots the house rim joist. It's the most common serious deck failure.
  • Square the frame with the 3-4-5 rule before you hang the joists: 3 ft along one side, 4 ft along the other, and the diagonal must read 5 ft.
  • Check span tables: joist size depends on span and spacing — a 12 ft span typically needs 2×8 or 2×10 at 16 inches on center.
  • Total the lumber order with the board foot calculator, add railing infill with the baluster spacing calculator, and size footing concrete with the post hole concrete calculator.
Add this deck calculator to your website — free

Contractors, suppliers and DIY bloggers can embed this calculator for free. Copy the code below and paste it into any web page or blog post (use an HTML or "Custom HTML" block). It stays up to date automatically and has no ads.

Frequently asked questions

How many deck boards do I need?+

Divide the deck width by the board coverage (board width plus gap) to get rows, then multiply by deck length for total linear feet. A 5/4 × 6 board covers 5.75 inches with a ¼-inch gap, so a 16 ft wide deck needs about 34 rows.

What spacing should deck joists be?+

16 inches on center is standard for most decking laid perpendicular to joists. Go to 12 inches for diagonal patterns or thin composite boards, and check your decking manufacturer's spec — many composites require 12 or 16 inch spacing to avoid sagging between joists.

How much gap should I leave between deck boards?+

Leave ⅛–¼ inch between boards for drainage and airflow. Kiln-dried and composite boards need the full gap since they won't shrink; wet pressure-treated lumber can be butted tighter because it shrinks as it dries.

How many screws per deck board?+

Two screws per board at every joist crossing. A 16 ft board over joists at 16 inches on center crosses 13 joists, so 26 screws per board. Plan on about 350 screws per 100 square feet of deck.

How many footings or deck blocks do I need?+

The calculator places two rows of footings along the deck length, about 8 ft apart, with at least four in all: a 16 × 12 ft deck gets 3 per row, or 6. Ground-level decks on precast deck blocks usually need blocks closer together than poured footings, so follow the block maker's spacing and your joist and beam sizes.

How much does a deck cost to build?+

Materials run $15–$35 per square foot for pressure-treated, $25–$50 for composite. Professionally built decks cost $30–$60 per square foot for wood and $50–$90 for composite, including framing, footings and railing. A 20 × 20 ft (400 sq ft) wood deck is about $12,000–$24,000 built, or $6,000–$14,000 in pressure-treated materials if you build it yourself.

What is the 3-4-5 rule for decks?+

It is how you check the frame is square. Measure 3 ft along the ledger from a corner and 4 ft along the joist or rim from the same corner, and mark both. The diagonal between the marks should be exactly 5 ft. On bigger decks use 6-8-10 or 9-12-15 for more accuracy, and adjust until it measures true.

Related calculators