Skip to content
Design free

Framing and roof

How to Build a Shed Roof: Sheathing to Drip Edge

A shed roof goes on in a fixed order: framing, fascia, deck, drip edge, underlayment, then the covering. Here is the order and the counts for 28 sizes.

By The Shed PlannerUpdated 16 min readChecked against 10 sources

Two builders sheathing a gable shed roof from scaffoldingIllustration

The short answer

Build a shed roof in this order: frame the rafters with a ridge and 2x4 ties, hang the fascia and rake boards, sheathe with 7/16 in OSB, add drip edge and underlayment, then shingle or roll on metal. The designer's 10x12 gable needs 20 rafters, 7 sheets of OSB, 6 drip edge pieces and 1 underlayment roll.

To build a shed roof, set the roof type first, then work in order: frame the rafters, ridge and ties, hang the fascia and rake boards, lay the OSB deck, add drip edge and underlayment, and only then shingle or roll on metal. The order matters, because each layer laps over the one before it.

This guide covers the sequence and the deck, from the last rafter to the last sheet of underlayment. The rafter maths, the pitch chart and the two coverings each have their own guide, and this one points to them. The numbers below are what the shed designer computes for its 28 presets, so they match the cut lists on the free plans.

Shed roof types: gable, lean-to and the rest

Pick the roof type before you buy any lumber, because it sets the walls, the framing and the covering. The designer plans two types. Everything else is a different build.

Gable roofs

A gable roof has two slopes that meet at a ridge, with a triangle of wall (the gable) at each end. It is the roof most people picture on a backyard shed. On the designer it comes in 4/12, 5/12 or 6/12, with 6/12 the default. The frame is rafters in pairs, a ridge board at the top and a 2x4 tie across each pair except the two at the gable ends. A gable roof sheds water to both long sides and gives headroom in the middle.

Lean-to (single-slope) roofs

A lean-to roof is one slope, high at the front and low at the back. The designer offers 2/12, 3/12 or 4/12 with 3/12 as the default. Its rafters span the full depth of the shed and rest on a high front wall and a low back wall. There is no ridge board and no rafter ties. Our lean-to shed guide covers the wall heights and the single-slope details.

Gambrel, hip, saltbox and flat roofs

The designer does not draw these. As general practice, a gambrel is the barn shape with two slopes on each side, a hip slopes on all four sides, a saltbox is a gable with one long slope and one short slope, and a flat roof is a very low single slope. Each one needs its own framing plan and, for a hip or gambrel, angled cuts that a plain rafter table does not cover. If you want one of them, work from a plan made for it and check the panel and covering rules below against your plan.

Which one is easiest to build

The lean-to has fewer parts. The designer’s 10x8 lean-to lists 9 rafters, and its 10x12 gable lists 20 rafters, a ridge and 8 ties. The lean-to costs you in other ways: a taller front wall, and a shallow pitch that limits which covering you can use. See the shed roof pitch guide for the minimum pitch by covering.

The order of work on a shed roof

This is the sequence the rest of the guide follows. Each step depends on the one before it.

  1. Stage 4 of 6about 11 h

    Rafters, ridge and gable studs

  2. Stage 5 of 6about 13 h

    Roof sheathing and roofing

The 10x12 from the designer: the roof frame, then the sheathing and roofing on it.Open this design
  1. Frame the roof

    Rafters, ridge board and ties on a gable, rafters only on a lean-to. Add the hurricane ties, and on a gable the ridge straps over every rafter pair.
  2. Hang the fascia and rake boards

    These set the edge the deck and the drip edge finish against.
  3. Lay the sheathing

    7/16 in OSB with the long side across the rafters, 1/8 in gaps, staggered end joints and nails at the schedule.
  4. Add the H-clips on the unsupported edges as you go.
  5. Fit the eave drip edge

  6. Roll out the underlayment, eave first, then work up.
  7. Fit the rake drip edge over the underlayment.
  8. Cover it

    Shingles or metal panels, following their own guide.

Steps 5 to 7 are in that order for a reason the 2021 IRC1 spells out, covered in the drip edge section below.

Measurements

The 10x12 gable, as the designer draws it

