Pergola Calculator

</> Embed this calculator on your site

This pergola calculator works out how many posts, beams, rafters and top slats your pergola needs, how big the footings should be, how many bags of concrete to buy and what the lumber will roughly cost. Enter your dimensions and site conditions, and every result is rounded to the safe side.

Diagram updates with your numbers when you calculate. Not to scale.

Size

Direction the beams run
Direction the rafters span

Lumber

Site and loads

Estimates only. By using this calculator you agree to our Terms.

</> Embed this calculator on your site

Free for any website, blog, classroom or intranet. No sign-up, no ads inside the embed. Copy the code and paste it into your page.

Preview the embed

How to Use This Pergola Calculator

Enter the post-to-post length and width, the post height above ground, and how far the rafters and beams overhang. Pick your lumber sizes, rafter spacing, optional top slats, and your local snow load, frost depth and soil type. Press Calculate to get a post count, post size, footing size, concrete bags, a full materials list, shade percentage and a lumber cost estimate. Change any dropdown afterward and the results refresh so you can compare options quickly.

Why This Matters

A pergola looks light, but the structure carries real loads: its own weight, snow, wind uplift and the occasional person hanging a swing or a planter from it. Most failures come from the same few mistakes: beams that span too far between posts, posts that are too slim for their height, and footings that are too shallow or too small. Getting the numbers right before you shop saves money and prevents a rebuild.

Consider a typical 12 by 16 foot pergola over a patio. Builders often drop in four posts because it looks clean, but a double 2x10 beam can only span about 9 feet under a standard 50 psf load, so a 16 foot side needs a third post in the middle. That is six posts, six footings and roughly 39 bags of concrete rather than four posts and 26 bags. Knowing that up front lets you budget correctly, order the right lengths of lumber and avoid mid-project trips to the yard. It also helps when you talk to a contractor, because you can check their quote against a clear materials list.

How It's Calculated

The calculator uses rule-of-thumb spans derived from the International Residential Code deck tables: R507.5 for beams, R507.6 for joists (used here for rafters) and R507.4 for post height. Those tables assume Southern Pine No. 2 under 40 psf live plus 10 psf dead load. A pergola is not a deck, so this is a conservative approximation, not a code compliance check. Local codes vary.

Worked Example

Take a 16 by 12 ft pergola, 8 ft post height, 12 in overhang, 2x10 rafters at 16 in, double 2x10 beams, 2x2 slats at 12 in, Southern Pine, 30 psf snow, 24 in frost depth and 1,500 psf soil.

  1. Tributary width is 12 ÷ 2 + 1 = 7 ft, so the table gives a 9.0 ft max beam span. 16 ÷ 9 rounds up to 2 spans of 8 ft, so 6 posts.
  2. 2x10 rafters at 16 in can span 14 ft, and your width is 12 ft, so they pass. Rafters are 12 + 2 = 14 ft long. (216 in ÷ 16 in) rounds up to 14, plus 1, gives 15 rafters.
  3. Posts are 6x6 because the beam is a double 2x10. Buried length is 8 + 2.5 = 10.5 ft, so buy 12 ft stock.
  4. Footing depth is 30 in. Post load is 8 × 7 × 35 psf = 1,960 lb, which needs 1.31 sq ft at 1,500 psf, or a 15.5 in circle. That rounds up to 16 in diameter. Six footings use about 23 cu ft with waste, so 39 bags.
  5. Lumber is about 800 board feet, or roughly $1,399 at $1.75 per board foot. Shade from rafters plus slats is about 21 percent.

Tips & Common Mistakes

Frequently Asked Questions

How many posts do I need for a 12x16 pergola?

Usually six: three along each 16 ft side. A double 2x10 beam spans about 9 ft under a standard load, so one span of 16 ft is too long. Run the calculator with your beam size, since a double 2x12 can sometimes reach farther.

How far can a pergola beam span?

For a double 2x10 supporting a 12 ft wide pergola with a 1 ft overhang, about 9 ft. A double 2x12 reaches roughly 10 ft 6 in. Heavy snow or weaker lumber such as cedar shortens those spans.

What size posts should I use for a pergola?

4x4 posts only suit small, low pergolas up to 8 ft tall. Most pergolas use 6x6 posts, which resist bending and give you room to attach beams and brackets. The tool picks 6x6 whenever height, beam size, snow or load area calls for it.

How deep should pergola post footings be?

At least as deep as your local frost line, and this tool never goes shallower than 30 in so there is resistance to wind uplift. In cold climates the frost depth can be 36 to 60 in. Your building department can tell you the exact number.

Do I need a permit to build a pergola?

Often yes, especially if it is attached to your house, taller than a set height or larger than a set area, commonly 120 to 200 square feet. Rules differ widely by city and county. Call your local building office before buying materials.

How far apart should pergola rafters be?

For shade and a classic look, 12 to 16 in on center is common. 24 in works for a lighter look or when you add slats on top. Wider spacing also reduces the span a rafter can safely cover, so the calculator checks this for you.

Results are planning estimates based on rule-of-thumb spans from IRC R507 deck tables. They are not engineering, permit or inspection approval. Snow, wind, seismic rules and lumber grades vary by location, so confirm your design with your local building department or a licensed engineer.