Rafter length for a 12 ft wide shed with a 4/12 roof
A 12 ft wide shed with a 4/12 gable roof and a 12 inch overhang needs rafters about 87-3/4 inches (7 feet 3-3/4 inches) long — 8 ft boards. A 12×16 shed at 16 inches on center takes 26 rafters.
How to work it out
- Run = 12 ft ÷ 2 − ½ × 1.5 in ridge = 71.25 in
- Slope factor √(1 + (4/12)²) = 1.0541 → 71.25 in × 1.0541 = 75.10 in
- + overhang 12 in × 1.0541 = 12.65 in → 87.75 in = 87-3/4 in (7 ft 3-3/4 in)
- Board: 87.75 + 1.83 plumb-cut allowance (5.5 in × 4/12) = 89.59 in, + 1 in trim = 90.59 in → buy 8 ft boards
- Plumb cut 5.5 in × 1.0541 = 5.80 in; heel 3.5 in seat × 4/12 = 1.17 in; HAP = 5.80 in − 1.17 in = 4.63 in = 4-5/8 in
- Top of ridge board = HAP 4.63 in + run 71.25 in × 4/12 = 28-3/8 in (2 ft 4-3/8 in) above the plates
- Birdsmouth depth = heel 1.17 in × cos 18.4° = 1.11 in — limit ¼ × 5.5 in = 1.38 in → OK
A 12×16 gable shed is one of the most-built backyard projects, and at 4/12 every 2×6 rafter comes out of a single 8 ft board with room for the plumb-cut tail. The rise is just 2 ft over the 6 ft run — the top of the ridge board ends up about 28-3/8 in above the plates — which keeps the roof low but leaves little storage overhead.
Steeper pitches shed snow better and give a loft, but they eat board length: at 6/12 the rafters grow to about 7 ft 9 in, and a 2×6 plumb-cut tail leaves less than ¼ in to spare on an 8 ft board — buy 10 ft. Many shed plans frame at 24 in on center; switch the spacing to see the count drop.
Adjust for your project
More options: Ridge · Seat · Tail …
- Rafters needed
- 26 rafters
- Height above plate (HAP) at the wall line
- 4-5/8 in
- Top of ridge board above the wall plates
- 28-3/8 in (2 ft 4-3/8 in)
- Rise at the building line (measuring line)
- 24 in (2 ft)
- Birdsmouth heel cut (plumb height)
- 1-3/16 in
- Birdsmouth depth, square to the rafter
- 1-1/8 in
- Plumb cut length (ridge and tail)
- 5-13/16 in
- Ridge board depth
- 2×8 or deeper (plumb cut 5-13/16 in)
- Bottom of the tail below the top of the wall (fascia line)
- 5-3/16 in
- Length without overhang
- 75-1/8 in (6 ft 3-1/8 in)
- Rafter length (decimal inches)
- 87.75 in
- Roof angle (plumb-cut angle from square)
- 18.4 degrees
- Pitch
- 4/12 = 18.43°
- Ridge board length (building plus rake overhangs)
- 192 in (16 ft)
- Roof area to sheathe (all slopes)
- 234 sq ft
- Rafter length is the line length along the top edge, from the ridge plumb cut (after the ridge deduction) to the end of the tail. Mark the birdsmouth heel cut where the rafter crosses the outside of the wall plate.
- Birdsmouth depth 1-1/8 in (measured square to the rafter) is within ¼ of the 5-1/2 in depth (1-3/8 in) — the limit IRC Figure R802.7.1.1 shows for the seat notch.
- Rafter size, spacing and span, ridge support, ties and uplift connections are set by your local building code and span tables (IRC R802) — this calculator only does the geometry.
Rafters for a 12 ft wide 4/12 shed, by shed length
| Shed length | Rafters needed |
|---|---|
| 8 ft | 14 rafters |
| 10 ft | 18 rafters |
| 12 ft | 20 rafters |
| 16 ft | 26 rafters |
| 20 ft | 32 rafters |
What to know about rafters for a 12 ft shed
At 4/12 the slope factor is 1.054, so every foot of level run needs about 12.65 in of rafter. Run per side is 72 in less ¾ in for the ridge — 71¼ in — which gives 75.1 in from ridge to plate; the overhang adds about 12.65 in along the slope. The rise on the measuring line is 24 in; add the 4-5/8 in height above plate of a 2×6 with a 3½ in seat and the top of the ridge board sits about 28-3/8 in above the plates. The plumb cuts are set at about 18.4°.
A low pitch narrows your roofing choices. Asphalt shingle makers typically call for extra underlayment on shallow slopes, and 4/12 sits close to the point where standard installation starts, so read the shingle wrapper before you commit. Metal panels and roll roofing have their own minimum slopes — check the product, not a rule of thumb.
The count is 13 per side: 192 in of shed length ÷ 16 in is 12 spaces, plus one. At 24 in on center it drops to 9 per side, 18 in all. The birdsmouth on a 2×6 is shallow at this pitch: a full 3½ in seat gives a heel cut of 1-3/16 in and a notch about 1-1/8 in deep measured square to the rafter, under the ¼-depth limit of 1-3/8 in shown in IRC Figure R802.7.1.1. On 2×4 rafters the same seat would be too deep — their limit is 7/8 in.
The gable-end walls of this shed are 12 ft long — How many studs for a 12 ft wall counts them. For a garage-sized roof, see Rafter length for a 24 ft span at 6/12 pitch.
Different size? Use the full Rafter Length Calculator.
What you’ll need
- Speed square (7 in)Budget price
Marks square and angled crosscuts and doubles as a saw guide for a circular saw. The degree scale is handy for rafters and stair angles.
See options on Amazon (opens in a new tab) - Framing squareBudget price
The tool for laying out stair stringers and rafters: rise on one leg, run on the other.
See options on Amazon (opens in a new tab) - Circular saw (7¼ in)Mid-range price
The most versatile first power saw: crosscuts framing lumber, rips boards and, with a straightedge, breaks down plywood sheets.
See options on Amazon (opens in a new tab)
As an Amazon Associate we earn from qualifying purchases. Links to products are affiliate links — they cost you nothing extra and help keep these calculators free.
Frequently asked questions
How long are shed rafters for a 12 ft width at 6/12?
About 93-1/16 inches (7 feet 9-1/16 inches) with a 12 inch overhang — 10 ft boards, once the 2×6 plumb-cut tail and trim are allowed for. The top of the ridge board rises to 40 inches (3 feet 4 inches) above the plates.
How long is a single-slope (lean-to) rafter over a 12 ft shed at 4/12?
About 164-7/16 inches (13 feet 8-7/16 inches), because one rafter now spans the full 12 ft — 14 ft boards. A 16 ft long shed at 16 inches on center takes 13 rafters.
How many rafters for a 12×16 shed at 24 in on center?
18 rafters — nine per side — each about 87-3/4 inches (7 feet 3-3/4 inches) long.
Other common sizes
- Rafter length for a 24 ft span at 6/12 pitch — 173-9/16 in (14 ft 5-9/16 in)
Sources
- International Code Council, 2021 International Residential Code, Chapter 8 Roof-Ceiling Construction (opens in a new tab) — R802.3 ridge depth not less than the cut end of the rafter; R802.6 1½ in minimum bearing on wood; R802.7.1 and Figure R802.7.1.1 birdsmouth notch D/4 max, notched tails
- International Code Council, 2021 International Residential Code, Chapter 5 Floors (opens in a new tab) — R502.8.1: notches at the ends of a member not over one-fourth its depth (applied to rafters by R802.7.1)
- US Navy NAVEDTRA 14044, Builder — Chapter 2, Roof Framing (public domain) (opens in a new tab) — line length, shortening, overhang (projection) and shed-roof run by the framing-square method