Pergola Calculator for the posts, double beams, rafters, slats and concrete a wood frame needs, with each member span-checked for your roof load and soil, plus a cut list and cost.
Enter the post-to-post size; posts, beams, rafters, slats and concrete follow from it.
Wood, Member Sizes, Slats & Load
Footings & Concrete
Pergola Cost & Prices
Pergola Plan Diagram
Pergola Cut List & Hardware
| Part | Size | Qty | Order Length | Cut Length |
|---|---|---|---|---|
| Posts | 6×6 | 6 | 12 ft | 11 ft 7 1/4 in |
| Beam plies | 2×8 | 4 | 20 ft | 19 ft |
| Rafters | 2×6 | 13 | 14 ft | 13 ft |
| Top slats | 2×2 | 40 | 10 ft | 9 ft 6 in |
| Knee braces (45°) | 4×4 | 14 from 7 | 8 ft | 34 in |
| Hardware | Spec | Qty |
|---|---|---|
| Through-bolts, nut + 2 washers | 1/2 in × 10 in | 12 |
| Rafter ties (both beams) | Galvanized, 1 per crossing | 26 |
| Slat screws | 3 in exterior | 260 |
| Brace screws | Structural, 2 per end | 56 |
| Concrete bags | 80 lb (0.6 cu ft each) | 48 |
Rafter & Beam Span Chart
| Rafter Size | Span at 12 in | Span at 16 in | Span at 24 in | Double Beam Post Spacing |
|---|---|---|---|---|
| 2×6 | 14 ft 10 in | 12 ft 10 in | 10 ft 6 in | 7 ft 8 in |
| 2×8 | 18 ft 10 in | 16 ft 4 in | 13 ft 4 in | 9 ft 9 in |
| 2×10 | 22 ft 5 in | 19 ft 5 in | 15 ft 10 in | 11 ft 7 in |
| 2×12 | 26 ft 4 in | 22 ft 10 in | 18 ft 8 in | 13 ft 7 in |
Pergola Sizes Chart
| Pergola Size | Posts | Beams | Rafters | Concrete | Material Cost |
|---|---|---|---|---|---|
| 10 × 10 ft | 4 × 6×6 | Double 2×10 | 9 × 2×6 | 32 bags | $955 |
| 10 × 12 ft | 4 × 6×6 | Double 2×12 | 10 × 2×6 | 32 bags | $1,047 |
| 12 × 12 ft | 4 × 6×6 | Double 2×12 | 10 × 2×6 | 32 bags | $1,101 |
| 12 × 16 ft | 6 × 6×6 | Double 2×8 | 13 × 2×6 | 48 bags | $1,446 |
| 14 × 16 ft | 6 × 6×6 | Double 2×8 | 13 × 2×8 | 48 bags | $1,632 |
| 16 × 20 ft | 6 × 6×6 | Double 2×12 | 16 × 2×8 | 48 bags | $2,018 |
Shade by Rafter Spacing
| Rafter Spacing | Sun Overhead | Sun at 60° | Sun at 45° | Sun at 30° |
|---|---|---|---|---|
| 12 in OC | 29% | 50% | 66% | 93% |
| 16 in OC | 26% | 42% | 54% | 75% |
| 24 in OC | 24% | 35% | 42% | 56% |
Step-by-Step Pergola Math
Pergola Calculator Lumber List by Size
A 12 × 12 ft freestanding wood pergola needs 4 posts, double 2×12 beams, 10 rafters of 2×6 at 16 in on center, 23 top slats and 32 bags of 80 lb concrete. That frame comes to about 597 board feet and $1,101 in materials.
Each row below is a pergola calculator result for the same build: treated Southern Pine No. 2, 6×6 posts, 18 in overhang at each end, 8 ft clear height, 2×2 slats at 8 in, and a 20 psf roof load.
| Size (W × L) | Posts | Double Beam | Rafters | Slats | 80 lb Bags | Board Feet | Material Cost |
|---|---|---|---|---|---|---|---|
| 10 × 10 ft | 4 | 2×10 | 9 × 2×6 | 20 | 32 | 499 | $955 |
| 10 × 12 ft | 4 | 2×12 | 10 × 2×6 | 20 | 32 | 561 | $1,047 |
| 12 × 12 ft | 4 | 2×12 | 10 × 2×6 | 23 | 32 | 597 | $1,101 |
| 12 × 16 ft | 6 | 2×8 | 13 × 2×6 | 46 | 48 | 759 | $1,446 |
| 14 × 16 ft | 6 | 2×8 | 13 × 2×8 | 52 | 48 | 883 | $1,632 |
| 12 × 20 ft | 6 | 2×10 | 16 × 2×6 | 46 | 48 | 891 | $1,644 |
| 16 × 20 ft | 6 | 2×12 | 16 × 2×8 | 58 | 48 | 1,141 | $2,018 |
| 12 × 24 ft | 6 | 2×12 | 19 × 2×6 | 46 | 48 | 1,033 | $1,857 |
The 12 × 16 ft frame uses a lighter beam than the 12 × 12 ft one. A double 2×12 stops near 12 ft 8 in between posts at this load, so the longer frame gets a middle post and the beam drops to a double 2×8.
That beam jump is where a pergola calculator earns its keep. A list built from linear feet alone would order 4 posts and two long 2×12 beams that sag past their limit.
Board feet in a pergola calculator total follow nominal sizes, so a 6×6 × 12 ft post counts as 36 board feet. The Board Foot Calculator converts a per-piece quote from your yard into the same unit.
Rafter Span by Size and Spacing
Treated Southern Pine No. 2 rafters at 16 in on center span 12 ft 10 in as 2×6, 16 ft 4 in as 2×8, 19 ft 5 in as 2×10 and 22 ft 10 in as 2×12, under 20 psf of snow plus 10 psf dead load.
| Rafter Size | 12 in OC | 16 in OC | 24 in OC |
|---|---|---|---|
| 2×6 | 14 ft 10 in | 12 ft 10 in | 10 ft 6 in |
| 2×8 | 18 ft 10 in | 16 ft 4 in | 13 ft 4 in |
| 2×10 | 22 ft 5 in | 19 ft 5 in | 15 ft 10 in |
| 2×12 | 26 ft 4 in | 22 ft 10 in | 18 ft 8 in |
Those spans set the rafter size for each width in a pergola calculator run. At 16 in spacing, widths of 8 to 12 ft take 2×6, 14 and 16 ft take 2×8, and 18 ft needs 2×10. At 24 in spacing, a 12 ft width already needs 2×8.
Each pergola calculator span is the shortest of three limits: bending, shear and sag. Bending uses the classic simple-span moment for a uniform load.
Here w is the load per foot of rafter, L is the span, S is the section modulus and Fb' is the adjusted bending value. The rafter load is the roof load times spacing, so 30 psf × 16 in ÷ 12 gives 40 lb per foot.
Sag uses the snow load alone, with E' as the adjusted stiffness and I as the moment of inertia. The L/180 limit matches the code limit for rafters with no ceiling attached.
Outdoor framing changes the answer. The American Wood Council design values assume dry lumber, while a pergola sits in the weather. The wet-service factors cut stiffness to 0.9 E, shear to 0.97 and bending to 0.85 whenever Fb × CF is above 1,150 psi.
Douglas Fir-Larch 2×6 shows the gap. Its 1,170 psi bending value crosses the 1,150 psi line, so a dry 13 ft 11 in span at 16 in drops to 12 ft 10 in outdoors. A pergola span calculator built on indoor rafter tables overstates that rafter by 13 in.
Every rafter span in these pergola calculator tables also carries a load duration factor of 1.15 for snow and a repetitive member factor of 1.15, since rafters at 24 in or closer share load.
A pergola rafter usually lies flat across the beams. When a shed-style frame slopes away from the house, the Rafter Length Calculator gives the cut length and tail.
Beam Size and Post Spacing
A double 2×8 beam on a 10 ft wide pergola allows posts up to 9 ft 9 in apart. A double 2×10 stretches that to 11 ft 7 in and a double 2×12 to 13 ft 7 in, at 20 psf in Southern Pine No. 2.
| Pergola Width | Double 2×6 | Double 2×8 | Double 2×10 | Double 2×12 |
|---|---|---|---|---|
| 8 ft | 8 ft 4 in | 10 ft 7 in | 12 ft 7 in | 14 ft 10 in |
| 10 ft | 7 ft 8 in | 9 ft 9 in | 11 ft 7 in | 13 ft 7 in |
| 12 ft | 7 ft 2 in | 9 ft 1 in | 10 ft 9 in | 12 ft 8 in |
| 14 ft | 6 ft 8 in | 8 ft 6 in | 10 ft 1 in | 11 ft 11 in |
| 16 ft | 6 ft 4 in | 8 ft 1 in | 9 ft 7 in | 11 ft 3 in |
A common rule says a doubled 2×8 handles 10 ft between posts. By pergola calculator math it falls short on any frame 10 ft wide or wider, and at 14 ft wide it stops at 8 ft 6 in.
Width drives the beam in every pergola calculator check, since each beam carries half the canopy depth, overhangs included. A 10 ft span with 18 in tails gives 13 ft of rafter, so each beam takes 6.5 ft of roof.
In that formula q is the total roof load in psf, W is the beam-to-beam width and a is the rafter overhang in feet. At 30 psf the 10 ft frame puts 195 lb on each foot of beam.
A pergola post spacing calculator answer only holds when beam tails stay short. Keep each beam end within 1/4 of the bay past its last post, so an 8 ft bay allows 2 ft of overhang.
For a run that needs fewer posts than these double beams allow, the Wood Beam Span Calculator sizes solid and LVL beams.
Snow Load and Roofed Pergolas
At 30 psf instead of 20 psf, a 4-post 12 × 12 ft pergola becomes a 6-post frame and its 2×6 rafters grow to 2×8, a jump that changes every pergola calculator list. Snow country and solid roof covers change the lumber list more than any other input.
| Roof Load | 12 × 12 Rafters | 12 × 12 Beam, Posts | 12 × 16 Rafters | 12 × 16 Beam, Posts |
|---|---|---|---|---|
| 20 psf | 2×6 | 2×12, 4 posts | 2×6 | 2×8, 6 posts |
| 30 psf | 2×8 | 2×6, 6 posts | 2×8 | 2×10, 6 posts |
| 40 psf | 2×8 | 2×8, 6 posts | 2×8 | 2×10, 6 posts |
| 50 psf | 2×10 | 2×8, 6 posts | 2×10 | 2×12, 6 posts |
| 70 psf | 2×12 | 2×10, 6 posts | 2×12 | 2×8, 8 posts |
Beams in this pergola calculator table are double plies, and rafters sit at 16 in. Adding posts lets a beam stay light, which is why the 70 psf 12 × 16 ft frame drops back to a double 2×8 on 8 posts.
The load in a pergola calculator is roof snow, not ground snow. Under ASCE 7 a flat roof carries about 0.7 times the ground value before exposure and heat factors, so 30 psf ground snow lands near 21 psf on the frame.
Find your ground snow load on the ASCE Hazard Tool, then convert it with the Snow Load Calculator. Keep at least 20 psf, the minimum roof live load the ICC notes for IRC Table R301.6.
A pergola calculator with roof panels still works on the same 10 psf dead load, which covers the framing plus a light cover. A solid roof also holds every inch of snow and drifts against a house wall, so size it at the full roof snow load.
Footing Size Chart for Pergola Posts
A 12 × 20 ft pergola puts about 2,813 lb on each middle post, which needs a 19 in footing on 1,500 psf clay. Corner posts of a 10 × 10 ft frame carry only 1,268 lb and need 13 in.
| Pergola Size | Heaviest Post Load | 1,500 psf Soil | 2,000 psf Soil | 3,000 psf Soil |
|---|---|---|---|---|
| 10 × 10 ft | 1,268 lb | 13 in | 11 in | 9 in |
| 12 × 12 ft | 1,688 lb | 15 in | 13 in | 11 in |
| 10 × 16 ft | 1,950 lb | 16 in | 14 in | 11 in |
| 12 × 16 ft | 2,250 lb | 17 in | 15 in | 12 in |
| 12 × 20 ft | 2,813 lb | 19 in | 17 in | 14 in |
| 16 × 20 ft | 3,563 lb | 21 in | 19 in | 15 in |
These pergola calculator footing diameters assume 30 psf total roof load and 18 in overhangs. The soil values come from IRC Table R401.4.1, which presumes 1,500 psf for clays and silts and 2,000 psf for sands.
D is the footing diameter in inches, P is the post load in pounds and q is the allowable soil pressure in psf. Round the pergola calculator result up to the next whole inch or the next tube size.
The middle post carries more than an even bay-by-bay share when one beam board runs over it. For two equal spans, AWC Design Aid No. 6 puts 10/8 of a bay's load on the center support.
Here w is the beam load per foot and L is one bay. A 12 × 20 ft frame has 225 lb/ft over 10 ft bays, so the middle post takes 2,813 lb instead of the 2,250 lb a bay-by-bay split suggests.
This is where the hole-size rule of thumb fails. Three times the post width gives 16.5 in for a 6×6, yet the 12 × 20 ft middle post needs 19 in on clay. Size the Sonotube Calculator or a wider pad from the load, not the post.
Attached vs Freestanding Pergola Loads
An attached 10 × 16 ft pergola needs 3 posts instead of 6, and its pergola calculator material cost drops from $1,377 to $869. The house ledger takes the place of the back beam and its posts.
| Size | Posts Free / Attached | Front Beam Load | Double Beam | Cost Free / Attached |
|---|---|---|---|---|
| 10 × 16 ft | 6 / 3 | 195 / 198 lb/ft | 2×8 | $1,377 / $869 |
| 12 × 12 ft | 4 / 2 | 225 / 228 lb/ft | 2×12 | $1,101 / $721 |
| 12 × 20 ft | 6 / 3 | 225 / 228 lb/ft | 2×10 | $1,644 / $1,088 |
The front beam of an attached frame carries slightly more, not half. Rafter tails cantilever past it, which adds load to the beam and takes a little off the ledger.
W is the ledger-to-beam span and a is the tail length, both in feet. For a 10 ft span with 18 in tails, t is 6.61 ft, the depth behind the 198 lb/ft pergola calculator beam load at 30 psf.
The ledger then takes about 147 lb on every foot of house wall in that same frame. That load must reach the rim joist through bolts or structural screws, with flashing above the ledger and one hanger per rafter.
The house wall steadies the back edge, but the front posts can still rack in wind, so they keep their knee braces. A freestanding 16 × 10 ft frame with 24 in brace legs uses 14 braces cut from 7 pieces of 4×4.
Cost to Build a Pergola Yourself
A DIY 16 × 10 ft wood pergola costs about $1,377 in materials at $1.30 per board foot, or $5.58 per square foot of its 247 sq ft canopy. Adding $15 per sq ft of installation labor brings it to $5,082.
Lumber is about two-thirds of that pergola calculator total. The 713 board feet cost $926, the 48 bags of concrete cost $312 at $6.50 each, and a 15% allowance of the lumber cost adds $139 for bolts, ties and screws.
| Lumber Price | Material Cost | Per Sq Ft of Canopy | Installed at $15/sq ft |
|---|---|---|---|
| $0.90 per bd ft | $1,050 | $4.25 | $4,755 |
| $1.30 per bd ft | $1,377 | $5.58 | $5,082 |
| $1.80 per bd ft | $1,787 | $7.24 | $5,492 |
| $2.50 per bd ft | $2,361 | $9.56 | $6,066 |
| $4.50 per bd ft | $4,000 | $16.19 | $7,705 |
Local lumber price is the number that moves a pergola calculator total most. Divide a quoted board price by its board feet: a 2×6 × 14 ft holds 14 board feet, so $15 per board is about $1.07 per board foot.
Labor moves the installed pergola calculator figure even more. On the same 247 sq ft canopy, $10 per sq ft gives $3,847 installed and $25 per sq ft gives $7,552, while lumber stays fixed.
In the pergola calculator lumber split, posts take 216 board feet, rafters 182, slats 133, beams 107 and knee braces 75. Leaving the 2×2 slats off saves about $173 in lumber, though shade at noon drops from 26% to 9%.
A pergola cost calculator estimate is only as close as the prices fed into it. The Lumber Calculator converts between piece count, board feet and cost when the yard prices lumber by the board.
Height, Timber and Post Depth Answers
The 16 × 10 ft pergola calculator frame used below has 6 posts in two lines, 2 bays of 8 ft, 13 rafters and 40 slats, in Southern Pine No. 2 at 20 psf unless a size is named.
What height should a pergola be?
Most pergolas use 8 ft of clear height under the beam. With a 2×8 beam, 2×6 rafters and 2×2 slats stacked on top, an 8 ft pergola stands 9 ft 2 1/4 in to its highest slat.
Clear height decides post stock length in any pergola calculator list. With 36 in of embed, 7 and 8 ft clear heights fit 12 ft posts, 9 and 10 ft need 14 ft posts, and 12 ft clear needs 16 ft posts.
That makes 8 ft the sweet spot for a pergola height calculator answer. Going to 9 ft adds only a foot of headroom but moves all 6 posts to the next stock length.
What is the best timber for a pergola?
Treated Southern Pine No. 2 is the strongest common choice for posts in the ground. Spruce-Pine-Fir and Hem-Fir span slightly farther as outdoor rafters, and Western Red Cedar spans the least.
| Species (No. 2) | 2×6 Bending | Stiffness E | 2×6 Span at 16 in |
|---|---|---|---|
| Southern Pine | 1,000 psi | 1,400,000 psi | 12 ft 10 in |
| Douglas Fir-Larch | 1,170 psi | 1,600,000 psi | 12 ft 10 in |
| Hem-Fir | 1,105 psi | 1,300,000 psi | 13 ft 6 in |
| Spruce-Pine-Fir | 1,140 psi | 1,400,000 psi | 13 ft 9 in |
| Western Red Cedar | 910 psi | 1,000,000 psi | 12 ft 3 in |
The Southern Pine values match the Southern Forest Products Association No. 2 comparisons. Douglas fir loses its edge outdoors because the wet-service cut hits its 2×6 bending value.
For a 12 × 16 ft frame, every species in the table still lands on 2×6 rafters and double 2×8 beams. Species choice matters more for rot and looks than for size on a typical wood pergola calculator build.
How deep should pergola posts be set in the ground?
Set pergola posts below your local frost line and at least 12 in below grade. The tables here use 36 in holes, while Quikrete's fence-post rule calls for deeper holes on tall posts.
Quikrete sizes holes at one third of the overall post length. For an 8 ft clear pergola with posts rising 8 ft 7 in, that rule gives about 52 in, and 10 ft clear gives about 64 in.
That rule is written for a lone fence post that resists wind through its embed alone. A pergola shares that work with its beams and knee braces.
The local frost line is the depth to confirm first. The Fence Post Depth Calculator checks frost lines and burial depth together.
How much concrete do pergola posts need?
A 6×6 post in an 18 in wide, 36 in deep hole takes 4.67 cubic feet of concrete. That is 8 bags of 80 lb mix or 11 bags of 60 lb mix per post, and 48 bags of 80 lb for 6 posts.
| Post | Hole Diameter | Depth | Concrete | 80 lb Bags | 60 lb Bags |
|---|---|---|---|---|---|
| 4×4 | 12 in | 36 in | 2.10 cu ft | 4 | 5 |
| 6×6 | 16 in | 36 in | 3.56 cu ft | 6 | 8 |
| 6×6 | 18 in | 36 in | 4.67 cu ft | 8 | 11 |
| 6×6 | 18 in | 48 in | 6.23 cu ft | 11 | 14 |
| 6×6 | 20 in | 36 in | 5.91 cu ft | 10 | 14 |
| 8×8 | 24 in | 36 in | 8.25 cu ft | 14 | 19 |
V is concrete per hole in cubic feet, d is the hole diameter in inches, h is the depth in inches and b is the actual post width, 5.5 in for a 6×6. Bag yields are 0.60 cu ft for 80 lb and 0.45 cu ft for 60 lb.
In a pergola calculator bag count, round up per hole and then multiply by the posts, since a partial bag in each hole is still a full bag bought. A 4 in gravel base under the post trims about one 80 lb bag from an 18 in hole.
How do I attach pergola beams to posts?
Sandwich each 6×6 post between the two beam plies and run two 1/2 in through-bolts with a nut and two washers. The stack is 8 1/2 in thick, so 10 in bolts fit; 4×4 posts take 8 in bolts and 8×8 posts take 12 in.
The traditional method sets the post in a concrete hole, so each post of a 16 × 10 ft frame is cut to 11 ft 7 1/4 in from 12 ft stock.
In a pergola calculator cut list, bracket builds stand the post on a pier with a steel post base, which shortens the cut to 8 ft 7 1/4 in and fits 10 ft stock.
A pier pours a full cylinder with no post inside it. The same 18 in × 36 in footing then takes 9 bags of 80 lb instead of 8, or 54 bags for 6 posts.
Fasten each rafter to each beam it crosses with a galvanized tie. A 16 × 10 ft freestanding frame with 13 rafters needs 26 ties, plus 12 through-bolts at the posts.
What spacing should pergola rafters be?
Space pergola rafters 16 in on center for most builds. On a 16 × 10 ft frame that means 13 rafters, about 26% shade at noon with 2×2 slats at 8 in, and $1,377 in materials.
| Rafter Spacing | Rafters | Material Cost | Shade, Sun Overhead | Shade, Sun at 45° | Shade, Sun at 30° |
|---|---|---|---|---|---|
| 12 in OC | 17 | $1,461 | 29% | 66% | 93% |
| 16 in OC | 13 | $1,377 | 26% | 54% | 75% |
| 24 in OC | 9 | $1,294 | 24% | 42% | 56% |
Rafter spacing barely changes noon shade in pergola calculator results, because the sun looks straight down past the thin edges.
In the morning and evening the 5 1/2 in rafter depth casts long shadows, so 12 in spacing blocks 93% of sun at 30° against 56% at 24 in.
Slats control noon shade instead. Over 2×6 rafters at 16 in, 2×2 slats give 43% noon shade at 4 in spacing, 32% at 6 in, 26% at 8 in and 21% at 12 in.
Wider spacing also raises rafter size on wide frames. At 24 in a 12 ft span needs 2×8 rafters and a 14 ft span needs 2×10, so a pergola rafter size calculator answer always ties span and spacing together.