Pool Pergola Ideas: Post Spacing, Shade, Code Clearances and Cost per Square Foot
Pool pergola ideas work when the numbers fit: posts about 9 to 13 ft apart in wood, lights and fans 12 ft above the water within 5 ft of the pool, and $20 to $60 per sq ft installed.
- ✓9 ideas with the numbersSize, post spacing, material life, shade, clearance and cost for each.
- ✓Clearances drawn outNEC 680 lighting, fan, receptacle and wire distances from the pool.
- ✓Shade you can predictPercent of sun blocked by board size, spacing and sun angle.
Key takeaways
- Under IRC 2024 E4203.4.1 (NEC 680.22(B)(1)), no light or ceiling fan may hang over the pool or within 5 ft of its wall unless every part sits 12 ft or more above the water.
- ISPSC 2024 Section 307.1.4 requires a roof or canopy over a pool to be built so water does not run off into the pool, which decides where a louvered roof’s gutters go.
- LawnLove puts pergolas at $20 to $60 per sq ft, average $37, with louvered roofs $25 to $130 per sq ft extra (December 2025).
- Wood lasts 5 to 12 years against 15 to 20 for vinyl, aluminum and fiberglass, per LawnLove; one aluminum maker lists an 18 ft clear span with no center post (The Luxury Pergola).
- Open rafters shade less than they look: 2×6 boards on edge at 12 in centers block 12% of overhead sun and 58% at a 45 degree sun angle (PC&S geometry).
What are the best pool pergola ideas?
Nine pool pergola ideas cover most decks, from a $470 lumber build to an aluminum louvered roof that reaches over the water. Each row gives the size and post spacing, material life, shade, the clearance rule from the pool and a dated cost, because the pool’s electrical and drainage rules change what a pergola can carry. If a pergola is not the right fit, sails, umbrellas, covers and trees are compared with a sun-angle table in our pool shade ideas guide.
| Idea | Typical size and spacing | Material life (LawnLove) | Shade | Clearance from the pool | Cost (source, date) |
|---|---|---|---|---|---|
| 1. Cedar slat pergola beside the pool | 12 x 16 ft, posts at most about 9 ft apart on a 2-2×10 beam (deck table check) | Wood 5 to 12 years | 12% to 58% with 2×6 rafters at 12 in, by sun angle | Lights and fans 5 ft or more from the pool wall unless 12 ft up | Cedar $30 per sq ft; 192 sq ft about $5,760 |
| 2. Vinyl kit over a lounge area | 10 x 10 ft kit | Vinyl 15 to 20 years | Depends on slat layout | Same lighting rules | $20 per sq ft; 100 sq ft $2,000 to $6,000 |
| 3. Aluminum louvered pergola over the deck | Up to 18 ft between posts (The Luxury Pergola) | Aluminum 15 to 20 years | Up to 100% with louvers closed | Gutters must drain away from the pool (ISPSC 307.1.4) | Aluminum $20 per sq ft plus $25 to $130 per sq ft for louvers |
| 4. Pergola reaching over the pool edge | Clear span set by maker: 18 ft without a center post | Aluminum 15 to 20 years | Up to 100% closed | No light or fan lower than 12 ft above the water over the pool | Louvered rate applies; ask for stamped wind and snow rating |
| 5. Pergola over an outdoor hot tub | 8 x 8 ft or 10 x 10 ft | By material | Up to 100% closed | Same 12 ft rule over the spa and within 5 ft of it | $1,280 to $3,840 for 64 sq ft |
| 6. Pergola with a ceiling fan | Fan 10 ft or more from the pool wall | By material | By roof | Fans 5 to 10 ft out need GFCI unless 5 ft up and rigidly attached | Electrician $45 to $100 per hour |
| 7. Outdoor bar or kitchen pergola | Counter at the far side of the deck | By material | By roof | Receptacles 6 ft or more from the pool; GFCI within 20 ft | Smart pergola $60 to $65 per sq ft |
| 8. Shade-slat pergola on a budget | Lumber build from scratch | Pine $25 per sq ft installed; wood 5 to 12 years | 25% to 50% with 2×2 slats at 6 in, by sun angle | Keep posts out of the 3 ft clear zone outside the pool barrier | $470 in lumber and hardware (LawnLove) |
| 9. Freestanding cabana pergola with curtains | 12 x 16 ft (192 sq ft) | By material | Curtains add side shade | Under 200 sq ft and 15 ft may skip a building permit in Austin if detached and unplumbed | Average $37 per sq ft; 192 sq ft about $7,104 |
Sources: LawnLove (updated Dec 27, 2025); IRC 2024 Chapter 42; IRC 2024 Tables R507.4 to R507.6; ISPSC 2024; The Luxury Pergola; IRC 2024 R105.2, Austin. Totals and shade are PC&S arithmetic. Download CSV
Ideas 1, 2 and 8 suit most budgets; ideas 3 and 4 buy full shade and rain cover at $25 to $130 per sq ft more. Ideas 5 to 7 add a hot tub, fan or bar, and each brings an electrical rule with a distance in feet. Pergolas over a spa have their own sizing, which our hot tub gazebo ideas guide covers.
Can you build a pergola over a pool?
Yes, if the posts stand on the deck and the roof spans the water. ISPSC 2024 Section 307.1.4 requires a roof or canopy over a pool to follow the building code and keep runoff out of the pool. Lights and fans over the water must sit 12 ft or more above it, and overhead service wires need 22.5 ft of clearance.