roof pitch
6/12
0.5° from level
rafters
20 × 2x6
75-11/16" each before the cuts, 16 in on center
ridge board
2x8 × 144"
the rafters meet on it
birdsmouth seat
3-1/16" × 1-9/16"
level cut on the plate, plumb depth
roof sheathing
7 sheets
7/16 in OSB roof sheathing, 4x8
rafter span checked
4' 11-1/4"
11' 2-3/16" allowed, 44% of the allowance used
Your own size in the designer

Roof framing in one page

The full rafter job is in the shed rafters guide: sizing from a span table, laying out the plumb and seat cuts, setting the ridge, and the tie rules. Here is only what the deck depends on.

Rafters, ridge and ties

The designer tries 2x6, 2x8, 2x10 and 2x12 in that order and keeps the first that passes. It never picks a 2x4, and all 28 presets end at 2x6. The ridge board is one size deeper than the rafter, so 2x8 over 2x6, which matches the 2021 IRC1 rule that a ridge board is at least 1 in nominal and no shallower than the cut end of the rafter (R802.3 and R802.5.2). A 2x4 tie goes across every pair of rafters except the two at the gable ends, where the gable wall does the tying. The IRC asks for continuous ties to stop the roof pushing the walls apart, and lets the ridge go without ties only if it is a designed beam (R802.3 and R802.5.2). Tie nail counts come from IRC Table R802.5.2(1).

At the top, every pair, the gable-end pairs too, gets a steel ridge strap: 1-1/4 in by 20 gauge, 18 in long (Simpson5 Strong-Tie LSTA18 or equal), bent once over the ridge and nailed to the top edge of both rafters with three 10d common nails each, before the sheathing goes on (2021 IRC1, R802.4.2 and R802.4.6). The 10x12 takes 10 straps and 60 nails. The gable stud under the ridge is cut square to the bottom of the ridge board rather than to the roof angle.

72-15/16" along the edge, plumb cut to plumb cut65-1/4" horizontal run6" tailseat 3-1/16", heel 1-9/16"6/12 plumb cuts (26.6°)
The 10x12 rafter. 2x6 with a birdsmouth seat and a 6 in eave overhang.Open this design

Hurricane ties

The designer lists one rafter-to-plate connector, a hurricane tie, at every rafter bearing, fixed with the nails the tie’s label calls for. On a gable that is one per rafter: 20 on the 10x12. The 2021 IRC1 lets you nail rafters to the plate with the standard toenail schedule, 3-16d box or 4 nails 3 x 0.131 in, only where uplift per rafter is 200 lb or less, or in a narrow case of 115 mph wind, exposure B, pitch 5:12 or more, span 32 ft or less and rafters at 24 in or less (Table R602.3(1) and R802.11). Otherwise a connector is needed. Simpson5 Strong-Tie describes its hurricane ties as a positive connection between rafter and wall against wind and seismic forces, says to use all specified fasteners and says they do not replace solid blocking. The H2.5A in its 2019 catalog lists 5 nails of 0.131 x 2-1/2 in into the rafter and 5 into the plates. Your local wind rules and the tie’s label decide.

16 in or 24 in rafter spacing

Spacing changes the count, not the deck. On the designer’s 10x12 gable, 16 in on center gives 20 rafters, 8 ties and 20 hurricane ties. Set the spacing to 24 in and it gives 14 rafters, 5 ties (with 4 nails per heel joint instead of 3), 14 hurricane ties and 7 ridge straps instead of 10. The rafter is still a 2x6 and the OSB count stays at 7 sheets. At 24 in the 2x6 has less spare capacity: 85 percent against 126 percent at 16 in, on the same 4 ft 11-1/4 in span. A No. 2 2x6 at 24 in on center is allowed 9 ft 1-9/16 in by the designer’s check, and 11 ft 2-3/16 in at 16 in, at the lowest design values of spruce-pine-fir, Douglas fir-larch, hem-fir and Southern pine. Try 24 in in the designer and watch the list change.

Trusses instead of rafters

Trusses are a different route: engineered, delivered, lifted into place. The 2021 IRC1 wants truss design drawings approved before installation. Read the trusses vs rafters guide before you order them. The designer does not plan trusses.

Rafter, ridge and tie counts for every gable size

This is the designer’s framing result for the 24 gable presets, all at 6/12, a 6 in eave overhang, rafters 16 in on center and 30 psf snow. The first number in the shed size is the width across the door wall. Ridge boards are 2x8 and as long as the shed is deep; ties are 2x4 as long as the shed is wide.

