Pergola vs gazebo: what's the difference, and which should you choose?

By Andy · Updated

NM Landscape Design is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.

The short answer: a pergola has an open roof of beams and rafters, so it gives partial shade and an airy, architectural look. A gazebo has a solid roof, so it gives full shade and keeps off rain. Choose a pergola to define a patio or deck next to the house; choose a gazebo for a sheltered spot you can use in any weather, often out in the yard.

Pergola vs gazebo at a glance

FeaturePergolaGazebo
RoofOpen beams and rafters (or an adjustable louvered roof)Solid, usually peaked or domed
ShadePartial, moves through the dayFull
Rain coverNone unless you add a coverYes
Typical shapeSquare or rectangularRound, hexagonal or octagonal (rectangular models are common too)
PlacementFreestanding or attached to the houseAlmost always freestanding
SidesOpenOpen, railed, screened or with curtains
AirflowExcellentGood, but heat can collect under the roof
Climbing plantsIdeal supportPossible on posts, less common
Common materialsCedar, pressure-treated pine, vinyl, aluminum, steelWood, aluminum or steel frame; metal, polycarbonate, shingle or fabric roof
Relative costUsually lower for the same size, except louvered modelsUsually higher, driven by the roof
Side views of a pergola with open rafters and a gazebo with a solid peaked roof Pergola: sun passes between rafters Gazebo: the roof blocks sun and rain
A pergola filters light; a gazebo stops it. That one difference drives most of the others.

What is a pergola?

A pergola is an outdoor structure made of upright posts that carry cross beams and a grid of open rafters or slats. It marks out an outdoor room without enclosing it. Sunlight passes between the rafters, so the shade it casts is dappled and shifts as the sun moves.

Pergolas come in a few main forms:

  • Freestanding pergolas stand on four or more posts anywhere in the yard, over a patio, deck, path or hot tub.
  • Attached pergolas fix to the house wall with a ledger board on one side, extending the living space from a back door.
  • Louvered pergolas replace the rafters with adjustable aluminum slats. Closed, they shed rain; open, they work like a traditional pergola.
  • Pergolas with canopies add a sliding or retractable fabric cover for extra shade when you want it.

Pergolas are also the classic support for climbing plants such as wisteria, grapes, clematis or climbing roses, which fill in the roof over time and add natural shade.

What is a gazebo?

A gazebo is a freestanding, roofed structure, open or partly open on the sides. Traditional gazebos are round, hexagonal or octagonal with a peaked or domed roof, often with built-in railings or benches. Modern backyard gazebos are frequently square or rectangular.

  • Hardtop gazebos have a metal, polycarbonate or shingled roof and are built to stay up year-round.
  • Soft-top gazebos have a fabric canopy on a metal frame. They cost less but the canopy usually needs replacing every few seasons and should come down in high winds or heavy snow.
  • Screened gazebos add mosquito netting or curtains, which helps in buggy climates.
  • Grill gazebos are narrow structures with a vented metal roof, designed to shelter a grill and the cook.

The key differences in detail

Shade and weather protection

This is the deciding factor for most people. A gazebo's solid roof gives full shade and keeps you dry, so you can sit out during a summer shower. A pergola alone gives partial shade and no rain protection. In hot, sunny climates, that partial shade can still make a patio usable; in rainy climates, a plain pergola is mostly a fair-weather feature unless you add a cover.

Look and placement

Pergolas have a clean, linear look that suits modern and traditional houses alike, and they are often attached to the house to create a covered-feeling extension of the interior. Gazebos are more of a destination: a focal point at the end of a path, by a pond or in a corner of the garden, though many people now put rectangular gazebos over patios and hot tubs.

Airflow and heat

An open roof lets heat escape, so a pergola rarely feels stuffy. A gazebo's roof can trap warm air on still days, which is why many have a vented cupola or a double-tier roof.

Cost

The roof is the expensive part. For the same footprint and material, a standard open pergola usually costs less than a hardtop gazebo. Louvered aluminum pergolas break that rule, since the adjustable roof often puts them at the top of the price range. For real price ranges, see our pergola cost guide.

Maintenance

Upkeep depends more on material than on type. Wood of either kind needs sealing or staining every few years; aluminum, steel and vinyl need little more than cleaning. A gazebo adds a roof to look after: shingles, panels or fabric that can be damaged by storms, snow or falling branches.

Permits and rules

Rules vary by town and HOA. Size, height and distance from your property line are the usual triggers, and a structure attached to the house or with a solid roof is more likely to need a permit or inspection. Check before you buy, not after.

Which should you choose?

Choose a pergola if:

  • you want to define a patio or deck right next to the house;
  • you like an open, airy feel and some sun coming through;
  • you want to grow climbing plants overhead;
  • you would like the option to add a canopy, louvered roof or panels later.

Choose a gazebo if:

  • you want full shade and to stay dry in light rain;
  • the structure will stand on its own in the yard as a destination;
  • you want screens or curtains for bugs and privacy;
  • you want to cover a grill or outdoor kitchen with a structure designed for it.

The in-between options

If you cannot decide, the line between the two is blurrier than it used to be. A louvered pergola gives you a pergola's look with a roof you can close against sun and rain. A pergola with a retractable canopy or polycarbonate roof panels adds weather protection at lower cost. And a rectangular hardtop gazebo (sometimes sold as a pavilion) gives full cover in the straight-lined shape people often want over a patio.

Common questions

Is a pergola or a gazebo cheaper?

For the same size and material, an open pergola usually costs less than a hardtop gazebo because it has no solid roof. Louvered aluminum pergolas are the exception: the motorized or adjustable roof can put them above many gazebos.

Does a pergola keep the rain off?

Not on its own. Open rafters let rain through. To stay dry under a pergola you need a solid or louvered roof, polycarbonate panels or a waterproof canopy designed for it.

Can I put a grill under a gazebo?

Only under a gazebo built for it, such as a grill gazebo with a metal roof and a vented top, and only with the clearances the grill manufacturer specifies. Never put a grill under a fabric soft-top gazebo that is not designed for cooking.

What is the difference between a gazebo and a pavilion?

Both have a solid roof and open sides. A pavilion is usually rectangular and larger, often sized for a dining table or outdoor kitchen, while a gazebo is traditionally round, hexagonal or octagonal.

Do I need a permit for a pergola or gazebo?

It depends on where you live. Many towns set limits on size, height and distance from property lines, and attached structures or solid roofs are more likely to need a permit. Check with your local building department and HOA before you buy.

Which way should pergola rafters run for the most shade?

In most of the US the midday sun is to the south, so rafters or slats running east to west block more of it. Rafters running north to south do more to cut low morning and evening sun. A canopy or louvered roof removes most of the difference.