Deck Calculator

Calculate all materials needed for your deck project including decking boards, joists, posts, hardware, and railing.

Deck Dimensions

Decking Material:

Joist Spacing:

10%
5%20%

Pressure Treated Deck

192 sq ft

~$11.92/sq ft materials

🪵Decking Boards
39
📏Joists
13
🏗️Posts
8
🔩Screws
2 boxes

Materials List:

Decking Boards39 boards (468 LF)
Joists (16" O.C.)13 @ 12' each
Rim Joists2
Beams2
Posts (4×4 or 6×6)8
Joist Hangers13
Deck Screws2 boxes (~672)

Railing Materials:

Rail Posts8
Top Rail40 LF
Balusters122

Cost Estimate:

Decking$936.00
Framing & Hardware$223.00
Railing$600.00
Stairs$210.00
Labor (estimate)$2880 - $6720
Total Estimate$5169 - $9009

Deck Building Tips

  • • Check local building codes for permits and requirements
  • • Use 16" joist spacing for most decking; 12" for diagonal patterns
  • • Composite decking requires different fastening methods
  • • Always use pressure-treated lumber for ground contact
  • • Add post footings below frost line for stability

What Is Deck Calculation?

Deck calculation determines all the materials needed for your deck project—decking boards, framing lumber, fasteners, and hardware. Accurate estimation ensures you have enough materials without excessive overage.

ComponentMaterial OptionsTypical SizesLifespan
Decking boardsPressure-treated, cedar, composite5/4×6, 2×610-50 years
JoistsPressure-treated lumber2×8, 2×10, 2×1220-40 years
BeamsPressure-treated or built-up2×8, 2×10, 4×620-40 years
PostsPressure-treated4×4, 6×615-25 years
LedgerPressure-treated2×8, 2×10Matches joists
RailingWood, composite, metalVaries by style10-30 years

Deck Square Footage

Deck Area = Length × Width Decking Boards = (Width ÷ Board Width) × (1 + Waste)

Where:

  • Length= Deck length in feet
  • Width= Deck width in feet
  • Board Width= Typically 5.5" (actual)

Calculating Decking Boards

Decking boards are the visible surface. Calculate based on deck width divided by board width, accounting for gaps.

Board TypeNominal SizeActual WidthWith Gap
Standard wood5/4×65.5"5.625" (1/8" gap)
Dimensional lumber2×65.5"5.625" (1/8" gap)
CompositeVaries5.5-7.25"Per manufacturer
Narrow boards5/4×43.5"3.625"
Wide boards2×87.25"7.375"

Decking Board Formula

Number of Boards = Deck Width (inches) ÷ Board Width with Gap Board Length = Deck Length (or nearest standard length) With 10% waste: Boards × 1.10

Where:

  • Deck Width= Width in inches (feet × 12)
  • Board Width= Actual width + gap spacing

Calculating Joists and Framing

Joists support the decking boards. Standard spacing is 16" on center, though 12" O.C. may be required for some decking materials.

ComponentSpacing/QuantityHow to Calculate
Joists16" or 12" O.C.(Deck length ÷ spacing) + 1
Rim joist2 piecesSame as deck width
End joist2 piecesSame as deck length
Ledger board1 pieceDeck width (attached to house)
BlockingEvery 8 feetBetween joists for stability

Joist sizing: Joist depth depends on span. For typical decks: 2×8 spans to 10', 2×10 spans to 12', 2×12 spans to 14'. Check local codes for your specific situation.

Calculating Beams and Posts

Beams support the joists, and posts support the beams. Spacing depends on beam size and local codes.

Beam SizeTypical Max SpanPost Spacing
Double 2×86-7 feet6 feet max
Double 2×108-9 feet8 feet max
Double 2×1210-11 feet10 feet max
Triple 2×1010-11 feet10 feet max
4×66-7 feet6 feet max
6×68-9 feet8 feet max

Posts: Number of posts = (Beam length ÷ Post spacing) + 1. For each beam row, calculate separately. Corner posts plus intermediate posts.

Fasteners and Hardware

Don't forget screws, nails, and hardware when ordering deck materials.

ItemQuantity EstimateNotes
Decking screws350-400 per 100 sq ft2 screws per board/joist intersection
Hidden fastenersPer manufacturer1 per board/joist intersection
Joist hanger nails10-12 per hangerHot-dipped galvanized
Joist hangersOne per joistSized to joist dimensions
Post anchorsOne per postFor concrete footings
Lag boltsPer ledger attachment1/2" × 4" typical, every 16"
Carriage boltsBeam-to-post connections2 per connection minimum

Important: Use hot-dipped galvanized or stainless steel fasteners with pressure-treated lumber to prevent corrosion.

Railing Calculation

Railings are required for decks 30" or more above grade (code varies by location).

ComponentSpacing/RequirementsHow to Calculate
Posts6-8 feet apart max(Railing length ÷ spacing) + 1
Top rail36-42" height (code varies)Linear feet of railing needed
Bottom railParallel to top railSame as top rail
Balusters4" max gap betweenRailing length ÷ 5" (baluster + gap)
Post capsOne per postCount total posts

Code requirement: Openings in railings cannot allow passage of a 4" sphere (child safety). Space balusters approximately 4" apart.

Decking Material Comparison

Choose decking material based on budget, maintenance preference, and desired appearance.

MaterialCost/sq ftMaintenanceLifespanPros/Cons
Pressure-treated$2-5Annual seal/stain10-15 yearsAffordable; needs maintenance
Cedar$4-8Seal every 2-3 years15-20 yearsNatural beauty; rot-resistant
Redwood$8-15Seal every 2-3 years20-30 yearsPremium look; expensive
Composite$8-20Annual wash25-50 yearsLow maintenance; higher upfront cost
PVC$10-25Annual wash25-50 yearsMost weather-resistant; expensive
Tropical hardwood$10-25Oil annually25-50 yearsExtremely durable; heavy

Total cost: Material cost × 1.3-2.5 = installed cost (labor varies widely by region).

Worked Examples

Calculate Decking Boards for a Simple Deck

Problem:

A 12×16 foot deck using 5/4×6 boards (5.5" wide) running the 16-foot direction. How many boards are needed?

Solution Steps:

  1. 1Deck width in inches: 12 feet × 12 = 144 inches
  2. 2Board width with 1/8" gap: 5.5 + 0.125 = 5.625 inches
  3. 3Number of boards: 144 ÷ 5.625 = 25.6 boards
  4. 4Round up: 26 boards
  5. 5Add 10% waste: 26 × 1.10 = 28.6 → 29 boards
  6. 6Board length: 16 feet each

Result:

Order 29 boards at 16 feet long. If 16-foot boards aren't available, use two 10-foot or 12-foot boards per row with staggered joints.

Calculate Joists for Deck Framing

Problem:

A 14×20 foot deck with joists at 16" on center spanning the 14-foot direction. Calculate joists needed.

Solution Steps:

  1. 1Deck length (joist run): 20 feet = 240 inches
  2. 2Joist spacing: 16 inches O.C.
  3. 3Number of joist spaces: 240 ÷ 16 = 15 spaces
  4. 4Number of joists: 15 + 1 = 16 joists
  5. 5Joist length: 14 feet each
  6. 6Add rim joists: 2 pieces at 20 feet

Result:

Order 16 joists at 14 feet plus 2 rim boards at 20 feet. For 14-foot span, use 2×10 or 2×12 joists (check span tables).

Complete Material List for a 12×16 Deck

Problem:

Create a complete material list for a 12×16 deck, 3 feet high, with railing on 3 sides.

Solution Steps:

  1. 1Decking: (144÷5.625) × 1.10 = 29 boards at 16'
  2. 2Joists (16" O.C.): (192÷16)+1 = 13 at 12', use 2×10
  3. 3Rim joists: 2 at 16' (2×10)
  4. 4Ledger: 1 at 16' (2×10)
  5. 5Beams: 2 at 12' (double 2×10)
  6. 6Posts (4×4): 6 posts at 4' (3 per beam row)
  7. 7Railing (3 sides): ~40 linear feet
  8. 8Railing posts: 10 posts (6' apart on 40 LF)
  9. 9Balusters: 40 feet ÷ 5" = 96 balusters

Result:

Full list: 29 deck boards, 15 joists (2×10×12'), 2 beam boards, 6 posts, 10 railing posts, 96 balusters, plus hardware (screws, joist hangers, post anchors).

Tips & Best Practices

  • Standard deck board width is 5.5" (actual)—add 1/8" gap for drainage between boards.
  • Joists are typically spaced 16" on center; composite decking may require 12" spacing.
  • Use hot-dipped galvanized or stainless steel fasteners with pressure-treated lumber.
  • Calculate screws at 2 per board at each joist intersection—roughly 4 screws per square foot.
  • Posts should be set at least 42" deep in cold climates (below frost line).
  • Railing balusters must be spaced so a 4" sphere cannot pass through (code requirement).
  • Order 10% extra decking for waste; keep extras for future repairs.

Frequently Asked Questions

Plan for 350-400 screws per 100 square feet of decking (3.5-4 per sq ft). Each board gets 2 screws at every joist intersection. A 200 sq ft deck needs about 700-800 screws. Buy a full box to ensure you don't run short.
Joist size depends on span (distance between supports): 2×6 up to 6-8 ft, 2×8 up to 10 ft, 2×10 up to 12 ft, 2×12 up to 14 ft. These are general guidelines—always check local building codes and span tables for your specific situation.
Post spacing depends on beam size. For double 2×8 beams: 6 feet max. For double 2×10: 8 feet max. For double 2×12: 10 feet max. Posts at corners and intermediate posts as needed to meet the span limit.
Pressure-treated is cheaper upfront ($2-5/sq ft vs $8-20) but requires annual maintenance. Composite costs more initially but needs minimal maintenance and lasts 25-50 years. Calculate total cost of ownership over your expected time in the home.
Order 10% extra for decking boards (more for diagonal patterns). Order exact quantities for framing (joists, beams) since cutting waste is used for blocking. Buy a full box of screws even if slightly more than calculated.
Most jurisdictions require permits for decks attached to the house or over a certain height (often 30 inches). Freestanding, low-level decks sometimes don't require permits. Always check with your local building department before starting.

Sources & References

Last updated: 2026-01-22