Pergolas go up over patios, decks and walkways, either freestanding or attached to the house. The roof is a set of beams and rafters with gaps between them, held up by posts, so it throws partial shade and gives climbing plants something to grab without closing the space in.

On permits, the 2021 International Residential Code (International Code Council) waives them only for one-story detached accessory structures up to 200 square feet, so an attached pergola falls outside the exemption.

Zoning rules on setbacks and height still apply, and local codes can set a lower size limit.

What Is a Pergola?

Freestanding pergola with an open slatted roof

Merriam-Webster’s entry describes rows of columns carrying girders and cross rafters, with the roof left open between them. In practice that means no shingles, and walls that are either missing or minimal on three sides or fewer. Shade is partial because it filters through lattice, slats or louvers.

Beyond shade, people build them to hold up vines and to mark out an outdoor room.

The wall and shingle limits come from Renson, a shade-systems maker, which also admits the definition is fluid. A structure can qualify as both a pergola and an awning, or a pergola and a covered porch.

Two edges stay contested. Renson allows insect screens on all sides, especially in southern states. Gazebo guides treat a solid roof as the mark of a gazebo, yet StruXure’s Pergola X can include solid-roof bays next to pivoting louvers.

A mostly open roof carried on posts, beams and rafters is a pergola, whatever accessories get added.

Where the word pergola comes from

English took the word from Italian, which inherited it from Latin pergula, a projecting roof linked to a verb meaning to go forward (Oxford Learner’s Dictionaries).

Dictionaries date its first English use up to two decades apart. Merriam-Webster says 1664, Random House Kernerman Webster’s College Dictionary says 1645 to 1655, and Oxford Learner’s Dictionaries settles for the mid-17th century.

The structure is older than the word. Britannica traces it to ancient Egypt and calls it a common feature of early Renaissance gardens in Italy, which then spread across Europe.

The same entry notes that pergolas stayed popular in hot climates, often draped in vines or ivy around the Mediterranean, a look that survives in patios and gardens built in a Mediterranean style.

What Parts Make Up a Pergola?

Footings, posts, beams and rafters form the basic frame. Attached models add a ledger board, and purlins are optional.

Following the load from the roof down, purlins (if you use them) are smaller members laid across the rafters to add shade. The rafters carry the roof surface and rest on the beams, which are horizontal members sitting on top of the posts. Posts run from footing to beam. Footings are concrete bases that pass the whole load into the ground.

Post layout depends on placement. An attached pergola needs posts on the open side only, while a freestanding one needs them around the full footprint (Hunker’s parts guide).

On an attached pergola the ledger board replaces the second beam line. It is anchored to the wall framing, and the rafter ends hang from it while their other ends rest on the beam.

Lumber size sets the span. In one kit maker’s installation guide (Backyard Living Structures, 2020), 2×6 beams and rafters stop at a 16-foot span, so wider roofs step up to 2×8 stock, which the same guide rates to 22 feet.

Footing depth follows the frost line, and local code sets the exact figure. The same kit guide says to dig to the frost line, then bolt the post mounts to the footing once the concrete cures.

Pergola Types by Placement and Roof Design

Attached and freestanding pergola designs

Where the pergola stands (freestanding or attached) and what sits on the rafters (fixed slats, louvers or a retractable canopy) are the two choices that shape everything else.

Freestanding and attached pergolas

A freestanding pergola has posts on every side and two parallel beams, and it never touches the house. You can put it anywhere in the yard, and it marks out a zone of its own.

Attached versions fix a ledger to the house wall and put posts only on the far side, which extends a patio or deck and borrows some strength from the wall. Bob Vila’s 2024 guide calls this the more common version, usually built in wood. The catch is the wall, because the ledger needs solid framing behind it.

Lattice, slatted, louvered and retractable roofs

