What a pergola roof is and how it differs from solid roofing

A pergola roof is an open-frame structure made of beams and slats that create partial shade rather than full weather protection. Unlike a solid roof that keeps out rain and snow, a pergola lets light and air through while blocking some direct sun. The frame typically consists of posts anchored to the ground, horizontal beams running between them, and cross-slats or louvers laid on top in a grid pattern.

The main difference from solid roofing is that pergolas are designed to be semi-transparent. You can add shade cloth, retractable panels, or climbing vines later if you want more coverage, but the basic structure itself does not shed water. This makes pergolas simpler to build than full roofs and less expensive, since you need fewer materials and no waterproofing.

Key Takeaways

  • A pergola roof requires posts set in concrete footings, horizontal beams connecting them, and cross-slats on top, built in that order.
  • Posts must be anchored at least 24 to 30 inches deep in concrete to stay stable in wind and prevent rot at ground level.
  • Beam size and spacing depend on the span between posts and local building codes, which you should check before you start.
  • Most pergolas are built with pressure-treated lumber or cedar, both of which last longer outdoors than untreated wood.
  • You will need a level, a drill, a saw, concrete mix, and lag bolts or post brackets — not specialized tools.

Checking local building codes and getting a permit

Before you dig or buy materials, contact your city or county building department to find out whether you need a permit. Most jurisdictions require one if the pergola is attached to your house, covers more than a certain square footage (often 200 square feet), or is in a front yard setback. Some areas have no requirement for a freestanding pergola in a backyard, but you should verify rather than assume.

The building department will also tell you the frost line depth in your area — how deep the ground freezes in winter. Your post footings must go below this line to prevent frost heave, which pushes posts up and out of the ground as soil freezes and thaws. Frost line depth varies from 12 inches in warm climates to 48 inches or more in cold ones. The department can also confirm whether you need engineer-stamped plans for the size and span you are planning.

Getting a permit takes one to four weeks depending on your jurisdiction. Do this before construction, not after, because unpermitted structures can trigger fines or an order to remove the pergola.

Selecting materials and calculating beam size

Pergola lumber is typically 4x4 posts, 2x8 or 2x10 beams, and 2x4 or 2x6 slats, all pressure-treated or cedar. Pressure-treated wood is cheaper and lasts 15 to 20 years outdoors. Cedar costs more but looks better and naturally resists rot, lasting 20 to 30 years. Do not use untreated pine or fir — they rot quickly in ground contact.

The size of your beams depends on how far they span between posts and how much snow load your area gets. A 2x8 beam can typically span 8 to 10 feet with posts 8 feet apart, but a 2x10 can span 12 to 14 feet. If you live in a heavy snow area, use the next size up. Your building department or a local lumber yard can tell you the right beam size for your span and climate. Do not guess — undersized beams will sag or fail.

Calculate the total lumber needed by measuring the footprint of your pergola, counting posts (usually one at each corner and one every 8 feet along each side), and adding up beam and slat lengths. Buy 10 percent extra for waste and mistakes.

Setting posts in concrete footings

Mark the location of each post with chalk or spray paint. Dig a hole at each mark to the frost line depth (confirmed with your building department) plus 6 inches. The hole should be 12 inches wide for a 4x4 post. Use a post-hole digger or rent an auger if you have more than four holes.

Place 6 inches of gravel in the bottom of each hole for drainage. Set the post in the hole and brace it plumb (perfectly vertical) using a level and temporary 2x4 braces nailed to the post and staked to the ground. Mix concrete according to the bag instructions and pour it around the post until the hole is full. Smooth the top so water runs away from the post. Let the concrete cure for 48 hours before removing the braces.

Check each post with a level in two directions (front-to-back and side-to-side) before the concrete sets. A post that is even slightly out of plumb will throw off all the beams above it and make the whole structure look wrong.

Installing beams and connecting them to posts

Once all posts are set and cured, measure and cut your beams to length. Beams typically sit on top of posts and are fastened with lag bolts, post brackets, or bolted connections. Lag bolts are the most common: drill a pilot hole through the beam into the post, then drive a 1/2-inch lag bolt with a washer into the hole using a socket wrench. Use at least two lag bolts per beam-to-post connection, placed 6 inches apart vertically.

Lift each beam into place with help — a 2x10 beam 14 feet long weighs over 40 pounds. Brace it level and square before fastening. Use a level on top of the beam to check that it is not sagging or tilted. Once fastened, the beam should not move when you push on it.

If you are building an attached pergola (one connected to your house), bolt the ledger beam to the house rim joist or band board using lag bolts spaced 16 inches apart. Do not nail it — nails will pull out under load. Flash the connection where the ledger meets the house to prevent water from running behind it and rotting the house framing.

Laying slats and finishing the top

Once all beams are in place and level, lay the cross-slats on top in a grid pattern. Slats are usually 2x4 or 2x6 lumber spaced 12 to 24 inches apart, depending on how much shade you want. Closer spacing blocks more sun; wider spacing lets more light through. Lay slats perpendicular to the beams and fasten them with 3-inch deck screws, two screws per slat at each beam it crosses.

Use a chalk line to keep slats straight and evenly spaced. Measure the distance from the first slat to the last, divide by the number of gaps, and mark each beam at those intervals. This ensures even spacing even if your beams are not perfectly parallel.

Sand any rough edges with 80-grit sandpaper to prevent splinters. If you used pressure-treated lumber, let it weather for a few months before staining or sealing — fresh pressure-treated wood is too wet to accept finish. Cedar can be sealed when ready with a clear or tinted exterior sealer to preserve its color.

Maintenance and adding shade later

Inspect your pergola once a year for loose bolts, cracked wood, or rot. Tighten any bolts that have loosened and replace any boards that show soft spots or deep cracks. Pressure-treated wood does not need staining, but cedar benefits from a fresh coat of sealer every two to three years to maintain its appearance.

Once the basic structure is solid, you can add shade cloth, retractable shade panels, or plant climbing vines like clematis or grape vines along the posts and beams. Shade cloth clips to the slats and can be removed in winter. Retractable panels roll up when you want full sun and pull down for shade. Vines take one to two years to cover the structure but provide natural cooling and privacy once established.

Frequently Asked Questions

Do I need a building permit for a pergola?

Most jurisdictions require a permit if the pergola is attached to your house or covers more than 200 square feet. Some areas do not require one for a small freestanding pergola in a backyard. Contact your local building department to confirm the rule in your area before you start.

How deep should post footings go?

Footings must go below the frost line in your area to prevent frost heave. Frost line depth varies from 12 inches in warm climates to 48 inches in cold ones. Your building department can tell you the exact depth required in your location.

Can I use untreated wood for a pergola?

No. Untreated wood rots quickly when exposed to weather and ground moisture. Use pressure-treated lumber, which lasts 15 to 20 years, or cedar, which lasts 20 to 30 years and looks better but costs more.

What size beams do I need?

Beam size depends on the distance between posts and your local snow load. A 2x8 typically spans 8 to 10 feet; a 2x10 spans 12 to 14 feet. Ask your building department or a local lumber yard for the right size for your span and climate.

How do I attach a pergola to my house?

Bolt a ledger beam to the house rim joist using 1/2-inch lag bolts spaced 16 inches apart. Do not nail it. Flash the connection where the ledger meets the house to keep water from running behind it and rotting the framing.