Building a Pergola

What are the steps involved in building a backyard pergola?

A backyard pergola is built in a clear order: check the rules and buried lines, plan, set the posts, frame, add any roof, then finish. Here are the steps.

On this page
  1. The short answer
  2. Check the rules and buried lines
  3. Plan the design
  4. Mark the layout
  5. Set the posts
  6. Attach the beams
  7. Install the rafters
  8. Add the roof covering
  9. Finish and check
  10. Tools and safety

The short answer

A backyard pergola is built in a set order: check the rules and buried utility lines, plan the design, mark the layout, set the posts, attach the beams, install the rafters, add any roof covering, then finish the wood. Each step depends on the one before, so it’s worth doing them in order.

Check the rules and buried lines

Call 811 in the United States, or your local utility locating service, before you dig. Gas, water, electric and communication lines can run under a yard, and hitting one can be dangerous.

Check with your building department about permits. Many areas require one for a roofed structure or one attached to a house. If you have an HOA, check its rules on height, materials and placement too.

Plan the design

Decide the size, height and roof type, and whether the pergola will be attached to the house or freestanding. Draw the layout with post locations, beam and rafter spacing, and the connections.

Pick materials next. Pressure-treated lumber, cedar and composite posts are common choices. Make sure the lumber is treated for where it will be used: wood in contact with soil needs lumber rated for ground contact.

Take sizes from span tables or an engineer’s drawings for your design, not from a single number you’ve seen online.

Mark the layout

Mark the corners with stakes and string. Check the corners are square by measuring the diagonals: if the two diagonals are equal, the corners are square. The 3-4-5 method also works. From one corner, measure 3 units along one string line and 4 units along the other. If the distance between those two marks is 5 units, the corner is square. For a bigger frame, scale up, such as 6, 8 and 10 feet.

Set the posts

Dig holes below the frost line in your area, or set post bases on an existing slab with anchors. Set each post in concrete or on a post base that is set in concrete.

Check each post is plumb (vertical) in two directions and brace it while the concrete cures. Mark the same top height on each post before you cut, so the beams can sit level. If the ground slopes, the footings will sit at different heights, so work out how to level ground for foundation before you dig.

If you’re setting posts on an existing concrete patio, the answer to “Can I install a pergola on a concrete patio?” depends on the slab, and the posts are fixed with surface bases rather than set in holes.

Attach the beams

Fix the beams to the posts with the bolts, brackets or connections your plan calls for. Keep the tops of the beams at the same height across the frame. Beams carry the rafters, so their connections must be tight and suited to the job.

Install the rafters

Hang the rafters across the beams with joist hangers or the connectors your plan specifies, spaced evenly. Rafter spacing depends on lumber size and the load, so take it from the span tables or drawings for your design. A patio roof framing diagram can help you check how the pieces meet before you cut.

Add the roof covering

If you’re adding a roof, fit boards, panels or shade cloth only after the frame is square and tight. A solid roof needs a slope for drainage, and any connection to the house needs flashing.

Finish and check

Sand rough edges, seal cut ends, and apply stain or sealer as the lumber requires. Outdoor solid stain is one option, and it covers more of the grain than a clear finish.

Check all the connections when the frame is done, then again after the first season, since wood shrinks as it dries.

Tools and safety

Common tools include a post-hole digger or auger, a level, a string line, a tape measure, a drill and driver, a circular saw and a socket set. Wear safety glasses and gloves, and ear protection when cutting.

Beams and posts are heavy. Work with at least one helper, and don’t lift long pieces alone. If the pergola is large, attached to the house or carries a solid roof, ask a licensed contractor or structural engineer to review the design before you start.

The complete guide to building a pergola

Building a Pergola Over a Patio
Read the guide

Keep exploring

Guides from other topics

All topics →

Roofing a Shed Roof

A practical guide to roofing a shed roof, covering roof shape and pitch, framing and sheathing, underlayment, shingles, flashing and safety on the job.

Shed Roofing 5 min read