Slat spacing decides how much shade a fixed roof gives. StruXure NorCal (2026) puts tight fixed slats at about 65%, while Sunset Pergola Kits (2026) sells fixed slatted roofs in 50%, 75% and 90% shade options.

The sources differ because slat width, spacing and angle differ between designs. Coverage follows purlin spacing and slat direction, so a shade percentage is a spec of one design, not a property of the roof type.

Open lattice or fixed slats have no moving parts and need the least upkeep, though they offer little rain protection. Louvered roofs use motorized aluminum blades that tilt for shade or close to seal out rain, which means more parts to maintain. A retractable canopy is fabric on tracks that extends or pulls back.

One manufacturer’s comparison frames the canopy bluntly. It manages sun, while a louvered or solid roof manages weather (Apollo Screen, 2026).

Some systems blur the line. StruXure’s Pergola X can pair solid-roof bays with pivoting louver bays (StruXure NorCal, 2026).

A fixed slatted roof is enough where the goal is shade, not shelter.

Open-roofed pergolas with lattice or fixed slats have no moving parts and need the least upkeep, though they offer little rain protection. Slat spacing and orientation determine how much sunlight reaches the patio below. Louvered roofs use motorized aluminum blades that tilt for shade or close to seal out rain, which means more parts to maintain. A retractable canopy is fabric on tracks that extends or pulls back.

Walkway, poolside and deck pergolas

A walkway pergola is a covered garden path, the use Britannica describes for the form. Poolside, it gives intermittent shade and light cover from sun or rain, according to Wayfair’s guide.

Over a patio or deck, it marks the seating or dining area without walling it off.

Pergola kits ship with the beams, rafters and their fasteners. Backyard Living Structures’ 2020 guide lists the hardware for post mounts and the ledger plate as not included, so buy it separately.

Which Material Is Best for a Pergola?

Weathered timber pergola showing how the material ages

No single material wins on every count. Pressure-treated pine costs the least. Cedar and redwood resist rot without help, and aluminum asks for almost no care.

Material Upkeep Strength Drawback
Cedar or redwood Seal or stain Heartwood resists decay Sapwood and young-growth redwood resist less
Pressure-treated pine Seal regularly Lowest price Lifespan estimates conflict
Aluminum Occasional wash No rot, no yearly paint or stain Higher upfront cost

Wood: cedar, redwood and pressure-treated pine

The USDA Forest Products Laboratory rates heartwood of western redcedar and old-growth redwood as resistant to very resistant to decay.

Sapwood is the weak spot. Untreated sapwood of essentially all species has low decay resistance, and USDA Forest Service research finds young-growth redwood less resistant and more variable than old-growth.

So specify heartwood grades when buying cedar or redwood, because sapwood boards give up the rot resistance you are paying for. Wood pergolas should also be inspected periodically for moisture damage and signs of Termites, particularly around posts and other components close to the ground.

Pressure-treated pine changed in 2003. EPA granted the voluntary cancellation of most residential CCA uses effective December 31, 2003, and copper-based preservatives took over.

Published lifespans for pressure-treated pine pergolas run from 10 to 15 years (Royal Covers, 2026) to 25 to 40 years (The Pergola Cave, 2026). Both are vendor estimates, not test results.

The 2003 chemistry change likely explains part of the gap, and a lumber dealer’s comparison (Advantage Lumber, 2025) draws the same line between CCA-era and newer treated wood. Treat any single lifespan number with suspicion and plan on regular sealing.

Aluminum, vinyl and fiberglass

Wikipedia’s pergola entry says aluminum, vinyl and fiberglass need no yearly paint or stain.

Aluminum kits use extruded alloy beams (6063-T5 in Classic Metals’ component guide, 2026), and that guide points to 6×6 posts for large commercial structures or high wind loads.

Aluminum costs more upfront than cedar (McKinley Construction Management, 2026). It is still the safer default in coastal or high-wind yards (Aoodor, 2025), while cedar earns its upkeep where the grain is part of the look.

