Pergola Calculator
Estimate posts, beams, rafters, and hardware for a freestanding pergola, and plan for wind, anchoring, and shade.
By Tom · Irrigation professional, 35 years of field experience
Last reviewed: November 2026
Creates a preliminary freestanding pergola takeoff for posts, beams, rafters, optional purlins, footings, and connectors.
Assumptions and worked example
- Four corner posts are used, with two intermediate posts if length exceeds 16 ft.
- Rafters are spaced from the entered on-center value.
Worked example: For a 12-ft length at 20-in rafter spacing, ceil(144 ÷ 20) + 1 = 9 rafters; a 10-ft width gives 12-ft rafters after the two 1-ft overhangs.
Field notes
Wind and permits
A pergola has little weight and a lot of exposed surface, so uplift in storms is the main risk. The calculator includes hurricane ties and post bases, but the quantities are not engineered. Many Florida jurisdictions require permits and wind-rated connections, so check your local rules before building.
Posts and footings
Posts are set in concrete footings, with standoff bases to keep wood out of standing water. The calculator assumes about 3 ft of the post below grade. Plumb every post in two directions before the concrete sets, since you cannot fix a leaning post after.
Shade and spacing
Rafter spacing and optional purlins on top control how much shade you get. Closer spacing and purlins add shade and weight. How the pergola faces the sun changes how the shade moves through the day, so sketch your layout against the sun before you cut anything.
Materials and site
Cedar, treated lumber, and composites all work, and treated wood needs corrosion-resistant fasteners. Check span tables for rafters and beams for your size and spacing. Mark irrigation lines and call 811 before digging footings, since post holes often hit the lines running near patios.
Common mistakes
- Treating a decorative pergola as exempt from wind and snow loads.
- Not checking post footing depth for local frost conditions.
- Skipping hurricane ties on rafters.
- Setting posts out of plumb.
- Digging footings over irrigation lines.
Planning checks before ordering
Use the result to decide: Use manufacturer connector data and qualified design input for attached, roofed, windy, snowy, or large structures. Confirm local permit and wind-load requirements before buying lumber, and check overhead power lines and buried utilities at the site. Limitations: It does not engineer uplift, lateral bracing, beam spans, shade coverings, or attachments. Safety and local requirements: Check permits, property setbacks, underground utilities, and overhead lines before construction.