| Item near the pool | Rule | Code section |
|---|---|---|
| Light or ceiling fan over the water or within 5 ft of the pool wall | No part lower than 12 ft above maximum water level | IRC E4203.4.1 (NEC 680.22(B)(1)) |
| Listed low-voltage light | Allowed within 5 ft of the pool | IRC E4203.4.3 (NEC 680.22(B)(6)) |
| Light or fan 5 to 10 ft from the pool wall | Class A GFCI, unless 5 ft or more above the water and rigidly attached | IRC E4203.4.6 (NEC 680.22(B)(4)) |
| Receptacle on a pergola post | At least 6 ft from the pool wall; GFCI within 20 ft | IRC E4203.1.2, E4203.1.4 |
| Light switch | At least 5 ft from the pool wall unless behind a permanent barrier | IRC E4203.2 |
| Overhead service wires | None within 10 ft horizontally unless 22.5 ft above the water | IRC E4203.7 (NEC 680.9(A)) |
| Roof or canopy over the pool | Built so water does not run off into the pool | ISPSC 2024 307.1.4 |
| Posts and benches near the pool fence | Barrier 48 in high, held for 3 ft outside it | ISPSC 2024 305.2.1 |
Sources: IRC 2024 Chapter 42, Sections E4203.1 to E4203.7 (bracketed 2023 NEC Article 680); ISPSC 2024 Sections 305.2.1 and 307.1.4. Download CSV
The 12 ft rule bites hardest on louvered roofs. The StruXure Pergola X certification drawing caps the mean roof height at 12 ft, so a ceiling fan hung under it over the water cannot keep every part 12 ft above the water. Put fans over the deck at least 5 ft from the pool wall, or use listed low-voltage lights, which IRC E4203.4.3 allows within 5 ft.
A full cover with walls is a different project with its own wind design and barrier questions; screen and glass options are priced in our pool enclosure cost guide. Electrical deaths and injuries around pools are counted in our pool electrocution statistics.
How far apart can pergola posts be?
For wood, about 9 to 13 ft. Using the IRC 2024 deck tables as a conservative check, a doubled 2×10 southern pine beam carrying 12 ft rafters spans 9 ft between posts and a tripled 2×12 spans 13 ft 3 in. Aluminum louvered systems go farther: one maker lists 18 ft with no center post, less in heavy snow areas.
| Member | Size and spacing | Maximum span in the deck table | What it means for a pergola | Source |
|---|---|---|---|---|
| Rafter, southern pine | 2×8 at 16 in | 11 ft 10 in | A 12 x 16 ft pergola needs 2×10 rafters at 16 in (14 ft 0 in) to span 12 ft by this table | IRC 2024 Table R507.6 (40 psf) |
| Rafter, western cedar | 2×8 at 16 in | 10 ft 7 in | Cedar spans about 1 ft less than southern pine in the same size | IRC 2024 Table R507.6 |
| Rafter, western cedar | 2×10 at 24 in | 10 ft 7 in | Wider spacing cuts span by 2 ft 5 in against 16 in centers | IRC 2024 Table R507.6 |
| Beam, southern pine | 2-2×10, carrying 12 ft rafters | 9 ft 0 in between posts | Posts about 9 ft apart for a 12 ft deep pergola | IRC 2024 Table R507.5(1) |
| Beam, southern pine | 3-2×12, carrying 12 ft rafters | 13 ft 3 in between posts | Fewer posts on the pool side | IRC 2024 Table R507.5(1) |
| Post, western cedar | 6×6 | 14 ft tall up to 120 sq ft per post | A 6×6 covers most pergola heights | IRC 2024 Table R507.4 |
| Aluminum louvered beam | Maker system | 18 ft with no center post; less above 30 psf snow | Spans a 16 ft pool width from deck to deck | The Luxury Pergola (maker page) |
Sources: IRC 2024 Tables R507.4, R507.5(1) and R507.6 (40 psf live load); The Luxury Pergola. Deck tables assume a walking load, so they are conservative for an open pergola; a solid or louvered roof in snow country needs an engineer. Download CSV
Species changes the answer: in Table R507.6, a western cedar 2×8 at 16 in spans 10 ft 7 in against 11 ft 10 in for southern pine, about 1 ft 3 in less. Wider spacing costs span too, so a 12 ft deep cedar pergola wants 2×10 or 2×12 rafters at 16 in centers rather than 2x8s.
Posts are rarely the weak point. Table R507.4 allows a western cedar 6×6 to stand 14 ft carrying up to 120 sq ft at deck loads. The footing and the connection to the slab carry the wind uplift, which is why makers of louvered roofs publish anchor details with their ratings.
How much shade does a pool pergola give?
Less than it looks at noon. An open roof blocks only the board width over the gap: 2×6 rafters on edge at 12 in centers stop 12% of overhead sun and 58% when the sun is 45 degrees up. Tight 2×2 slats at 3 in centers stop 50% at noon. Closed louvers or a solid roof block all direct sun.
Source: PC&S geometry: (board thickness + board depth / tan(sun elevation)) / board spacing, capped at 100%. Download chart data (CSV)
| Roof layout | Sun overhead (90 degrees) | Sun at 60 degrees | Sun at 45 degrees |
|---|---|---|---|
| 2×2 slats (1.5 x 1.5 in) at 3 in centers | 50% | 79% | 100% |
| 2×2 slats at 6 in centers | 25% | 39% | 50% |
| 2×6 on edge (1.5 x 5.5 in) at 12 in centers | 12% | 39% | 58% |
| 2×6 on edge at 24 in centers | 6% | 19% | 29% |
| Closed louvered or solid roof | 100% | 100% | 100% |
PC&S geometry: blocked share = (board thickness + board depth divided by the tangent of the sun elevation) divided by board spacing, capped at 100%, with the sun square to the boards. Actual lumber 1.5 in thick. Download CSV
Two moves raise shade without a louvered roof: run the top slats east to west so morning and afternoon sun crosses them at a low angle, and add a slat layer at 3 in centers over the rafters. LawnLove prices a classic slat roof at about $4.50 per sq ft, against $25 to $130 for louvers.
How much does a pool pergola cost?
LawnLove puts a professionally installed pergola at $2,100 to $6,000, average $4,000, or $20 to $60 per sq ft, average $37 (December 2025). For a 12 x 16 ft pergola beside a pool that is about $3,840 in aluminum, $5,760 in cedar, and $8,640 to $28,800 once a louvered roof is added.
Source: LawnLove, How Much Does a Pergola Cost in 2026? (updated Dec 27, 2025). Download chart data (CSV)
| Material | Cost per sq ft | Typical life | Source and date |
|---|---|---|---|
| Vinyl | $20 | 15 to 20 years | LawnLove, Dec 27, 2025 |
| Aluminum | $20 | 15 to 20 years | LawnLove, Dec 27, 2025 |
| Pine | $25 | 5 to 12 years (wood) | LawnLove, Dec 27, 2025 |
| Cedar | $30 | 5 to 12 years (wood) | LawnLove, Dec 27, 2025 |
| Redwood | $45 | 5 to 12 years (wood) | LawnLove, Dec 27, 2025 |
| Teak | $55 | 5 to 12 years (wood) | LawnLove, Dec 27, 2025 |
| Fiberglass | $60 | 15 to 20 years | LawnLove, Dec 27, 2025 |
| Louvered roof add-on | $25 to $130 extra | Maker warranties vary | LawnLove, Dec 27, 2025 |
Source: LawnLove, How Much Does a Pergola Cost in 2026? (updated Dec 27, 2025). Download CSV
| Build, 12 x 16 ft (192 sq ft) | Rate | Total |
|---|---|---|
| Aluminum frame | $20 per sq ft | $3,840 |
| Cedar frame | $30 per sq ft | $5,760 |
| All-material average | $37 per sq ft | $7,104 |
| Louvered roof added to aluminum | $25 to $130 per sq ft extra | $8,640 to $28,800 |
PC&S arithmetic from LawnLove rates. Footings on an existing deck, electrical work and permits are extra; electricians run $45 to $100 per hour (LawnLove). Download CSV
Is it cheaper to build or buy a pergola?
Building from scratch is cheapest in cash: LawnLove lists about $470 in lumber and hardware, against $2,350 for an average DIY kit ($550 to $4,000) and $4,000 for professional installation. The trade-off by the pool is the code work: a kit or installer supplies tested spans, while a scratch build needs you to check spans against tables like IRC R507.
- Check the permit line Austin’s adopted IRC exempts a detached, one-story structure up to 200 sq ft and 15 ft high with no plumbing; attached or wired pergolas usually need review.
- Size the members Compare your rafter and beam sizes with IRC Tables R507.5(1) and R507.6; a 12 ft rafter span needs a 2×10 at 16 in in southern pine.
- Ask for ratings on a kit Louvered kits list wind and snow ratings from 72 to 165 mph and 25 to 65 psf; match them to your ZIP.
- Plan wiring before the deck Receptacles 6 ft or more from the pool with GFCI within 20 ft (IRC E4203.1.2, E4203.1.4).
- Hold the barrier Keep posts and built-in benches out of the 3 ft zone outside the pool fence (ISPSC 305.2.1).
Fence styles that work with a pergola post line, and the climbable-object rules behind the 3 ft zone, are in our pool fence ideas guide. Footings sit in the deck, so the surface choice and its heat and slip data matter; see our pool deck materials guide.
Do louvered pool pergolas handle wind and snow?
Rated ones do, within their numbers. The StruXure Pergola X certification drawing lists up to 165 mph and 0 to 60 psf ground snow; Hanso rates its PRO+ at 72 to 120 mph and 25 psf with louvers closed and its MASTER+ at 165 mph and 62 psf. Ask for the stamped rating that matches your county’s design wind speed.
| System | Wind rating | Snow rating | Span or height | Source |
|---|---|---|---|---|
| StruXure Pergola X | Up to 165 mph ultimate | Ground snow 0 to 60 psf | Mean roof height 12 ft max; heights 8, 10 or 12 ft | Engineering Express certification drawing, Aug 2024 (ICC-ES hosted) |
| Hanso MASTER+ | Up to 165 mph | Up to 62 psf | Not stated | Hanso help center |
| Hanso PRO+ | 72 to 120 mph | Up to 25 psf, louvers closed | Not stated | Hanso help center |
| The Luxury Pergola | Maker claims 200 mph or more | 65 psf | 18 ft with no center post | Maker page |
Sources: Engineering Express certification drawing for StruXure Pergola X, August 2024 (hosted by ICC-ES); Hanso help center; The Luxury Pergola. Maker figures, not independent tests. Download CSV
Coastal counties add their own wind rules for structures around pools; screen enclosure standards and storm exposure in eight Gulf and Atlantic states are compared in our pool hurricane rules research, which tabulates Florida screen enclosure design pressures at design wind speeds of 110 to 170 mph.
Pool lighting choices for the deck and the water, including low-voltage fixtures that can sit closer than 5 ft, are compared in our pool lighting guide. Plants that soften pergola posts without dropping leaves in the skimmer are in our pool landscaping ideas guide.
Which pool pergola idea fits your yard?
Decide on shade, budget and weather first. Shade over loungers points to a wood or vinyl pergola set 5 ft back from the water; shade over the water points to an aluminum louvered system with a long clear span; hurricane or snow country points to a stamped rating. The decision table pairs each situation with the rule behind it.
| If your situation is | Do this | Why |
|---|---|---|
| You want shade on loungers beside the pool | Build the pergola over the deck, posts 5 ft or more from the pool wall | Fans and lights can then sit under 12 ft; in the 5 to 10 ft band they need GFCI or a 5 ft mounting height |
| You want shade over part of the water | Use an aluminum louvered system with a clear span that reaches deck to deck | The Luxury Pergola lists 18 ft without a center post; no light or fan over the water lower than 12 ft |
| You live in hurricane or heavy snow country | Ask for the stamped wind and snow rating for your ZIP | Ratings run from 72 to 165 mph and 25 to 65 psf by maker |
| The budget is under $3,000 | Build a vinyl or pine pergola of 100 sq ft or less | LawnLove: $20 to $25 per sq ft; 100 sq ft from $2,000 |
| You want the lowest upkeep | Choose aluminum or vinyl over wood | 15 to 20 years vs 5 to 12 years for wood (LawnLove) |
| The pergola stands near the pool fence | Keep posts, benches and planters 3 ft clear outside the barrier | ISPSC 305.2.1 measures the 48 in height for 3 ft outside |
Sources: IRC 2024 Chapter 42; ISPSC 2024; LawnLove; The Luxury Pergola; Hanso; StruXure Pergola X drawing. Download CSV
How we compiled this
In November 2026 we read the 2024 IRC Chapter 42 (bracketed 2023 NEC Article 680), the IRC deck tables R507.4 to R507.6, the 2024 ISPSC on UpCodes, one engineer-signed certification drawing for a louvered pergola, two maker rating pages and the LawnLove 2026 cost guide. Shade percentages and worked totals are PC&S arithmetic; we did not build, test or price any pergola on site.
Frequently Asked Questions
Can you build a pergola over a pool?
Yes, with posts on the deck and a roof that spans the water. ISPSC 2024 Section 307.1.4 requires a roof or canopy over a pool to keep runoff out of the pool, and IRC E4203.4.1 bars lights and fans over the water lower than 12 ft above it. One aluminum maker lists an 18 ft clear span without a center post.
What are some ideas for a pergola for my pool patio?
Common ideas are a cedar slat pergola over loungers, a 10 x 10 ft vinyl kit, an aluminum louvered roof over the deck or part of the water, a pergola over the hot tub, one with a ceiling fan set 10 ft from the pool, an outdoor bar pergola and a freestanding cabana with curtains.
Is it cheaper to build or buy a pergola?
Building is cheapest in cash. LawnLove lists about $470 in lumber and hardware for a scratch build, $2,350 for an average DIY kit and $4,000 for professional installation (December 2025). Kits come with tested spans and ratings; a scratch build by a pool should be checked against span tables such as IRC 2024 R507.6.
What is the cheapest thing to put around a pool?
For shade, the cheapest options in LawnLove’s 2026 guide are vinyl or aluminum pergolas at about $20 per sq ft, or a lumber build at about $470 in materials; a classic slat roof adds about $4.50 per sq ft. Whatever goes around the pool must leave the barrier 48 in high and its 3 ft outside zone clear (ISPSC 305.2.1).
How far should a pergola be from a pool?
No code sets a pergola setback from the water, but the electrical rules do in practice: lights and fans within 5 ft of the pool wall must be 12 ft above the water, and from 5 to 10 ft they need GFCI unless 5 ft up and rigidly attached (IRC E4203.4). Receptacles must be 6 ft or more from the pool.
Sources
- International Code Council via UpCodes. 2024 International Residential Code, Chapter 42 Swimming Pools (bracketed 2023 NEC Article 680). Accessed 2026-11-15.
- International Code Council via UpCodes. 2024 International Residential Code, Chapter 5, Tables R507.4, R507.5(1), R507.6. Accessed 2026-11-15.
- International Code Council via UpCodes. 2024 International Residential Code, Sections R105.1 and R105.2 (Austin adoption). Accessed 2026-11-15.
- International Code Council via UpCodes. 2024 International Swimming Pool and Spa Code, Chapter 3 (Sections 305.2.1, 307.1.4). Accessed 2026-11-15.
- Engineering Express for StruXure, hosted by ICC-ES. Performance evaluation for StruXure Pergola X, certification drawing DS 23-65267 (signed August 2024). Accessed 2026-11-15.
- Hanso Home help center. Wind & Snow Load Ratings. Accessed 2026-11-15.
- The Luxury Pergola. 18-foot louver pergola. Accessed 2026-11-15.
- LawnLove. How Much Does a Pergola Cost in 2026? (updated December 27, 2025). Accessed 2026-11-15.
Related pages
Get Quotes From Licensed Local Pool Pros
Tell us what you need and your ZIP code. We match you with pool companies that cover your area.