How Does a Pergola Differ From a Gazebo, Arbor, Trellis and Pavilion?

Roof and scale do most of the sorting. A pergola has an open roof and is big enough to shade people. Gazebos carry a full roof, arbors and trellises are small plant supports, and a pavilion is simply a roofed shelter.

Reference sources disagree on the edges. The University of Florida’s IFAS Extension defines a pergola as a long, narrow walkway structure, while retailer guides describe patio-sized outdoor rooms. The same publication says a true arbor includes a bench, while retailers usually describe an entry arch.

Shape is the quickest tell. IFAS notes that gazebos are most often octagonal or round, and it describes pergolas as linear.

Structure Roof Scale Typical job
Pergola Open beams and rafters Walkway to patio size Shade, vine support, outdoor room
Gazebo Full roof, partly open sides Small, often round Viewpoint, garden feature
Arbor Open lattice top Small Entry or seat with vines
Trellis None, flat lattice Panel or small frame Climbing plant support
Pavilion Ornamental roof, open sides Garden shelter to park structure Group gatherings

To identify one on sight, ask whether the roof rests on posts, beams and rafters and whether it is mostly open between the rafters. Then check if the sides are open or only lightly screened, and whether it is large enough to shade people, not just hold a vine.

Four yes answers make a pergola. A no on the roof points to a gazebo or pavilion, and a no on size points to an arbor or trellis.

IFAS describes a pavilion as a light building with an ornamental roof, built for relaxing. If a full roof over the gathering space is the goal, ideas for a backyard pavilion cover that route.

What Is a Pergola Used For?

Pergola shading an outdoor dining area

Shade is the obvious one. The roof filters sun over a seating area instead of blocking it.

Azenco (2026) calls a pergola an architectural anchor that creates distinct rooms outdoors, and The Backyard Showcase lists screening a yard from view among its core uses. Dining and cooking zones are common too. The roof decides whether smoke vents and how much rain reaches the counter, so roof choices for an outdoor kitchen deserve their own look.

Pergolas as plant supports

Vines are the original job. IFAS traces pergolas and arbors for vining plants to ancient gardens, and Amazing Architecture (2026) describes Italian Renaissance versions draped in roses, grapevines and flowering climbers.

Grapevine and climbing rose are the usual picks, along with wisteria. Wisteria is the classic and the riskiest. Utah State University Extension warns it can destroy all but the strongest wooden or metal structures through sheer weight and twining stems, and it advises 6×6 or larger wood posts or steel beam construction.

Michigan State University Extension says PVC is probably not an option for the same reason. University of Maryland Extension goes further and advises against planting Chinese and Japanese wisteria and replacing existing plants where possible. Maryland classes both as Tier 2 invasive plants.

Build the frame for the vine’s mature weight, not its planting-day size. Or skip wisteria where it is classed invasive.

Where a Pergola Falls Short

An open roof gives up weather protection, and the frame takes the weather too. That trade suits fair-weather patios and fails for year-round use.

The upside is real. Light and airflow pass through the roof (Penn Dutch Structures, 2026), a pergola costs less than a gazebo or pavilion of similar size, and open sides release heat.

The downside is just as plain. Furniture underneath suffers sun damage, and the frame fades and takes storm wear (Bob Vila, 2024). Rain and wind pass through, and snow gathers between the members.

The Luxury Pergola (2026) rates its louvered roof at up to 65 psf of snow load and says its retractable fabric roof must be retracted when snow arrives.

Open roofs still collect snow. Engineering Express (2022) applies the snow build-over provision of ASCE 7-16 and 7-22 section 7.13.3, a rule written for open-frame equipment structures, to pergolas. A cornice load is added when the gap between members is smaller than the snow’s buildup height.

ASCE 7-22 also moved to strength-based ground snow load maps tied to risk category, and the 2024 International Building Code uses them (Structure magazine, 2025).

