ConstructionCalculators

Deck Calculator

Enter your deck's length, depth and height to get the deck boards, joists, beam, posts, footings and fasteners, and what they cost.

house16 ft12 ft
Deck
ft
ft
ft
%
in

Deck materials

$1,438

192 sq ft · $7.49 a sq ft, materials

Deck boards
29 × 16 ft
Joists, 2x10
13 × 12 ft
Beam, 2-2x10
16 ft
Posts, 6x6
3 × 8 ft
Footings, 18 in round
27 bags
Joist hangers
13
Ledger lag screws, ½ in
14
Deck screws
672

How Many Deck Boards Do I Need?

A 16 × 12 ft deck takes 26 rows of 5/4 × 6 boards. In 16 ft boards that is 26 boards, and 29 with 10% extra for crooked boards and bad ends.

Deck boards by deck size, with 1/8 in gaps and 10% extra. The first number is the side the boards run along:

DeckBoards to buyScrews
8 × 8 ft20 × 8 ft224
10 × 10 ft25 × 10 ft350
12 × 10 ft25 × 12 ft420
12 × 12 ft29 × 12 ft504
16 × 12 ft29 × 16 ft672
16 × 16 ft39 × 16 ft896
20 × 16 ft39 × 20 ft1,120
20 × 20 ft48 × 20 ft1,400
24 × 12 ft58 × 12 ft1,008

Buy boards as long as the side they run along when that length exists. A 24 × 12 ft deck has no 24 ft board, so each row takes two 12 ft boards with the joint on a joist, and the joints should not line up from row to row.

Composite boards are set with a wider 3/16 in gap, which can drop a row: a 16 × 16 ft deck takes 38 composite boards instead of 39. The composite decking calculator also counts the hidden clips and fascia.

Deck Materials List

For the default deck, 16 ft along the house, 12 ft deep and 4 ft off the ground on a ledger, the IRC tables give this list. At the calculator's prices it comes to $1,438, or $7.49 a sq ft:

PartQuantityCost
Deck boards, 5/4 × 629 × 16 ft$537
Joists, rim and ledger, 2x1013 × 12 ft + 2 × 16 ft$451
Beam, 2 × 2x102 × 16 ft$77
Posts, 6x63 × 8 ft$110
Concrete, 80 lb bags27$176
Joist hangers13$40
Ledger lag screws, 1/2 in14$14
Deck screws672$34

The list covers the structure and the decking. A deck this high also needs a guard on the open sides and a stair: count the railing and lay out the stairs. Flashing over the ledger, post bases and lateral hold-downs are extra hardware on top.

Here is how the parts sit in plan:

16 ft16 in12 ft12345
  1. 1Ledger: 2x10, 14 lag screws 15 in apart
  2. 213 joists: 2x10 × 12 ft, 16 in on center
  3. 3Beam: two 2x10s, 16 ft
  4. 43 posts: 6x6, 8 ft apart
  5. 5Decking: 29 boards, 5/4 × 6 × 16 ft

Materials by deck size, 4 ft high, at the calculator's prices:

Treated woodComposite boards
10 × 10 ft
$788
$1,147
12 × 12 ft
$1,170
$1,538
16 × 12 ft
$1,438
$1,930
16 × 16 ft
$2,002
$2,630
20 × 16 ft
$2,528
$3,313
Treated wood, Composite boards, in dollars

The framing costs the same either way; the gap between the bars is the decking. Hiring the work out adds more than the materials: at the Deck Cost Calculator's default rate, installing this deck costs $2,880. For a contractor's full price, price the whole deck job.

How to Calculate Deck Boards

Divide the width you cover, in inches, by the board width plus the gap, and round up. That gives the rows; multiply by the boards in each row, then add the extra:

Rows = depth (in) ÷ (board width + gap); boards = rows × boards per row × 1.1012 ft = 144 in; 144 ÷ (5.5 + 0.125) = 25.6 → 26 rows16 ft deck ÷ 16 ft boards = 1 board a row → 26 boards26 × 1.10 = 28.6 → 29 boards to buy

