Garden & Home Reviews is reader-supported. We earn affiliate commissions from qualifying purchases — how this works.

How to Build a Pergola

Over-the-shoulder view of a person grilling vegetables, in soft early-morning light

Affiliate Disclosure

Some links on this page are affiliate links. As an Amazon Associate, we earn from qualifying purchases — at no extra cost to you. We do not buy, test, or physically handle the products we cover; our rankings come from aggregated owner reviews, ratings and expert consensus. Commissions never change our verdicts. How we rank · full disclosure.

Building a pergola is an intermediate DIY project: a kit goes up in a weekend with two people, while a from-scratch lumber build takes two weekends including footing cure time. Costs run $500 to $3,000 depending on size and material. The important first step is not carpentry — it is checking whether your city requires a permit and what the setback rules are, because pergolas frequently need one. Attached pergolas and larger structures are more likely to need a permit and an inspection, and getting a beam size or footing depth wrong is a structural problem.

How to Build a Pergola — Lowe's

Before you build: permits and layout

Check with your building department about permits, setbacks and footing depth (the local frost line), and clear it with your HOA. Call 811 before digging footings to mark utilities. Lay out the footprint with stakes and string, and confirm it is square by measuring the diagonals — equal diagonals mean square corners.

Low-angle view of a person grilling vegetables, in warm evening lamplight

Step-by-step build (freestanding)

  1. Mark and dig footings. Locate the four post holes at your squared corners. Dig each below the frost line, roughly a foot wide, using a post-hole digger or auger.
  2. Set post bases or posts in concrete. Either pour concrete and embed adjustable post bases (cleaner and rot-resistant), or set the pressure-treated posts directly and brace them plumb. Let concrete cure per the label before loading.
  3. Plumb and brace the posts. Stand the 6x6 posts, check each for plumb in both directions with a level, and brace them with temporary supports until the beams tie them together.
  4. Cut posts to height. Mark a level line across all posts (a water level or laser helps) and cut them to a uniform height so the frame sits flat.
  5. Install the support beams. Fasten the 2x8/2x10 beams to the posts on both sides with carriage bolts or the kit hardware, sandwiching or notching per your design. Recheck square as you go.
  6. Add the rafters. Space the 2x6 rafters evenly across the beams (commonly 12 to 16 inches apart), notching or using rafter clips, and fasten each. Overhang the ends equally for the classic look.
  7. Add top slats or shade. Lay the top purlins or slats across the rafters for partial shade, spacing them for the light you want.
  8. Finish. Remove braces once the frame is self-supporting, then seal, stain or paint the lumber to protect it.
Over-the-shoulder view of a person grilling vegetables, in soft overcast light

Tools and materials

You need a post-hole digger or auger, a drill/driver, a circular saw, a 4-foot level, a socket set for carriage bolts, clamps, and a tape measure. Materials are posts, beams, rafters, post bases, concrete, and exterior fasteners — or a complete pergola kit. A pergola defines an outdoor room, so build it over a solid surface using our paver patio guide, add privacy with our privacy screen guide, and string it with lights via our outdoor string lights guide. Furnish underneath from our patio furniture picks.

Golden-hour view of a person grilling vegetables

Mistakes that lead to a leaning pergola

When a permit and a pro are needed

Permits and setbacks are jurisdiction-specific and pergolas frequently require them, especially attached ones — verify with your building department before you start. Hire a pro or a structural check for large spans, attaching a pergola to the house (which involves a ledger and flashing to keep water out of the wall), building on a deck that must carry the added wind load, or any design where you are unsure the beams and footings are sized correctly. Wind uplift on a pergola is real, so structure and anchoring are not the place to guess.

We never buy, test or physically handle the products we rank. Recommendations come from aggregated owner reviews, star ratings, review volume and expert consensus — see how we rank.

More from this hub: Outdoor Living & Grills · Building a paver patio · Hanging string lights · Building a privacy screen · Best patio furniture · How we rank

Straight Answers

Frequently Asked

Do I need a permit to build a pergola?

Often yes, and it varies by jurisdiction. Many cities require a building permit for a structure over a certain size or height, and setback rules dictate how close to a property line it can sit; attached pergolas that connect to the house are more likely to need a permit and inspection than small freestanding ones. HOAs frequently have their own approval process. Check your local building department and HOA before you dig footings, because an unpermitted structure can mean fines or forced removal, and it can complicate a future home sale.

How deep should pergola post footings be?

Set footings below your local frost line, which ranges from a few inches in the far south to 48 inches or more in northern states; your building department publishes the local depth. A common approach is a footing hole about one-third the post height deep and three times the post width wide, filled with concrete. In freeze-thaw climates, footings above the frost line heave and rack the structure over winters. For a freestanding pergola in a windy area, deeper, wider footings resist uplift and racking.

What size lumber do I need for a pergola?

For a typical freestanding pergola up to about 12 feet, 6x6 posts, 2x8 or 2x10 support beams, and 2x6 rafters are common, but span and spacing determine the exact sizing. Wider spans between posts need larger beams to avoid sag. Use pressure-treated lumber for anything in ground contact, and cedar or a stable species for the visible frame. If you are unsure of the beam size for your span, a span table or a quick check with your building department prevents an undersized, sagging structure.

Can I build a pergola on an existing patio or deck?

Yes, but the attachment method differs. On a concrete patio, use post bases anchored to the slab if the slab is thick and sound, though many builders still prefer footings dug beside or through the slab for a tall structure that catches wind. On a deck, the pergola posts should tie into the deck's framing or their own footings, not just sit on the deck boards, because wind load on a pergola is significant. Confirm the deck can carry the added load, and check local code for attached structures.

How long does it take to build a pergola?

A freestanding kit pergola takes a weekend for two people; a custom lumber build from footings takes two weekends or more, with concrete cure time between digging footings and framing. Kits speed the job because the lumber is pre-cut and hardware is included. The slow parts are digging and pouring footings and letting the concrete cure before you load the posts. Rushing the footing cure or skipping the squaring step is what leads to a leaning or racked structure, so build the schedule around those.