Pergola Calculator

Updated

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.

Pergola Size & Layout

Enter the post-to-post size; posts, beams, rafters, slats and concrete follow from it.

ft
ft
ft
in
Wood, Member Sizes, Slats & LoadTreated Southern Pine, 20 psf
psf
in
in
Footings & ConcreteSet in concrete, 18 in
in
in
psf
Pergola Cost & Prices$1.30/bd ft
$/bd ft
$/bag
%
$/sq ft
16 × 10 ft Freestanding Pergola Lumber
70 Boards, 713 board ft
Posts, beams, rafters and slats for a 19 ft × 13 ft canopy, 9 ft 2 1/4 in tall to the top
6 Posts, 6×6 × 12 ft
Min Footing Diameter16 in
Concrete (80 lb Bags)48 Bags, 28.0 cu ft
Each post rises 8 ft 7 1/4 in above grade to the beam top, and the heaviest one carries about 1,950 lb onto its footing.
Double 2×8 Beams, 20 ft
Max Post Spacing9 ft 9 in
Beam Strength Used67%
Two plies sandwich each post line and carry 195 lb/ft along 2 bays of 8 ft, bolted through every post.
13 Rafters, 2×6 × 14 ft
Max Span at 16 in OC12 ft 10 in
Rafter Strength Used60%
Each rafter spans 10 ft between beams with 18 in tails, carrying 40 lb/ft of snow and framing load onto both beams.
$1,377 Pergola Material Cost
Cost per Sq Ft of Canopy$5.58
Installed Cost with Labor$5,082
Covers 713 board ft of lumber, 48 concrete bags and 15% for bolts, ties and screws on a 247 sq ft canopy.
Pergola Plan Diagram6 posts, 13 rafters
16 ft post to post (19 ft canopy)10 ft rafter span6 posts · 13 rafters at 16 in · 20 slat rows at 8 in
Pergola Cut List & Hardware70 boards
PartSizeQtyOrder LengthCut Length
Posts6×6612 ft11 ft 7 1/4 in
Beam plies2×8420 ft19 ft
Rafters2×61314 ft13 ft
Top slats2×24010 ft9 ft 6 in
Knee braces (45°)4×414 from 78 ft34 in
HardwareSpecQty
Through-bolts, nut + 2 washers1/2 in × 10 in12
Rafter ties (both beams)Galvanized, 1 per crossing26
Slat screws3 in exterior260
Brace screwsStructural, 2 per end56
Concrete bags80 lb (0.6 cu ft each)48
Rafter & Beam Span ChartSouthern Pine, 20 psf
Rafter SizeSpan at 12 inSpan at 16 inSpan at 24 inDouble Beam Post Spacing
2×614 ft 10 in12 ft 10 in10 ft 6 in7 ft 8 in
2×818 ft 10 in16 ft 4 in13 ft 4 in9 ft 9 in
2×1022 ft 5 in19 ft 5 in15 ft 10 in11 ft 7 in
2×1226 ft 4 in22 ft 10 in18 ft 8 in13 ft 7 in
Pergola Sizes Chart10 × 10 to 16 × 20
Pergola SizePostsBeamsRaftersConcreteMaterial Cost
10 × 10 ft4 × 6×6Double 2×109 × 2×632 bags$955
10 × 12 ft4 × 6×6Double 2×1210 × 2×632 bags$1,047
12 × 12 ft4 × 6×6Double 2×1210 × 2×632 bags$1,101
12 × 16 ft6 × 6×6Double 2×813 × 2×648 bags$1,446
14 × 16 ft6 × 6×6Double 2×813 × 2×848 bags$1,632
16 × 20 ft6 × 6×6Double 2×1216 × 2×848 bags$2,018
Shade by Rafter Spacing26% at noon
Rafter SpacingSun OverheadSun at 60°Sun at 45°Sun at 30°
12 in OC29%50%66%93%
16 in OC26%42%54%75%
24 in OC24%35%42%56%
Step-by-Step Pergola Math12 steps
Canopy sizeBeam length = 16 ft + 2 × 18 in = 19 ft; rafter length = 10 ft + 2 × 18 in = 13 ft
Design loadq = 10 psf dead + 20 psf snow = 30 psf; rafter w = 30 psf × 16 in ÷ 12 = 40 lb/ft
Rafter bendingM = wL² ÷ 8 = 40 lb/ft × (10 ft)² ÷ 8 = 500 lb·ft; fb = M ÷ S = 6,000 lb·in ÷ 7.56 in³ = 793 psi of 1,323 psi allowed
Rafter deflectionΔ = 5wL⁴ ÷ 384EI = 0.23 in vs L/180 = 0.67 in → 2×6 uses 60%, spans up to 12 ft 10 in
Rafter count⌈16 ft ÷ 16 in⌉ + 1 = 13 rafters × 14 ft stock
Beam loadTributary = 13 ft ÷ 2 = 6 ft 6 in; w = 30 psf × 6 ft 6 in = 195 lb/ft
Beam checkM = 195 lb/ft × (8 ft)² ÷ 8 = 1,560 lb·ft; fb = 18,720 lb·in ÷ 26.28 in³ = 712 psi of 1,064 psi; Δ = 0.10 in vs L/240 = 0.40 in
Posts2 beam lines × (2 bays + 1) = 6 posts; cut = 8 ft + 7 1/4 in beam + 36 in embed = 11 ft 7 1/4 in
Footing sizeP = 195 lb/ft × 8 ft × 1.25 continuous beam = 1,950 lb; A = P ÷ 1,500 psf = 1.30 sq ft → 15 1/2 in, round up to 16 in
Concreteπ × (0.750 ft)² × 3.000 ft - 0.458 ft × 0.458 ft × 3.000 ft = 4.7 cu ft ÷ 0.6 cu ft = 8 bags × 6 holes = 48 bags
Top slats⌊(13 ft - 1 1/2 in) ÷ 8 in⌋ + 1 = 20 rows × 2 pieces = 40 slats
Material cost713 board ft × $1.30 + 48 × $6.50 + 15% of lumber for hardware = $1,377
6 Posts: One Beam Will Not Span 16 ft
A double 2×12 reaches only 13 ft 7 in under this load, so center posts split the run into 2 bays of 8 ft with a lighter double 2×8.

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)PostsDouble BeamRaftersSlats80 lb BagsBoard FeetMaterial Cost
10 × 10 ft42×109 × 2×62032499$955
10 × 12 ft42×1210 × 2×62032561$1,047
12 × 12 ft42×1210 × 2×62332597$1,101
12 × 16 ft62×813 × 2×64648759$1,446
14 × 16 ft62×813 × 2×85248883$1,632
12 × 20 ft62×1016 × 2×64648891$1,644
16 × 20 ft62×1216 × 2×858481,141$2,018
12 × 24 ft62×1219 × 2×646481,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 Size12 in OC16 in OC24 in OC
2×614 ft 10 in12 ft 10 in10 ft 6 in
2×818 ft 10 in16 ft 4 in13 ft 4 in
2×1022 ft 5 in19 ft 5 in15 ft 10 in
2×1226 ft 4 in22 ft 10 in18 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 WidthDouble 2×6Double 2×8Double 2×10Double 2×12
8 ft8 ft 4 in10 ft 7 in12 ft 7 in14 ft 10 in
10 ft7 ft 8 in9 ft 9 in11 ft 7 in13 ft 7 in
12 ft7 ft 2 in9 ft 1 in10 ft 9 in12 ft 8 in
14 ft6 ft 8 in8 ft 6 in10 ft 1 in11 ft 11 in
16 ft6 ft 4 in8 ft 1 in9 ft 7 in11 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 Load12 × 12 Rafters12 × 12 Beam, Posts12 × 16 Rafters12 × 16 Beam, Posts
20 psf2×62×12, 4 posts2×62×8, 6 posts
30 psf2×82×6, 6 posts2×82×10, 6 posts
40 psf2×82×8, 6 posts2×82×10, 6 posts
50 psf2×102×8, 6 posts2×102×12, 6 posts
70 psf2×122×10, 6 posts2×122×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 SizeHeaviest Post Load1,500 psf Soil2,000 psf Soil3,000 psf Soil
10 × 10 ft1,268 lb13 in11 in9 in
12 × 12 ft1,688 lb15 in13 in11 in
10 × 16 ft1,950 lb16 in14 in11 in
12 × 16 ft2,250 lb17 in15 in12 in
12 × 20 ft2,813 lb19 in17 in14 in
16 × 20 ft3,563 lb21 in19 in15 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.

