Subscribe

INSTALL & DIY · June 14, 2026

How to Build a Porch Roof: Framing, Pitch, and Attaching to Your House

How to build a porch roof: shed vs gable, IRC minimum pitch by material, ledger attachment and rafter spans from the 2018 IRC tables, with a DIY budget.

How to Build a Porch Roof: Framing, Pitch, and Attaching to Your House

By The Roofing Brief Team | Last reviewed: October 2026.

Learning how to build a porch roof comes down to four decisions made in the right order: pick the roof style (gable, shed, or hip), set a minimum pitch the chosen roofing material can drain, design the connection to the existing house (ledger board for shed style, valley-tied rafters for gable), and size the rafters and beams for the actual span and snow load in your jurisdiction. Get those four right and the rest of the build, sheathing, underlayment, shingles or metal, flashing into the wall, is mechanical. Get any one of them wrong and you end up with a roof that leaks at the wall, sags within five years, or fails inspection because the framing was undersized. The math is not optional: the load calculations DIYers most often skip, and the lateral support that IRC R802.8 requires, are what separate a porch roof from a future insurance claim.

The short version

  • Shed-style porch roofs are the easier DIY build. Gable-style looks better but requires a ridge and valley tie-in to the existing roof.
  • Minimum pitch under the 2018 IRC: 2:12 for asphalt shingles (double underlayment from 2:12 up to 4:12, R905.2.2), 3:12 for lapped exposed-fastener corrugated metal or 1/2:12 with applied lap sealant, and 1/4:12 for standing seam (R905.10.2).
  • The ledger board attaching the porch to the house is the most-failed detail. Fasten it to the rim joist with 1/2 inch lag screws or through-bolts, not nails into siding.
  • Rafter sizing is span and load specific. For No. 2 Southern pine at 16 inch on-center under a 30 psf ground snow load, IRC Table R802.4.1(3) allows 2×6 rafters to span 11 ft 2 in and 2×8 rafters 14 ft 2 in; see the table below before buying lumber.
  • Step flashing into siding plus a kick-out at the eave is non-negotiable. Continuous flashing causes wall rot within 3 to 5 years.
  • A roof structure attached to an existing house usually needs a building permit and a framing inspection; ask your building department whether it also wants engineered drawings.
  • Budget (illustrative line-item estimates for a 140 sq ft porch, below): about $17 to $21 per square foot DIY including permit, and about $39 to $68 per square foot turnkey from a contractor.

The short answer: shed or gable, and why it matters

A porch roof is either a shed roof (one sloped plane running away from the house) or a gable roof (two sloped planes meeting at a ridge perpendicular or parallel to the house). The choice drives every downstream decision: pitch, framing, attachment, drainage, and cost. A 10 by 14 ft shed roof is a weekend job for two people; the same footprint as a gable adds a ridge board, a second rafter set and usually a valley.

Shed-style porch roofs are the standard DIY build. The framing is a row of parallel rafters running from a ledger board on the house out to a header beam supported by porch posts. There is one slope, one plane of sheathing, one straightforward flashing detail at the wall, and no valley to weatherproof. A competent DIYer with a helper can frame and dry-in a 10 by 14 ft shed-style porch roof in a weekend.

Gable-style porch roofs look like a small house roof attached to the front of the main house. The ridge usually runs perpendicular to the wall, and the two slopes drain to either side. Framing is harder: a ridge board, common rafters on both sides, and a valley where the porch roof meets the main roof if the ridges are parallel. Aesthetics are better. Cost is higher. The valley tie-in is where most failures originate.

If this is a first build, default to shed style. Read our porch roof types overview for the visual comparison.

Which porch roof to build: shed, gable or flat-sloped

If your porch is Then build
A first build, 10 by 14 ft or smaller, against one wall Shed roof on a ledger and a header beam, rafters at 16 inches on center
Under an existing eave with less than 36 inches of vertical room (a 12 ft depth at 3:12 needs 36 inches) Standing-seam metal, which the IRC allows down to 1/4:12 (R905.10.2), instead of shingles
Meant to match a front-facing gable on the house Gable roof, accepting the ridge board, valley flashing and a longer build
In a 50 psf ground snow area Size rafters from Table R802.4.1(5): 2×8 at 16 inches spans 11 ft 7 in
On a shear wall, over 50 psf snow, or in a high-wind zone Ask the building department about engineered drawings before you order lumber

Minimum pitch by roofing material