Shed Rafters (2x6) Ridge (2x8) Ties (2x4)
6x6 12 6 ft 4 x 6 ft
6x8 14 8 ft 5 x 6 ft
6x10 18 10 ft 7 x 6 ft
8x8 14 8 ft 5 x 8 ft
8x10 18 10 ft 7 x 8 ft
8x12 20 12 ft 8 x 8 ft
8x14 24 14 ft 10 x 8 ft
8x16 26 16 ft 11 x 8 ft
10x10 18 10 ft 7 x 10 ft
10x12 20 12 ft 8 x 10 ft
10x14 24 14 ft 10 x 10 ft
10x16 26 16 ft 11 x 10 ft
10x20 32 20 ft 14 x 10 ft
10x24 38 24 ft 17 x 10 ft
12x12 20 12 ft 8 x 12 ft
12x14 24 14 ft 10 x 12 ft
12x16 26 16 ft 11 x 12 ft
12x20 32 20 ft 14 x 12 ft
12x24 38 24 ft 17 x 12 ft
14x14 24 14 ft 10 x 14 ft
14x20 32 20 ft 14 x 14 ft
16x16 26 16 ft 11 x 16 ft
16x20 32 20 ft 14 x 16 ft
16x24 38 24 ft 17 x 16 ft

The ties on the two 14 ft wide sheds and on the three 16 ft wide ones take 5 nails per heel joint where the others take 3. Every gable also takes one ridge strap per rafter pair, half the rafter count: 9 on the 8x10, 10 on the 10x12, 19 on the 10x24, the 12x24 and the 16x24. The four lean-to presets have no ridge and no ties. Each plan page has the full cut list with every rafter length.

The 10x12 gable. 20 rafters at 16 in on center, a 2x8 ridge and 8 ties.Open this design

Fascia and rake boards

Fascia is the board on the ends of the rafter tails along the eaves. Rake boards run up the sloped edge of the roof at each gable end. They finish the edge, give the drip edge something to hang over and hide the end grain of the deck.

Fascia along the eaves

The designer lists a 1x6 fascia for each eave, 144 in long on the 10x12, two boards. It cuts the tails of every rafter to a plumb line so the board sits flat against them. Common practice is to nail the fascia to the tails before you sheathe, top edge even with the top of the rafter, so the deck ends on it. That is practice, not a code rule, and your plan or the covering maker’s instructions decide.

Rake boards up the gable ends

Rake trim is 1x4 on the designer, four boards of 73-13/16 in on the 10x12, two per gable end. On the 10x8 lean-to it is two boards of 111-5/16 in, and the 1x6 fascia is two boards of 120 in. The designer draws the rafters flush with the gable walls. If you add a gable overhang, the 2021 IRC1 limits structural panel roof sheathing to 9 in past the gable end wall unless it is supported by overhang framing (R803.2).

How much overhang

The designer’s default eave overhang is 6 in and it accepts 0 to 12 in. On the 10x12 the tail along the rafter is 0 in at no overhang, 6-11/16 in at 6 in and 13-7/16 in at 12 in. The deck grows with it: 6 sheets of OSB at 0 in, 7 at 6 in and 7 at 12 in, and 6 drip edge pieces at 6 in and at 12 in against 5 at 0 in. The 2021 IRC1 allows a notch on a cantilevered rafter tail if at least 3-1/2 in of rafter remains and the cantilever is 24 in or less (R802.7.1.1). A 2x4 is 3-1/2 in deep, so it cannot pass that test with a notch. More overhang keeps water off the siding, and it also gives wind more roof to lift, so keep it modest.

Roof sheathing: OSB or plywood

The roof deck is the layer everything else nails to. The designer plans 7/16 in OSB in 4x8 sheets.

OSB or plywood for a shed roof

Either works, and neither wins on paper. APA6 calls plywood and OSB wood structural panels, and says they provide a strong foundation for a variety of roof assemblies. The 2021 IRC1 asks for grade-marked structural panels with spans taken from its table or from APA E30 (R803.2). So buy by the grade stamp and the span rating, not by the name. A 24/16 panel with a nominal 7/16 in thickness spans 24 in on a roof, with or without edge support, at a 40 psf live load (2021 IRC, Table R503.2.1.1(1)). That covers rafters at 16 in and at 24 in on center.

