Holzbaurechner / Pergola

Pergola calculator

Lumber for a freestanding wood pergola: posts, beams, rafters, optional shade slats and the footings, in pressure-treated pine or cedar, with a shopping list and cost estimate.

How the pergola is built

Four or more 6x6 posts stand in post bases on concrete footings. On top of each row of posts sits a beam of two or three 2x boards. The rafters run across both beams and overhang them on both sides, usually with a decorative cut at the ends. Knee braces from 4x4 lumber at every post stop the frame from swaying. For more shade, 2x2 slats run across the rafters about every 6 in.

The overhang of beams and rafters gives the pergola its look. 12 to 24 in. is typical. The longer the overhang, the more it should be supported by the span behind it.

Sizes

An open pergola carries mainly its own weight, so the code does not have special tables for it. The calculator uses the IRC deck span tables, which are much stricter. The result is a frame that does not sag and could take a shade sail or light panels later. Rafters are never smaller than 2x8, because thinner boards look flimsy on a pergola and twist.

Cedar is lighter and weaker than southern pine, so the calculator uses the tables for redwood and western cedars and reduces the beam spans for cedar.

Pressure-treated pine or cedar?

Pressure-treated pine is the budget choice. It should dry for a few months before it takes stain. Western red cedar costs about twice as much, is lighter to lift onto the posts and turns a silvery gray if you leave it untreated. Posts in either material should stand on post bases above the concrete, not buried in it.

Building the pergola step by step

  1. Lay out: mark the post positions, check the diagonals and call 811 before you dig.
  2. Footings: dig below the frost line, pour the footings and set the post bases square to each other.
  3. Posts: stand the posts, brace them plumb and mark them all at the same height.
  4. Beams: assemble the beams on the ground, lift them into post caps and fit the knee braces.
  5. Rafters and slats: cut the rafter tails, set the rafters with hurricane ties and screw the slats on top.

Frequently asked questions

How much does it cost to build a 12x10 pergola?
In pressure-treated pine the lumber, footings and hardware for a 12 × 10 ft pergola cost about $1,300 to $1,800 at late 2026 prices, with shade slats. Cedar roughly doubles the lumber cost.
How far apart can pergola posts be?
That depends on the beam and the width. On a 10 ft wide pergola a double 2x10 beam allows posts just under 7 ft apart, a triple 2x12 almost 10 ft. The calculator adds middle posts when the beam needs them.
Do I need a permit for a pergola?
It depends on your city. Some exempt open pergolas up to a size such as 120 or 200 sq ft, others require a permit for any structure with posts in the ground. Ask your building department, and check HOA rules.