The roof material dictates the minimum allowable pitch. Going below the minimum guarantees water intrusion regardless of how good the install is.

Roofing material Minimum pitch Recommended pitch Notes
Asphalt shingles (standard) 2:12 4:12+ IRC R905.2.2: 2:12 up to 4:12 requires double underlayment per R905.1.1
Standing-seam metal 1/4:12 3:12+ IRC R905.10.2 code minimum; many makers publish a higher minimum
Corrugated/exposed-fastener metal 3:12 (1/2:12 with applied lap sealant) 3:12+ IRC R905.10.2; fastener gaskets fail faster on shallow slopes
Rolled asphalt (mineral surface) 1:12 2:12+ IRC R905.5.2; cheapest option, short lifespan
EPDM rubber membrane 0.25:12 0.5:12+ True low-slope/flat capability
Cedar shake/shingle 3:12 4:12+ IRC R905.7.2 (shingles) and R905.8.2 (shakes); requires good ventilation

For shed-style porches under existing eaves, the pitch is constrained at the top by how much vertical headroom you have between the ledger and the existing soffit. A 12 ft porch depth at 3:12 needs 36 inches of vertical drop, which is more headroom than many one-story houses have. This is the most common reason DIYers pick standing-seam metal: it lets you run 1:12 or 2:12 pitch and still drain reliably.

Step 1: Footings and posts

A porch roof needs vertical support at the outboard edge. That means posts on footings. Code requires footings below the local frost depth, which your jurisdiction sets in its copy of IRC Table R301.2(1); ask the building department for the number. Pour concrete piers 12 inches in diameter minimum, or use precast Bigfoot footings with 6×6 posts on metal post bases.

Post spacing depends on the beam carrying the rafters, which is sized from its span, the rafter span it carries (tributary width) and the snow load. Use the American Wood Council span tables or an engineer rather than a rule of thumb, and expect longer spans to need an LVL or steel beam.

Set the posts plumb, brace them temporarily with diagonal 2x4s, and check for square against the house. Diagonal measurements (corner to corner) should match within 1/4 inch over a 12 ft layout.

Step 2: The ledger board (the failure-prone detail)

The ledger board is the horizontal 2x board lag-bolted or through-bolted to the house, carrying the inboard end of the porch rafters. The two failure modes are mechanical pullout (the ledger detaches from the house) and water intrusion (water gets behind the ledger and rots the rim joist).

Mechanical attachment requirements

  • Attach to the rim joist of the house framing, not to siding alone. Locate the rim joist by drilling exploratory 1/4-inch holes from inside if you cannot identify it from outside.
  • Use 1/2-inch lag screws (minimum 5 inches embedment into rim joist) or through-bolts with washers on both sides, spaced every 16 inches.
  • IRC Table R507.9.1.3 is a deck-ledger table and does not cover a roof ledger. Size the roof ledger fasteners from the roof load, or have an engineer or your building department specify them.
  • Never attach a structural ledger to brick veneer alone. The veneer is non-structural.

Waterproofing the ledger

  • Strip the siding back at least 12 inches above the planned ledger height.
  • Install a continuous self-adhering flashing tape (such as Grace Vycor or 3M All Weather Flashing) over the WRB (housewrap) where the ledger will sit.
  • Use ledger flashing (Z-flashing or kick-out flashing) above the ledger to direct water out and over.
  • Reinstall siding lapped over the top edge of the flashing.
  • Leave a small drainage gap (1/4 inch) between the back of the ledger and the WRB using SureBuilt washers or composite spacers. This is the modern detail that prevents trapped moisture.

Step 3: Sizing the rafters and beams

Rafter and beam sizes are a function of span, spacing, lumber species/grade, and roof load (dead load plus live load plus snow load). Do not guess: read the allowable span from IRC Tables R802.4.1(1) through R802.4.1(8) (or your jurisdiction’s amended version). R802.5.1 covers ceiling joists, not rafters.

For reference, these are the 2018 IRC maximum rafter spans for No. 2 Southern pine at 16 inch on-center spacing with a 10 psf dead load and the ceiling not attached to the rafters (the open-porch case), read from the tables named in the header row:

Rafter size 20 psf roof live load, Table R802.4.1(1) 30 psf ground snow, R802.4.1(3) 50 psf ground snow, R802.4.1(5) 70 psf ground snow, R802.4.1(7)
2×6 13 ft 6 in 11 ft 2 in 9 ft 2 in 7 ft 11 in
2×8 17 ft 1 in 14 ft 2 in 11 ft 7 in 10 ft 0 in
2×10 20 ft 3 in 16 ft 10 in 13 ft 9 in 11 ft 11 in
2×12 23 ft 10 in 19 ft 10 in 16 ft 2 in 14 ft 0 in

Spans are measured along the horizontal projection of the rafter (R802.4.1). Other species (Douglas fir-larch, spruce-pine-fir, hem-fir), 24 inch spacing and a heavier dead load such as a metal-and-lath ceiling have their own rows in the same tables, so read the row for your lumber stamp. The AWC span calculator is a cross-check, not a substitute for the table.

For the outboard beam, ask your supplier or the AWC tables for the size that carries your rafter span and snow load; do not size it from a rule of thumb. Long post-to-post spans usually need an LVL or an engineer.

Step 4: Cutting and setting rafters (shed style)

Each rafter needs two cuts: a plumb cut at the ledger end (matching the pitch) and a birdsmouth notch at the beam end where it sits on the outboard header. The birdsmouth removes no more than 1/4 of the rafter depth: R802.7.1 sends you to R502.8.1, which caps notches at the member end at one-fourth the depth.

To calculate the rafter length, use the rise-over-run from your chosen pitch. A 3:12 pitch porch with a 10 ft horizontal run rises 30 inches. The rafter length (hypotenuse) is the square root of (120 squared plus 30 squared), or about 124 inches plus your overhang.

Cut one rafter as a template. Test-fit it. Verify the plumb cut sits flush against the ledger and the birdsmouth seats fully on the beam. If everything fits, use it as the pattern for the rest. Set rafters at 16-inch on-center, sistered with hurricane ties (Simpson H2.5A or equivalent) to both the ledger and the beam.

Lateral bracing (the code requirement nobody talks about)

Under IRC R802.8, roof framing members whose nominal depth-to-thickness ratio exceeds 5 to 1 need lateral support at points of bearing to prevent rotation: a 2×12 (6 to 1) qualifies, while a 2×10 (exactly 5 to 1) and a 2×8 (4 to 1) do not. On a porch roof this is blocking between rafters at the beam line. Diagonal bracing from the corner posts back to the house is a racking-resistance choice to confirm with your inspector or engineer.

Step 5: Sheathing, underlayment, and roofing

Once the rafters are set and braced, sheathe with 1/2-inch or 5/8-inch CDX plywood or OSB. Stagger the sheets, leave 1/8-inch gaps at edges, and nail to APA pattern (8d nails at 6 inches edge, 12 inches field).

Install drip edge at the eaves, then synthetic underlayment (such as GAF Tiger Paw or Owens Corning ProArmor), then drip edge at the rake. Use ice and water shield at the eaves in any freeze-climate jurisdiction and the entire deck if the porch is low-slope (under 4:12 for shingles).

Roofing installation follows the manufacturer instructions for your chosen material. For shingles, install the starter strip, then nail each strip with at least four fasteners (IRC R905.2.6) or the maker’s 6-nail pattern where it requires one, then manufacturer ridge cap shingles. For metal panels, follow the panel manufacturer’s clip or screw pattern; corrugated panels need closure strips at eaves and ridges.

Step 6: Flashing the wall connection

The roof-to-wall junction is where a porch roof leaks if the flashing is wrong. IRC R905.2.8.3 sets sidewall base flashing at 4 inches high by 4 inches wide minimum. The detail uses step flashing (individual L-shaped pieces interleaved with each course of shingles), counter-flashing (or siding lapped over the step flashing top), and a kick-out flashing at the bottom corner where the porch roof eave meets the wall. For more, see our step flashing guide.

The kick-out is the small triangular flashing piece that diverts water away from the wall at the eave corner. Skip it and water runs down the wall behind the siding, rotting the rim joist within 3 to 5 years. Pre-formed kick-outs are available from DryFlekt, Quickflash, and most steel coil suppliers.

For broader context on every roof-to-wall and penetration flashing detail, see our roof flashing guide.

Common DIY mistakes that fail inspection (or fail in year three)

  • Nailing the ledger to siding alone. Lag bolts must reach the rim joist or framed structural member.
  • No flashing tape behind the ledger. Wood-to-wood contact with no membrane traps moisture and rots the rim joist.
  • Undersized rafters. “2×6 looks fine” is not a snow load calculation.
  • Continuous wall flashing instead of step flashing. Continuous flashing channels water along the wall instead of out. Always step flash.
  • No kick-out at the eave. Guaranteed wall rot.
  • Pitch below the roofing material’s minimum. A 2:12 shingle roof leaks within one storm.
  • No lateral bracing. Inspector callback or wind-event failure.
  • No permit. Unpermitted structural work can complicate an insurance claim and a home sale.