Sheet layout on the roof

Lay the sheets with the long dimension across the rafters. LP’s9 installation sheet says to install with the long dimension of the panel across supports and with the panel continuous over two or more spans, and to make end joints meet over framing and stagger them in each succeeding row. Start at the eave with a full sheet flush with the fascia line, run the row to the far end, then start the second row with a half sheet so the end joints do not line up. Rafters at 16 in or 24 in on center divide 96 in evenly, so an 8 ft sheet ends on a rafter at either spacing if the first rafter sits at the wall end. APA6 adds: if necessary, trim panel ends to center on framing.

The designer lays out each slope as full 4 ft courses plus a ripped strip, with staggered end joints, then fits the strips and part sheets of both slopes onto as few 4x8 sheets as it can, with a saw kerf between cuts. On the 10x12 a slope is about 74 in wide, so it is one full course and a strip of about 26 in, and the layout uses 6 sheets for the two slopes. The designer lists 7: the layout plus 1 sheet as an allowance for a damaged sheet or a miscut. It never lists more than counting each slope on its own would, so on some sizes the layout uses every sheet on the list and there is no spare. Treat the count as a purchase quantity, not roof area divided by 32 sq ft.

Gaps, nails and H-clips

Leave a gap. APA6 says to always space wood panel sheathing 1/8 inch, because OSB and plywood swell and shrink with moisture and tightly butted panels can buckle. A 10d box nail makes a good spacer. APA’s roof sheathing tip also calls for a minimum of 8d common nails. The designer lists 8d galvanized nails, 2-1/2 in, at 6 in on the edges and 12 in in the field, about 450 of them and 5 lb on the 10x12. Your panel maker’s sheet and local code decide the nail and spacing.

H-clips are small metal clips that slide onto the joint edge between rafters. The 2021 IRC1 lists panel edge clips, one midway between supports, among the accepted kinds of edge support (Table R503.2.1.1(1)). At 24 in on center the table does not require them for 7/16 in 24/16 panels, but LP’s9 sheet calls for clips midspan on all unsupported edges, and APA6 notes spacer-type clips are sold by some makers. The seam that runs along the roof between the two courses is the unsupported edge. On the 10x12 that seam is 144 in long on each slope, so 9 clips a slope at 16 in and 6 at 24 in, 18 or 12 clips for the roof. That count is our arithmetic, the designer prints no clip quantity.

Limit

Keep the deck dry

APA lists covering the sheathing with shingle underlayment felt as its step 4, and says to install underlayment over dry sheathing. Wet OSB under a tight cover is where edge swelling and buckling start. Common practice is to roof the same day you sheathe when you can.

Deck numbers for every gable size

This is the designer’s roof-deck result for the same 24 gable presets, at 6/12 with a 6 in eave overhang and 16 in on center. Roof area is the two slopes over the shed depth. Nails are 8d, in pounds.

Shed Roof sq ft OSB sheets Nails Drip edge
6x6 47.0 2 2 lb 3
6x8 62.6 2 2 lb 4
6x10 78.3 4 3 lb 4
8x8 80.5 4 3 lb 4
8x10 100.6 5 4 lb 5
8x12 120.7 5 4 lb 5
8x14 140.9 6 5 lb 6
8x16 161.0 6 5 lb 6
10x10 123.0 7 5 lb 5
10x12 147.6 7 5 lb 6
10x14 172.2 8 6 lb 6
10x16 196.8 8 6 lb 6
10x20 246.0 11 8 lb 7
10x24 295.2 12 9 lb 8
12x12 174.4 7 5 lb 6
12x14 203.5 8 6 lb 6
12x16 232.6 8 6 lb 7
12x20 290.7 11 8 lb 8
12x24 348.8 12 9 lb 9
14x14 234.8 9 7 lb 7
14x20 335.4 12 9 lb 8
16x16 304.1 10 7 lb 8
16x20 380.1 14 10 lb 9
16x24 456.2 16 12 lb 10

Drip edge is in 10 ft pieces and includes 5 percent extra. Sheet counts jump in steps because of the layout rule above: the 10x14 layout uses 7 sheets plus the 1 spare, and the 10x16 layout uses all 8, so both list 8 sheets. Every gable preset lists one 10-square roll of synthetic underlayment.

