Building a Pergola

Building a Pergola Over a Patio

A practical guide to building a pergola over a patio: planning size and location, choosing a roof, setting posts on soil or concrete, and when to call a pro.

On this page
  1. What a pergola over a patio does
  2. Plan the size, height and location
  3. Check permits and buried utilities first
  4. Choose the roof: open, louvered or solid
  5. Attached to the house or freestanding
  6. Set the posts on soil or on the slab
  7. Frame the beams and rafters
  8. Finish and maintain the frame
  9. When to bring in a professional

What a pergola over a patio does

A pergola over a patio is an open frame of posts, beams and rafters that sits above a seating or dining area. It gives partial shade, defines the space and gives climbing plants something to grow on. An open pergola doesn’t keep out rain. If you need that, the roof has to be solid, which changes the build considerably.

If you’re still deciding between a covered space and an open frame, the difference between patio and pergola is a good place to start. This guide assumes you’ve settled on a pergola and want to know how to build one.

Most backyard pergolas are made from pressure-treated lumber, cedar or composite posts with wood beams. The frame is simple in concept. What decides whether it stays solid for years is the footings, the connections and the roof load.

Plan the size, height and location

Start with how you’ll use the space. A small table for two needs far less room than a dining set with chairs, and the posts shouldn’t block a door, a path or a view you want to keep.

Check these before you buy anything:

  • Sun and shade. Note where the sun falls at midday and in the late afternoon. Rafters running in one direction give different shade than rafters running the other way.
  • Headroom. Leave enough clearance for people to walk under the beams without ducking, and for any ceiling fan or hanging lights you might add later. Check the patio ceiling height you want before you set the posts.
  • Footprint. Mark the outline with stakes and string on the ground. Seeing it in place makes the size easier to judge than a drawing on paper.
  • Drainage. Water should run away from the structure and the house, not toward the posts.

If the pergola is part of a bigger plan for how to build an outdoor living space, set the layout around the seating and cooking areas first, then fit the posts around them.

Check permits and buried utilities first

Before you dig, call 811 in the United States, or your local utility locating service, so buried gas, water, electric and communication lines can be marked. Hitting a line can be dangerous and costly.

Many areas require a permit for a roofed structure or one attached to a house. Some homeowners’ associations also set rules on height, materials and placement. Check with your local building department and your HOA, if you have one, before you order materials.

Choose the roof: open, louvered or solid

The roof changes the load, the cost and how the structure handles weather.

  • Open rafters or slats. The lightest option. It gives filtered shade, lets rain through and suits climbing plants.
  • Louvered roof. Adjustable blades let you change how much sun and air come through. Some models close tightly enough to shed rain. They have more moving parts to maintain and usually cost more.
  • Solid roof. Boards, panels or polycarbonate sheets block most rain and sun. A solid roof needs a slope so water drains, stronger framing for snow and wind, and a plan for runoff.

Fabric shade cloth is another light option, but it isn’t waterproof. Many readers ask, “Can I build a pergola with a roof?” The short answer is yes, but the frame has to carry the extra weight and the roof has to shed water.

Attached to the house or freestanding

A pergola can be attached to the house or stand on its own.

  • Attached. One side is fixed to the house wall with a ledger board, which carries part of the load. That connection needs strong fasteners and proper flashing. Water that gets behind a poorly flashed ledger is a common cause of rot. Attached structures can be treated differently under building rules, so check before you build.
  • Freestanding. All of the load goes into its own posts and footings, so those need more care. The build doesn’t depend on the house wall, which makes it simpler in some ways.

Set the posts on soil or on the slab

How the posts are supported depends on what’s under the patio.

  • On soil. Dig holes below the frost line in your area, then set each post in concrete or on a post base set in concrete. Check each post is plumb (vertical) and at the right height before the concrete sets, and brace it until the concrete cures.
  • On an existing concrete patio. You usually can’t dig through the slab. Surface-mounted post bases fixed with concrete anchors are often the simplest route. Before you go that way, check the slab’s condition and thickness, since the answer to “Can I install a pergola on a concrete patio?” depends on both.

Whichever method you choose, keep bare wood off soil and concrete. Post bases lift the wood so water drains and the end grain stays drier. Use lumber treated for ground contact wherever wood meets soil, and corrosion-resistant fasteners rated for that treatment.

How far apart to space the posts depends on beam size and roof load, so work from span tables for your lumber rather than a number you’ve seen in a photo. The guidance on patio roof post spacing covers the same trade-offs in more depth.

Frame the beams and rafters

Once the posts are set and braced, the frame goes up in a set order:

  1. Fix the beams to the posts with the bolts, brackets or connections your plan calls for. Keep the tops of the beams level with each other.
  2. Hang the rafters across the beams with joist hangers or the connectors your plan specifies, spaced evenly.
  3. Check the frame is square and level, then tighten every connection.

To check square, measure the two diagonals of the frame. If they’re equal, the corners are square. A patio roof framing diagram is useful at this stage, since it shows how the posts, beams and rafters connect before you cut anything.

Finish and maintain the frame

Sand rough edges, seal cut ends, and apply stain or sealer as the lumber requires. Outdoor solid stain is a common choice for outdoor wood because it covers more of the grain than a clear or semi-transparent finish.

Wood in full sun and rain weathers faster than shaded wood, so plan on reapplying the finish regularly. Once a year, walk the frame and check the bolts and connectors. Wood shrinks as it dries, so connections can loosen over time. Tighten them as needed.

When to bring in a professional

Get a licensed contractor or structural engineer to review the design when the pergola is large, attached to the house, carries a solid roof, or sits on a slab over a basement or garage. Local rules may also require drawings stamped by an engineer. Long beams are heavy and awkward to lift, so get help even on a simple build.

A well-built pergola looks simple, but its footings, connections and roof loads do the real work. Plan those carefully and check your local rules before you cut.

Keep exploring

Guides from other topics

All topics →