A board sold as 6 in wide is 5 1/2 in wide, and a 5/4 board is 1 in thick (PS 20). So a square foot of deck takes 2.13 linear feet of board: 12 in divided by 5 5/8 in.

When the Boards Are Shorter Than the Deck

Each row then takes full boards plus a short piece. The calculator cuts the short pieces from shared boards, with an inch on each piece to square and trim the ends. A 16 ft deck in 12 ft boards takes 26 full boards plus 13 boards cut into two 4 ft pieces each: 39 boards, 43 with 10% extra, against 29 in 16 ft boards.

Diagonal and Patterned Decks

Boards laid at 45 degrees need closer joists: 12 in on center for 5/4 wood over three or more joists (IRC Table R507.7) and for standard composite boards (Trex, TimberTech). TimberTech plans 10–15% extra for straight boards and 30% for diagonal or herringbone layouts, so raise Extra boards to 30 for those.

Deck Board Spacing

Space wood boards about 1/8 inch apart (AWC DCA 6). Freshly treated lumber is still wet and shrinks as it dries, so TimberTech advises laying it tight and letting the gaps open on their own.

  • Composite (Trex): 3/16 in between boards at least, 3/8 in in heavily wooded areas, never more than 1/2 in.
  • End to end: 1/8 in above 40°F and 3/16 in below, for Trex boards.
  • Every board on three supports: each length of decking should bear on at least three joists (DCA 6; Trex). A 5/4 board over only two joists is limited to 12 in spacing.

Joist, Beam and Post Sizes

The calculator picks the smallest joist that spans from the ledger to the beam in IRC Table R507.6, for a 40 psf live load. A 12 ft span at 16 in on center takes a 2x10 in southern pine, which spans up to 14 ft 0 in.

Maximum deck joist spans, No. 2 grade, 40 psf:

JoistSP 16 inDF 16 inSP 24 in
2x69' 0"8' 4"7' 7"
2x811' 10"11' 1"9' 8"
2x1014' 0"13' 7"11' 5"
2x1216' 6"15' 9"13' 6"

SP is southern pine; DF also covers hem-fir and spruce-pine-fir. For snow loads and cantilevers, check the joist size for those.

Beam Size and Post Spacing

The beam's span is the distance between posts. The IRC beam tables are read at an effective joist span: the real span times 0.66 when the joists don't cantilever past the beam. For 12 ft joists that is 7.9 ft, and a doubled 2x10 spans 9' 0", so a 16 ft deck needs 3 posts 8 ft apart.

Beam spans between posts by joist span, southern pine, no cantilever:

JoistsTwo 2x10sTwo 2x12sThree 2x12s
8 ft10' 4"12' 2"15' 3"
10 ft9' 11"11' 8"14' 7"
12 ft9' 0"10' 7"13' 3"
14 ft8' 4"9' 10"12' 4"
16 ft7' 9"9' 2"11' 6"

The calculator chooses the fewest posts first, then the smallest beam that spans between them. The IRC lets a beam run past its end posts by a quarter of its span (R507.5).

The IRC allows 4x4 posts with height limits (Table R507.4), but the AWC's prescriptive deck guide, DCA 6, calls for 6x6 posts at least, and the calculator uses 6x6. In southern pine and Douglas fir, a 6x6 can stand 14 ft tall whatever deck area it carries. Each post is priced one foot longer than the deck height, in 8 ft lengths at least.

Deck Footing Size and Depth

Footing size depends on how much deck each post carries and on the soil. An inner post carries half the joist span times the post spacing: 6 × 8 = 48 sq ft for the default deck, which on 1,500 psf soil needs an 18 in round footing at least 6 in thick (IRC Table R507.3.1).

Round footing diameter by the deck area a post carries and the soil, 40 psf deck:

