← All tools/Tools/Garden & Outdoor/Pergola Calculator
Pergola Calculator
Work out the full lumber list for a freestanding rectangular pergola, from its size and spacing.
Total lumber needed
4 posts · 10 rafters · 13 slats
Breakdown
| Posts | 4 |
| Beam length (2 beams) | 24 ft |
| Rafters | 10 |
| Shade slats | 13 |
| Posts lumber | 32 ft |
| Rafters lumber | 100 ft |
| Slats lumber | 156 ft |
| Total lumber | 312 ft |
How it works
Posts = 4, or 6 when the pergola is over 14 ft long Beam length total = 2 × pergola length Rafters = ceil(pergola length in inches ÷ rafter spacing) + 1, each pergola width long Slats = ceil(pergola length in inches ÷ slat spacing) + 1, each pergola length long Total lumber = posts × post height + beam length + rafters × width + slats × length
A 12 × 10 ft pergola with 8 ft posts and 16 in rafter spacing needs 4 posts, 2 beams totalling 24 ft, and 10 rafters (12 × 12 ÷ 16 = 9, + 1), each 10 ft long. With slats at 12 in spacing there are 13 slats, and the total lumber is 4 × 8 + 24 + 10 × 10 + 13 × 12 = 312 linear ft.
Frequently asked questions
Why does a pergola over 14 ft need 6 posts?
A beam longer than 14 ft sags and is hard to buy in one piece, so a longer pergola gets a middle post on each side — 6 posts in total — to support the beam at mid-span.
How far apart should pergola rafters be?
16 in is a common spacing that looks balanced and supports slats well. Wider spacing up to 24 in gives a more open feel but less shade; closer spacing gives more shade and uses more lumber.
What are shade slats?
Slats are the thin boards laid across the top of the rafters. Closer slats block more sun; at 12 in spacing they give dappled shade, while 4–6 in spacing gives much deeper shade.
Does this include an overhang?
No. The lengths here are the pergola’s own footprint, with no extra overhang added to the beams or rafters. If your design overhangs the posts, add the overhang to each beam and rafter length.
What size lumber should I use?
Posts are commonly 4 × 4 in or 6 × 6 in, beams 2 × 8 in or 2 × 10 in, and rafters 2 × 6 in. This calculator counts linear feet; check local spans and building rules before buying.
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.