The Roof

Roofing, gutters and home repair explained

How to Build a Shed Roof Over a Deck

· 6 min read · Roofing

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Building a shed roof over a deck provides shade, rain protection, and increases the usable time of your outdoor space. This guide covers the essential steps for constructing a single-slope (shed) roof attached to your house, from planning and permits to the final roofing material. Before you start, check local building codes for permits, setback requirements, and snow load ratings. You will also need to verify that your deck structure can support the additional weight of the roof—if you have any doubts, consult a structural engineer or a licensed contractor.

What You'll Need

  • Pressure-treated lumber for posts, beams, and rafters (size depends on span and local codes)
  • Post anchors or concrete footings (if not using an existing deck foundation)
  • Galvanized lag screws, bolts, and structural connectors (joist hangers, post bases)
  • Roofing material (metal panels, asphalt shingles, or polycarbonate sheets)
  • Roofing underlayment, flashing, and drip edge
  • Circular saw, drill, level, tape measure, chalk line, and ladder
  • Safety gear: gloves, safety glasses, and a hard hat if working under the roof
  • Concrete mix (if pouring footings)

Step-by-Step

  1. Check codes and permits. Contact your local building department to determine if you need a permit and what structural requirements apply. They will specify rafter size, spacing, and snow load for your area.
  2. Design the roof. Determine the slope (minimum 1/4 inch per foot for metal, 4/12 for shingles) and the height at the house attachment point. The roof should angle away from the house to direct water runoff.
  3. Assess the deck structure. Verify that the deck joists and beams can support the added weight of the roof. If not, reinforce the deck or add separate footings for the roof posts. When in doubt, hire a structural engineer.
  4. Install or reinforce posts. If your roof will be supported by posts at the outer edge, dig holes below the frost line (or use concrete piers) and set posts in concrete. For an existing deck, you may attach posts to the deck frame with metal post anchors and lag bolts.
  5. Attach the ledger board. Cut a pressure-treated board to the length of the roof. Hold it against the house wall, level, and mark the bolt locations. Use a masonry bit to drill into the house siding (if brick or stucco) or into the wood framing. Secure the ledger with galvanized lag screws or through-bolts. Install flashing above the ledger to prevent water from seeping behind it.
  6. Set the beam. For a roof wider than 8 feet, install a beam across the top of the posts (or at the outer edge). Use a level to ensure it is perfectly horizontal and at the correct height to give the desired slope. Secure with metal post caps or brackets.
  7. Cut and install rafters. Measure the distance from the ledger to the beam. Cut rafters to length, with a birdsmouth notch at the beam end to sit securely. Space rafters per your local code (usually 16 or 24 inches on center). Attach them to the ledger with joist hangers and to the beam with metal ties or screws.
  8. Add purlins or sheathing. Depending on your roofing material, you may need to install horizontal purlins (for metal roofs) or plywood sheathing (for shingles). For metal, space purlins 24 inches on center; for shingles, use 1/2-inch plywood or OSB.
  9. Install drip edge and underlayment. Attach drip edge along the eaves and rakes. Lay roofing underlayment (felt or synthetic) over the sheathing, overlapping seams by at least 6 inches. For metal roofs, you can skip underlayment if using a standing seam system, but most installations benefit from it.
  10. Install the roofing material. For metal panels, start at the lower corner and screw panels to the purlins, overlapping each panel by one rib. For shingles, start at the bottom edge and work upward, nailing each shingle with four nails and cutting the last row to fit. For polycarbonate, use screws with rubber washers and leave space for expansion.
  11. Flash the roof-to-wall connection. Install step flashing against the house wall, tucking each piece under the siding and over the roofing material. Seal with exterior caulk. This is the most critical step to prevent leaks.
  12. Finish the edges. Install fascia boards along the eaves and gable ends to give a clean look and protect the roof edge. Prime and paint or stain the wood to match your deck.
  13. Inspect your work. Walk around the roof and check for any gaps, loose screws, or exposed nails. Ensure all flashing is secure and that water will flow away from the house.

Common Mistakes

  • Insufficient slope: A flat or too-shallow roof will collect water and leak. Always maintain at least a 1/4 inch per foot slope, and more for shingles.
  • Ignoring snow load: In snowy regions, the roof must be built to handle the weight of accumulated snow. Undersized rafters can sag or collapse.
  • Poor flashing at the house wall: Failing to install step flashing or using caulk alone will lead to water intrusion behind the ledger.
  • Attaching ledger directly to siding: The ledger must be bolted to the house's structural framing, not just to the siding. Remove siding or cut it back to expose the sheathing and framing.
  • Not checking for underground utilities: Before digging post holes, call your local utility locator service to avoid hitting gas, electric, or water lines.

Tips

  • Use pressure-treated lumber for all wood that will be exposed to moisture or in contact with concrete.
  • Pre-drill holes for screws and bolts to prevent splitting the wood.
  • Work with a helper when lifting heavy beams and rafters—never try to carry them alone.
  • If you are uncomfortable working at heights, hire a professional for the roofing installation.
  • Consider a slight overhang (12–18 inches) to protect the deck from rain and sun.
  • Use galvanized or stainless steel fasteners to prevent rust stains.

Troubleshooting

  • Water pooling on the roof: This means your slope is too low. Increase the angle by raising the beam or lowering the ledger, or add a slight camber to the rafters.
  • Leaks at the house wall: Remove the flashing and re-install it with proper step flashing, ensuring each piece overlaps the one below. Apply a high-quality exterior sealant.
  • Roof sags in the middle: This indicates undersized rafters or too wide spacing. Add additional support posts or sister the rafters with larger lumber.
  • Wind noise or rattling: For metal roofs, ensure screws are tight and installed in the flat part of the panel, not the ribs. Add extra screws near the edges.
  • Condensation under a metal roof: Install a vapor barrier or use insulated panels to prevent moisture buildup.
  • Rust stains on the deck: Use stainless steel or galvanized screws, and replace any corroded fasteners immediately.

Frequently Asked Questions

Do I need a permit to build a shed roof over my deck?

Most municipalities require a permit for any permanent structure attached to the house, including a roof. Check with your local building department—they will also inspect your work to ensure it meets code.

How much slope does a shed roof need?

For metal roofing, a minimum of 1/4 inch per foot (about 2 degrees) is required. For asphalt shingles, the minimum is 4/12 (about 18 degrees) to ensure proper water runoff.

Can I attach the roof directly to my house siding?

No. The ledger board must be bolted through the siding into the house's structural framing (studs or rim joist). Siding alone cannot support the weight.

What is the best roofing material for a DIY shed roof?

Corrugated metal panels are the most DIY-friendly because they are lightweight, require fewer rafters, and are easy to cut and install. Polycarbonate sheets are also easy but provide less protection from hail.

How do I prevent leaks where the roof meets the house?

Use step flashing—pieces of metal bent at 90 degrees that are tucked under the siding and over the roofing material. Each piece overlaps the one below, directing water down and away.

Can I build a shed roof over an existing deck without removing the deck boards?

Yes, you can work around the deck boards, but you may need to cut them to install posts or footings. It is often easier to remove a few boards temporarily and replace them after the roof structure is up.