Pergola Calculator
Enter the pergola size. You get the lumber list.
That number is too big. Check what you typed.
The length and the width must be from 4 to 20 ft.
The overhang must be from 0 to 3 ft.
A pergola beam is one board of 20 ft at most: keep the length plus both overhangs at 20 ft or less.
A rafter is one board of 20 ft at most: keep the width plus both overhangs at 20 ft or less.
Slat spacing must be from 2 to 48 in.
The post height must be greater than 0 and at most 12 ft above the ground.
How to calculate pergola lumber
A pergola has posts, two beams along the length, rafters across the beams, and sometimes top slats across the rafters. Each beam is two boards, one on each side of the posts. Beams and slats are the length plus the overhang at both ends. Rafters are the width plus the overhang at both ends.
Rafters = the length in inches ÷ the spacing, rounded up, plus 1, so no gap is wider than the spacing. A 12 × 10 ft pergola with rafters every 24 in and a 1 ft overhang takes 144 ÷ 24 + 1 = 7 rafters of 12 ft, 4 beam boards of 14 ft and 4 posts. With slats every 12 in, add 120 ÷ 12 + 1 = 11 slats of 14 ft. At 13 ft long, 156 ÷ 24 = 6.5 rounds up to 7, so 8 rafters.
Posts and footings
Posts stand in two rows, one under each beam, with no more than 12 ft between two posts. Posts per row = the length ÷ 12, rounded up, plus 1. A 16 × 12 ft pergola takes 3 posts per row, 6 in all.
The beams bolt to the top of the posts, so the clear height under them is the post height minus the beam depth: an 8 ft post under 2×10 beams, about 9 in deep, leaves about 7 ft 3 in. The calculator sets posts 3 ft into concrete footings, so an 8 ft post takes 11 ft, bought as 12 ft. On a patio with metal post bases bolted to the slab, buy the height above ground only. Concrete for the holes: the post hole concrete calculator; hole depth: below the frost line.
Board lengths
Lumber is sold in even lengths, 8 to 20 ft, so each piece is rounded up to the next one. A 16 × 12 ft pergola at 16 in with a 1 ft overhang needs 18 ft beam boards and 13 rafters of 14 ft. A small 8 × 8 ft pergola takes 4 posts, 4 beam boards of 10 ft and 5 rafters of 10 ft.
Each beam, rafter and slat is one board, so the length plus both overhangs, and the width plus both overhangs, stay at 20 ft or less. A longer pergola is built as two pergolas side by side.
Common sizes
Most wood pergola plans use 6×6 posts, beams of two 2×8s or 2×10s and 2×6 or 2×8 rafters. Top slats are 2×4s, laid flat or on edge: they come in the same lengths as the beams, while 2×2s are hard to find past 8 ft. The wider the pergola, the deeper the rafters: check a span table above 12 ft. Rafters every 24 in give light shade; 16 or 12 in, or top slats, give more. To price the order by the foot: the linear feet calculator; by the board foot: the board foot calculator.
US measurements
Sizes, overhang and post height in feet; slat spacing in inches. For 12 ft 6 in, type 12.5 or pick ft + in beside the box. Lumber names are nominal: a 2×10 is 1 1/2 × 9 1/4 in, a 6×6 is 5 1/2 in square.
Common mistakes
Forgetting the overhang: beams and rafters that stop at the posts look short. One foot each side is usual.
Forgetting the last rafter: the rafters are the spaces plus one.
Swapping length and width: the length is the way the beams run. Leave the slat spacing empty for a pergola without top slats. Building next to a deck: the deck calculator.
FAQ
How many rafters do I need for a 12x12 pergola?
7 rafters at 24 in on center, or 10 at 16 in, each 14 ft long with a 1 ft overhang on both sides.
How far apart should pergola posts be?
No more than about 12 ft along a beam. A pergola up to 12 ft long needs 4 posts; up to 18 ft with 1 ft overhangs, 6 posts.
How far apart are pergola rafters?
Usually 16 to 24 in on center. Closer rafters or top slats give more shade.
How deep should pergola posts be set?
The calculator uses 3 ft in concrete, which is common; go below your local frost line where it is deeper.
Guides
Related tools
Add this calculator to your site
Free for any website. Paste this code into an HTML block where the calculator should appear.