Pergola Calculator

Turn a pergola footprint into a cut list: posts, beams, rafters and top slats with their lengths, post-hole concrete, connectors and an estimate of the shade it casts.

Free · No sign-up · Runs in your browser

How to use the pergola calculator

A pergola is a simple frame: posts carry beams, beams carry rafters, and optional top slats (purlins) run across the rafters for extra shade. This calculator lays that frame out on your footprint and gives you a piece count and length for each member, so you can draw it, price it or take it to the lumber yard.

  1. Enter the length along the beams and the width between beam lines. The beams run along the length; the rafters span the width.
  2. Set the maximum post spacing (often 8–10 ft or 2.4–3 m for timber) and the number of beam lines, normally 2.
  3. Add overhangs for the beam ends and the rafter tails. A 12–24 in (300–600 mm) overhang is typical and looks lighter.
  4. Choose rafter and slat spacing, plus the rafter and slat thickness for the shade estimate.
  5. Enter post height, burial depth and hole size for the post length and concrete, or set the depth to 0 for surface-mounted post bases.

Pergola formulas

Posts per beam line = ⌈length ÷ max spacing⌉ + 1 · posts = posts per line × beam lines
Beam length = length + 2 × beam overhang · beam boards = beam lines × plies
Rafters = ⌈beam length ÷ rafter spacing⌉ + 1 · rafter length = width + 2 × rafter overhang
Slats = ⌈rafter length ÷ slat spacing⌉ + 1 · slat length = beam length
Concrete per hole = π × (hole ÷ 2)² × depth − post² × depth
Shade ≈ 1 − (1 − rafter thickness ÷ rafter spacing) × (1 − slat thickness ÷ slat spacing)

Connectors are counted as one post-to-beam connector per post and one rafter tie wherever a rafter crosses a beam line. The shade figure is for the sun straight overhead and counts only the thickness of each member, so it is a rough lower bound.

Worked examples

16 × 12 ft backyard pergola

With posts at most 10 ft apart: ⌈16 ÷ 10⌉ + 1 = 3 posts per side, 6 posts. Beams are 16 + 2 × 1 = 18 ft long, so 4 boards for two doubled beams, each needing a splice or 18 ft stock. Rafters at 16 in: ⌈216 ÷ 16⌉ + 1 = 15 rafters, each 12 + 2 = 14 ft. Slats at 6 in across a 14 ft rafter: ⌈168 ÷ 6⌉ + 1 = 29 slats, 18 ft long. Six 12 in holes 3 ft deep with 6×6 posts take about 10.4 ft³ of concrete, or 18 bags of 80 lb mix before waste.

Metric 4 × 3 m pergola

Posts at most 3 m apart: ⌈4 ÷ 3⌉ + 1 = 3 per side, 6 posts. With 300 mm overhangs, beams are 4.6 m and rafters 3.6 m. Rafters at 400 mm give ⌈4,600 ÷ 400⌉ + 1 = 13 rafters.

Who this calculator can help

  • Landscape architects and garden designers sketching outdoor rooms and checking post layouts against paving and planting.
  • Architects adding a pergola to a terrace, roof deck or rear extension and needing a quick quantity check.
  • Contractors and carpenters preparing a lumber list and quote.
  • Homeowners and DIY builders pricing a pergola kit against building from stock lumber.

Practical tips

  • Keep the timber out of the ground where you can: a post base on a concrete pier lasts longer than a buried post, even pressure-treated.
  • Use stock lengths that suit the members. If a beam is longer than your longest board, plan the splice over a post.
  • Brace posts with knee braces or rigid post bases in windy areas; tall slender pergolas rack sideways without them.
  • Check rafter spans with the joist and rafter span calculator, footings with the concrete calculator, and price the timber with the board foot calculator.
  • Building a deck under it? The deck calculator counts boards and joists, and the sun path calculator shows where the shade will fall.

Want to see the pergola in your garden first? Try a few designs on a photo with AI Landscape Design.

From numbers to pictures

See the space before it's built.

Once the plan works on paper, BasedFrame turns a sketch, a massing model or a site photo into a photoreal render in seconds. Try Sketch to Render or Room Redesign with free credits.

Try BasedFrame free

FAQ

Pergola Calculator FAQ

How many posts does a pergola need?

A small pergola up to about 10 ft (3 m) long needs four posts, one at each corner. Add a post to each beam line for every extra span: the calculator uses posts per line = ⌈length ÷ maximum post spacing⌉ + 1, times the number of beam lines. A 16 × 12 ft pergola with posts no more than 10 ft apart needs 3 posts per side, 6 in total.

How far apart should pergola posts be?

Many timber pergolas keep posts 8–10 ft (2.4–3 m) apart, with doubled 2×8 to 2×12 beams spanning between them. Longer spacing needs deeper beams, steel or engineered lumber. The right spacing depends on beam size, species, roof load and local wind and snow, so treat 10 ft as a planning default, not a rule, and check beam spans with a span table or an engineer.

How far apart should pergola rafters be?

Rafters are commonly set 12–24 in (300–600 mm) on center. Closer spacing gives more shade and a heavier look; 16 in is a popular middle ground. If you add top slats (purlins) across the rafters, the rafters can be wider apart because the slats provide most of the shade.

How much shade does a pergola give?

An open-slat pergola gives partial shade that depends on how much of the sky the members block. The calculator estimates it as 1 − (1 − rafter width ÷ rafter spacing) × (1 − slat width ÷ slat spacing) for the sun straight overhead. With 1½ in rafters at 16 in and 1½ in slats at 6 in, that is about 32%. Deeper members and a low sun throw longer shadows, so real shade is often higher in morning and evening.

How deep should pergola post holes be?

Post holes are often dug about one-third of the post height above ground, and in cold climates at least to the local frost depth, commonly 24–48 in (600–1,200 mm). Many builders prefer surface-mounted post bases on concrete footings to keep timber out of the ground. Your building department sets the footing depth where a permit is needed.

How much concrete do I need per pergola post?

Concrete per hole = hole area × depth − post area × depth. A 12 in diameter hole 36 in deep with a 6×6 post takes about 2.36 − 0.63 = 1.73 ft³, roughly 3 bags of 80 lb mix at 0.60 ft³ per bag. The calculator does the sum for every post and adds a waste allowance.

What size lumber should I use for a pergola?

Typical timber pergolas use 6×6 posts, doubled 2×8 to 2×12 beams, 2×6 to 2×8 rafters and 2×2 or 2×4 top slats. This calculator counts pieces and lengths but does not size members; use span tables or the joist span calculator for rafters, and get an engineer for large, attached or snow-loaded pergolas.

Do I need a permit to build a pergola?

It depends on where you live. Many areas exempt small freestanding pergolas, while attached pergolas, tall structures, roofs with solid covers or anything near a property line may need a permit and a setback check. Ask your local building department before you dig.

Keep exploring

More free tools for architects

Turn any listing
into rooms that sell

Start with a Zillow link or a single photo. Redesign, stage, relight and walk buyers through every room, ready to list today.