planmero

06 / 15 · Pergola

Pergola Planner and Material Calculator

Enter the size of the pergola and the member sizes from your supplier. Set the maximum post spacing and rafter span you were given, choose how the rafters are spaced, and get the layout and every piece to cut.

How it works

Posts stand on lines under each beam. The outer posts sit where the beam overhang ends; more posts are added evenly until no gap between posts is larger than your maximum.

Beam rows run across the depth. A freestanding pergola has a front and a back beam; an attached one has a ledger on the wall instead of the back beam. When the rafter span would be too long, extra beam rows with posts are added evenly.

Rafters are spaced along the width with the same rules as the equal spacing calculator, and each rafter is one piece over the full depth.

Beams and top slats longer than your stock are joined only over a post or a rafter. Every member type gets its own optimised cutting plan from the stock lengths you can buy.

What the calculator assumes

  • This is a planning and material tool, not a structural design. Member sizes, spans, post spacing, connections, wind and snow loads and foundations must follow the supplier's system or a structural engineer, and local building rules.
  • All members are bought in the same stock lengths you enter; each member type is cut separately.
  • Rectangular pergola with a flat (or slightly sloped) roof plane; no roofing, gutters or bracing included.

Questions

How far apart can the posts be?
That depends on the beam size, timber grade and loads, so the calculator asks you for the maximum. Use the value from your kit instructions, timber span tables valid where you live, or an engineer.
What does “boards per beam” mean?
Many wooden pergolas use a double beam — two boards bolted to both sides of the posts. Choose 2 and the cut list doubles the beam boards.

Planning aid only. It does not size structural members or check loads — follow the manufacturer's instructions and your local building rules.

How to plan a pergola: posts, beams, rafters and a cut list

Posts carry beams, beams carry rafters, slats sit on top. Here is how the calculator turns your sizes into a layout and a shopping list, with a 12 × 10 ft example you can recheck above.

What the calculator works out and what you decide

You enter the outside size, the post height, the lumber sizes and two limits: the largest post spacing along a beam and the largest rafter span between beams. The calculator does not know those limits. They depend on the lumber grade, the member sizes, snow and wind loads and the hardware, so take them from the kit instructions, your supplier's span information or an engineer, and check what your local building department requires.

From there it is pure layout. The outer posts sit in from the beam ends by the beam overhang, and posts are added until no space exceeds your maximum. Along the depth, another row of posts is added whenever the distance between beam rows would exceed the rafter span. Rafters are spread evenly across the width, slats across the depth, and every piece is fitted into the lengths you can buy, with joints only over a post or a rafter.

Worked example: a 12 × 10 ft freestanding pergola

The calculator's starting values: 12 ft (144 in) wide along the beams, 10 ft (120 in) deep, 6×6 posts 8 ft above ground on surface anchors, beams of two boards, rafters 1 1/2 in thick, 12 in beam and rafter overhangs, max post spacing 8 ft, max rafter span 10 ft, rafter clear gap at most 16 in with flush outer rafters, 1 1/2 in slats with a 3 in gap, lumber in 8, 10, 12 and 16 ft lengths.

  • Posts along each beam: 144 in minus 2 × 12 in of overhang leaves 120 in between the outer post centers. 120 ÷ 96 = 1.25, so one span is too long and two are needed: 3 posts per row, 60 in (5 ft) on center.
  • Beam rows: the rafters overhang 12 in at the front and at the back, so the beams sit 12 in and 108 in from the back edge, 96 in apart. That is within the 120 in limit, so two rows are enough and the pergola stands on 6 posts.
  • Rafters: with flush ends, n rafters leave (144 − 1.5 × n) ÷ (n − 1) between them. Nine rafters give 16.31 in, just over the limit. Ten give (144 − 15) ÷ 9 = 14.33 in, about 14 5/16 in clear or 15.83 in on center. Each rafter runs the full depth, so it is 10 ft long.
  • Slats: across the 120 in depth, 1 1/2 in slats with 3 in gaps and a gap at each end fit 26 times: 26 × 1.5 + 25 × 3 = 114 in, which leaves exactly 3 in at each end. Each slat runs the full 12 ft width, so there are no joints.
  • Shopping list: 6 posts of 8 ft, 4 beam boards of 12 ft (2 per beam, 2 rows), 10 rafters of 10 ft and 26 slats of 12 ft, plus 20 rafter-to-beam connections and 260 slat-to-rafter crossings to fasten.

How the width changes the material

Keep everything from the example and change only the width:

10 ft deep freestanding pergola, max post spacing 8 ft, lumber up to 16 ft
WidthPosts (on center)Beam boardsRafters (clear gap)Slats
12 ft6 (5 ft)4 × 12 ft10 (14.33 in)26 × 12 ft
16 ft6 (7 ft)4 × 16 ft12 (15.82 in)26 × 16 ft
20 ft8 (6 ft)4 × 13 ft + 4 × 7 ft, spliced over a post15 (15.54 in)26 long + 26 short pieces, joined over a rafter
24 ft8 (7 ft 4 in)4 × 15 ft 8 in + 4 × 8 ft 4 in18 (15.35 in)26 long + 26 short pieces

Variations: posts in the ground, attached to the house

Post height is measured above ground. If the posts go into the ground, enter the buried part as extra post length: with 18 in extra, each post becomes 114 in long and the cut plan moves to 10 ft lumber. Whether and how deep posts may be buried is for your local code and the hardware maker to say.

Attached to a wall, the back row of posts becomes a ledger. The same 12 × 10 ft pergola then needs 3 posts, one beam of two 12 ft boards, one 12 ft ledger and still 20 rafter connections, 10 at the beam and 10 at the ledger. How the ledger is fixed, and whether the wall can carry it, is for a builder or engineer to settle.

Common mistakes

  • Treating the spacing limits as a structural check. The calculator uses them as entered; it does not know whether a board can span 10 ft under your snow load.
  • Mixing up clear gap and on-center spacing. 14.33 in clear between 1 1/2 in rafters is 15.83 in on center. Choose the rafter mode that matches the number you were given.
  • Swapping width and depth. Width runs along the beams, depth along the rafters. Swap them and you get a different number of posts, rafters and slats.
  • Huge overhangs. They shorten the run between the outer posts; if two overhangs exceed the width, you get an error.
  • Leaving out the hardware. Post bases, connectors, rafter ties and hundreds of slat fasteners are a real part of the budget; use rated hardware as its maker specifies.

Practical tips before you buy

  • Enter only the lengths your lumber yard stocks. The cut plan shows the offcuts, so you see whether 12 or 16 ft boards suit the job better.
  • Use the post count and positions to plan the footings, then work out the concrete with the footing calculator.
  • Mark rafter positions with a story stick set to the on-center spacing instead of measuring each gap, so small errors do not add up.
  • Closer slats mean more shade but more pieces; compare a 2 in and a 4 in gap before you decide.