Area per post1,500 psf, clay2,000 psf, sand3,000 psf, gravel
20 sq ft12 in9 in8 in
40 sq ft16 in14 in12 in
60 sq ft19 in17 in14 in
80 sq ft22 in19 in16 in
100 sq ft25 in21 in17 in

The whole deck in section, from the ledger to the footing:

12 ft4 ft36 in123456
  1. 1Ledger: 2x10, 1/2 in lag screws 15 in apart
  2. 2Joists: 2x10, 16 in on center, in hangers
  3. 3Beam: two 2x10s
  4. 4Post: 6x6
  5. 5Footing: 18 in round, at least 12 in deep and below the frost line
  6. 6Decking: 5/4 × 6 boards, 1/8 in gaps

Footings go at least 12 in below undisturbed ground (R507.3.2). When the deck is attached to the house, they also go below the frost line your local code sets (R507.3.3). DCA 6 adds that footings within 5 ft of the house foundation must bear at the same depth as the house footing.

For concrete, the calculator fills a round hole the footing's diameter to the depth you enter. An 18 in hole 36 in deep holds 5.30 cu ft. At 0.60 cu ft per 80 lb bag that is 9 bags a footing and 27 for three. For other hole sizes and tube forms, count the concrete bags per hole.

The 2021 IRC drops the footings in two cases. One is a free-standing deck whose joists lie on grade along their whole length. The other is a free-standing deck of 200 sq ft or less, no more than 20 in above grade, with its joists on precast pier blocks.

Ledger, Hangers and Fasteners

The ledger is at least a treated 2x8 (R507.9.1.1). The calculator uses the joist size, so the hangers fit. It is fastened to the house band joist with 1/2 in lag screws or bolts, never with nails (R507.8). The spacing comes from the joist span (Table R507.9.1.3(1)):

Joist spanLag screws, on center
6 ft30 in
8 ft23 in
10 ft18 in
12 ft15 in
14 ft13 in
16 ft11 in

At 15 in on center, a 16 ft ledger takes 14 lag screws, staggered top and bottom. Flash the ledger where it meets a wood-framed wall (R703.4), and keep aluminum flashing away from copper-treated lumber, which corrodes it (DCA 6).

  • Joist hangers: joists that frame into the side of a ledger or beam sit in hangers (R507.6.1), one per joist: 13 here. Use galvanized or stainless connectors, and stainless within 300 ft of salt water (DCA 6).
  • Deck screws: two in every board at every joist, which the IRC allows as two No. 8 screws or two 8d threaded nails (R507.7). At 16 in spacing that is about 3 1/2 screws a sq ft, 672 for the default deck.
  • Hidden clips: for composite boards, Trex packs 90 clips for 50 sq ft, so the calculator counts 346 for 192 sq ft.

Tips for Ordering Deck Lumber

  • Order by the piece and length. Framing lumber comes in 2 ft steps, so the calculator rounds each joist, beam ply and post up to the next even length. A 12 ft joist span takes 12 ft joists; a 13 ft span takes 14 ft.
  • Match board length to the deck. Boards that run the full length leave no joints to line up on joists; where the deck is longer, pick the length that wastes least, as in the 16 ft example above.
  • Check the posts. Each one is priced a foot longer than the deck height so you can cut it level at the beam; on sloped ground, measure every post.
  • Keep a little concrete in hand. The bag count fills each hole exactly, and an 18 in hole dug to 19 in takes 11% more concrete. A few extra bags save a second trip.
  • Pick screws for the decking. Treated wood takes coated or stainless deck screws; composite boards take the maker's color-matched screws or hidden clips.

Common Deck Mistakes

  • Counting boards by area alone. Gaps, board lengths and offcuts change the count; work in rows across the joists.
  • Skipping the extra. Some boards come crooked or split at the ends; plan 10% extra for a straight deck and 30% for a diagonal one.
  • Sizing the beam by the real joist span. Read the IRC beam table at the effective span, or you get the wrong size.
  • Shallow footings. Footings on the surface or above the frost line can heave in winter and settle in spring.
  • Nailing the ledger. Nails pull out; the IRC requires lag screws or bolts and flashing.
  • Forgetting the guard. Decks more than 30 in above grade need a guard at least 36 in high on the open sides (R312.1).

