Pergolas & Gazebos · Guide

How to Build a Freestanding Wooden Pergola

A pergola frames a patio or seating area with posts and an open roof of rafters, giving light shade and a place for climbing plants. It is a satisfying project, but it is also a real structure that has to stand up to wind for decades. This guide focuses on doing that part right.

Front view of a pergola with two posts on footings, a beam, rafters on top and corner braces
Front view of a pergola with two posts on footings, a beam, rafters on top and corner braces. Our own illustration; not to scale.

What you will build

A freestanding pergola has four posts set on concrete footings, two beams along the tops of the posts, rafters across the beams and diagonal braces in the corners to stop it from racking. Because it does not lean on a house wall, it can stand anywhere in the garden.

Post and beam sizes, rafter spacing and how deep the footings must go depend on the span, the wood you use, your climate (frost depth, wind, snow) and local rules. We do not give one-size numbers for these: use your local building code or span tables, ask your lumber supplier, or have a professional check your plan, especially for larger pergolas or if you add a solid roof.

Real-world examples

Photos of similar builds by other people, shared under open licenses. They show the idea in practice; the details differ from this guide.

A wooden pergola over a garden walkway
A wooden pergola over a garden walkway. Photo: lienyuan lee, CC BY 3.0, via Wikimedia Commons (resized)
A pergola with lattice sides over a seating area
A pergola with lattice sides over a seating area. Photo: Acabashi, CC BY-SA 4.0, via Wikimedia Commons (resized)

Materials

  • 4 posts, sized for your design (often 4 × 4 in or 6 × 6 in, about 95 or 145 mm square), rated for outdoor use
  • 2 beams and the rafters, sized for your spans
  • Concrete for the footings, and either post bases (metal anchors set in or bolted to the concrete) or gravel for drainage if posts go in the ground
  • Structural screws or bolts with washers, galvanised or stainless, for beam-to-post joints
  • Rafter ties or hurricane clips if required where you live
  • 4 to 8 diagonal braces
  • Stakes, string and marking paint

Tools

  • Long tape measure, string line and a large square
  • Post hole digger or auger
  • Wheelbarrow and shovel for concrete
  • Circular saw and a handsaw
  • Drill/driver and long drill bits
  • Socket wrench
  • Spirit level, post level and a long straightedge
  • Two sturdy stepladders
  • Safety glasses, gloves and hearing protection

Step by step

  1. 1Check rules and underground services

    Look up whether your pergola needs permission and how close to the boundary it may stand. Then have underground cables and pipes located before you dig; many countries have a free marking service. Do not skip this, as a spade through a power cable can kill.

  2. 2Draw your plan and size the parts

    Decide the footprint and height, then size the posts, beams and rafters for those spans using your local span tables or advice from your supplier. Write down the footing size and depth your local code requires, which is usually below the frost line in cold climates.

  3. 3Lay out the footings square

    Mark the four post centres with stakes and string. Measure the diagonals: when they match, the layout is square. Mark the holes and dig them to the required depth and width.

  4. 4Pour the footings and set the post bases

    Pour concrete into the holes and set post bases in it, aligned with the string and level with each other, or set the posts in the holes on a gravel base and brace them plumb while the concrete is poured. Let the concrete cure for the time its maker recommends before you load it.

  5. 5Stand and plumb the posts

    Fix the posts to the bases, check each one with a post level on two faces and hold it plumb with temporary diagonal braces staked to the ground. Mark the beam height on every post using a long level or a laser so all beams end up level.

  6. 6Fit the beams

    With a helper and two stepladders, lift each beam into place, clamp it at the marks and fix it with structural screws or through-bolts. Never work alone at height with heavy beams.

  7. 7Add rafters and braces

    Space the rafters evenly across the beams and fix them with screws or rafter ties as your plan requires. Fit diagonal braces between each post and beam: they are what stop a freestanding pergola from swaying.

  8. 8Finish and maintain

    Remove the temporary braces, ease sharp edges and apply an exterior oil, stain or paint if the wood needs it. Check the fixings after the first windy season, and again each year.

Tips for a better result

  • Pre-cut and test one rafter end pattern, then use it as a template for all the others.
  • A pergola running east–west gives more shade at midday when rafters run north–south; sketch the sun's path before deciding.
  • Plant climbers in the ground or in large pots next to the posts, not in tiny containers that dry out.
  • Seal cut ends of treated lumber with the end-grain preservative the supplier recommends.

Common mistakes to avoid

  • Guessing post and beam sizes instead of checking spans.
  • Setting footings too shallow in a frost area, so they heave and the pergola leans.
  • Leaving out the diagonal braces on a freestanding pergola.
  • Adding a solid roof or heavy shade sail later to a frame not designed for the extra wind and snow load.

Safety

  • Locate underground services before digging.
  • Work in pairs when lifting beams and when working on ladders; never stand on the top steps.
  • Wear eye and hearing protection when cutting, and gloves and a mask when mixing concrete, which is caustic on skin.
  • If you are unsure about sizes or fixings, have a qualified builder or engineer check the design.

General guidance only. Follow the instructions for your tools and materials and your local rules, and use a qualified professional for electrical, gas and structural work.

Finishing up

A well-built pergola changes how you use the garden: a shaded spot for meals, a frame for roses or grapes, and a clear edge to the patio. Taking time over footings, sizes and bracing is what makes it last, so do not rush those parts.

About this guide: written by the DIY Outdoor Builds editors from general, widely used building and gardening practice. Text and illustration © DIY Outdoor Builds. Photos are by the people credited under each one, used under their licenses. Found an error? Let us know.

Built one?

Share your photos, measurements and what you changed. Your build gets its own page and helps the next person.

Share your build

Related guides

All guides

Real builds like this

All real builds