This post contains affiliate links. As an Amazon Associate, we earn from qualifying purchases, at no extra cost to you.
Every time I open Pinterest with a saved-for-later backyard idea on it, I notice the same thing: I cannot always tell a pergola from a gazebo at a glance. The pretty ones blur together. The not-so-pretty ones all look suspiciously like a tent that someone leaned a trellis against. If you are planning a real structure in a real backyard, that confusion is expensive, because these two things ask for different footings, different budgets, and sometimes different permits.
The short version of pergola vs gazebo: a pergola has an open rafters roof and no walls, built to frame a space while letting sun and rain through. A gazebo has a fully closed roof, usually sides or railings, and often a built-in floor, built to shelter you. Pergolas define. Gazebos enclose. That is the whole differences-at-a-glance answer, and the rest of this post is how to pick between them for the yard you actually have.
I have opinions. I will share them. If you want to skip ahead to the decision bit, scroll to the “which one belongs in your yard” section near the end, but I will admit I think the middle covers are the most useful reading.
What a pergola actually is
A frame, not a shelter

A pergola is an open-air frame. You have vertical posts (usually four, sometimes six), beams across the top connecting those posts, and rafters laid across the beams. No walls. No solid roof. No floor of its own. It is a scaffold for sunlight, vines, and a very specific kind of striped shadow on the patio below.
The look is quieter than a gazebo’s. A pergola sits inside a yard without demanding the yard rearrange itself around it. You can set one over an existing patio, build one as the ceiling of an outdoor dining area, or run one along a walkway so climbing roses have somewhere to climb. We linked to a whole batch of our favorite setups in these pergola ideas for a backyard that feels finished, and they really do, once you see them in context.
What a pergola is good at: defining a zone, adding architectural height to a flat lawn, growing vines overhead, and giving string lights somewhere to live. What it is not good at: keeping you dry in a downpour, and that is not a flaw, that is the design.
What a gazebo actually is
A room with a roof

A gazebo is a free-standing shelter with its own roof, its own floor (usually), and most of the time a set of sides or railings. The shape is the first giveaway: pergolas are rectangular almost without exception, and gazebos love being hexagons or octagons. You will see square gazebos and even a few round ones, but if you are looking at an eight-sided wooden thing with a peaked shingled roof and a raised deck underneath, that is a gazebo.
Gazebos read as a destination. A pergola defines part of a backyard; a gazebo is the thing you walk to. That is an opinion, but I notice I use it every time I am helping a friend plan a yard, and it tracks. If you picture a wedding ceremony under a structure, you are picturing a gazebo. If you picture an outdoor dinner table with vines trailing overhead, you are picturing a pergola. For the “it is the whole room” category, we rounded up backyard gazebo ideas we keep coming back to.
Gazebos protect you. From sun, from rain, often from mosquitoes if you add screens. That full coverage is the whole point, and it is why a gazebo costs more and takes more work to build than a pergola the same size does.
Pergola vs gazebo: the real side-by-side
Here is where the “which is really which” questions get answered. I will take them one at a time, because stacking a pergola and a gazebo next to each other and calling it a day skips the thing people actually want to know, which is what changes about my yard and my project.
The roof

Pergola: open rafters. Light passes through. Rain passes through. In the middle of the day in July, the stripes of shade are pretty, but they are not shade in the sense of “I can keep my laptop open at the patio table.” Gazebo: fully closed roof, usually peaked, usually shingled on the nicer ones. It is a real ceiling. Rain lands on top of it and runs off, instead of landing on top of you.
You can close in a pergola with fabric, retractable shades, polycarbonate panels, or vines dense enough to matter. If that is the direction you are heading, start with these real roof options for a pergola before you buy anything, because some choices look great in the catalog shot and then fail the first time it hails.
The floor

Pergolas do not come with a floor. You either stand them on an existing patio or set the posts directly in the ground on concrete footings. Gazebos very often come with a floor built in, raised a few inches off the ground on joists, which is one of the reasons they feel like a room. On a prefab gazebo kit, the deck is part of the structure. On a custom-built gazebo, the deck is usually the first thing to go up.
The sides. A pergola has none. A gazebo usually has partial sides, which is the classic look (railings about waist height, open above), or screened sides, which is the mosquito version, or full lattice panels. The sides are the reason gazebos end up feeling enclosed even though they are still technically open-air. You walk through a doorway to enter one.
The shape. Pergolas are rectangles, almost always. The straight-line geometry is baked into the thing. Gazebos are usually hexagons or octagons, which is why they look like a destination in the yard: the eye lands on a shape that is doing something different from the house behind it. If you build an octagonal pergola, which people do, it starts drifting into pavilion territory, and we will get to that in a minute.
The cost

A pergola is cheaper per square foot, often considerably cheaper, because there is no roof and no floor to pay for. A DIY cedar pergola over an existing patio is a weekend-and-a-half project with lumber bills in the hundreds, not thousands. A gazebo, especially a wooden gazebo with a shingled roof and a railed deck, is a serious build with serious materials. Prefab kits narrow the gap, but the gap is real: more material, more labor, more cost.
The permit question

