Skip to content
Design free

Framing and roof

How to Build Shed Rafters

Rafters look like the tricky part of a shed. They are not, once you cut one good pattern and let it do the measuring for you.

By The Shed PlannerUpdated 10 min readChecked against 8 sources

A builder on a stepladder checking a rafter with a speed square on a gable shed frame, rafter boards stacked on the floorIllustration

The short answer

Cut one pattern rafter, test it on the walls, then trace it onto the rest. For an 8x10 gable shed at a 6/12 pitch with a 6 inch overhang, each 2x6 rafter measures 59-9/16" along the edge from the ridge plumb cut to the tail plumb cut, needs 62-5/16" of board, and has a birdsmouth with a 3-1/16" seat and a 1-9/16" heel.

A gable roof is just pairs of identical boards leaning against a ridge. Get one of them right and the others are copies. This guide explains the words, shows how the rafter size is chosen, and walks through laying out, cutting and raising the rafters for a standard 8x10 gable shed. The shed designer does the same math for any size and pitch.

Sage green gable shed with white trim and a shingled roof, double doors open on tool shelves under exposed shed raftersIllustration

Rise, run and pitch

  • Pitch is written as rise over 12: a 6/12 roof climbs 6 inches for every 12 inches it runs across. It is also the number you set on a speed square.
  • Run is the horizontal distance a rafter covers. On a gable shed it is half the width, less half the thickness of the ridge board.
  • Plumb cuts are the vertical cuts at the ridge and at the tail. They are square to the ground, not to the board.
  • The birdsmouth is the notch where the rafter sits on the wall: a flat seat cut that rests on the top plate and a vertical heel cut against the outside of the wall.
  • The tail is the part that hangs past the wall to form the overhang.

Steeper roofs shed water and snow faster and look taller; flatter roofs need less lumber. The shed roof pitch guide has the full chart, the minimum pitch for shingles and metal, and a calculator. Want the length without the arithmetic? The rafter length calculator gives the rafter line, the board to buy, the birdsmouth check and the rafter count for your shed width and pitch. For the 8x10, here is how pitch changes the rafter:

PitchPlumb angleHeel cutEdge lengthBoard needed
4/1218.4°1-3/16"56-1/8"57-15/16"
5/1222.6°1-7/16"57-11/16"60"
6/1226.6°1-9/16"59-9/16"62-5/16"

How big the rafters must be

Rafter size depends on the horizontal span, the spacing and the snow load where you live. The designer checks every roof with No. 2 design values taken, size by size, as the lowest of spruce-pine-fir, Douglas fir-larch, hem-fir and Southern pine in AWC's 2024 tables (in bending, with the repetitive-member factor, 1,150 psi for a 2x6, 1,065 for a 2x8 and 920 for a 2x10; a stiffness of 1,200,000 psi), so any of the four species passes, under your snow load plus 10 psf of dead load, and it keeps both the bending stress and the sag inside the limits. The sag limit is the span divided by 180, the figure the model code allows for rafters steeper than 3/12 with no ceiling attached. On a lean-to at 3/12 or flatter the code falls back to the span divided by 240, and the designer uses that stricter limit there. On the 8x10 the rafter spans 47-1/4" horizontally, and a 2x6 at 16 inches on center is good for about 11' 2-3/16" at 30 psf of snow.

RafterSpacing20 psf snow30 psf snow50 psf snow
2x616" OC12' 10"11' 2"9' 1"
2x624" OC10' 6"9' 1"7' 5"
2x816" OC16' 4"14' 2"11' 6"
2x824" OC13' 4"11' 6"9' 5"
2x1016" OC19' 5"16' 9"13' 8"
2x1024" OC15' 10"13' 8"11' 2"

Maximum horizontal span, No. 2 lumber at the lowest design values of four species, 10 psf dead load, calculated by the shed designer. Your local code table may differ; it is the one that counts.

How close is that to the code? The 2021 International Residential Code1 measures rafter spans the same way, along the horizontal, and has tables for Spruce-Pine-Fir No. 2 at 30 and 50 psf of ground snow load with 10 psf of dead load and no ceiling attached (Tables R802.4.1(3) and R802.4.1(5)). In every 2x6, 2x8 and 2x10 cell above, at 30 and 50 psf, the designer's number is shorter than the code table, never longer, because the code table is for spruce-pine-fir alone and the designer takes, size by size, the lowest values of four species: a 2x6 at 16 inches and 30 psf is 11 ft 11 in in the code table against 11' 2" here. The code has no 20 psf snow table to compare with.

Limit

Snow load is local

The model code leaves the ground snow load to each jurisdiction, so your building department can tell you the figure for your address. If you are not sure, plan for more rather than less: one rafter size up is a small change next to a sagging roof.

Lay out a pattern rafter

Measure along the top edge of the board. Because the ridge cut and the tail cut are both plumb, the distance between them along the edge is the horizontal run divided by the cosine of the roof angle. For the 8x10 the run from the face of the ridge to the end of the tail is 53-1/4", and that comes to 59-9/16" along the edge. Each plumb cut adds a little length across the board, which is why a 2x6 needs 62-5/16" of lumber.

