To attach roof over deck from house correctly, the whole job hinges on one detail most DIYers get wrong: the ledger connection and its flashing where the new roof meets the existing wall. Do that right and you get a dry, code-legal patio cover that shades your deck and stands for decades. Do it wrong and you channel rain straight into your wall framing, rotting the structure behind the siding within a few years. A roof over a deck is absolutely a project a skilled homeowner can tackle, but it involves structural loads, proper footings, and a permit in nearly every jurisdiction. Here is how the connection and the whole build come together.
Part of our Roofing guide — explore the full guide →
Understand the Structure First
A house-attached deck roof, sometimes called an attached patio cover, works like a lean-to. One edge fastens to your house through a horizontal beam called a ledger, bolted to the wall framing. The other edge rests on posts set on their own footings out at the deck’s edge. Rafters span from the ledger down to a beam on top of those posts, and roofing goes over the rafters. The whole thing slopes away from the house so water runs off the far edge.
Two things carry the load: the ledger, which must anchor into solid framing (a rim joist or wall studs, never just siding), and the posts and footings, which must reach below the frost line and bear on solid ground. Skimp on either and the roof sags, pulls away, or collapses under snow. This is why the permit and inspection exist, and why they are worth respecting.
Permits, Codes, and Loads
Almost everywhere requires a building permit for a roofed structure attached to a house, because it adds significant load and affects the building envelope. Before you buy lumber, submit a simple plan to your building department showing dimensions, post footings, ledger attachment, and roof slope.
Your design must account for local loads. In snow country, the roof may need to carry 30, 40, or more pounds per square foot of snow load, which dictates rafter size and spacing. In windy or hurricane zones, uplift resistance and hurricane ties matter. Footings typically must extend below the frost line, often 36 to 48 inches deep in cold regions. The inspector’s job is to keep the structure from failing, so build to the approved plan and schedule the inspections.
The Ledger: Where Success or Failure Lives
The ledger board is the single most important connection, and improper flashing here is the number-one cause of hidden water damage. Get this section right above all.
- Expose solid framing. Remove a horizontal strip of siding where the ledger will attach. The ledger must bolt to the house’s rim joist or into studs, not to sheathing or siding alone.
- Bolt it properly. Use structural lag screws or, better, through-bolts with washers, typically 1/2 inch, staggered top and bottom every 16 inches, into solid framing. Follow your approved plan’s fastener schedule.
- Flash it. This is critical. Install metal Z-flashing (also called ledger or head flashing) so its top leg tucks up behind the house’s siding or housewrap and its bottom leg laps down over the top of the ledger. Water hitting the wall runs down, over the flashing, and off the ledger, never behind it.
- Seal fastener penetrations. Use a self-adhesive flashing tape behind the ledger and seal around bolts so no fastener hole channels water into the wall.
If you take one thing from this guide, it is that the flashing must shingle-lap correctly with the existing wall so gravity always carries water outward. A caulk-only “seal” is not flashing and will fail.
Posts and Footings
The outer edge of the roof stands on posts, and those posts need real footings, not just bolts into your existing deck boards. In most cases the roof posts should carry down to their own concrete footings or piers, sometimes right alongside or bearing on the deck’s structural posts.
- Dig footings below the frost line, commonly 36 to 48 inches deep, and pour concrete piers, typically 12 inches or wider per your plan.
- Set galvanized post bases in the wet concrete or bolt them to cured piers. Post bases keep wood off the concrete so it doesn’t wick moisture and rot.
- Stand pressure-treated 6×6 posts (4×4 for small covers, but 6×6 is stronger and stiffer) in the bases, plumb them, and brace them.
- Confirm the deck framing itself can carry the added roof load; you may need to reinforce joists or add posts. An engineer or your inspector can confirm.
Never assume your existing deck was built to hold a roof. Many decks are sized only for people and furniture, so verify the framing and footings handle the extra dead and snow load before you build up.
Beam, Rafters, and Slope
With the ledger and posts set, you tie them together. A beam sits on top of the posts, usually a doubled or tripled 2×10 or 2×12 depending on span, fastened with post caps. Rafters then run from the ledger down to the beam.
Rafter size and spacing come from your span and load: a common setup is 2×8 or 2×10 rafters at 16 or 24 inches on center, but always follow the span tables in your approved plan. Give the roof a slope of at least 1/4 inch per foot, and preferably more, so water sheds and, in snow country, so snow slides off. Tie every connection with metal hardware, rafter hangers at the ledger, hurricane ties at the beam, so the roof resists uplift and racking.
Roofing Options for the Cover
Once the frame is up, you choose how to cover it. Match the material to your climate and how much light you want.
- Matching shingles: Sheathe the rafters with plywood, then roof with asphalt shingles that match the house for a seamless, fully weatherproof look. Best for a solid, finished patio room feel.
- Metal panels: Standing-seam or corrugated metal is fast, durable, and sheds snow well. Popular for a clean, low-maintenance cover.
- Polycarbonate panels: Translucent panels let filtered light through, keeping the deck bright while blocking rain and UV. Great where a solid roof would darken interior rooms.
- Corrugated PVC or fiberglass: Budget-friendly and light, good for a simple rain cover.
Whatever you choose, integrate the roofing with the ledger flashing so water sheds from the roof surface, over the flashing, and off the eave, never toward the wall.
Watch the Existing Window and Door Heights
One practical constraint trips people up: the ledger has to sit high enough on the wall to clear doors and, ideally, above or beside upper windows, while still leaving comfortable headroom under the sloped roof. On single-story homes with low eaves, you sometimes have to attach the ledger to the fascia or tuck the low-slope roof under the existing roofline, which requires careful flashing where the two roofs meet. If clearance is truly tight, a freestanding cover with its own posts on all four sides, not attached to the house at all, is often the smarter and drier solution.
Tools, Materials, and a Realistic Timeline
Before you start, gather the right gear so you are not stopping mid-job. At minimum you will want a hammer drill for concrete anchors, an impact driver, a circular saw, a good level and a long straightedge, a chalk line, a post level, and clamps to hold beams while you fasten. For the ledger you need the correct structural fasteners, through-bolts or approved structural screws, plus metal Z-flashing and self-adhesive flashing tape. Every rafter and beam connection should use rated metal hardware: rafter hangers, post caps, and hurricane ties.
On materials, plan for pressure-treated lumber for the posts, beam, and ledger, galvanized or stainless hardware to resist corrosion, and your chosen roofing. A realistic timeline for a competent DIYer on a typical 12 by 16 foot attached cover is a full weekend or two: a day to dig and pour footings and let concrete cure, a day to set the ledger and posts, and another day or two to frame the rafters and install roofing. Do not rush the concrete cure, and schedule your inspections at the points your permit requires, usually after footings and after framing. Renting a couple of extra hands for the day you lift the beam and set rafters makes the whole job safer and faster, since those pieces are heavy and awkward to place solo.
The Bottom Line
When you attach roof over deck from house, the structure is only as good as its two critical connections: a ledger that is bolted into solid framing and flashed so water always sheds outward, and posts on frost-depth footings sized for your snow and wind loads. Pull the permit, build to the approved plan, use metal connectors at every joint, and never rely on caulk where flashing belongs. Do that and you’ll add a shaded, dry, valuable outdoor room that lasts as long as the house. Cut corners on the flashing or the footings, and you’ll pay for it in rotted framing and a sagging roof, so this is one project where doing it by the book truly pays off.