Lean-to roof decks

The four lean-to presets run at 3/12 with the same 6 in overhang. They have one slope, so the deck is a single plane.

Shed (width x depth) Rafters (2x6) Roof sq ft OSB sheets Hurricane ties
8x4 7 41.2 2 14
8x6 7 57.7 2 14
10x8 9 92.8 4 18
12x8 10 111.3 4 20

Nails are 2, 2, 3 and 3 lb, and drip edge is 3, 4, 5 and 5 pieces. A lean-to rafter bears on two walls, so it needs a hurricane tie at each end. The 10x8 rafter is a 2x6 of 112-11/16 in with a horizontal run of 108 in.

The 10x8 lean-to. one slope, 9 rafters, no ridge and no ties.Open this design

Drip edge and underlayment

Drip edge is the bent metal strip on the roof edge that sends water off the deck into the gutter or onto the ground, not behind the fascia. Underlayment is the water-shedding layer over the deck. Their order matters.

Drip edge

For asphalt shingle roofs, the 2021 IRC1 requires a drip edge at the eaves and rake edges. Pieces overlap at least 2 in, extend at least 1/4 in below the sheathing and at least 2 in back onto the deck, and are nailed no more than 12 in on center (R905.2.8.5). The designer lists it in 10 ft pieces for the eaves and rakes: 6 pieces on the 10x12 and 5 on the 10x8 lean-to. For metal roofs the panel maker’s flashings decide.

Underlayment

On a shingle roof at 4:12 or steeper, the 2021 IRC1 table calls for one layer of underlayment, applied like shingles from the eave up, each course lapped 2 in and end laps 4 in, offset by 6 ft. Between 2:12 and 4:12 it calls for two layers: a 19 in starter strip at the eave, then 36 in sheets each lapped 19 in (Tables R905.1.1(1) and R905.1.1(2)). This is the column for areas where wind design is not required. Asphalt shingles are only allowed on slopes of 2:12 or more, and only on a solidly sheathed deck (R905.2.1 and R905.2.2). So a 6/12 gable needs one layer. A lean-to at 2/12 or 3/12 with shingles needs two, and the designer’s 10x8 warns about this and counts the second layer: 2.1 squares for one 10-square roll. For metal panels the table sends you to the manufacturer’s instructions (Tables R905.1.1(1) and R905.1.1(2)).

The order at the edges

The 2021 IRC1 puts the underlayment over the drip edge along the eaves and under the drip edge along the rake edges (R905.2.8.5). So the sequence is: eave drip edge, then underlayment, then rake drip edge on top of it. The usual reasoning is that water running down the underlayment at the eave drops over the metal, while at the rake the metal laps the deck edge and the underlayment tucks under it.

Ice barrier

Where the local climate table flags ice at the eaves, the code asks for an ice barrier that runs 24 in inside the wall line, with an exception for detached accessory structures without conditioned floor area (R905.1.2). A detached shed usually falls under the exception. A lean-to built against a house is not detached, so it may not. Your building department decides.

Hand over to the covering

The deck is finished when the sheathing is nailed, the clips are in, the drip edge is fitted and the underlayment is down. From here the two coverings split.

Shingles

Asphalt shingles need a solid deck, a pitch of at least 2:12 and the underlayment above. On the 10x12 the designer plans 5 bundles of shingles, 1 of starter strip and 1 of ridge cap. The IRC1 calls for at least 4 fasteners per strip shingle, and the maker’s instructions may ask for more (R905.2.6). Nail lengths for 7/16 in OSB have to go through the panel. The shingle a shed roof guide has the courses, starter, and ridge cap step by step.

Metal panels

Metal roofing goes on solid or spaced sheathing. Its minimum slope depends on the seam: 3:12 for lapped panels without sealant, 1/2:12 with lap sealant, 1/4:12 for standing seam (R905.10.2). The designer’s metal option is 36 in coverage panels cut to length, a ridge cap and about 80 screws per 100 sq ft. The metal roof on a shed guide covers panel layout, screws and the ridge.

What the pitch decides

The pitch limits both. A 2/12 lean-to with shingles needs two layers of underlayment, and with lapped metal panels needs sealant on the laps (R905.2.2 and R905.10.2); the designer does not offer sealed laps, so it refuses lapped metal below 3/12. The shed roof pitch guide has the chart and calculator for the minimum by covering.

