A pergola could be just what your outdoor area needs to make it feel complete. It provides a little coverage for comfort, but it's designed so you can still freely enjoy the elements rather than shutting them out entirely.
Often we're drawn to a home because of its outdoor space, and then underuse it once we've moved in. If that sounds familiar, a pergola can make a real difference — it helps mark out an attractive, designated area to sit and socialize in, and you can dress it up further with plants and lighting worked into the structure.
Don't worry if you find yourself confusing pergolas with other outdoor structures like pavilions and gazebos — that mix-up is extremely common. Below, you'll learn what actually defines a pergola, how it works, and the best way to plan one so it meets your needs.
In this guide
Which Wood is Best for a Pergola?
Three of the most popular woods used in pergola construction are pressure-treated pine, western red cedar, and redwood. The right choice for you mostly comes down to budget.
Pressure-treated pine is the most affordable option, and it holds up well because the treatment process makes it naturally resistant to rot and insects. To get the most out of it, apply a wood preservative once the pergola is built, and expect to reapply every couple of years. One underrated advantage of pine, beyond the price, is that it takes stain well in a wide range of colors, so it's easy to match to whatever look you're going for.
If your budget stretches further, western red cedar and redwood are the premium options — both are naturally attractive, weather-resistant, and insect-resistant without needing chemical treatment, though they cost noticeably more and can be harder to source depending on your region. Their natural oils are what give them this resistance, which is why neither one strictly requires a sealant or stain the way pine does, though many homeowners still apply a UV-protective finish to slow down the natural greying that untreated wood goes through over the years. You can tell the two apart by color: cedar tends toward a lighter, warmer amber-to-pinkish tone, while redwood runs deeper into reddish-brown. Either one is a genuinely good investment if it fits your budget, and both will typically outlast a pressure-treated pine structure by a decade or more with minimal upkeep.
Can You Attach a Pergola to a Roof?
Yes — some people attach their pergola directly to the roofline of their house because it blends the two structures more seamlessly. If you're considering this, the first step is checking whether you need planning permission, which usually depends on the pergola's size and position. Attaching one to the front of your house facing the street is more likely to require sign-off before you start building.
When choosing the position for a roof-attached pergola, think carefully about how it will interact with your gutters and eaves — don't start drilling into your roof before you have a solid, complete plan. If you'd rather leave your roof structure untouched, mounting brackets are a solid alternative that avoid modifying the roofline directly.
The trade-off with attaching a pergola is that its height is locked in by the height of your house, and there's a real risk of it blocking existing windows or doors if the position isn't planned carefully. Because you're effectively modifying part of your home's structure, this is a job where hiring a professional is usually worth it rather than attempting it as a DIY project — a licensed contractor will know how to properly flash and seal the attachment point so it doesn't create a leak path into your roof down the line, which is a real risk with a poorly executed DIY attachment.
What is a Pergola with a Roof Called?
Traditionally, a pergola doesn't have a solid roof — its defining feature is an open grid or lattice-style top that filters sunlight rather than blocking it out completely. A structure with a full, solid roof supported by posts is usually called a pavilion instead.
One important update to that rule of thumb: modern pergola kits increasingly come with adjustable louvered roofs — angled aluminum slats that can be rotated closed for full rain and sun protection, or opened to let light and air through like a traditional lattice top. These are still marketed and sold as pergolas, so it's no longer strictly true that a pergola can never offer real weather protection; it depends on whether you're building a traditional open-lattice structure or investing in a louvered system.
If you want the shaded, airy feel of a classic pergola but occasionally want full coverage, a retractable canopy is a simpler and cheaper add-on than a louvered roof system — it can be pulled across for protection and pulled back to let the lattice do its job the rest of the time. Worth discussing with your builder if flexibility matters more to you than a fixed choice between open and closed.
What's the Difference Between a Pavilion and a Pergola?
A pavilion is a structure with a full, solid roof, usually supported by at least four posts, most commonly built in a rectangular footprint. Unlike a pergola's open lattice top, a pavilion's roof gives complete protection from both sun and rain.
Climate is often the deciding factor between the two. In warmer, drier climates, a pergola's partial shade is usually enough. If you deal with heavy rain or intense midday sun regularly, a pavilion's fully closed roof is the more practical choice, since you won't need to cut your outdoor time short every time a shower rolls through. Pavilions also tend to be larger and more expensive to build than pergolas, both because of the extra materials a full roof requires and because the structure needs a sturdier frame to support that roof's weight, which is worth factoring in if you're working with a tighter budget. Attaching either one to your house is possible, though attaching a pavilion is the bigger, more complex project of the two given its size and structural weight — expect a longer build timeline and a bigger role for your contractor in the planning stage.
What They Have in Common
Despite their differences, pavilions and pergolas are typically used the same way: to cover an outdoor dining or socializing space. Whichever one you choose, both take well to the same kind of finishing touches — string lights, hanging plants, and climbing vines all work equally well on either structure to make it feel like a considered part of your garden rather than a bolted-on add-on.
Do Pergolas Really Block the Sun?
Only partially. A traditional pergola's latticed top filters and softens direct sunlight rather than blocking it out completely, so you'll still want to apply sunscreen if you're sitting under one for any length of time. What it does deliver reliably is a noticeably more comfortable, shaded seating area compared to sitting in direct, open sun — enough to make a real difference on a hot day without losing the feeling of being outside.
Your experience under a pergola changes throughout the day — as the sun's angle shifts, it interacts differently with the gridded "roof," so the coverage you get in the morning won't be identical to what you get in the afternoon.
Making a Pergola More Protective
If you want more reliable shade than the open lattice alone provides, patio shades are a simple add-on: solar screen fabric hung from the pergola's frame cuts down glare and UV exposure significantly. Short of that, or investing in a louvered roof system as mentioned earlier, you shouldn't rely on a standard open-lattice pergola to fully protect you from the sun.
Which Direction Should a Pergola Face?
As a general guideline, orienting your pergola's rafters to run north to south tends to give the best shade coverage through the middle of the day, since it creates fuller, longer shadows as the sun crosses from east to west overhead. That said, pergola shade orientation is genuinely climate- and use-dependent: some landscaping guides recommend east-west rafters instead if your priority is consistent all-day shade rather than peak midday coverage, so it's worth thinking about when you actually plan to use the space most before finalizing the layout.
Beyond rafter direction, also think about how the pergola's placement will affect natural light inside your home — check that it won't cast unwanted shade through nearby windows before construction begins. It's worth stepping outside at a few different times of day before you finalize the plan, just to see how the sun actually moves across the spot you have in mind, rather than relying on general guidelines alone.
Now you should have a clear sense of whether a pergola is the right fit for your outdoor space. Before you go ahead: plan carefully, design the structure around how you'll actually use it, and bring in the right professionals for anything involving your roofline or structural attachment. Get those three things right, and you'll have a pergola worth spending every warm evening in.