If you have ever stood on your patio in July and thought, “This would be perfect if I could just get some shade,” a pergola is the sweet spot. It feels like a real outdoor room, simpler than a full roof, and you can build it with basic carpentry skills and a weekend or two of steady work.
I built my first pergola the hard way, meaning I eyeballed a few things I should have measured, and I paid for it with rafters that looked like they were drifting sideways. This guide is the version I wish I had: laid out cleanly, step-by-step, with the little checks that keep your pergola square, sturdy, and nice to look at.

Before you start: plan, permits, and sizing
Check your rules first
Pergolas are usually simpler than roof structures, but they still count as a permanent structure in many areas. Before you buy lumber, check:
- Local permit requirements (especially if you are anchoring into concrete or installing new footings).
- HOA guidelines for height, setbacks, and color.
- Property setbacks so you do not build into a boundary issue.
One important scope note
This guide is written for a freestanding pergola over a patio. Attached pergolas can look amazing, but tying into a house requires proper ledger attachment, flashing, and fastener schedules that vary by siding and framing. If you are not comfortable opening walls and confirming framing, build freestanding and sleep better.
Pick a practical size
A pergola should feel like it “belongs” to the patio. A good starting point is to cover two-thirds to all of the patio depth you actually use. Typical patio pergolas are:
- 10x10 for a small seating area
- 10x12 or 12x12 for a table and chairs
- 12x16+ for a larger entertaining zone
Structural reality check: Lumber sizes, spans, rafter spacing, and footing sizes depend on species and grade, wind and snow loads, and local code. Use this article as a build process, then confirm sizing with local span tables, manufacturer specs, or your building department.
Height tip: 8 to 9 feet to the bottom of the beams feels open without looking towering. If you plan to add a ceiling fan or heaters later, plan higher.
Materials and hardware (what I actually recommend)
Wood choices
For a budget-friendly pergola that lasts, you have a few solid options:
- Pressure-treated pine: most affordable and widely available. Let it dry out before staining.
- Cedar: more expensive but naturally rot-resistant and lighter to handle. Smells great too.
- Redwood: excellent outdoors, usually the priciest depending on region.
Typical lumber sizes (scale based on span and code):
- Posts: 6x6 is my go-to for stiffness and “looks right” proportions.
- Beams: doubled 2x10s or 2x12s (two boards bolted together) for a beefy, stable beam.
- Rafters: 2x8s are common for a clean look and good rigidity.
- Shade slats: 2x2s or 2x3s if you want more shade and a tighter pattern.
Hardware and fasteners
- Post bases rated for outdoor structural use (wet-set in new concrete or anchor to existing slab).
- Concrete anchors if attaching to an existing patio (wedge anchors or epoxy anchors as required).
- Structural screws or through bolts with washers for beams and braces.
- Joist hanger style connectors or structural angle brackets if you prefer metal ties at rafters.
- Exterior-rated screws (ceramic-coated or stainless) for slats and trim.
Budget note: The hardware line item surprises people. Do not cheap out here. A pergola often fails at connections, but undersized members and bad spans can also cause trouble, so treat both lumber sizing and hardware as “structural,” not “decor.”
Tools you will want on hand
- Tape measure, carpenter’s pencil, chalk line
- 4-foot level and a post level (or two levels)
- Speed square and framing square
- Circular saw (a miter saw is a luxury, not a requirement)
- Drill and impact driver
- Shovel and post hole digger (if pouring footings)
- Clamps (helpful for beam assembly)
- Ladder or two sturdy step ladders
- Safety glasses, hearing protection, gloves
Beginner power tool tip: For big structural screws, an impact driver saves your wrists and gives more consistent drive without stripping heads.
Step 1: Lay out the pergola footprint
This step decides whether everything looks crisp or slightly “off” forever, so slow down and enjoy being picky.
Mark your corners
- Decide exactly where the posts will land relative to the patio edge.
- Use a chalk line to mark the outside edges of the pergola.
- Mark post center points at each corner.
Square it up with diagonals
Measure corner to corner diagonally in both directions. When both diagonal measurements match, your rectangle is square.
My hard-learned lesson: If you build on a layout that is not square, you will spend the rest of the project “making it work” with crooked cuts and forced alignment.
Step 2: Set your posts (two common methods)
How you set posts depends on whether you have an existing slab or you are starting from soil.
Option A: Anchor to an existing concrete patio
- Confirm the slab is thick enough and in good shape. Thin, cracked concrete is not a great anchor point.
- Verify the anchoring method is allowed for your slab thickness, reinforcement, and local wind uplift requirements. In some areas, inspectors or engineers require independent footings instead of relying on a patio slab.
- Position post bases on your layout marks.
- Drill holes with the correct masonry bit for your anchors.
- Install anchors per manufacturer instructions.
Important: Many post bases require a small standoff so the wood is not sitting in water. That little gap dramatically improves longevity.
Option B: Pour footings and set post bases
- Call 811 (or your local utility marking service) before you dig. It is a safety issue and often a legal requirement.
- Dig below frost depth for your area.
- Add a few inches of gravel for drainage.
- Pour concrete and wet-set the post base, or set an anchor bolt in the concrete for a bolt-down base.
Footing size note: Footing diameter and depth vary by code and loads. Many residential pergolas land somewhere in the 12 to 18 inch diameter range, but windier and frost-prone areas can require larger. Ask your building department what they expect before you pour.
Practical tip: If you are pouring multiple footings, set batter boards and run string lines so your post bases land dead-on in the layout.
Plumb and brace posts
Set each 6x6 in its base, then:
- Plumb it in two directions.
- Clamp temporary braces to stakes or heavy objects.
- Make sure the braces are secure and cannot kick out under load while you work.
- Do not trust your eyes. Trust the level.
Safety note: Wear eye and hearing protection when cutting and drilling, and treat temporary bracing like it matters, because it does.

