Pergola Calculator
Estimate posts, beams, rafters, cross-slats, and hardware for your pergola project. Get a complete material list with costs.
How to Calculate Pergola Materials
Building a pergola requires careful planning to ensure you purchase the right amount of lumber and hardware. The main structural elements are posts, beams, rafters, and cross-slats, each serving a specific role in the finished structure.
Posts are the vertical supports that hold the entire pergola. A standard rectangular pergola uses four posts (one at each corner), while longer pergolas over 12 feet benefit from six posts to prevent beam sag. Each post is typically a 6x6 timber set 2 feet into the ground with concrete footings, so a pergola with an 8-foot height requires 10-foot posts.
Beams sit on top of the posts and run the length of the pergola. Most designs use doubled 2x8 boards on each side, resulting in four beam boards total. Doubling the beams adds structural rigidity and creates the classic layered look that defines a pergola.
Rafters run perpendicular to the beams across the width of the pergola. The number of rafters depends on your chosen spacing. At 16-inch on-center spacing (the most common choice), a 12-foot pergola needs 10 rafters. Closer spacing at 12 inches provides more shade, while 24-inch spacing creates a more open feel.
Cross-slats are the smallest members, running on top of the rafters along the length. Spaced at 6 inches on center, they add shade and visual interest. Tighter 4-inch spacing blocks more sun, while 8-inch spacing is more decorative than functional. Use our calculator above to see how different spacing options change your material list.
Choosing Pergola Lumber
The wood species you select affects the cost, appearance, durability, and maintenance requirements of your pergola. Here are the three most popular options for residential pergola construction.
Pressure-treated pine is the most budget-friendly option and is widely available at home centers. It resists rot and insects thanks to chemical treatment, but it can warp and crack as it dries. Plan to stain or seal it within the first year after construction. It weathers to a silver-gray if left untreated.
Cedar is a popular mid-range choice that offers natural rot resistance and a warm, reddish-brown tone without chemical treatment. It is lighter weight than pressure-treated lumber, which makes it easier to work with overhead. Cedar does require periodic sealing to maintain its color.
Redwood is the premium choice with exceptional natural beauty and durability. Its rich color and tight grain make it the most attractive option, but it comes at a significantly higher price point. Redwood is naturally resistant to decay and insects, making it an excellent long-term investment in regions where it is available.
| Wood Type | Cost (relative) | Durability | Appearance | Maintenance |
|---|---|---|---|---|
| Pressure-Treated Pine | $ (lowest) | Good (20+ years treated) | Green/tan, weathers gray | Stain within 1 year; reseal every 2-3 years |
| Cedar | $$ (moderate) | Very good (15-25 years) | Warm reddish-brown | Seal every 2-3 years for color retention |
| Redwood | $$$ (highest) | Excellent (25-30+ years) | Rich red, tight grain | Seal every 3-5 years; ages gracefully |
Pergola Post Footings
Proper footings are critical for a safe, long-lasting pergola. Each post should be anchored in a concrete footing that extends below the frost line in your area. In warmer climates, a minimum depth of 24 inches is standard, while cold climates may require footings 36 to 48 inches deep.
The most common method is digging a hole 12 inches in diameter and setting the post directly into wet concrete. For a 6x6 post, two 60-lb bags of concrete per hole is a typical estimate. Use our concrete calculator for exact volume if your footing dimensions differ.
An alternative approach uses metal post base hardware anchored to a concrete pier. This keeps the wood above ground level, reducing moisture contact and extending post life. Post bases are especially useful in wet climates or when local code requires them. Whichever method you choose, always verify your local frost line depth and building code requirements before digging.
Standard Pergola Sizes
Not sure what size to build? Here are the most common residential pergola dimensions with approximate material requirements at standard spacing (16-inch rafter spacing, 6-inch slat spacing, 4 posts).
| Size (L x W) | Posts | Beam Linear Ft | Rafters | Cross-Slats | Approx. Total Lumber (linear ft) |
|---|---|---|---|---|---|
| 10 x 10 ft | 4 | 40 | 8 | 21 | ~370 |
| 12 x 10 ft | 4 | 48 | 10 | 21 | ~460 |
| 12 x 14 ft | 4 | 48 | 10 | 29 | ~580 |
| 16 x 12 ft | 6 | 64 | 13 | 25 | ~680 |
These estimates assume an 8-foot height and standard lumber dimensions. Your actual needs may differ based on design choices, rafter tails, decorative ends, and local building code requirements.
Tips for Building a Pergola
- Check permits first. Most municipalities require a building permit for structures over 200 square feet or taller than 10 feet. Setback requirements may also dictate how close you can build to a property line. Contact your local building department before purchasing materials.
- Ensure a level foundation. Use a string line and level to verify that your post locations are square and level before pouring concrete. Measure diagonals to confirm squareness: if the two diagonal measurements are equal, your layout is square.
- Notch beams for a stronger connection. Cutting notches (or dadoes) where rafters sit on beams creates a mechanical interlock that is far stronger than simply toe-nailing rafters on top. A notch depth of about 1 inch is typical for 2x6 rafters.
- Add decorative rafter tails. Extending rafters 12 to 18 inches beyond the beams and cutting a decorative profile on the ends gives your pergola a finished, custom look. Common profiles include angled cuts, curved cuts, and scalloped ends.
- Finish and protect the wood. Apply a UV-resistant exterior stain or sealant within 30 days of construction for cedar and redwood, or after the wood has dried for 6 to 12 months for pressure-treated lumber. Reapply every 2 to 3 years to maintain appearance and prevent weathering.
Frequently Asked Questions
Standard depth is 24-36 inches, or below the frost line in cold climates. For freestanding pergolas, posts should be set in at least 2 cubic feet of concrete per post. In areas with deep frost lines (36-48 inches), dig to the required depth and fill with concrete from the bottom of the hole to within a few inches of ground level.
In most areas, yes. Pergolas over 200 sq ft or taller than 10 ft typically require a building permit. Some jurisdictions require permits for any attached structure regardless of size. Check with your local building department before starting. Permit fees generally range from $50 to $500 depending on your municipality.
6x6 posts are standard for most residential pergolas. For spans over 12 feet between posts, consider upgrading to 6x8 or 8x8 posts for added structural support. The height of the pergola also matters: taller pergolas (over 10 feet) benefit from larger posts to resist lateral loads from wind.
A typical 12x10 ft DIY pergola costs $1,500-3,500 in materials depending on wood type. Pressure-treated pine is the most affordable, while cedar and redwood cost significantly more. Professional installation runs $3,000-8,000 for the same size, including labor and materials. Use the calculator above to get a detailed material cost estimate for your specific dimensions.