Do I need a permit to put up a pergola or gazebo?
It depends on the specifics
Attachment is what changes this: a freestanding pergola under the accessory-structure size ceiling is often exempt, while anything bolted to the house is an alteration to the dwelling and typically permitted.
What changes the answer
- Freestanding, one storey, under the local accessory-structure ceiling (200 sq ft under the current IRC) — often exempt
- Attached to the house — typically requires a permit, because it becomes part of the structure and loads it
- A solid roof rather than open slats — usually treated as a patio cover, and permitted more often than an open pergola
- Adding electrical, a fan, or a heater — that work needs its own permit whatever the structure required
- Snow and wind load are the design questions, and both are set locally rather than nationally
These thresholds come from the model code and are commonly amended locally, which is usually where people get caught.
Why it matters
A pergola is a large sail with a small footprint. Uplift is what takes them, and the failure is a structure landing on a car, a fence or a neighbour's roof. Where one is attached to the house, the same connection issues that make deck ledgers dangerous apply — with the added detail that water gets in at the attachment and rots the wall behind it.
Confirm the requirement with the authority that would issue the permit before deciding.
The version of this people actually ask
Do I need a permit for a pergola attached to my house?
Usually yes. Attaching means a ledger into the wall framing, which loads the house structure and penetrates the weather barrier — the same two problems that make deck ledgers a permit item. It also means the pergola is no longer a detached accessory structure, so the size exemption stops applying no matter how small it is.
Do I need a permit for a pergola kit from a store?
The code judges the finished structure, not how it arrived. A kit is measured on the same footprint, height and attachment questions as a site-built one. Kits do carry one advantage worth using: many come with engineering documents and load ratings, which is exactly what a permit application asks for if one is needed.
Do I need a permit for a gazebo?
Same test as a pergola, with two differences that push it toward needing one more often. A gazebo usually has a solid roof, which means real snow and wind load rather than the partial loading of open slats, and it is often larger than the accessory-structure ceiling once you measure the footprint honestly. Freestanding and genuinely small, it may need nothing.
Do I need a permit to put lights or a fan in a pergola?
The electrical is its own item and generally needs a permit even where the structure did not. Outdoors it also carries specific requirements: GFCI protection, wet-location-rated fixtures and boxes, and a fan needs a box listed for fan support. A permit-exempt pergola with unpermitted wiring in it is still unpermitted electrical work.
This is the typical rule, not your answer
This is the typical rule in the United States and not a decision about your property — permitting is run by more than 22,000 separate authorities and any of them can amend the code it adopts, so confirm with your local building department before you start. Put a ZIP in to see what applies in that state, and how to reach the office that decides.
Where freestanding, a pergola falls under the IRC R105.2 exemption for one-story detached accessory structures — 200 sq ft in the 2015 and later editions, 120 sq ft under the IBC and older IRC editions. Attached structures are alterations to the dwelling and outside that exemption.
Other projects
- Build a deckA permit is usually required once a deck is more than 200 square feet, more than 30 inches above grade, serves an exit door, or is attached to the house.
- Put up a fenceFences under 7 feet are typically exempt from a building permit — but height limits, corner-visibility rules and pool-barrier requirements are set locally and catch people constantly.
- Add a shed or small outbuildingOne-story detached sheds are typically exempt up to 200 square feet under the residential code — but the number people quote is 120, and both are right depending on which code your jurisdiction adopted.
- Replace a water heaterReplacing a water heater almost always requires a permit, even though it is routinely done without one.
- Remove or open up an interior wallIf the wall is load-bearing, a permit and engineered drawings are required. If you are not certain whether it is load-bearing, assume it is.
- Upgrade or replace an electrical panelPanel and service work always requires a permit, and in most places must be done by a licensed electrician.