Before you build: permits and local rules

The numbers in this guide come from the 2021 International Residential Code1, which is a model code. Your city or county adopts a specific edition and often amends it, so the local building department has the last word on rafter sizes, snow load, wind connectors and roof coverings. Many small sheds are exempt from a permit, but not everywhere, and the exemption does not cancel other rules. See the shed permits guide and call before you order lumber. The designer is a planning aid, not an engineered design.

The whole build, from the base up to the roof, is laid out in the how to build a shed guide. When you are ready, open the 10x12 gable plan for the full cut list, or set your own size in the designer.

Sources

Every number in this guide that does not come from our own shed designer was checked against these 10 documents, numbered in the order the text first cites them and read between Sep 29, 2026 and Sep 30, 2026. 10 are codes, agencies, makers and stores.

  1. 1International Code Council2021 International Residential Code, Chapter 5: Floors
  2. 2International Code Council2021 International Residential Code, Chapter 6: Wall Construction
  3. 3International Code Council2021 International Residential Code, Chapter 8: Roof-Ceiling Construction
  4. 4International Code Council2021 International Residential Code, Chapter 9: Roof Assemblies
  5. 5Simpson Strong-TieWood Construction Connectors C-C-2019, Seismic and Hurricane Ties
  6. 6APA, The Engineered Wood AssociationBuilder Tips: Prevent Buckling with Proper Spacing (M300)
  7. 7APA, The Engineered Wood AssociationProper Installation of APA Rated Sheathing for Roof Applications (N335)
  8. 8APA, The Engineered Wood AssociationRoof Systems
  9. 9LP Building SolutionsLP TechShield Radiant Barrier Installation Instructions
  10. 10City of Republic, MissouriRoof and Subfloor Sheathing Spans

Questions

Anything else? Write to us or browse every guide.

Questions people ask

A single-slope lean-to roof is the easiest to frame. The designer's 10x8 lean-to lists 9 rafters and nothing else in the roof frame, while its 10x12 gable lists 20 rafters, a ridge board and 8 ties. The trade is a taller front wall, a shallow 2/12 to 4/12 pitch and a covering that must suit it.

Use 2x6. The designer tries 2x6 first, never picks a 2x4, and all 24 of its presets end at 2x6. A 2x4 is only 3-1/2 in deep, and the 2021 IRC wants at least 3-1/2 in left under a notch on an overhanging tail, so a birdsmouth with an overhang fails on a 2x4.

It depends on the pitch. The 2021 IRC allows asphalt shingles from 2:12 up, with double underlayment between 2:12 and 4:12. Lapped metal panels need 3:12 without lap sealant, 1/2:12 with sealant, and 1/4:12 for standing seam. Check the pitch first, then choose the covering that suits it.

Lists vary, but the four most people name for outbuildings are gable, hip, gambrel and flat, with the single-slope shed roof as the simplest fifth. The designer draws only gable (4/12 to 6/12) and lean-to (2/12 to 4/12). Gambrel, hip, saltbox and flat roofs need their own framing plans.

Asphalt shingles and metal panels are the two coverings the designer plans for. Shingles follow the underlayment rules by pitch and metal follows its maker's seam and fastener rules. Choose by the pitch you framed, then by looks and by how you like to work. The panel maker's instructions decide the details.

Under asphalt shingles, yes. The 2021 IRC table calls for one layer lapped 2 in at 4:12 or steeper, and two layers between 2:12 and 4:12. Under metal panels the maker's instructions decide. The designer lists a synthetic roll; the roll's label and the shingle maker's instructions set the laps and fasteners.

Let the rafter tails run past the wall plate and cut them to a plumb line. The designer's default overhang is 6 in, adjustable from 0 to 12 in. The 2021 IRC limits a notch on a cantilevered tail to 24 in of cantilever, with 3-1/2 in of rafter left, and panels to 9 in past a gable wall.

Design it, then build it

Your backyard deserves a shed that fits.

Change the size, the roof, the doors and the windows. The span checks, the wall bracing and the materials list follow every change. Free, no account.

Design my shed, free
Designing
Free
Builder's plan
$35 once
Account
Not needed
A finished board-and-batten gable shed with double doors at sunsetIllustration