Skip to content
Lumber Calculator

Projects

Pergola Lumber Calculator

Enter the size and height of your pergola to get every post, beam, rafter and top slat, the concrete for the footings and the hardware — shown in 3D and turned into a lumber list.

Updated October 31, 2026Our methodology

Units
Lumber sizes & prices

Inputs

Pergola

ft

Measured to the outside faces of the posts. Beams run this way.

ft
ft

Ground to the top of the posts. 8 ft (2.4 m) is common.

ft

Center to center, used by Auto. 8–12 ft (2.4–3.6 m) is typical.

Beams

Beam style
in

How far the beams run past the outside of the end posts.

Rafters & top slats

in

How far the rafters run past the outside of the posts on each side.

in

Footings

Posts
in
in
More options
%

Added to rafters and slats for bad boards and miscuts.

Stock lengths available

Untick lengths your yard does not carry; the optimizer only buys what is ticked.

Loading 3D…

Results

Lumber list

Enter your dimensions to see the lumber list.

Estimate — check sizes and quantities with your lumber yard.

Results

How much wood does a pergola need?

A freestanding pergola has four layers, and each is counted with a simple formula:

posts per side = length ÷ max post spacing, rounded up, + 1  (min. 2)
beam length    = length + 2 × beam overhang
rafters        = beam length ÷ rafter spacing, rounded up, + 1
rafter length  = width + 2 × rafter overhang
top slats      = rafter length ÷ slat spacing, rounded up, + 1
concrete       = π × (hole diameter ÷ 2)² × depth ÷ bag yield, per hole

The posts carry two beams, one along each long side. A double beam is two boards, one bolted to each face of the posts; a single beam sits on top of the posts on a post cap. The rafters sit across the beams, and optional top slats (purlins) sit across the rafters for more shade. Knee braces at 45° keep the frame from racking.

Worked example: a 12×12 pergola

A 12 × 12 ft pergola with four 6×6 posts 8 ft tall, double 2×10 beams with 1 ft overhangs, 2×8 rafters at 16″ on center with 1 ft overhangs, 2×2 slats at 12″ and 12″ × 36″ footings:

PartMathBuy
Posts4 corner posts, 8 ft4 × 6×6×8′
Beams12 + 2 × 1 = 14 ft, 2 per side4 × 2×10×14′
Rafters168″ ÷ 16 = 10.4 → 11 spaces → 12 rafters, 14 ft12 × 2×8×14′ (14 with 10%)
Top slats168″ ÷ 12 = 14 spaces → 15 slats, 14 ft15 × 2×2×14′ (17 with 10%)
Knee braces8 braces, 24″ legs ≈ 37½″ longcut from 4×4 stock
Concreteπ × 6² × 36 = 2.36 ft³ ÷ 0.6 = 4 bags per hole16 × 80 lb bags
Hardware2 ties per rafter, 2 bolts per post24 rafter ties, 8 bolts, 4 post bases

Common pergola sizes and spacing

Most backyard pergolas use 6×6 posts (4×4 posts look thin and twist more), 2×8 to 2×12 beams and 2×6 to 2×8 rafters at 12″ to 24″ on center. Closer rafters and slats give more shade; 2×2 slats at 6″ to 12″ are typical. Post spacing of 8 to 10 ft keeps beam sizes reasonable.

PergolaPostsRafters @ 16″Rafter length (1 ft overhangs)
10 × 10 ft41012 ft
12 × 12 ft41214 ft
12 × 16 ft4–61514 ft
16 × 20 ft61818 ft

These are counts, not structural sizes. The beam size depends on the post spacing and on snow and wind loads where you live — check with your building department, which may also require a permit.

Buying tips

  • Posts in the ground must be rated for ground contact. Posts on bases above concrete stay drier and last longer.
  • Buy rafters at the stock length you need. With 1 ft overhangs on a 12 ft wide pergola the rafters are exactly 14 ft, so decorative tail cuts come out of that length.
  • Cedar and redwood look better and weather well; pressure-treated pine costs less. Switch the lumber type under More options to compare prices.
  • Use galvanized or stainless hardware — treated lumber corrodes plain steel.
  • Prices are editable samples. Enter your yard’s prices in the lumber list.

Building the pergola on a new deck? Use the deck lumber calculator for the platform and add both to your lumber list.

Frequently asked questions

How much wood do I need to build a 12×12 pergola?

Four 6×6 posts 8 ft long, four 2×10×14′ beam boards, 12 rafters 2×8×14′ at 16″ on center, and — for shade — 15 2×2×14′ top slats at 12″, plus about 10% extra on rafters and slats.

How many posts does a pergola need?

Four for most pergolas up to about 12 ft long. Add a post on each side every 8 to 10 ft beyond that: a 20 ft pergola usually has 6 or 8 posts.

How far apart should pergola rafters be?

12″ to 24″ on center. 16″ is a common middle ground; 12″ gives more shade, 24″ uses fewer boards. Top slats are usually 6″ to 12″ apart.

How deep should pergola posts be set?

Footings must reach below the local frost line, which ranges from a few inches to several feet. Many builders use holes about 3 ft deep; your building department has the required depth.

How many bags of concrete for a pergola?

A 12″ × 36″ hole needs about 4 bags of 80 lb concrete, so a four-post pergola needs about 16. Posts set directly in the concrete displace a little of it.

What size beams for a pergola?

Double 2×8 to 2×12 beams are typical, larger for wider post spacing. This calculator counts the boards but does not size beams — check with your local building department, especially in snow or high-wind areas.

Related calculators

Tools

Projects

Framing

Board feet & pricing

Planning

All calculators

Site

Settings

Units

Lumber sizes & prices

Choose the market whose sizes, stock lengths and sample prices you want.

Theme

Language