Direct sun on a patio door, large window, or exterior wall is one of the biggest sources of unwanted heat gain in a home. The Department of Energy estimates that shading windows from direct sun can reduce indoor temperatures by up to 20 degrees on the hottest days, and that exterior shading is far more effective than blinds or curtains inside, because the heat is blocked before it ever passes through the glass. Meanwhile, that same sun makes your patio too hot to enjoy for most of the summer afternoon.
A pergola solves both problems at once. Done right, it throws a deep shadow across your patio and any adjacent glass, cuts cooling load, and gives you a structure to hang lighting from so your outdoor space works after dark too. Unlike a deck or addition, a pergola is a project a motivated homeowner can realistically finish in a weekend with common tools and a helper.
This guide walks you through two ways to do it: a basic freestanding pergola with a fabric shade canopy and string lighting (Saturday and Sunday, roughly $600 to $1,200), and a full-build version with a ledger-attached frame, retractable canopy, and hardwired low-voltage LED lighting (a long weekend, roughly $1,800 to $3,500). We also cover the building science of why shade placement matters, the mistakes that make pergolas wobble or leak, and when to bring in a professional.
What You’ll Need
Click on an item below to shop for the recommended items for this recipe on Amazon.
As an Amazon Associate, we earn from qualifying purchases.
How to Do It
- Friday evening (prep): Check local permit rules and call 811 to mark underground utilities before digging. Pick your size (10 by 10 feet is common), order 4 pressure-treated 6×6 posts, 2×8 beams, 2×6 rafters, and concrete mix, and confirm your layout position relative to the sun path.
- Saturday morning (Day 1, footings and posts): Mark post locations with string and stakes, check diagonals for square, then dig 4 holes about 12 inches in diameter and below your local frost line (commonly 30 to 48 inches). Set posts plumb with temporary braces and pour concrete or use post anchors on an existing slab.
- Saturday afternoon (Day 1, beams): After concrete cures at least 4 hours (check mix instructions), notch or bolt 2×8 beams to the posts with 1/2 inch galvanized carriage bolts, two per connection. Add diagonal corner braces for stiffness.
- Sunday morning (Day 2, rafters and shade): Space 2×6 rafters about 16 inches on center across the beams and secure with galvanized rafter ties or hurricane clips. Stretch a 90% UV-block shade cloth tight across the top or install a pull-wire canopy rail, orienting the fabric so it sheds water with a slight slope.
- Sunday afternoon (Day 2, lighting): Hang outdoor-rated LED string lights along the beams using screw hooks, plug into a GFCI outlet with a weatherproof in-use cover, and add a plug-in outdoor timer or smart plug so lights turn on at dusk automatically.
- Finish by sealing or staining all cut ends and exposed wood with an exterior-grade product, and re-check bolts and brace tightness after the first strong wind.
- Day 0 (planning): Confirm permit requirements, since attached structures usually need one, and have a plan reviewed for local wind and snow load requirements. Locate the wall studs or rim joist where the ledger board will attach.
- Day 1 morning (ledger and flashing): Mount a pressure-treated 2×10 ledger to the house framing with 1/2 inch lag screws or structural screws into studs or the rim joist, never into brick veneer or siding only. Install Z-flashing above the ledger and seal fasteners to keep water out of the wall.
- Day 1 afternoon (footings and posts): Dig and pour footings to code depth for the outer posts, set 6×6 posts plumb, and let concrete set before loading them.
- Day 2 morning (frame and rafters): Install the outer beam on the posts, then hang rafters from the ledger using joist hangers and tie them to the beam with rafter ties. Space rafters 12 to 16 inches on center for a slatted shade roof, or mount a retractable canopy track system following the manufacturer instructions.
- Day 2 afternoon (shade system): Install a retractable shade canopy or add 1×2 or 2×2 cross slats on top spaced 1 to 2 inches apart for 50 to 70% shade. Orient slats east to west so they cast the deepest shadow at midday.
- Day 3 (lighting): Run a 12V LED low-voltage transformer on a GFCI-protected outlet, mounting the transformer in a shaded, accessible spot. Attach LED strip lights or puck lights along beams using channel mounting, run low-voltage cable along posts, and hire a licensed electrician for any 120V wiring or new outlet.
- Finish with exterior stain or sealant, check every bolt for tightness, and test the canopy and lighting before the final cleanup.
Why It Works: The Benefits
Shading a sun-exposed patio door or window wall can cut indoor heat gain from that surface by 60 to 75%, translating to roughly 5 to 15% off cooling bills in hot climates.
Surface temperatures on sun-baked concrete and pavers can exceed 120 degrees. Shade can drop patio surface and air temperatures by 10 to 20 degrees, making the space comfortable for hours longer each day.
Built-in LED lighting extends your outdoor living into the evening for pennies, with a typical 12V LED system drawing 20 to 60 watts total.
UV exposure fades fabrics, finishes, and cushions. A shade canopy blocks up to 90% of UV rays, extending the life of what is under it.
Outdoor living structures commonly recoup 50 to 80% of their cost at resale, and a finished, lit, shaded patio is a strong selling feature in warm climates.
💰 Savings Impact by Action
Shading sun-exposed glass doors or windows from the outside can cut cooling costs by 5 to 15% in hot climates.
Exterior shade canopies can block up to 70% of solar heat before it passes through glass.
Shade can lower patio air and surface temperatures by 10 to 20 degrees on sunny afternoons.
LED lighting uses about 80% less electricity than incandescent for the same output.
Outdoor living structures commonly recoup 50 to 80% of their cost at resale in warm climates.
🏠 Key Concepts Explained
The Science Behind It
Most of the heat that makes a house uncomfortable in summer arrives as shortwave solar radiation through windows and glass doors. Once that energy passes through the glass, it is absorbed by floors, furniture, and walls and converted into heat that your air conditioner has to remove. Blocking sunlight before it reaches the glass stops that heat at the source. This is why exterior shading outperforms interior blinds: a window blind absorbs heat after it has already entered the building envelope, while a pergola canopy intercepts it outside.
The angle of the sun also matters. In summer the sun rides high in the sky, so a horizontal overhead structure like a pergola roof blocks it effectively. In winter, the sun sits much lower, so a properly sized pergola over a south-facing door lets that low-angle sun slip under the roof to provide free passive solar heating. West-facing exposure is the hardest to shade because the late afternoon sun is low and intense, which is why vertical elements such as side screens, a deeper roof, or a retractable canopy often help.
On the lighting side, LED fixtures convert far more electricity into light and far less into heat than incandescent bulbs, using roughly 75 to 80% less energy for the same brightness. A 12-volt low-voltage system also reduces shock risk and allows safer DIY installation than line-voltage wiring, which is why it is the standard choice for pergola and landscape lighting.
Frequently Asked Questions
▼ Why is my pergola wobbling or swaying after I built it?
Wobble usually comes from missing diagonal bracing, loose bolts, or shallow footings. Add 45 degree corner braces between each post and beam, replace any lag screws with through-bolts, and check that your footings reach below the frost line. Re-tighten all hardware after the first few weeks as the wood settles.
▼ Do I need a permit to build a pergola?
Often yes, especially if it is attached to your house, taller than 8 to 10 feet, or larger than a set square footage (commonly 120 to 200 square feet). Call your local building department before buying materials, since rules vary widely and unpermitted structures can cause problems at resale.
▼ Will a pergola actually lower my electric bill?
It can, if it shades glass or a hot wall that gets direct afternoon sun. Expect roughly 5 to 15% off cooling costs in that case. A pergola over a patio that is not next to your home mainly improves outdoor comfort rather than saving on your bill.
▼ How do I keep rain from coming through a slatted roof?
Slatted roofs shade but do not shed rain. For rain protection, add polycarbonate panels, a waterproof retractable canopy, or an outdoor-rated fabric with a slight slope for runoff. Always slope the roof away from your house wall.
▼ How long does a pressure-treated wood pergola last?
With proper sealing every 2 to 3 years, a pressure-treated pergola commonly lasts 15 to 20 years. Cedar and redwood resist rot naturally but cost more, while aluminum and vinyl kits are low maintenance but have a different look and price.
Quick Tips
- Orient slats east to west and keep them 1 to 2 inches apart for 50 to 70% shade while still allowing airflow to carry hot air out.
- Pick a light-colored or reflective shade fabric, which reflects more heat than dark fabric and keeps the space under it cooler.
- Use stainless steel or hot-dipped galvanized hardware outdoors so bolts and brackets do not rust and stain or weaken the wood.
- Put your lights on a smart plug or dusk-to-dawn timer so they are never left on all day, keeping lighting costs near $5 to $10 per year.
Variations for Your Situation
- Apartment/Rental: You likely cannot build a permanent structure, so look at freestanding pergola kits on weighted bases or a heavy-duty outdoor canopy, plus battery or plug-in solar string lights. Expect $300 to $900 and no changes to the building.
- Tight Budget (under $400): Build a simple 8 by 8 foot pergola with 4×4 posts, 2×6 rafters, and a 90% UV shade cloth, and hang a single run of LED string lights. Salvage lumber or buy sale material to keep costs low, and skip the retractable canopy.
- Older Home (pre-1980): Check the wall condition before attaching a ledger, since older siding, stucco, or masonry may need special fasteners and flashing. Many older homes also have limited GFCI-protected outlets, so plan for a licensed electrician to add one before you hang lighting.
- Hot, Sunny Climate (Southwest, South): Prioritize a dense, 80 to 90% UV shade canopy and consider adding a vertical side screen on the west side, which blocks low late-afternoon sun and delivers outsized cooling savings.