I am not going to tell you what your town says, because your town is the only town that can tell you that, and the rules are all different. What I will say is: pergolas sometimes slip under permit limits because they have no roof and no walls; gazebos very often need a permit because they are a fully roofed structure with a floor. Call the planning office. It takes ten minutes. It is also free, which the fine for an unpermitted structure is not.
The modern variant: louvered pergolas
Louvered pergolas and retractable canopies

If you have been searching pergola vs gazebo this week, you have probably also been shown photos of louvered pergolas, and they are everywhere now for a reason. A louvered pergola is a pergola whose “rafters” are motorized aluminum slats you can rotate. Closed, they make a solid roof that keeps rain off. Open, they make the usual pergola stripes. Partway, they tilt the sun wherever you need it and vent the heat up and out.
They are, in a way, the answer to the question “what is replacing pergolas.” The pergola is not actually being replaced; it is being upgraded for people who want the pergola’s silhouette and the gazebo’s rain protection in the same object. The catch is price. A louvered aluminum pergola kit lands in the thousands, sometimes well into five figures depending on size and brand. It is a lot of money for a thing that used to be made of two-by-sixes.
If you want the pergola look with the gazebo-level shade but your budget wants the pergola-level price, the retractable-canopy route is the middle option that actually works. Something like this 12-by-9 steel-frame pergola kit with a retractable canopy gets you a fabric roof you can pull across when the sun turns mean, and open sightlines when it does not. It is not a louvered system, but it does the shade job at a fraction of the cost.
Pergola vs gazebo vs pavilion vs arbor: the cousins
Pavilions, arbors, trellises, and the pagoda confusion

Every time I write about pergolas or gazebos, someone asks about one of the cousins, and the cousins deserve a paragraph each. The short definitions, because this is where the internet goes very fuzzy:
A pavilion is a free-standing structure with a fully pitched or gabled roof, like a gazebo, but usually rectangular and without the sides. Think of a gazebo stretched into a rectangle: roof on top, open air underneath, often a floor. Pavilions tend to sit over patios in parks and big backyards. If you want to see how we tell these three apart in practice, we did a whole post on gazebo vs pavilion vs pergola with the practical choosing bit.
An arbor is a much smaller cousin. Picture a doorway-sized archway covered in climbing roses, usually with a seat under it or standing at the entrance to a garden path. Arbors do not define a room; they define a threshold.
A trellis is even smaller and arguably not in the same category: a flat panel for vines to climb. A pergola has trellis-like elements, but a trellis alone is a wall decoration, not a structure.
A pagoda is a style word more than a yard word. In American backyard talk, people sometimes call a multi-tiered garden shelter a pagoda, but the strict architectural definition is a tiered tower from East Asian tradition. If someone is selling you a “backyard pagoda,” look at the thing: it is almost always a tall gazebo with a layered roof.
Which one belongs in your yard
How I actually decide

Here is how I decide, out loud, when someone is standing in their yard holding a measuring tape.
Pick a pergola if you want to define a space, not enclose it. If the goal is “my patio needs an architectural ceiling,” or “I want vines overhead,” or “the dining area should feel like a separate room without walls,” you want a pergola. It is cheaper. It is faster. It plays well with an existing patio. It carries string lights beautifully. Our twenty-one pergola cover ideas are a good read if you are halfway sold but worried about shade.
Pick a gazebo if you want a destination you can stand under in the rain. If the goal is “I want a backyard spot that works in bad weather,” or “a mosquito-screened hangout for August evenings,” or “a structure that reads as a focal point from the kitchen window,” you want a gazebo. Build it on its own pad, set it somewhere with a good sightline from the house, and give it a real path.
Pick a louvered pergola if budget is not the main constraint and rain protection is. You are buying the hybrid: pergola look, gazebo capability. Worth it for some yards, very much not for others.
Pick a pavilion if your yard is big and you want shelter without walls. A pavilion is the right answer for an outdoor kitchen you want to keep dry, a hot tub you want covered year-round, or a wide patio you want a real roof over.
The one upgrade either structure needs

Either way you go, add light. A pergola without string lights looks unfinished the moment the sun drops, and a gazebo with a single bulb looks like a bus stop. A couple of runs of warm-white Edison string lights like these addlon ones is the one upgrade that makes either structure read as a room at night. For a full case for lighting your yard, this piece from The Spruce on outdoor-lighting ideas is a good second opinion.
Pergola vs gazebo is one of those backyard decisions where people spend six months pinning photos and then build the wrong one for their lot because the pretty photo was shot in someone else’s yard. The question is not which looks better in a Pinterest grid. The question is what you want out of the space on the last rainy Thursday in October, and whether you want to be under a roof or under rafters when you find out. Which way are you leaning, and which part of your yard is pulling you in that direction? Tell me in the comments. I am nosy about other people’s yards.