Permits, code, and when to call an engineer

A porch roof attached to a house is not the kind of small detached accessory structure that is typically exempt from permits, so plan on a building permit and at least a footing and framing inspection. Ask the building department three questions before you design: which IRC edition and local amendments apply, what frost depth and ground snow load to use, and whether it wants engineered drawings.

Engineered drawings are more likely when the porch roof attaches to a shear wall, when the span exceeds the prescriptive tables above, when ground snow load is over 50 psf, or in high-wind zones. A stamped drawing is a cost you can price with a local engineer; it is cheaper than rework after a failed inspection.

DIY budget vs contractor pricing

A 10 by 14 ft (140 sf) shed-style porch roof with standard architectural shingles. These are illustrative line-item estimates, not a surveyed price; price each line at your local yard:

Line item DIY cost Contractor turnkey
Footings (4 concrete piers) $120 $600
Posts (4x 6×6 PT, 10 ft) $220 included
Beam (doubled 2×10 PT) $180 included
Ledger + flashing tape $110 included
Rafters (10x 2×8 PT) $420 included
Sheathing (5 sheets 1/2 CDX) $280 included
Underlayment, drip edge, ice/water $160 included
Architectural shingles (1.5 sq) $210 included
Step flashing, kick-out, ridge cap $140 included
Hurricane ties, fasteners, misc $180 included
Permit and engineer drawing (if required) $300 to $900 (estimate) included
Total $2,020 materials, $2,320 to $2,920 with permit $5,500 to $9,500

The $5,500 to $9,500 turnkey estimate works out to about $39 to $68 per square foot for 140 sq ft, including engineering, permits, framing, roofing and flashing. Premium materials (cedar shake, standing-seam copper, custom trim) push the high end higher.

FAQ

Do I need a permit to build a porch roof?

Almost always. A roof structure attached to your house, set on footings, or changing the existing roofline usually needs a permit and inspection; your building department sets the exact rule. Unpermitted structural work can complicate an insurance claim for damage tied to the structure.

Can I attach a porch roof to vinyl or fiber-cement siding?

Not structurally. The ledger must lag-bolt (1/2 inch lag screws are typical) or through-bolt into the rim joist or studs of the house framing, not siding. Strip the siding back where the ledger will sit, attach to framing, flash properly, and reinstall siding lapped over the top of the flashing.

What’s the minimum pitch if I want to use shingles?

The IRC minimum for asphalt shingles is 2:12 (R905.2.2), with double underlayment required from 2:12 up to 4:12. Many roofers prefer 4:12 or steeper because the leak margin is thin on shallow slopes. If your headroom forces a lower pitch, switch to standing-seam metal, which the IRC allows down to 1/4:12 (R905.10.2).

How long does it take a DIYer to build a porch roof?

A 10 by 14 ft shed-style porch roof, footings to shingles, is typically a 3 to 5 day project for a competent DIYer with a helper. Add 2 to 3 days for a gable-style build because of the additional ridge and valley framing.

Do I need an engineer’s stamp on the drawings?

Sometimes. Jurisdictions commonly ask for an engineer’s stamp when the porch attaches to a shearwall, when ground snow load is over 50 psf, in high-wind zones, or when the rafter span exceeds the prescriptive IRC tables. Ask your building department before designing, and get the drawing priced locally.

Bottom line

A porch roof is a small structural project with a few decisions that drive everything: shed or gable, what pitch, how to attach to the house, and how to size the framing for your load. The most-failed detail is the ledger-to-house connection (waterproofed and lag-bolted to the rim joist, never nailed to siding), followed by the wall flashing (step flashing plus kick-out, never continuous flashing). Pull a permit, get the engineer’s stamp if your jurisdiction requires it, and use IRC Tables R802.4.1(1) through (8) for rafters. DIY materials run about $2,020 for a 140 sf porch, or $2,320 to $2,920 with a permit and drawing, as an estimate. Contractor turnkey is estimated at $5,500 to $9,500 for the same footprint. The framing inspection is your friend, not your enemy: it catches the things that fail in year three.