What Are the Rules for Building a Pergola?
- Bjørn Woodworks
- 2 hours ago
- 6 min read
By Bjorn Woodworks · 8 min read · Backyard Building

Planning a wooden pergola or outdoor structure is exciting — but getting it right means thinking through structure type, sizing, local permits, and materials before you ever pick up a saw. Here's everything you need to know.
IN THIS ARTICLE
Choose your structure type: pergola, lean-to, or gazebo
Sizing your structure and planning for spans
Permit rules, HOA restrictions, and property setbacks
Choosing the right lumber: cedar, pressure treated, or Douglas fir
The word "pergola" gets used loosely to describe just about any outdoor structure — and that's part of what makes planning one a little tricky. In reality, there are three distinct structure types that most people are picturing when they say they want a wooden pergola.
Each has different rules, different roofing options, and different strengths depending on your climate and goals.
Whether you're building from scratch or using a bracket kit like the ones from Bjorn Woodworks, understanding these fundamentals will save you time, money, and headaches — and help ensure your structure is safe, code-compliant, and standing strong for years to come.
1. Choose your structure type
Before thinking about sizing or materials, start here. The right structure depends on how much weather protection you want, the look you're going for, and your local climate.

Flat, squared-off roof with shade sails or louvered slats. Ranges from clean and modern to ornate Victorian styles.

Single-slope roof — ideal for attaching to a house. Works with shade sails or solid roofing materials like steel or polycarbonate.

A-frame roof with a ~30° pitch on each side. Best for larger, all-weather structures. Always uses solid roofing material.
THE TRADITIONAL PERGOLA
The classic wooden pergola is defined by its flat, horizontal roof — no pitch, no slope. Shade comes from either shade sails strung across the top or louvered slats that can be angled to block direct sunlight. Aesthetically, these structures span a wide range: clean-lined and modern on one end, heavily ornamented and Victorian on the other. They're a great choice for patios where you want filtered light and an open, airy feel without full overhead coverage.
THE LEAN-TO
A lean-to is characterized by its single-slope roof — one side sits higher than the other, creating a gradual pitch. This design is especially popular when building against a house or fence, since the high side can tie into an existing wall. The slope opens up your roofing options considerably. Some builders opt for shade sails, often orienting the high side toward the west to maximize afternoon shade. More commonly, lean-tos are finished with solid roof panels — light-gauge corrugated steel or polycarbonate sheeting are the two most popular choices. Both are inexpensive, easy to cut to length, and highly durable. With a solid roof, the space beneath becomes a true outdoor room: protected from rain, snow, hail, and harsh sun.
THE GAZEBO
The gazebo takes the pitch further — an A-frame roof with roughly a 30-degree slope on both sides creates a classic peaked silhouette. That pitch isn't just for looks: it sheds rain and snow efficiently, making gazebo structures the best all-weather option of the three. Because of this, gazebos almost always feature solid roofing material rather than shade sails. They also tend to be the largest of the three types, built to comfortably accommodate a dining table, seating area, or outdoor kitchen. If you're building something that will serve as a true four-season outdoor living space, the gazebo is hard to beat.

2. Sizing your structure and planning for spans
Once you've settled on a structure type, sizing is the next big decision. With Bjorn Woodworks brackets, you can build using either 4×4 or 6×6 lumber across all three structure types — and the modular bracket catalog means your footprint is largely unconstrained. You can extend in multiple directions to create a structure as large as your yard allows.
That said, there's one critical sizing rule to keep in mind:Â horizontal spans over 12 feet are prone to sagging over time.
The 12-foot span rule - Any single unsupported horizontal timber spanning more than 12 feet will gradually sag in the middle as it ages and weathers. For spans beyond 12 feet — say, a 20 or 24-foot run — you'll need to add a mid-span support using an extender kit or complementary bracket. Bjorn's catalog includes bracket options specifically designed for this purpose, keeping long spans level and structurally sound for the long term.
When in doubt, plan your post placements so that no horizontal beam spans more than 12 feet between supports. This is especially important for heavier roof materials like steel sheeting, which adds meaningful load compared to shade sails.
3. Permit rules, HOA restrictions, and property setbacks
This is the area most DIY builders overlook — and where mistakes can get expensive. Building a pergola or outdoor structure without checking local codes can result in fines, forced removal, or complications when selling your home. The good news: many backyard structures fall under permit exemptions. The bad news: the rules vary significantly by city, county, and HOA.
Here are the most common rules you'll encounter across most jurisdictions:

No walls = no permit in many areas. Open-sided structures often bypass permit requirements entirely. Generally, a couple privacy walls don't qualify as a hurdle it's more like a fully walled in structure like a shed that put you under a microscope by the city.
Under 200 sq ft typically skips permitting in most municipalities — though this threshold varies.
5-foot setback from property lines is the most common minimum distance requirement for accessory structures.
HOA rules may restrict height, materials, color, or placement entirely independently of city code.
Before breaking ground, spend 20–30 minutes on your city or county's planning department website, or give them a quick call. Ask specifically about accessory structure permits and setback requirements. If you're in an HOA, submit your plans for approval before purchasing materials — some associations have lengthy review timelines.
4. Choosing the right lumber
Not all wood weathers the same way outdoors, and your lumber choice will affect both the longevity and the finished look of your structure. Here are the three most commonly used species for pergolas, lean-tos, and gazebos:
WOOD TYPE | WEATHER RESISTANCE | APPEARANCE | STAINABILITY | COST |
Western red cedar Gold standard | Excellent — naturally rot and insect resistant | Warm, rich tones that age beautifully to silver-gray | Takes stain exceptionally well | Higher |
Pressure treated pine | Very good — chemical treatment resists rot and insects | Greenish tint when new; less attractive grain | Limited — chemicals interfere with most stains | Lower |
Douglas fir | Good — holds up well outdoors with proper finishing | Clean, straight grain; takes paint or stain well | Excellent — stains evenly in any color | Mid-range |
CEDAR
Western red cedar is the gold standard for outdoor structures, and for good reason. It contains natural oils that resist moisture, rot, and insects without any chemical treatment — and it's genuinely beautiful wood. The grain is rich and warm, and left untreated it ages to an attractive silver-gray patina. If you plan to stain your pergola, cedar accepts color evenly and holds it well. The trade-off is cost: cedar commands a premium over other species.
PRESSURE TREATED LUMBER
Pressure treated pine is the budget-friendly workhorse of outdoor construction. The chemical preservatives driven deep into the wood fibers make it highly resistant to rot and insects — it will last a long time outdoors. The downside is aesthetics: the treatment gives new lumber a slightly greenish cast, and the grain lacks the character of cedar. More importantly, those same chemicals make it difficult to achieve a consistent stain color. If you're planning a natural or semi-transparent stain finish, pressure treated lumber will likely disappoint. It's a better choice when paint or opacity is part of your finish plan.
DOUGLAS FIR
Douglas fir offers an appealing middle ground. It holds up well to the elements, costs less than cedar, and — unlike pressure treated pine — accepts stain beautifully in virtually any color or tone. The grain is clean and tight, producing a finished look that rivals cedar at a lower price point. For builders who want a specific stain color and are working with a tighter budget, Douglas fir is a strong choice.
Ready to start building?
Bjorn Woodworks bracket kits make it easy for any skill level to build a strong, beautiful pergola, lean-to, or gazebo — with 4×4 and 6×6 options across all structure types.