SizePosts Free / AttachedFront Beam LoadDouble BeamCost Free / Attached
10 × 16 ft6 / 3195 / 198 lb/ft2×8$1,377 / $869
12 × 12 ft4 / 2225 / 228 lb/ft2×12$1,101 / $721
12 × 20 ft6 / 3225 / 228 lb/ft2×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 PriceMaterial CostPer Sq Ft of CanopyInstalled 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 BendingStiffness E2×6 Span at 16 in
Southern Pine1,000 psi1,400,000 psi12 ft 10 in
Douglas Fir-Larch1,170 psi1,600,000 psi12 ft 10 in
Hem-Fir1,105 psi1,300,000 psi13 ft 6 in
Spruce-Pine-Fir1,140 psi1,400,000 psi13 ft 9 in
Western Red Cedar910 psi1,000,000 psi12 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.

PostHole DiameterDepthConcrete80 lb Bags60 lb Bags
4×412 in36 in2.10 cu ft45
6×616 in36 in3.56 cu ft68
6×618 in36 in4.67 cu ft811
6×618 in48 in6.23 cu ft1114
6×620 in36 in5.91 cu ft1014
8×824 in36 in8.25 cu ft1419

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 SpacingRaftersMaterial CostShade, Sun OverheadShade, Sun at 45°Shade, Sun at 30°
12 in OC17$1,46129%66%93%
16 in OC13$1,37726%54%75%
24 in OC9$1,29424%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.