Lumber & Framing
Updated Aug 12, 2026

Pergola Calculator

Estimate posts, beams, rafters, top slats, and concrete needed to build a pergola, with cost breakdown.

How to Plan Pergola Materials

A pergola is a freestanding outdoor structure with four corner posts, two long beams across the top, and rafters running across the width. Optional top slats provide shade and a finished look. Material counts depend on size, spacing, and overhang preferences.

Rafter Count Formula

Rafters span the width and are spaced along the length. Closer spacing creates more shade; wider spacing creates an airy, modern look:

Rafters=LengthinSpacingin+1

Top Slat Count Formula

Slats=WidthinSlat Width+Gap
Standard Pergola Sizes
Common pergola footprints: 10x10 (small patio), 12x12 (dining area), 12x16 (lounging plus dining), 16x20 (entertaining). Build slightly larger than your furniture footprint to leave 2 to 3 ft of walking space around the perimeter.

Post and Footing Sizes

Pergola SizePostFooting Depth
Up to 8x84x424 in
10x10 to 16x166x630 to 36 in
Over 16x168x836 to 48 in
Below the Frost Line
In cold climates, all post footings must extend below the frost line to prevent heaving. The frost line varies from 0 inches in the South to 60+ inches in northern Minnesota. Check your local code for the required depth in your area.

Material Options for Pergolas

MaterialCost / sq ftLifespanMaintenance
Pressure-treated pine$15 - $3010 - 20 yrsStain every 2-3 yrs
Cedar$30 - $5020 - 40 yrsSeal every 3-5 yrs
Redwood$40 - $6025 - 40 yrsSeal every 3-5 yrs
Aluminum$30 - $6050+ yrsNone
Vinyl / PVC$40 - $7030+ yrsWash annually

Rafter Spacing and Shade

The spacing between rafters controls how much sunlight penetrates the pergola. Tighter spacing with wider rafters gives more shade. Common spacings:

  • 12 in OC - dense shade, modern look, uses most lumber
  • 16 in OC - balanced shade and airflow, standard choice
  • 24 in OC - minimal shade, maximum airflow, airy appearance
Add Shade with Slats or Cover
For afternoon shade, add a second layer of slats or a canvas canopy across the rafters. A 2x2 slat at 45 degrees off the rafter angle casts shadows that move with the sun. For guaranteed dry seating, install a retractable canopy or polycarbonate roof panels.

Frequently Asked Questions