How to Build a Pergola: 7 Steps, Plan and Costs
Quick Answer: To build a pergola, plan the size and check permits, lay out and square four post positions, pour concrete footings, stand and brace 6×6 posts, bolt doubled beams to the posts, fasten rafters across the beams, then add braces and stain. A 12×12 wood pergola takes two weekends and about $1,200 to $4,500 in materials.

A pergola is one of the friendlier structures to build yourself. There are no walls to frame and no roof to make watertight. The whole job is four posts, a few heavy boards and a lot of careful measuring. If you can use a circular saw, a drill and a level, you can do this with one helper.
The steps below are for a freestanding 12 by 12 foot wood pergola, the size that fits a dining table for six. The method is the same for other sizes.
A simple 12×12 pergola plan
Set four posts in a square 10 feet apart, measured center to center. Beams and rafters overhang the posts by 1 foot on every side, which gives the 12 foot top. Aim for about 8 feet of clear headroom under the beams.
- Posts: four 6×6, 10 feet long.
- Beams: four 2×10, 12 feet long, used in pairs.
- Rafters: ten 2×8, 12 feet long, spaced 16 inches apart.
- Braces: eight pieces of 4×4 or 4×6, about 30 inches long, cut at 45 degrees.
- Hardware: four galvanized 6×6 post bases, sixteen half inch carriage bolts 8 inches long, exterior structural screws.
- Concrete: about four 80 pound bags per footing.
Use pressure treated pine for the lowest price, or cedar for looks and natural rot resistance. With treated lumber, buy hot dip galvanized or stainless fasteners, because the preservative corrodes plain steel.
Tools for the job
Circular saw, drill and impact driver, half inch auger bit, 4 foot level, tape, string line and stakes, post hole digger or rented auger, socket wrench, two stepladders, clamps and a speed square. A jigsaw is handy for shaped rafter ends.
Building the pergola step by step
Step 1: Plan and get clearance
Ask the building department whether a permit is needed and how far the pergola must sit from property lines. Then call 811 a few days ahead so buried utility lines are marked for free. Never dig before that is done.
Step 2: Lay out and square the posts
Stake the four post centers and run string between them. Measure both diagonals. When the two numbers match, the layout is square. Adjust the stakes until they do.
Step 3: Dig and pour the footings
Dig holes 12 inches across and to the depth your code requires, which in cold regions means below the frost line so winter heave cannot lift a corner. Fill with concrete, finish the top slightly above the soil so water drains away, and set the anchor bolt for the post base while the mix is wet. Let it cure for at least two days.

Posts in the ground or on brackets?
Brackets are the better choice. A post buried in concrete sits in moisture and rots at ground level. A metal post base holds the wood an inch above the footing and lets it dry.
Step 4: Stand and brace the posts
Set each post in its base, check two adjacent faces for plumb and hold it with a pair of temporary 2×4 braces staked to the ground. Fasten the base. Mark a level line around all four posts at beam height and trim the tops if needed.
Step 5: Bolt on the beams
Clamp one 2×10 to each side of a pair of posts, tops flush and level, with the natural crown of each board facing up. Drill through all three pieces and install two carriage bolts at every post. Repeat on the opposite pair of posts.

Step 6: Add the rafters
Cut any decorative end shape on the ground first, using one rafter as a pattern. Mark 16 inch spacing on top of the beams, set the rafters on edge across them and fasten each crossing with two structural screws driven at an angle, or with metal rafter ties in windy areas. Notching each rafter an inch over the beams locks them in place and looks neater.
Step 7: Brace and finish
Fit a 45 degree knee brace at each post in both directions. These stop the frame from racking sideways and are not optional on a freestanding pergola. Remove the temporary braces, brush sealer onto every cut end and apply an exterior stain once the lumber is dry.
Pergola cost: DIY versus hired
At 2026 prices the lumber, hardware and concrete for this 12×12 design run about $1,200 to $2,500 in pressure treated pine and $3,000 to $4,500 in cedar. Having the same pergola built by a contractor typically costs $4,300 to $8,600. Precut kits fall in between and save the measuring and cutting.
Free pergola plans from lumber suppliers and university extension sites are fine for standard sizes. Check that any plan lists post size, beam span and footing depth before you trust it.
Slip ups that weaken a pergola
- Using 4×4 posts on anything larger than about 8 by 8 feet. They twist and look spindly.
- Nailing beams to posts. Through bolts carry the load.
- Skipping the knee braces, which leaves the frame free to sway.
- Building out of square, so every rafter has to be trimmed to fit.
- Staining wet treated lumber. Give it a few weeks to dry first.
Once the frame is up you can leave it open or cover it. Our guides to pergola ideas and a pergola with roof cover the options, and pergola vs gazebo helps if you are still deciding what to build.
Frequently asked questions
How deep should pergola footings be?
Follow local code. In frost free areas 24 inches is common. In cold climates footings go below the frost depth, often 36 to 48 inches.
Can I build a pergola on an existing concrete patio?
Sometimes. A sound slab at least 4 inches thick can take post bases fixed with concrete anchors, but many codes still require separate footings. Thin or cracked slabs are not suitable.
Do I need a permit to build a pergola?
It depends on the town and on size, height and whether it attaches to the house. Always ask first.
Should I use 4×4 or 6×6 posts?
Use 6×6 for a pergola of 10 by 10 feet or more. They resist twisting, give room for bolted beams and look in proportion.
How long does it take to build a pergola?
Two people can finish a 12×12 pergola in two weekends: one for layout and footings, one for the frame.