Frequently Asked Questions

How many deck boards do I need for a 12 × 12 deck?

26 rows of 5/4 × 6 boards 12 ft long, so buy 29 with 10% extra. Each row takes one board, and 26 rows of 5 1/2 in boards with 1/8 in gaps cover the 144 inches across the deck.

How many deck boards for a 10 × 10 deck?

22 boards 10 ft long, 25 with 10% extra. With 12 ft boards you buy the same count and cut 2 ft off each one, so 10 ft boards are the better buy.

How much lumber do I need for a 12 × 16 deck?

For a deck 16 ft along the house and 12 ft deep: 29 deck boards of 16 ft, 13 joists 2x10 × 12 ft, two 16 ft 2x10s for the rim and ledger, two more for the beam, and 3 6x6 posts 8 ft long. At the calculator's prices that is $1,438 with the concrete and hardware.

How far apart should deck posts be?

As far as the beam can span. With 12 ft southern pine joists, a doubled 2x10 beam spans 9' 0", so a 16 ft deck takes 3 posts 8 ft apart. A doubled 2x12 spans 10' 7" and a tripled 2x12 13' 3".

What size footing does a deck post need?

It depends on the deck area the post carries and the soil. A post carrying 48 sq ft on 1,500 psf soil needs an 18 in round footing by IRC Table R507.3.1; on 3,000 psf gravel, 13 in.

How deep should deck footings be?

At least 12 inches below undisturbed ground (IRC R507.3.2), and below the local frost line when the deck is attached to the house. Footings within 5 ft of the house foundation should bear as deep as the house footing (AWC DCA 6).

How many screws do I need per square foot of deck?

About 3 1/2 at 16 in joist spacing: two screws in every board at every joist. That is 350 per 100 sq ft and 672 for a 16 × 12 deck. Hidden clips for composite run 90 per 50 sq ft, 346 for the same deck.

How far apart should deck joists be?

16 inches on center for 5/4 wood boards and most composite boards, and 24 inches for 2 in thick wood boards (IRC Table R507.7). Boards laid at 45 degrees need 12 in spacing with 5/4 wood and composite.

How much does a 16 × 12 deck cost?

The materials come to $1,438 in treated wood at the calculator's prices, or $1,930 with composite boards. Built by a contractor with labor, railing and a permit, it comes to $6,218 in wood; the Deck Cost Calculator works out the full price.

Do I need a permit to build a deck?

Usually yes. The IRC exempts only decks of 200 sq ft or less that are no more than 30 inches above grade, not attached to the house and not serving the required exit door (R105.2). Your local building department has the final word.

Sources

  • American Wood Council. (2018). Prescriptive residential wood deck construction guide: Based on the 2015 International Residential Code (DCA 6-15).
  • International Code Council. (2020). 2021 International Residential Code (Sections R105.2, R301.5, R312.1, R401.4.1, R507, R703.4).
  • National Institute of Standards and Technology. (2010). Voluntary product standard PS 20-10: American softwood lumber standard. U.S. Department of Commerce.
  • QUIKRETE Companies. (2022). QUIKRETE Concrete Mix No. 1101 [Data sheet].
  • TimberTech. (n.d.-a). Deck board spacing. The AZEK Company.
  • TimberTech. (n.d.-b). How to calculate how much decking you need. The AZEK Company.
  • Trex Company. (n.d.). Trex Hideaway universal hidden fasteners (90 pack) [Product page].
  • Trex Company. (2026). 2026 Trex decking installation guide.

Updated .

Cite this page as:

Daniel, P. Deck Calculator. Available at: https://constructioncalculators.com/deck-calculator/. Accessed: October 28, 2026.