59-9/16" along the edge, plumb cut to plumb cut53-1/4" horizontal run6" tailseat 3-1/16", heel 1-9/16"6/12 plumb cuts (26.6°)
Common rafter for an 8x10 gable shed at 6/12. the ridge cut, the birdsmouth and the tail, drawn by the shed designer.Open this design

The seat of the birdsmouth is as wide as the wall, 3-1/16", which gives a heel cut 1-9/16" deep at 6/12. The designer warns you when the heel passes one third of the rafter depth, a common framing rule of thumb; on a 2x6 that is 1-13/16", so this one is fine. The model code's own test is different: on a rafter with an overhang, at least 3-1/2 inches of rafter has to remain above the notch, and the overhang cannot run more than 24 inches (2021 IRC1, section R802.7.1.1). A 2x6 with a 1-9/16" heel leaves more than that.

The tail is 6-11/16" along the edge for a 6 inch horizontal overhang.

Measurements

The 8x10 gable, as the designer draws it

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

Worked example: a 6 ft rafter

The 8x10 rafter above measures 4' 11-9/16" along the edge. A 10 ft wide shed at a 6/12 pitch is the closest preset width that lands on 6 ft: each rafter measures 72-15/16" along the edge, which is 6' 15/16". These are the numbers the designer gives for a 10x12 gable shed with a 6 inch overhang.

StepValue for a 10x12 at 6/12
Horizontal run, ridge face to tail end65-1/4"
Rise over that run32-5/8"
Length along the edge, plumb cut to plumb cut72-15/16"
Plumb angle26.6°
Birdsmouth seat and heel depth3-1/16" seat, 1-9/16" heel
Tail along the edge6-11/16"
Board needed per rafter75-11/16", so one 2x6 of 8 ft
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°)
Common rafter for a 10x12 gable shed at 6/12. the ridge cut, the birdsmouth and the tail, drawn by the shed designer.Open this design
  1. Mark the pattern

    On a straight 2x6, set the speed square to 6 on the pitch scale and draw the ridge plumb line near one end. From that line measure 72-15/16" along the top edge and draw the tail plumb line.
  2. Cut the plumb cuts

    Cut the ridge end and the tail end along the lines. The board you cut from needs to be at least 75-11/16" long, so an 8 ft board does it.
  3. Cut the birdsmouth

    Measure the 6-11/16" tail back from the tail end along the edge and draw the heel plumb line. Square a 3-1/16" seat line off its foot, which gives a heel 1-9/16" deep, and cut the notch.
  4. Test it in place

    Hold the pattern on the wall with a scrap ridge block between a pair. The seat should sit flat on the top plate and the heel should touch the outside of the wall. Adjust the pattern, not the building, then trace it onto the other 19 boards.

Change the width or the pitch in the 10x12 in the shed designer and the same table follows. At 5/12 the same width gives 70-11/16" along the edge.

Cut and raise the roof

  1. Stage 3 of 6about 9 h

    Walls

  2. Stage 4 of 6about 8 h

    Rafters, ridge and gable studs

The 8x10 from the designer: the walls ready for the roof, then the rafters, ridge and gable studs on them.Open this design
  1. Pick the pitch and rafter size

    Choose the roof pitch, then check the rafter size against the horizontal span and your snow load before you buy lumber.
  2. Choose a straight board for the pattern

    Sight down the boards and pick the straightest one. Mark the crown, the edge that bows up, and keep it on top.
  3. Mark and cut the ridge plumb cut

    Set a speed square to the pitch on the top edge and draw the plumb line at the ridge end, then cut it.
  4. Measure to the heel and mark the birdsmouth

    Measure the length along the edge from the ridge cut to the heel plumb line, draw it, then mark the seat cut square to it across the width of the wall plate.
  5. Mark and cut the tail

    Measure the tail length past the heel line and draw a second plumb line for the tail cut.
  6. Test the pattern on both walls

    Hold the pattern and a scrap ridge block in place on both sides of the shed. Adjust the pattern, not the building.
  7. Trace and cut the rest

    Trace the pattern on the remaining boards, crowns up, and cut them all the same way.
  8. Raise the ridge and the rafters

    Set the end rafter pairs with the ridge board between them, check the ridge for level and the gable ends for plumb, then fill in the rafters on layout and fasten the ties and connectors.

Check before you continue

Crown up, every time

Almost every board has a slight bow. Put the crown on top and the roof load will straighten it. Put it on the bottom and that rafter will make a dip you can see from the street.

The 8x10 takes 18 rafters, 9 pairs at 16 inches on center, on a 2x8 ridge board 10' long. The ridge board is one size deeper than the rafters so the whole plumb cut bears against it. The model code sets the minimum: a ridge board at least 1 inch nominal thick and no shallower than the cut end of the rafter. A 12x16 needs 26 rafters, each 86-3/8" along the edge from 89-1/8" of 2x6.

Ties and connectors

