Pergola Calculator
Calculate materials needed for a pergola — posts, beams, rafters, and hardware. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Abdullah, Technical Content Specialist
Pergola Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Rafters = (Length / Rafter Spacing) + 1 | Post Length = Height + 3ft burial depth
Additional inputs: Cost Per Rafter ($), Hardware Budget ($).
Worked example — 4 posts, 2 beams, 10 rafters, 11 cross beams, 8 concrete bags
Formula
Rafters = (Length / Rafter Spacing) + 1 | Post Length = Height + 3ft burial depth
Rafter count is calculated by dividing the pergola length by the rafter spacing in feet and adding one. Beam length includes overhang on each end. Post length includes 3 feet of burial depth for structural stability.
Worked Examples
Example 1: Standard Backyard Pergola
Problem:Calculate materials for a 12 x 10 foot pergola, 9 feet tall, with 4 posts, 16-inch rafter spacing, and 12-inch cross beam spacing.
Solution:Posts: 4 (6x6, 12 ft long for 9ft height + 3ft burial) Beams: 2 main beams, 14 ft each (12ft + 2ft overhang) Rafters: (12ft / 1.33ft) + 1 = 10 rafters, 12ft each Cross beams: (10ft / 1ft) + 1 = 11 purlins Concrete: 4 posts x 2 bags = 8 bags
Result:4 posts, 2 beams, 10 rafters, 11 cross beams, 8 concrete bags
Example 2: Large Entertainment Pergola
Problem:Calculate for a 16 x 14 foot pergola, 10 feet tall, 6 posts, 12-inch rafter spacing, 12-inch cross beam spacing.
Solution:Posts: 6 (6x6, 13 ft long) Beams: 2 main beams, 18 ft each Rafters: (16ft / 1ft) + 1 = 17 rafters, 16ft each Cross beams: (14ft / 1ft) + 1 = 15 purlins Concrete: 6 posts x 2 bags = 12 bags
Result:6 posts, 2 beams, 17 rafters, 15 cross beams, 12 concrete bags
Frequently Asked Questions
What size lumber should I use for a pergola?
Pergola lumber sizes depend on the span and load requirements of each component. Posts should be at least 6x6 inches for freestanding pergolas to provide adequate structural support and visual proportion. Main beams are typically 2x8, 2x10, or doubled 2x6 boards depending on the span between posts. For spans up to 10 feet, 2x8 beams are sufficient. For 10 to 14-foot spans, use 2x10 or doubled 2x8 beams. Rafters are commonly 2x6 or 2x8 boards spaced 12 to 24 inches apart. Top lattice or purlins can be smaller 2x2 or 1x2 boards since they carry minimal load. Always check local building codes for specific structural requirements in your area.
How deep should pergola posts be buried?
Pergola posts should be buried at least 3 feet deep for a standard 9 to 10-foot tall pergola, or one-third of the total post length. In areas with frost, posts must extend below the frost line to prevent heaving, which can range from 30 to 48 inches depending on your climate zone. The post hole diameter should be 12 to 16 inches, approximately three times the post width. Fill the bottom 6 inches of the hole with gravel for drainage, then set the post in concrete. Each post hole typically requires 2 to 3 bags of 50-pound concrete mix. Use a post level to ensure the post is perfectly plumb in both directions before the concrete hardens, and brace the post temporarily for at least 24 hours.
How far apart should pergola rafters be spaced?
Pergola rafter spacing typically ranges from 12 to 24 inches on center, depending on the desired shade coverage and aesthetic preference. Closer spacing of 12 to 16 inches provides more shade and a denser visual appearance. Wider spacing of 18 to 24 inches creates an airier, more open feel with less shade. The structural consideration is that rafters must support their own weight plus any loads from climbing plants, hanging lights, or retractable shade canopies. For 2x6 rafters spanning up to 12 feet, 16-inch spacing is the most common choice that balances shade, appearance, and structural performance. If you plan to grow heavy vines like wisteria, use closer spacing and larger rafters.
Do I need a permit to build a pergola?
Permit requirements for pergolas vary significantly by municipality and depend on the pergola size, location, and whether it is attached to the house or freestanding. Many areas require a building permit for any structure over a certain square footage, commonly 120 to 200 square feet. Attached pergolas that connect to the house almost always require a permit and may need to meet specific structural requirements to avoid damaging the existing structure. Even if a permit is not required, you must comply with property setback requirements that dictate minimum distances from property lines. Contact your local building department before starting construction and have your plans reviewed to avoid costly compliance issues later.
What is the best wood for a pergola?
The best wood species for pergolas depends on your budget, aesthetic preference, and maintenance willingness. Pressure-treated pine is the most economical option at 2 to 4 dollars per linear foot for structural members, with a lifespan of 20 to 30 years. Western red cedar is naturally rot and insect resistant with a beautiful reddish-brown color, costing 4 to 8 dollars per linear foot. Redwood is the premium choice with exceptional durability and appearance but costs 6 to 12 dollars per linear foot and is difficult to source outside the western United States. For the lowest maintenance option, consider composite or vinyl pergola kits, though they cost significantly more at 3,000 to 10,000 dollars for a complete structure.
How much shade does a pergola provide?
A standard pergola with rafters spaced 16 inches apart provides approximately 50 to 60 percent shade coverage, depending on the rafter width and the angle of the sun. At midday with the sun directly overhead, shade is at its maximum because sunlight must pass between the narrowest gaps. In the morning and evening when the sun is low, a pergola provides less shade as sunlight enters at an angle beneath the rafters. To increase shade coverage, add lattice panels, shade cloth rated at 70 to 90 percent blockage, retractable canopies, or grow climbing plants like grapevines, wisteria, or climbing roses. Adjustable louvered pergolas allow you to control shade from full sun to full coverage.
Can I attach a pergola to my house?
Yes, pergolas can be attached to the house using a ledger board, similar to how a deck is attached. The ledger board must be securely bolted to the house framing, not just the siding, using lag bolts or through-bolts into the rim joist or wall studs. Proper flashing above the ledger board is critical to prevent water from entering the wall cavity and causing rot or mold. An attached pergola eliminates two posts and creates a clean transition from indoor to outdoor living space. However, attached pergolas may have stricter building code requirements and always require a building permit. The house wall must be structurally adequate to support the additional load of the pergola, rafters, and any climbing plants or accessories.
How much does a pergola cost to build?
The total cost to build a pergola ranges from 1,500 to 6,000 dollars for a DIY project using standard lumber, depending on size and materials. A basic 10x10-foot pressure-treated pine pergola costs approximately 1,500 to 2,500 dollars for materials. A 12x14-foot cedar pergola runs 3,000 to 5,000 dollars for materials. Professional installation adds 1,500 to 4,000 dollars depending on complexity and local labor rates. Pergola kits from manufacturers range from 2,000 to 8,000 dollars and include pre-cut lumber, hardware, and detailed instructions. Premium materials like aluminum, fiberglass, or motorized louvered roofs can push the total cost to 10,000 to 25,000 dollars or more for a fully installed structure.
What is the ideal pergola size for my yard?
The ideal pergola size depends on its intended use and the scale of your outdoor space. For a dining area that seats 4 to 6 people, a minimum of 10x10 feet is needed, with 12x12 feet being more comfortable. For an outdoor living room with seating and a coffee table, plan for at least 12x14 feet. A pergola over a hot tub needs to be at least 12x12 feet to provide adequate coverage and clearance. As a general design rule, a pergola should not exceed one-third of the total patio or deck area to maintain visual balance. The height should be proportional to the footprint, typically 8 to 10 feet for residential pergolas. Taller structures over 10 feet may look disproportionate on smaller homes.
How do I maintain a wooden pergola?
Wooden pergola maintenance depends on the species and finish applied. All wood pergolas should be inspected annually for signs of rot, insect damage, loose connections, and finish deterioration. Pressure-treated lumber should be sealed or stained within 6 to 12 months of construction after the wood has dried sufficiently to accept the finish. Reapply stain or sealant every 2 to 3 years, or whenever water no longer beads on the surface. Cedar and redwood can be left to weather naturally to a silver-gray patina, or maintained with UV-blocking oil finishes to preserve the original color. Tighten all bolts and hardware annually as wood shrinks and swells with seasonal moisture changes. Remove leaves and debris from the top of the pergola regularly to prevent moisture retention.
References
Background & Theory
History
Reviewed for accuracy by Abdullah, Technical Content Specialist · Editorial policy
Related Calculators
🧮Carbon Footprint Construction Equipment Calculator
Calculate carbon footprint construction equipment with inputs, formulas, and instant results.
🧮Arch Calculator
Calculate arch with inputs, formulas, and instant results.
🧮Daylight Autonomy Simple Calculator
Calculate daylight autonomy simple with inputs, formulas, and instant results.
🧮Daylight Factor Calculator
Calculate daylight factor with inputs, formulas, and instant results.
🧮Door Area Calculator
Calculate door area with inputs, formulas, and instant results.
🧮Glazing Uvalue to Rvalue Calculator
Calculate glazing uvalue to rvalue with inputs, formulas, and instant results.
🧮Net to Gross Area Ratio Calculator
Calculate net to gross area ratio with inputs, formulas, and instant results.
🧮Occupant Load Calculator
Calculate occupant load with inputs, formulas, and instant results.