Step 3: Build and install the beams
Most patio pergolas use a pair of beams running the long direction, supported by the posts. You can either sit beams on top of posts with a notch, or bolt them to the sides of posts. Notching looks cleaner and adds bearing support.
Notch the posts (if allowed and you are comfortable cutting)
- Mark the top-of-beam height on all posts.
- Mark the notch depth equal to the thickness of your beam assembly (for a doubled 2x10 beam, that is about 3 inches).
- Cut the notch with a circular saw using multiple kerf cuts, then clean it up with a chisel.
Code note: Notching reduces the post section, and some inspectors have specific rules for notch depth and bolt placement. Confirm what is acceptable in your area, and use the fasteners your code or connector schedule calls for.
Consistency trick: Make a simple story pole from scrap lumber with the key heights marked. Use it to transfer measurements to every post without re-measuring.
Assemble the beams
- Lay the two beam boards flat.
- Apply exterior construction adhesive (optional but helps reduce movement).
- Clamp, then fasten using an approved schedule for your hardware. Through bolts with washers are common, and structural screws can work too, but follow your connector manufacturer specs, engineering tables, or local code for spacing.
Set beams in place
- Lift beams onto the notches (this is a two or three person job for longer spans).
- Check level along the beam.
- Fasten beams to posts using through bolts or approved structural connectors.
Safety note: Do not balance a heavy beam on a ladder while you hunt for bolts. Dry-fit, clamp if possible, then fasten.
Step 4: Add diagonal bracing
If you want your pergola to feel solid, bracing is not optional.
- Cut 4x4 or 2x6 braces for each corner (post to beam).
- Dry-fit to make sure they sit tight without forcing the frame out of square.
- Fasten with structural screws or bolts.
Quick test: Before bracing, push the top of a post gently. After bracing, it should feel dramatically stiffer.
Step 5: Cut and install rafters
Rafters are where the pergola starts looking like a pergola. They also set the “rhythm” overhead, so layout matters.
Choose rafter spacing
- 16 inches on center looks substantial and can increase shade a bit because there is more wood overhead.
- 24 inches on center is faster and uses fewer boards.
Shade note: Spacing helps, but shade also depends on rafter width, sun angle, and which direction the rafters run. If full-time shade is the goal, plan for purlins, a canopy, or panels.
Mark rafter locations on both beams
Snap a chalk line or make precise pencil marks on both beams so every rafter lands in the right spot. Measure from the same end each time.
Cut rafter tails (optional)
You can leave rafter ends square, or add a simple decorative cut. If you do decorative tails:
- Make one perfect template rafter.
- Trace it onto the rest.
- Cut them all the same way for a clean, intentional look.
Install rafters
- Set the first rafter at your starting mark, square it to the beam, and fasten.
- Set the last rafter at the far end, then run a string line between them to keep the rest aligned.
- Work your way across, checking spacing as you go.
Mistake I have made: Installing rafters one-by-one without checking alignment. A tiny error multiplies. That string line is your best friend.
Step 6: Add shade slats (purlins)
If you want more shade and a more finished look, add purlins running perpendicular across the rafters.
- Pick spacing based on shade goals. Closer spacing equals more shade.
- Start with the first slat perfectly straight, because every slat will follow it visually.
- Pre-drill near ends to avoid splitting, especially with cedar.
- Fasten with exterior screws.
Shade reality check: A pergola provides dappled shade, not full shade like a roof. If you want near-roof shade, plan on tighter purlin spacing or add a canopy, shade cloth, or polycarbonate panels later.
Step 7: Sand, seal, and finish
Wood outside is a long game. A little finishing effort now saves a lot of maintenance later.
Pro move: pre-finish on the ground
If you are staining or sealing, consider pre-sanding and pre-staining pieces like rafters and purlins before they go up. Finishing overhead on a ladder is slow, messy, and easy to miss. I like to pre-finish, then do a quick touch-up coat after installation.
Prep
- Knock down splinters and sharp corners with 80 to 120 grit sanding.
- Blow off dust or wipe down boards.
- Seal or stain cut ends if your product recommends it. End grain drinks water first.
Choose a finish that fits your wood
- Pressure-treated: wait until it dries (often several weeks to a few months depending on climate), then use a quality exterior stain or sealer.
- Cedar or redwood: use an exterior penetrating oil or stain for UV resistance.
Thrifty tip: A penetrating stain is easier to maintain than a film-forming paint. You can typically re-coat without heavy scraping later.
Maintenance tip: Most pergolas look best with a light wash and a refresher coat every 1 to 3 years depending on sun and weather. Also, as pressure-treated lumber dries and shrinks, it is normal to re-check and snug up bolts and structural screws.
Common pergola questions
How deep should post footings be?
It depends on frost depth and local code. In many regions, you need to get below the frost line to prevent heaving. When in doubt, call your building department. They answer these questions all the time.
Do I need 6x6 posts?
For most patio pergolas, I prefer 6x6 for stiffness and appearance. 4x4 can feel spindly and can flex more on taller builds.
Can I build a pergola on pavers?
Pavers alone are not a structural footing. You can remove pavers where posts land and pour proper footings, then reinstall pavers around the bases for a clean look.
How do I keep it square while building?
- Square the layout with diagonals.
- Brace posts before beams go up.
- Re-check diagonals after beams are installed.
- Add diagonal bracing before you call it “done.”
My simple build checklist
- Confirm permits and setbacks
- Decide freestanding vs attached (this guide is freestanding)
- Finalize size and post locations
- Buy lumber and hardware (include extra fasteners)
- Square the layout
- If digging, call 811 before footings
- Set post bases and plumb posts
- Assemble and install beams
- Add diagonal bracing
- Cut and install rafters
- Add purlins or shade slats
- Finish and seal
If you take your time on layout and you do not skip bracing, you will end up with a pergola that feels solid, looks intentional, and makes your patio usable for a lot more months of the year. And yes, the first time you sit under it with a cold drink, you will think: I built that.

About Marcus Vance
Content Creator @ Grit & Home
Marcus Vance is a lifelong DIY enthusiast and self-taught home renovator who has spent the last decade transforming a dilapidated 1970s ranch into his family's dream home. He specializes in budget-friendly carpentry, room-by-room renovations, and demystifying power tools for beginners. Through his writing, Marcus shares practical tutorials and hard-learned lessons to help homeowners tackle their own projects with confidence.