A pergola rafter spacing calculator determines the proper spacing between rafters for a backyard pergola — typically 16 to 24 inches on-center for residential applications. Combined with a pergola rafter span chart (giving maximum allowable distance between supports for each lumber size) and a pergola beam span calculator (sizing the beams between posts), the three tools cover the complete sizing math for any standard backyard pergola.
Pergolas are simpler structures than houses — typically just posts, beams, and rafters with no solid roof finish. But they still require correct sizing for the lumber, spacing, and span to handle their own weight, snow load (in cold climates), and any vines, fabric shade, or slatted roof material attached to them. This guide covers the rafter spacing, span limits, beam sizing, and post sizing for typical backyard pergolas, plus the climate, code, and aesthetic considerations that affect the design.
Most backyard pergolas are between 8×8 feet (small intimate sitting area) and 16×20 feet (large outdoor entertainment space). The math scales with size: longer spans need larger lumber, and larger pergolas need bigger posts and beams. The pergola rafter spacing calculator below covers the most common backyard sizes.
Pergola rafter spacing — 16 vs. 24 inches on-center
Pergola rafters are typically spaced 16 inches or 24 inches on-center. The choice affects the visual rhythm of the pergola, the lumber count, and the load capacity per rafter.
24 inches on-center: the most common pergola rafter spacing for backyard applications. Easier to install (fewer rafters), more open visual feel, allows more sunlight through the structure. Standard for pergolas up to 12-foot rafter spans without snow load. The pergola rafter spacing calculator above defaults to 24 inches OC for typical backyard designs.
16 inches on-center: tighter spacing for higher loads (snow regions, heavy fabric shade material) or for visual designs that want a denser rafter pattern. Allows about 30% more load per linear foot of pergola than 24-inch OC. Used for 50% more material; cost increases proportionally.
12 inches on-center: rare in residential pergolas. Used only for very heavy loads (substantial snow load + heavy shade material) or for specific aesthetic designs (very dense roof slat pattern). Adds significant material cost.
Designer aesthetic considerations: 24-inch OC creates a more open, modern feel; 16-inch OC creates a more traditional, classic feel. The choice often comes down to style preference rather than structural need for typical backyard pergolas.
Pergola rafter span chart by lumber size
Maximum pergola rafter span by lumber size for typical backyard pergola loads (no solid roof, mild-to-moderate climate, 24-inch OC spacing):
2x6 SPF #2: up to 8 feet between supports. Used for small pergolas (8×8 to 10×10 feet) or as cross-members on larger designs.
2x8 SPF #2: up to 12 feet between supports. The most common pergola rafter size. Handles typical 10-12 foot pergola spans.
2x10 SPF #2: up to 14 feet between supports. Used for larger pergolas (12×16 feet and larger) or where the design calls for substantial rafter members.
2x12 SPF #2: up to 16 feet between supports. The largest dimension lumber commonly used in pergola rafters; for spans over 16 feet, larger members or LVL may be needed.
In snow regions (typical Northeast, Midwest, and mountain regions): reduce these spans by 25-30% to account for snow load. A 2x8 that spans 12 feet in mild climate spans only 8-9 feet in heavy snow regions.
For pergolas with substantial vine load, fabric shade canopy, or solid slat roof: reduce by another 10-15%. The added dead load reduces the available capacity for live loads.
For 16-inch OC spacing instead of 24-inch: the rafters can span about 25-30% farther, since each rafter carries less tributary load. A 2x8 at 16-inch OC: up to 15 feet. A 2x10 at 16-inch OC: up to 18 feet.
Pergola beam span calculator
Pergola beams run perpendicular to the rafters, spanning between posts. The pergola beam span calculator sizes these beams based on the beam span (post-to-post distance) and the tributary load (the rafter span).
For a typical pergola with 12-foot rafter span at 24-inch OC: each linear foot of beam carries 1.5 rafters. With each rafter weighing about 3-5 lbs/lf for 2x8 SPF, plus 2 lbs/lf dead load for slats and trim: ~10-15 lbs/lf load on the beam.
Beam sizing for typical backyard pergolas:
Doubled 2x8: spans up to 10 feet between posts. Used for small to medium pergolas (10×10 to 12×12 feet typical).
Doubled 2x10: spans up to 12 feet between posts. Most common beam size for larger backyard pergolas.
Doubled 2x12: spans up to 14 feet between posts. Used for very large pergolas (16×20 feet typical).
For very long beam spans (over 14 feet between posts), engineered LVL or PSL beams are typically required. A 16-foot beam span with 14-foot tributary load needs a 1.75 × 11.875-inch double LVL — see the LVL beam calculator on this site for engineered beam sizing.
Beams typically extend 1-2 feet past the post on each end (creating a decorative overhang). The decorative overhang doesn't count toward the structural span; it cantilevers off the post.
Pergola post sizing
Pergola posts support the entire structure. Post sizing depends on the load coming down through the beams plus the post height.
4x4 SPF #2: handles up to 8 feet of unsupported height for typical 10×10 to 12×12 pergolas with light loads. The minimum-acceptable post for residential pergolas; use 4x6 for any larger or taller design.
4x6 SPF #2: handles up to 10 feet of unsupported height. Common for medium-to-large pergolas (12×12 to 14×16 feet).
6x6 SPF #2 or pressure-treated Douglas fir: the residential workhorse. Handles up to 12 feet of unsupported height for any backyard pergola size. The visual mass also reads as more substantial than 4x4 or 4x6.
8x8 timber: used for very large pergolas (over 16×20 feet) or for architectural designs that want substantial post mass. Less common in residential.
Post-to-beam connection: typically a metal post cap (Simpson AC4Z or similar) that bolts the beam to the post. Cost: $5-15 per cap. Provides the structural shear and uplift connection between beam and post.
Post-to-foundation connection: typically a metal post base (Simpson PB44 or similar) that bolts the post to a concrete pier or footing. Cost: $5-15 per base. Required for code compliance; prevents post rotation and provides a moisture barrier between wood and concrete.
Pergola sizing examples
8×8 ft pergola (small intimate design): 4x4 or 4x6 posts, doubled 2x8 beams (8-foot span), 2x6 rafters at 24-inch OC, 8-foot rafter span. Material cost in 2026: $400-700 in pressure-treated lumber.
10×10 ft pergola (typical backyard): 4x6 posts, doubled 2x8 beams (10-foot span), 2x6 rafters at 24-inch OC, 10-foot rafter span. Material cost: $600-1,000.
12×12 ft pergola (most common backyard size): 4x6 or 6x6 posts, doubled 2x8 beams (12-foot span), 2x6 or 2x8 rafters at 24-inch OC, 12-foot rafter span. Material cost: $800-1,400.
12×16 ft pergola (large outdoor entertainment): 6x6 posts, doubled 2x10 beams (12-foot span), 2x8 rafters at 24-inch OC, 16-foot rafter span. Material cost: $1,500-2,500.
16×20 ft pergola (very large outdoor space): 6x6 or 8x8 posts, doubled 2x12 or LVL beams (16-foot span), 2x10 rafters at 16-inch OC, 20-foot rafter span. Engineering review may be required. Material cost: $3,000-5,500.
Add 25-50% to these costs for cedar or redwood lumber instead of pressure-treated SPF. Add another 15-25% for fully assembled installation by a contractor (vs. DIY).
Climate and durability considerations
Wood pergolas exposed to weather have a natural service life of 15-30 years depending on lumber species and climate. Selecting the right lumber and applying appropriate finish extends the service life significantly.
Pressure-treated SPF: the cheapest option. Service life: 10-15 years for vertical applications, 5-10 years for horizontal exposed members like beams and rafters. Decay-resistant from chemical treatment but visually utilitarian.
Pressure-treated Southern Yellow Pine: similar to SPF but slightly more dense and durable. Service life: 15-20 years for vertical applications. Common in the Southeast and Mid-Atlantic regions.
Cedar (Western Red or Eastern White): naturally rot-resistant. Service life: 20-30 years with regular finishing. More expensive than pressure-treated (50-100% premium) but visually warmer and ages gracefully to silver-gray.
Redwood: similar to cedar, naturally rot-resistant. Service life: 25-35 years with regular finishing. More expensive than cedar (additional 25-50% premium); supply varies by region. Most common on the West Coast.
Tropical hardwoods (Ipe, Jatoba): very expensive but extremely durable. Service life: 40-50+ years. Used for premium outdoor structures and high-end projects.
Finishing considerations: all wood pergolas need either annual sealing (clear or pigmented sealer) or periodic painting/staining (every 3-5 years). Untreated/unsealed wood weathers quickly and decays faster, especially in horizontal applications.
In hot climates, consider adding a slat roof or shade cloth for usability. The added load is minor but dramatically improves the pergola's function in summer.
Code requirements and when engineering is needed
Most backyard pergolas (under 200 sq ft, no enclosed areas, no roof finish) are exempt from formal building permit requirements in many jurisdictions. Verify with your local building department before assuming this exemption applies.
Permit requirements that often apply: foundation/footing inspection (post base must be on a properly-sized concrete pier), structural review for larger pergolas (over 200 sq ft typical threshold), electrical inspection if lighting is being installed, and HOA/neighborhood covenant review for design and color.
When engineering review is required: pergolas attached to the house (where attachment loads transfer to the house structure), pergolas over 200 sq ft, pergolas with solid roof finishes (creating wind/snow loads similar to a regular roof), pergolas with overhead loads from trellises, vines, or fabric shade canopies that cover most of the area.
Cost of engineering review: $200-800 for a residential pergola. Small relative to the project cost, especially for larger or attached pergolas where structural review is required by code.
For DIY backyard pergolas under 200 sq ft, no attachment to the house, no solid roof: most jurisdictions allow construction with the prescriptive sizing in this guide. Always verify locally before starting work.
How we sourced these recommendations
Sizing tables and load values follow standard residential framing practice for outdoor structures, adjusted for the lighter loads typical of pergolas (vs. enclosed roofed structures). Specific values vary by region, snow load zone, and project complexity. The American Wood Council Wood Frame Construction Manual covers the underlying engineering for typical residential framing; ASCE 7 provides snow and wind load specifications.
Pricing figures reflect 2026 typical residential pricing in major U.S. metro markets. Pricing varies by region, lumber availability, and grade. Recommendations are reviewed annually and updated whenever industry pricing or design practices change materially. For project-specific design, defer to a licensed structural engineer or architect for any pergola exceeding standard backyard sizes or attached to the house.
For related framing and calculator references that pair with pergola design, this site has dedicated tools. The rafter length calculator handles common rafter math. The wall stud calculator handles vertical post and pergola post sizing similar to wall framing.
For broader project context when a pergola is part of a larger outdoor or addition project, related references cover the surrounding workflow. The cost to build a house calculator covers full-project budgeting. The patio roof pitch reference covers attached patio covers (a closely related outdoor structure).
For material and finish references when sizing pergola components, related pages cover the material side. The siding calculator handles cladding when pergolas include privacy screens or solid backings. The roofing materials prices guide covers roofing materials if the pergola includes a partial roof or shade panel system.
Need to run the numbers?Use the free roof pitch calculator on the home page to convert pitch to angle, calculate rafter length, or estimate roof area in any unit.