Grills split the sources. Outdoor Heat Direct (2026) says a fire pit under an open-slat pergola usually passes, because heat and gases rise through the gaps. Texas Grill Clean (2026) says open slats are not a solution for grills, because combustible wood sits over the flame path and the gaps vent less than people assume.

The appliance manual overrides both. Where the weather is wet or snowy and the space is used year-round, Range Outdoor Living (2026) points to a gazebo’s solid roof as the safer choice.

Do You Need a Permit to Build a Pergola?

Often not when it is small and freestanding, almost always when it attaches to the house. Zoning rules on setbacks and height apply either way.

The model International Residential Code sets 200 square feet as the floor-area limit for permit-exempt one-story detached accessory structures (LegalClarity, 2026).

Los Angeles County is stricter. Its building code exempts a detached accessory structure only up to 120 square feet and 12 feet high, with a roof projection of 24 inches or less, and separate electrical permits may be required on top (Los Angeles County Public Works). An attached patio cover needs a building permit there at any size.

The two figures are not a contradiction. The model code is a starting point, and the stricter local number governs.

Roof type shifts the category too. Many jurisdictions treat open-lattice pergolas as shade structures and solid-roofed covers as patio covers, which face stricter review (DoINeedAPermit.org, 2026).

Homeowners associations add a second approval. Moda Outdoor Living (2026) notes that HOA design review is often stricter than city code.

The order that saves the most grief:

  1. Call the city or county building department and ask about size, height and attachment rules at your address
  2. Check zoning for setbacks and height caps
  3. Get HOA approval first if one applies
  4. Submit a site plan with the application when the department requires a permit

Pergola FAQ

Can a pergola have a solid roof?

Yes, but the label changes. PermitDeck (2026) reports that a solid roof which sheds water gets treated like a patio cover, and those always need a permit.

How much does a pergola cost?

A professionally installed pergola averages $4,250, with most projects between $2,118 and $6,418 (HomeAdvisor, 2025).

Sources split on aluminum. Angi (2026) prices it below cedar and redwood, while McKinley Construction Management (2026) puts it 20 to 40 percent above cedar.

Does a pergola add home value?

Not provably. No primary study isolates a pergola’s effect on resale price, and the 50 to 80 percent return that retailer guides repeat has no traceable source.

Michrose (2026) adds that a build without permits can reduce value instead.

How tall should a pergola be?

Pergola sized to give headroom over a seating area

Most residential pergolas stand 8 to 12 feet tall, and 9 to 10 feet is the common choice (Mitchell Construction, 2026).

Planning a ceiling fan changes the math. StruXure NorCal (2026) cites a code minimum of 7 feet from the ground to the blades.

How far apart should pergola posts be?

Typically 6 to 12 feet, depending on material and load (Mitchell Construction, 2026).

Beam size sets the real ceiling, so match post spacing to the span your lumber or aluminum section is rated for.

How long does an aluminum pergola last?

Architectural-grade aluminum is typically rated for 20 to 30 years with minimal upkeep (Western Timber Frame, 2026).

One California supplier claims 40 to 50 plus years, yet the same page cites typical aluminum pergola warranties of 20 to 30 years (Rinova Pergola, 2026).

Choosing a Pergola for Your Yard and Climate

A pergola fits best when the roof is chosen for local weather first and the material for upkeep tolerance second, with permit limits checked before either.

Order matters because each step narrows the next. Start with the size and height limits from the building department, then pick a roof type for the snow and wind load, then choose a material for the upkeep you will actually do.

Limits come first because they cap everything after them. A 12-by-16-foot frame covers 192 square feet, which clears the model code’s 200 but exceeds Los Angeles County’s 120.

The accepted trade-off is simple. Staying under a threshold caps the footprint, and a larger pergola buys a plan review.

Position verified October 2026. A city or county that adopts a newer code edition changes those limits before any design preference does.

Andreea Dima