Exterior calculator
Pergola Calculator
A pergola calculator that plans a pergola from its footprint, not from a guess. Enter length, width and post height for the full takeoff: posts, beams, rafters, top slats, concrete footings and board feet, plus the shade percentage the slats actually give you and the cost three ways, build it yourself, buy a kit or hire it installed. Freestanding or attached to the house, in pressure-treated pine, cedar or redwood.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
Along the beams. Posts sit at most 8 ft apart along this side.
The direction the rafters span, plus 1 ft of overhang at each end.
From the top of the footing to the underside of the beam. Eight feet is standard.
6×6 for most pergolas; 4×4 only for small ones under 12 ft.
16 in is standard. 24 in is the widest sensible spacing.
4 in gives about 43% shade; 6 in gives about 30%. The slats do almost all of the shading.
The material changes the cost, not the counts. Cedar is the standard pergola wood.
Attached puts posts on the outer side only, with a ledger board bolted to the house wall.
Lumber to order (incl. 10% waste)
440 board ft
6 posts · 2 beams · 13 rafters · 37 slats · 43.4% shade
DIY, materials only
$1,442–$2,242
Kit (cut + drilled + hardware)
$1,947–$3,027
Installed (pro crew)
$3,042–$4,482
Labour
32 hrs · $1,600–$2,240
Footings
6 × 12 in × 36 in · 14.14 cu ft
Concrete bags (80 lb)
24 bags
Rafters (14 ft each)
125.1 board ft
Top slats (18 ft each)
124.9 board ft
Shade is the noon figure directly under the pergola. A pergola filters the sun, for rain cover, add a solid cover or a retractable canopy. Costs are US 2026 planning ranges, never quotes.
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Posts per side = floor(Length ÷ 8) + 1; Rafters = floor(Length × 12 ÷ Spacing) + 1; Slats = floor(Width × 12 ÷ Spacing) + 1; Board feet = Σ (thickness × width ÷ 12 × length) × 1.10 waste; Shade % = 1 − (1 − rafter cover) × (1 − slat cover)
Worked example. A 16 × 12 ft freestanding cedar pergola, 8 ft posts, 6×6 posts, rafters at 16 in, slats at 4 in: 3 posts per side (6 total), 2 beams, 13 rafters 14 ft long, 37 slats 18 ft long, 440 board feet including 10% waste, 24 × 80 lb bags of concrete for the footings, and 43.4% shade. Materials $1,442 to $2,242 (mid $1,842); a kit $1,947 to $3,027 (mid $2,487); installed $3,042 to $4,482 (mid $3,762) for 32 hours of labour.
A 16 by 12 ft freestanding cedar pergola with 8 ft posts needs 6 posts, 2 beams, 13 rafters and 37 top slats, 440 board feet of lumber, 24 bags of concrete for the footings and 43.4% shade, and it costs about $1,842 in materials, $2,487 as a kit or $3,762 installed. Posts every 8 ft, rafters across the width, slats along the length, a footing under every post. This page works out the full takeoff for your size, prices it three ways and tells you how much shade you actually get.
Key takeaways
- •Default answer: 16 × 12 ft freestanding cedar pergola, 8 ft posts, 6 posts, 2 beams, 13 rafters 14 ft long, 37 slats 18 ft long, 440 board feet, 24 bags of concrete, 43.4% shade.
- •Cost three ways for the default: DIY materials $1,842, kit $2,487, installed $3,762 (32 hours of labour at $50–$70 an hour).
- •Posts sit at most 8 ft apart: posts per side = floor(length ÷ 8) + 1. A 24 ft pergola needs 4 posts per side, not 3.
- •Shade is set by the slat spacing, not by the rafters: slats at 4 in give 43% shade, at 6 in only 30%.
- •An attached pergola halves the posts, 3 instead of 6 for the default size, but the ledger board has to be bolted into the wall framing and flashed, not screwed into siding.
- •Board feet are the ordering unit: a 14 ft 2×6 rafter is 9.6 board feet. The default needs 440 board feet including 10% waste.
- •Every post gets a footing: 12 in diameter, 36 in deep, 2.36 cu ft of concrete each. Six posts take 24 bags of 80 lb concrete.
- •Pressure-treated pine is the cheapest lumber ($1.10–$1.60 per board foot), cedar is the middle ($2.50–$4.00) and redwood the dearest ($3.00–$5.00).
- •A pergola is a shade filter, not a roof. For rain cover you need a solid cover or a retractable canopy on top of it.
How to use the pergola calculator
- Enter the pergola length and width in feet. Length runs along the beams; width is the direction the rafters span.
- Enter the post height in feet, from the top of the footing to the underside of the beam. Eight feet is the standard; 9 or 10 feet suits a taller space but needs longer posts and more concrete.
- Choose the post size: 6×6 for most pergolas, 4×4 only for small ones under 12 ft. The calculator prices the board feet for the size you pick.
- Set the rafter spacing (16 in is standard, 24 in is the widest sensible) and the slat spacing (4 in for good shade, 6 in for a lighter look).
- Pick the lumber: pressure-treated pine, cedar or redwood. The material changes the cost, not the counts.
- Choose freestanding or attached. Attached puts posts on the outer side only and adds a ledger board on the house wall.
- Read the takeoff: posts, beams, rafters, slats, board feet, footings and bags. Then the shade percent and the three prices.
Worked examples
1. The default: 16 × 12 ft freestanding cedar pergola, 8 ft posts
- Posts per side: floor(16 ÷ 8) + 1 = 3, so 6 posts in total (freestanding)
- Beams: 2, each 16 ft long (2×8, 29.0 board feet)
- Rafters: floor(16 × 12 ÷ 16) + 1 = 13, each 14 ft long (12 ft width + 1 ft overhang each end), 125.1 board feet
- Top slats: floor(12 × 12 ÷ 4) + 1 = 37, each 18 ft long (16 ft + 1 ft overhang each end), 124.9 board feet
- Posts: 6 × 8 ft 6×6 = 121.0 board feet; total 400.0 board feet, 440 with 10% waste
- Footings: 6 × 2.36 cu ft = 14.14 cu ft (0.52 cu yd), 24 × 80 lb bags
- Shade: rafters cover 1.5 ÷ 16 = 9.4%, slats cover 1.5 ÷ 4 = 37.5%; combined 1 − (1 − 0.094) × (1 − 0.375) = 43.4%
- Materials: lumber $1,100–$1,760 + hardware $210–$350 + concrete $132 = $1,442–$2,242 (mid $1,842)
- Kit: $1,947–$3,027 (mid $2,487); installed: 32 hours × $50–$70 = $1,600–$2,240 labour, total $3,042–$4,482 (mid $3,762)
2. Attached cedar pergola, 20 × 14 ft, on the back of the house
- Posts: 3 on the outer side only. The house wall carries the other side on a ledger board
- Beams: 1 beam + 1 ledger board (instead of 2 beams)
- Rafters: floor(20 × 12 ÷ 16) + 1 = 16, each 16 ft long; slats: floor(14 × 12 ÷ 4) + 1 = 43, each 22 ft long
- Board feet: 476 including waste (posts 60.5, beam 18.1, rafters 176.0, slats 177.4)
- Footings: 3 × 2.36 = 7.07 cu ft, 12 × 80 lb bags, half the concrete of the freestanding version
- Shade: 43.4%, the same as the default. The spacing is the same
- Materials $1,421–$2,245 (mid $1,833); kit $1,918–$3,031 (mid $2,475); installed $2,886–$4,296 (mid $3,591)
3. Budget pergola: 12 × 10 ft pressure-treated pine, rafters at 24 in, slats at 6 in
- Posts: floor(12 ÷ 8) + 1 = 2 per side, 4 total; beams 2; rafters floor(144 ÷ 24) + 1 = 7; slats floor(120 ÷ 6) + 1 = 21
- Board feet: 237 including waste, posts 80.6, beams 21.8, rafters 57.8, slats 55.1
- Footings: 4 × 2.36 = 9.42 cu ft, 16 × 80 lb bags
- Shade: rafters 1.5 ÷ 24 = 6.3%, slats 1.5 ÷ 6 = 25%; combined 1 − 0.937 × 0.75 = 29.7%, noticeably lighter than the default
- Materials $529–$767 (mid $648); kit $714–$1,035 (mid $875); installed $1,779–$2,517 (mid $2,148)
- The wide spacing saves about $1,200 in materials against the default, but you lose a third of the shade. The trade-off to think about before you order
4. Large redwood pergola: 24 × 16 ft, 9 ft posts
- Posts per side: floor(24 ÷ 8) + 1 = 4, so 8 posts; beams 2; rafters floor(288 ÷ 16) + 1 = 19, each 18 ft; slats floor(192 ÷ 4) + 1 = 49, each 26 ft
- Board feet: 769 including waste, posts 181.4, beams 43.5, rafters 235.1, slats 238.9
- Footings: 8 × 2.36 = 18.85 cu ft (0.70 cu yd), 32 × 80 lb bags
- Shade: 43.4% | the same spacing as the default, so the same shade over twice the area
- Materials $2,723–$4,421 (mid $3,572); kit $3,676–$5,968 (mid $4,822); installed $4,648–$7,116 (mid $5,882), 38.5 hours of labour
The formula: posts, rafters, slats and board feet
Posts per side = floor(Length ÷ 8) + 1 · Rafters = floor(Length × 12 ÷ Rafter spacing) + 1 · Slats = floor(Width × 12 ÷ Slat spacing) + 1 · Board feet = (thickness × width ÷ 12) × length, summed, × 1.10
Every count in a pergola follows the same pattern: how many members fit in the run at the chosen spacing, plus one for the member at the far end. Posts are the only count with a maximum spacing rather than a chosen one, 8 ft, because a 2×8 beam should not span further without engineering, so posts per side is the length divided by 8, rounded down, plus one. A 16 ft pergola gets 3 posts per side; a 17 ft pergola still gets 3, with the spans at 8.5 ft, which is over the limit, so a 17 ft pergola really wants 4 posts per side, and if the calculator gives you 3, split the difference by hand and add the fourth post.
Rafters and slats are spaced by choice, not by structure: 16 in for rafters is the standard because it matches the joist spacing of the deck below and looks right, and 4 in for slats is the standard because it gives useful shade. The +1 at the end of each count is the member at the far edge. The rafter at the end of the beam, the slat at the edge of the rafters. Forgetting the +1 is the classic pergola counting error, and it leaves you one rafter short on delivery day.
Board feet are the ordering unit for lumber, and they are simpler than they look: a board foot is a piece of wood 12 in × 12 in × 1 in, so board feet = thickness × width ÷ 12 × length in feet, using the actual sizes. A 14 ft 2×6 rafter is 1.5 × 5.5 ÷ 12 × 14 = 9.6 board feet; a 8 ft 6×6 post is 5.5 × 5.5 ÷ 12 × 8 = 20.2 board feet. Add 10% for cuts, defects and the board you drop. The calculator totals all four member types separately so you can see which one is eating the budget. On the default pergola the rafters and the slats are 125 board feet each, more than the posts and beams put together.
Order the concrete for the footings with the concrete calculator or the bag count with the concrete bag calculator, and size the posts holes with the concrete for fence post calculator if you are setting the posts in sonotubes.
How much shade does a pergola give?
A pergola filters the sun; it does not block it. The shade percentage is the fraction of the sky covered by the members when the sun is directly overhead, and it comes from two layers: the rafters running one way and the slats running the other. Each layer covers member width ÷ spacing of the sun's path; a 1.5-inch rafter at 16-inch spacing covers 9.4%, a 1.5-inch slat at 4-inch spacing covers 37.5%, and the two layers combine as 1 − (1 − rafter cover) × (1 − slat cover), because the slats only shade the sun the rafters missed.
| Rafter spacing | Slat spacing | Rafter cover | Slat cover | Shade at noon |
|---|---|---|---|---|
| 16 in | 2 in | 9.4% | 75.0% | 77.3% |
| 16 in | 3 in | 9.4% | 50.0% | 54.7% |
| 16 in | 4 in (standard) | 9.4% | 37.5% | 43.4% |
| 16 in | 6 in | 9.4% | 25.0% | 32.0% |
| 24 in | 4 in | 6.3% | 37.5% | 41.4% |
| 24 in | 6 in | 6.3% | 25.0% | 29.7% |
Shade directly under the pergola at noon, sun overhead. Morning and evening shade is less, because the sun comes in at an angle and slips between the members.
The table shows where the shade actually comes from: the slats do almost all of it. Tightening the rafters from 24 in to 16 in adds about 2 percentage points of shade; tightening the slats from 6 in to 4 in adds about 11. If you want more shade, spend the lumber on slats, not on rafters, and if you want a lot more shade, 2-inch slat spacing gives 77% cover but doubles the slat count and the cost. Past about 50% shade the pergola starts to feel like a roof and the lumber bill climbs fast.
Two honest caveats. First, noon shade is the best case: at 4 pm the sun is low, the light comes in sideways under the rafters, and the shade can fall by half. A pergola facing west gives poor afternoon shade whatever the spacing, which is why west-facing pergolas often get a shade cloth or a retractable canopy. Second, the shade moves: the pattern of light and shadow under a pergola shifts through the day, and a table set under the middle at noon sits in stripes by three o'clock. If the table has to stay shaded, put the slats tight and add a canopy you can pull across.
Pergola sizes and what they cost
These are the calculator's outputs for the common sizes, all freestanding, 8 ft posts, 6×6 posts, rafters at 16 in, slats at 4 in, cedar unless stated. Change any input and the calculator above does the same maths for your pergola.
| Pergola size | Posts | Rafters / slats | Board feet | Shade | Materials (DIY) | Installed |
|---|---|---|---|---|---|---|
| 10 × 10 ft pine | 4 | 8 / 31 | 213 | 43.4% | $590 | $1,950 |
| 12 × 10 ft pine | 4 | 7 / 21 | 237 | 29.7% (slats at 6 in) | $648 | $2,148 |
| 12 × 12 ft cedar | 4 | 10 / 37 | 307 | 43.4% | $1,250 | $2,900 |
| 16 × 12 ft cedar (default) | 6 | 13 / 37 | 440 | 43.4% | $1,842 | $3,762 |
| 20 × 14 ft cedar, attached | 3 | 16 / 43 | 476 | 43.4% | $1,833 | $3,591 |
| 24 × 16 ft redwood | 8 | 19 / 49 | 769 | 43.4% | $3,572 | $5,882 |
Materials are the mid-range DIY figure; installed is the mid-range installed figure. The 12 × 10 ft row uses 6 in slat spacing, which is why its shade is lower.
The pattern to notice is the cost per square foot: about $9.60 per square foot of materials for the default cedar pergola, and about $19.60 installed. The cost per square foot falls as the pergola grows; the 24 × 16 ft redwood pergola is $9.30 per square foot in materials despite the dearer wood, because the posts and beams spread over more area, but the total keeps climbing, and a big pergola is a two-person, two-weekend job even for a good DIYer.
Freestanding or attached?
| Freestanding | Attached to the house | |
|---|---|---|
| Posts | Both sides | 6 for the default 16 ft pergola | Outer side only | 3 for the default, plus a ledger board |
| Beams | 2 | 1 beam + 1 ledger board bolted to the house |
| Footings | One per post | 6 for the default, 24 bags of concrete | One per outer post, 3 for the default, 12 bags |
| Cost (default, cedar) | Materials $1,842; installed $3,762 | Materials $1,833; installed $3,591 |
| Best for | Middle of the yard, over a freestanding patio or fire pit | Back door, patio off the house, shading a room as well as the patio |
| Watch out for | Needs bracing: diagonal braces from posts to beams, or the frame racks in the wind | The ledger is the critical joint, bolted into the wall framing, flashed above, never screwed into siding alone |
The attached pergola looks cheaper, half the posts, half the concrete, but the saving is small, about $10 in materials and $170 installed on the default size, because the ledger board, the flashing and the bolts cost nearly as much as the posts they replace. Choose attached when the pergola belongs against the house: it shades the patio and the room behind it, it needs no bracing on the house side, and it reads as part of the house. Choose freestanding when the pergola belongs in the yard: over a fire pit, a freestanding patio or a garden room, where a house wall would be in the way.
The ledger is the joint that fails. It must be bolted through the wall sheathing into the rim joist or the studs with half-inch bolts, and flashed above with metal flashing tucked under the siding so water cannot run down behind it. A ledger screwed into siding alone will pull out, slowly, over a few seasons, usually on a windy night. If the wall is brick or stone, the ledger needs masonry anchors and an engineer's detail, not guesswork.
The freestanding pergola's weak point is racking: a rectangular frame with no diagonal bracing is a parallelogram waiting to happen. Every freestanding pergola needs diagonal knee braces from each post to its beam, 45-degree 2×6 braces, bolted, not nailed, or a diagonal brace across the top. The calculator's hardware allowance covers the bolts and brackets for the braces; the braces themselves are cut from the same 2×6 stock as the rafters, so add two 8 ft 2×6 boards per post to the order.
Lumber: pine, cedar or redwood?
| Lumber | Cost per board foot | Default pergola materials | Lasts | Maintenance | Best for |
|---|---|---|---|---|---|
| Pressure-treated pine | $1.10–$1.60 | $648 (12 × 10 ft) | 15–20 years | Stain or seal every 2–3 years | Budget builds, painted pergolas |
| Western red cedar | $2.50–$4.00 | $1,842 (16 × 12 ft) | 20–30 years | Oil every 2–3 years, or let it silver | The standard pergola wood, light, stable, naturally rot-resistant |
| Redwood | $3.00–$5.00 | $3,572 (24 × 16 ft) | 25–30 years | Oil every 2–3 years, or let it silver | Premium builds, matching a redwood deck |
Costs are US 2026 planning ranges. Cedar and redwood silver to grey if left unfinished; that is cosmetic, not rot.
Cedar is the default for a reason: it is light enough to lift a 14 ft rafter onto the beams without a crane, it barely moves as it dries, and it resists rot without chemical treatment. Pressure-treated pine is half the price but twice the weight when wet, and it twists as it dries. Order it, sticker it and let it dry for a few weeks before you build, or the rafters will bow. Redwood is the premium choice and the most stable, but it is dear and, in the east, often special-order.
Whatever the species, buy the lumber a week before the build and store it flat, stickered, under cover. A 2×6 that arrives straight and is built the same day stays straight; a 2×6 that sits in the sun for a week does not. And seal the end grain. The cut ends of posts and rafters soak up water faster than any other face, and end grain is where rot starts.
Match the pergola to the deck it stands on: price the deck with the deck cost calculator, order its boards with the deck calculator, and lay out its railing with the baluster calculator and the deck railing calculator.
Footings and posts: the part you never see
A pergola's footings do the same job as a deck's: they hold the posts up, keep them out of the soil and anchor the frame against wind lift. Each post gets a 12-inch-diameter concrete footing 36 inches deep, 2.36 cubic feet of concrete, which is below the frost line in most of the northern US and deep enough everywhere in the south. The post sits on a metal post base bolted to the footing, not buried in the concrete: a post buried in concrete rots at the ground line, and a post on a base can be replaced without digging the footing out.
- •Dig the hole below the frost line for your area. 36 in is the calculator's default, 48 in in the far north, 12 to 18 in in the deep south. Your building department sets the number.
- •Pour the footing, set a J-bolt or a post-base anchor while the concrete is wet, and let it cure a week before you load it.
- •Stand the posts plumb in both directions and brace them before you lift a beam. A post that is out of plumb by a degree moves the beam by an inch and a half at 8 ft.
- •Lift the beams with a helper. A 16 ft 2×8 beam weighs about 40 lb and is unwieldy at height, not heavy. Two people and two ladders beat one person and a prayer.
- •Bolt the beams to the posts with half-inch carriage bolts, two per post, not screws and not nails. The bolts are the joint that holds the roof on in a storm.
Size the footings and the concrete with the footing calculator and the concrete calculator. For the posts holes, the concrete for fence post calculator works out the concrete per hole the same way.
Common pergola mistakes
- •Stretching the beam span past 8 ft to save a post. The beam sags, the rafters follow it, and the pergola looks tired in a year. Add the post.
- •Forgetting the +1 rafter and the +1 slat at the far end. The takeoff is one short and the delivery is a day late.
- •Bolting the ledger into siding instead of into the wall framing. The ledger pulls out, slowly, and takes the pergola with it.
- •Skipping the diagonal braces on a freestanding pergola. The frame racks in the first strong wind.
- •Burying the posts in concrete instead of setting them on post bases. The posts rot at the ground line in five to ten years.
- •Building with wet pressure-treated lumber the day it arrives. It twists as it dries and the rafters bow.
- •Spacing the slats at 6 in and expecting real shade. Six-inch slats give about 30% shade; four-inch slats give 43%.
- •Ordering exactly the calculated board feet. Buy 10% extra. The calculator already includes it, so do not strip it out to save money.
- •Forgetting the permit. Many jurisdictions require one for a pergola over a certain size or attached to the house, and the footing inspection happens before the concrete goes in.
How this calculator compares with the rivals
The pergola search has no dominant calculator: the top results are a mix of single-purpose material counters, kit sellers and cost guides, and none of them gives the full takeoff, the shade percentage and the three-way cost in one place. The gap is the combination, and the board-foot maths, which the kit sellers skip because they sell kits, not lumber.
| Rival | What it offers | Where this page beats it |
|---|---|---|
| CalcBuilt | pergola calculator | Pergola materials estimate from size, in a construction calculator collection | CalcBuilt gives a materials estimate. This page gives the full takeoff, posts, beams, rafters, slats, footings, board feet, plus the shade percent and DIY vs kit vs installed pricing. |
| Inch Calculator. Pergola cost guide | Pergola cost ranges by size and material, with a cost breakdown | Inch prices the job but does not count the lumber. This page counts it, every rafter, every slat, every bag of concrete, and then prices it three ways. |
| ToolsPed | pergola calculator | Pergola size and materials calculator for DIY builders | ToolsPed is a materials counter. This page adds the shade percentage, the attached-vs-freestanding choice, the footing concrete and the installed cost. |
| Rogue Engineer. Pergola plans and calculators | Free pergola plans with cut lists for specific sizes | Rogue Engineer's plans are fixed sizes. This page calculates any size, any spacing and any of three lumbers, with the cost for each. |
| Omni Calculator | pergola / deck calculators | Deck and outdoor-structure calculators with material quantities | Omni has no dedicated pergola takeoff page with shade and kit pricing. |
| Home Depot / Lowe's, pergola kits | Kit prices and sizes, with installation services | The stores sell kits in fixed sizes. This page sizes a site-built pergola to your exact footprint and shows whether the kit premium is worth it for your size. |
| Yardzen / landscaping cost guides | Pergola cost ranges as part of backyard project guides | Cost guides give a range and stop. This page shows the takeoff behind the range, so you can see what the money buys. |
| Decks.com | pergola guides | Good written guidance on pergola design, spans and footings | Decks.com explains the design but does not calculate your pergola. This page calculates it and prices it. |
| Fine Homebuilding | pergola articles | Trade-level articles on pergola framing and joinery | Trade articles are written for builders and do not produce a takeoff from your measurements. This page does both. |
| CalcWall | pergola-adjacent tools | Construction calculators including deck and outdoor structures | CalcWall's catalogue has no dedicated pergola page. This page is the pergola page, with the shade calculation no rival offers. |
The honest summary: the kit sellers know the kit price and the plan sites know one size, but nobody counts the lumber, works out the shade and prices all three ways to buy a pergola. No rival tells you that slats at 4 inches give 43% shade and slats at 6 inches give 30%, and none of them shows the footing concrete alongside the beams. This page wins by being the only one that does the whole job; takeoff, shade and cost, for any size you enter.
Assumptions
- •Posts sit at most 8 ft apart along each beam line: posts per side = floor(length ÷ 8) + 1. A 16 ft pergola needs 3 posts per side; a 20 ft pergola needs 3; a 24 ft pergola needs 4.
- •Rafters span the width plus 1 ft of overhang at each end, at the spacing you choose along the length, with one rafter at each end. Slats run the length plus 1 ft of overhang at each end, at the spacing you choose across the width, with one slat at each edge.
- •Board feet use nominal lumber sizes: 6×6 posts at 5.5 × 5.5 in actual, 2×8 beams, 2×6 rafters, 2×2 slats. A 10% waste allowance is included for cuts and defects.
- •Each post gets a 12 in diameter concrete footing 36 in deep (2.36 cu ft each), sized for frost depth in most of the northern US. Check your local frost depth: colder areas need deeper footings.
- •Shade percent is the combined cover of the rafters and the slats: a 1.5 in member covers 1.5 ÷ spacing of the sun's path, and the two layers multiply. It is the shade directly under the pergola at noon, not the shade at 4 pm when the sun comes in at an angle.
- •Costs are US 2026 planning ranges: lumber $1.10 to $1.60 per board foot for pressure-treated pine, $2.50 to $4.00 for cedar, $3.00 to $5.00 for redwood; hardware $120 to $200 plus $15 to $25 per post; 80 lb bags of concrete at $5.50; labour $50 to $70 per hour. A kit costs about 35% more than the raw materials, because the cutting, drilling and hardware are done for you.
- •An attached pergola has posts on the outer side only and a ledger board bolted to the house wall in place of the second beam. The ledger must be flashed and bolted into the wall framing, not just into siding.
Sources✓ Verified
- American Wood Council (AWC) | Prescriptive Residential Wood Deck Construction Guide (DCA 6). Post spacing, beam and joist spans and footing practice for exterior wood structures, applied here to pergola framing.
- International Residential Code (IRC) Section R507, Exterior decks, and R403, Footings. Footing depth below the frost line and post-to-footing connections for exterior structures.
- Western Red Cedar Lumber Association | pergola and outdoor structure guidance. Cedar grades, spans and finishing for outdoor structures.
- Manufacturer and supplier price lists, 2025 and 2026. Lumber prices per board foot, hardware, concrete bags and pergola kit prices used for the cost ranges.
- USDA Forest Products Laboratory | Wood Handbook. Board-foot measure and the nominal-to-actual lumber sizes used in the takeoff.
Formula reviewed November 2026.
A 16 × 12 ft cedar pergola costs about $1,842 in materials if you build it yourself, about $2,487 as a kit, or about $3,762 installed, planning ranges for the US in 2026. The same size in pressure-treated pine costs about $1,000 less in materials, and in redwood about $1,700 more. Size is the biggest driver: a 12 × 10 ft pine pergola costs about $648 in materials, while a 24 × 16 ft redwood one costs about $3,572.
Posts sit at most 8 ft apart along each beam line, so posts per side equal the length in feet divided by 8, rounded down, plus one. A 16 ft pergola needs 3 posts per side (6 total freestanding, 3 attached). A 20 ft pergola needs 3 per side, and a 24 ft pergola needs 4 per side (8 total). Never stretch a beam span past 8 ft without engineering it.
A pergola with 2×6 rafters at 16 in and 2×2 slats at 4 in gives about 43% shade at noon. The rafters cover 9.4% of the sky and the slats cover 37.5%, and the two layers combine. Widen the slat spacing to 6 in and the shade falls to about 30%. A pergola is a shade filter, not a roof: for real rain cover you need a solid cover or a retractable canopy, not tighter slats.
A 16 × 12 ft cedar pergola with 6×6 posts needs 440 board feet including 10% waste: 121 board feet of posts, 29 of beams, 125 of rafters and 125 of slats. Board feet are thickness × width ÷ 12 × length in feet, so a 14 ft 2×6 rafter is 1.5 × 5.5 ÷ 12 × 14 = 9.6 board feet.
Below your local frost line, and at least 12 inches in diameter. This calculator uses 36 in deep footings, which suits most of the northern US, with 2.36 cubic feet of concrete per post, 24 bags of 80 lb concrete for a 6-post pergola. In the far north the frost line can be 48 in or deeper, and in the south 12 to 18 in is often enough. Your building department sets the depth.
A kit costs about 35% more than the raw materials, $2,487 against $1,842 for the default 16 × 12 ft cedar pergola, but the lumber arrives cut to length, drilled and labelled, with all the hardware in one box. DIY saves the premium but needs a saw, a drill, a level and a full weekend, plus a helper for the beams. Hiring it installed costs about $3,762 for the same pergola, or 32 hours of labour at $50 to $70 an hour.
Converters to use with the Pergola Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
RoofingRoofing Squares to Square Feet Converter1 square = 100 sq ft, plus bundles.
Volume, Area & UnitsSquare Feet to Square Yards ConverterDivide by 9: carpet, turf and paving.
Lumber, Deck & FenceLinear Feet to Square Feet ConverterLength to area (or back) for any width.More exterior calculators
ExteriorGazebo CalculatorA gazebo calculator that works out the whole gazebo in one list: the footprint, the posts, the decking, the railing and the roof. Pick a hexagon or an octagon, enter the width across the flats, and the calculator gives you the side length, the floor area, the number of posts, the deck boards, the railing length with one side left open for the entrance, the balusters, the roof area at your pitch and the shingle bundles. It prices the roof, the deck and the railing together.
ExteriorShed Material CalculatorA shed material calculator that works out the full material list for a shed, in the order you build it: the floor, the walls, the roof, the siding and the door. Enter the shed length and width, the wall height and the roof pitch, and the calculator gives you a cut-list style list, floor joists and deck sheets, wall studs and plates, wall sheathing and siding, rafters and ridge, roof area and shingle bundles, plus the door and window. The list you take to the lumber yard.
ExteriorVinyl Siding CalculatorThis vinyl siding calculator works out how many siding squares you need to order, the standard 100 sq ft trade unit vinyl siding is sold in, so you cover every wall without ordering panels you will never hang. Enter your exterior wall dimensions, then plan the panels and trim. A 40 ft by 9 ft wall is 360 sq ft, which needs 396 divided by 100, or 4 squares with waste.
ExteriorHardie Board Siding CalculatorThis hardie board siding calculator works out how many siding squares of fiber cement lap siding you need, then converts the figure to planks, so you can order the right amount and plan the trim and fasteners. Enter your exterior wall dimensions. A 40 ft by 9 ft wall is 360 sq ft, which needs 396 divided by 100, or 4 squares with 10 to 15% waste.
ExteriorCladding CalculatorA cladding calculator that counts the whole cladding job, not just the boards. Enter wall length and height, deduct doors and windows, pick PVC, timber or cement-fibre, and get the board count with waste, battens in standard lengths, breather membrane rolls, trims and fixings. Order the system that keeps water out and lets moisture escape, not just the visible surface.
ExteriorExternal Wall Insulation CalculatorAn external wall insulation calculator that sizes EWI for a solid wall in one pass. Pick the wall, the board and the U-value you need to hit, and get the board thickness in millimetres, the U-value you will actually achieve, and the full system, boards, adhesive, basecoat, mesh, fixings, beads, primer and render, counted for your wall area. Order once, and check an installer quote line by line.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.