Fitting out a shed? Shelving, hooks and bike racks on Amazon (opens in a new tab)

Shed Roof Calculator

Work out the pitch, rise and rafter length of a gable or lean-to shed roof, with sheathing, underlayment, shingles or metal panels and drip edge.

ft

The side the rafters span.

ft
in

Measured level, out from the wall.

in
Rafter length —
The same roof at other pitches

How to use the shed roof calculator

  1. Pick a gable roof, with two slopes meeting at a ridge, or a lean-to roof, with one slope from a high wall to a low one.
  2. Enter the shed width, the side the rafters cross, and its length.
  3. Choose the pitch, the rise in inches for every 12 in across. Most sheds are between 4/12 and 8/12.
  4. Enter the overhangs at the eaves and the ends, the rafter spacing and the roofing.

The result gives the length of each rafter and the material list. The drawing shows the roof in section, and the table shows the same roof at other pitches.

Rafter length from the pitch

Rise = run × pitch ÷ 12  Â·  Rafter = (run + overhang) ÷ cos(angle)

The run is half the shed width for a gable roof and the full width for a lean-to. The angle is the arctangent of the pitch ÷ 12, so 4/12 is 18.4° and 6/12 is 26.6°.

Example: a 10 ft wide gable shed with a 4/12 roof has a run of 5 ft and a rise of 5 × 4 ÷ 12 = 1 ft 8 in. With 6 in eaves, each rafter is 5.5 ft ÷ 0.949 = 5 ft 9-5/8 in along its top edge. Take half the thickness of the ridge board off that before you cut.

Shed roof pitch

PitchAngleGood for
1/12 to 2/124.8° to 9.5°Lean-to with rolled roofing or low-slope metal
3/1214°Lean-to or gable with metal panels
4/12 to 6/1218.4° to 26.6°Most sheds; works with shingles and metal
8/12 to 12/1233.7° to 45°Barn-style and cottage sheds, loft space, heavy snow

Asphalt shingles need at least 2/12, and between 2/12 and 4/12 the makers call for a double layer of underlayment. Most exposed-fastener metal panels need 3/12 or more. Steeper roofs shed snow better; the snow load calculator shows how much.

Roofing materials

  • Sheathing: roof area ÷ 32 sq ft per 4 × 8 sheet, plus 10%. Use 7/16 in OSB or 1/2 in plywood on rafters 24 in apart.
  • Shingles: three bundles cover one square (100 sq ft). Add 10% for cutting, plus a starter strip along the eaves and ridge cap.
  • Metal panels: one panel per 3 ft of roof length on each slope, cut to the rafter length.
  • Drip edge: along every eave and rake, in 10 ft pieces lapped by a couple of inches.

Frequently asked questions

What is the best roof pitch for a shed?

4/12 to 6/12 for a gable shed: steep enough for shingles and to shed rain and snow, low enough to build without roof jacks. A lean-to shed is often 2/12 to 4/12 so the high wall does not get too tall.

How many bundles of shingles do I need for a shed?

A 10 × 12 ft gable shed at 4/12 with small overhangs has about 147 sq ft of roof, so five bundles with 10% extra, plus starter and ridge cap.

Can I use 2×4 rafters?

On small sheds in areas with light snow, 2×4 rafters at 16 or 24 in are common. Where snow is heavy or the span is over about 8 ft, 2×6 rafters are the safer choice. Your building department’s span tables have the final say.

More shed and shelter calculators