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:
| Part | Math | Buy |
|---|---|---|
| Posts | 4 corner posts, 8 ft | 4 × 6×6×8′ |
| Beams | 12 + 2 × 1 = 14 ft, 2 per side | 4 × 2×10×14′ |
| Rafters | 168″ ÷ 16 = 10.4 → 11 spaces → 12 rafters, 14 ft | 12 × 2×8×14′ (14 with 10%) |
| Top slats | 168″ ÷ 12 = 14 spaces → 15 slats, 14 ft | 15 × 2×2×14′ (17 with 10%) |
| Knee braces | 8 braces, 24″ legs ≈ 37½″ long | cut from 4×4 stock |
| Concrete | π × 6² × 36 = 2.36 ft³ ÷ 0.6 = 4 bags per hole | 16 × 80 lb bags |
| Hardware | 2 ties per rafter, 2 bolts per post | 24 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.
| Pergola | Posts | Rafters @ 16″ | Rafter length (1 ft overhangs) |
|---|---|---|---|
| 10 × 10 ft | 4 | 10 | 12 ft |
| 12 × 12 ft | 4 | 12 | 14 ft |
| 12 × 16 ft | 4–6 | 15 | 14 ft |
| 16 × 20 ft | 6 | 18 | 18 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.