A ridge board does not hold the roof up by itself. It is the rafter ties, joining each pair of rafters at the top of the walls, that stop the rafters from pushing the walls apart. The model code says the same thing: the roof needs continuous ties across the building, and without them the ridge has to be a beam designed to carry the roof. The designer adds a 2x4 tie at every rafter pair except the two at the gable ends, where the gable wall ties the rafters, 7 ties at 96" for the 8x10, with the ends cut to the roof slope. They are ties, not floor joists: if you want storage up there, frame it as a loft, as the shed loft guide explains.

The designer also lists a metal rafter-to-plate connector, often called a hurricane tie, at every bearing. The model code asks every roof to resist wind uplift, and it allows plain toe-nailing (for example three 16d box or three 10d common nails per rafter) only when the uplift on each rafter is 200 lb or less, or where the wind speed is 115 mph or less and the roof meets a short list of other conditions, including a 5/12 or steeper pitch (2021 IRC1, section R802.11). A connector at every rafter takes that question off the table.

At the top, the designer ties each pair across the ridge with a steel strap: 1-1/4 inch by 20 gauge, 18 inches 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, the nail nearest the ridge cut at least 2-3/8 inches from the end of the rafter (2021 IRC1, R802.4.2 and R802.4.6). It goes on every pair, the gable-end pairs too, so the 8x10 takes 9 straps and 54 nails.

Lean-to rafters

A lean-to roof has one slope, so every rafter is a single board that runs from the tall front wall to the short back wall, with a birdsmouth at each end. There is no ridge and no thrust, so no ties. For a 10 ft wide, 8 ft deep lean-to at 3/12, each rafter is 111-5/16" along the edge, cut from 112-11/16" of 2x6, with 7/8" heel cuts, and the back wall comes out at 6' 2".

The 8x10 gable shed with the roof framed, sheathed and shingled.Open this design

Next, sheath the roof, add drip edge and underlayment, and shingle or panel it. The wall framing guide covers the gable end studs that go in once the rafters are up.

Sources

Every number in this guide that does not come from our own shed designer was checked against these 8 documents, numbered in the order the text first cites them and read between Sep 29, 2026 and Oct 10, 2026. 7 are codes, agencies, makers and stores; 1 is a secondary source (shed sellers' and builders' guides), marked, used only where no code, agency or maker gives a number.

  1. 1International Code Council2021 International Residential Code, Chapter 3: Building Planning
  2. 2International Code Council2021 International Residential Code, Chapter 5: Floors
  3. 3International Code Council2021 International Residential Code, Chapter 6: Wall Construction
  4. 4International Code Council2021 International Residential Code, Chapter 8: Roof-Ceiling Construction
  5. 5Simpson Strong-TieWood Construction Connectors catalog C-C-2026
  6. 6American Wood Council2024 Design Values for Joists and Rafters
  7. 7Southern Pine Inspection BureauNominal Vs Actual Lumber Sizes
  8. 8STRUCTURE magazineSecondary sourceRobust Lumber Specifications on Construction Documents

Questions

Anything else? Write to us or browse every guide.

Questions people ask

Work out the pitch and the horizontal run, cut one pattern rafter with the ridge plumb cut, the birdsmouth and the tail, test it on the building, then trace it onto every other board. Our shed designer gives you the lengths and cut depths for your size.

16 inches on center is the designer's default, and 7/16 inch OSB or 1/2 inch plywood covers it easily. 24 inches works too if the rafters are sized for it: in the model code's sheathing table, a 7/16 inch panel with a 24/16 span rating spans 24 inches on a roof with or without edge clips, for up to 40 psf of live load, and a 1/2 inch 32/16 panel spans 28 inches without them.

2x6 for most sheds. A 2x4 can carry the load on a small shed, but the model code only lets you notch the overhang of a rafter if at least 3-1/2 inches of rafter is left, and a 2x4 is only 3-1/2 inches deep. A 2x6 also leaves room for insulation. Our designer starts every roof at 2x6 and steps up from there when the span needs it.

On a small shed with a short span, the lumber itself can be strong enough: by the same calculation we use, a No. 2 2x4 at 16 inches on center, at the lowest design values of spruce-pine-fir, Douglas fir-larch, hem-fir and Southern pine, spans about 7' 5" under a 30 psf snow load. The catch is the birdsmouth. With an overhang, the 2021 International Residential Code (section R802.7.1.1) wants at least 3-1/2 inches of rafter left above a notch on the tail, and a 2x4 is only 3-1/2 inches deep, so a notched 2x4 with an overhang does not meet it. Check with your building department before you rely on 2x4 rafters.

It depends on the species, grade, spacing and snow load. For No. 2 lumber at 16 inches on center with a 30 psf snow load and 10 psf dead load, our bending and deflection check, which uses the lowest values of four common species, gives about 7' 5" of horizontal span, and the 2021 International Residential Code table for a 30 psf ground snow load gives 8 ft 2 in for spruce-pine-fir No. 2 at that spacing. Your local span table is the one that counts.

We do not have price data that settles it. Cutting your own rafters lets you start the same day with lumber from the yard. Trusses come built to size from the maker and save the cutting, but they have to be ordered and delivered. Compare a local truss quote with the rafter lumber on your materials list.

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