Shed rafter calculator

Enter the width of the shed and the roof pitch to get the length of each rafter, the board to cut it from, and where to mark the plumb cuts and the birdsmouth. It draws the rafter to scale, so you can lay it straight onto a board.

ft in

The side the rafters run across: wall to wall under the ridge.

in
ft

What to buy

  • 14 boards2x6 x 8 ft, one rafter from each
  • 1 ridge board2x8 or deeper, as long as the roof
Roof pitch
6/12
Plumb cut angle, from square
26.6°
Rafter length along the top edge
79-11/16" (6' 7-11/16")
Heel to ridge, along the top edge
66-1/4" (5' 6-1/4")
Tail past the wall, along the top edge
13-7/16"
Board length needed
82-7/16" (6' 10-7/16")
Birdsmouth seat
3-1/2"
Birdsmouth heel, on the plumb line
1-3/4"
Rafter left above the wall
4-3/8"
Top of the ridge above the wall
34"
Rafters at 24 in, both sides
14
  • Cut one pair, try them on the walls and the ridge, then use one as the pattern for the rest.
  • These are the cuts, not a strength check. For a wide span or heavy snow, check the rafter size in your local span table.

The rafter, drawn to scale

Rafter pattern, make 14
offcut13-7/16"66-1/4" heel to ridge79-11/16" along the top edgeBoard length needed 82-7/16"Birdsmouth (see detail)Tail plumb cut 26.6°Ridge plumb cut 26.6° from squareSet a speed square to 6 on the common scale for every plumb line.
Birdsmouth, where the rafter sits on the wall
Top platesSeat 3-1/2"Heel 1-3/4"4-3/8"Outside face of wall4-3/8" of rafter above the wall

How the rafter is worked out

A rafter is the sloping side of a right triangle. The level side is the run, from the outside of the wall to the ridge, and the pitch gives the rise for every foot of it. Multiply any level distance by the slope factor to get the length along the rafter.

Run = span ÷ 2 − ridge thickness ÷ 2
Slope factor = √(12² + pitch²) ÷ 12, so 1.118 for 6/12
Heel to ridge = run × slope factor
Tail = overhang × slope factor
Board length needed = heel to ridge + tail + rafter depth × pitch ÷ 12
Birdsmouth heel = seat × pitch ÷ 12

The last part of the board length is there because both ends are cut plumb. On a sloping board a plumb cut leans, so the bottom edge runs past the top edge by the rafter's depth times the pitch over 12.

Worked example: a 10 ft wide shed at 6/12

  1. Run: half of 120 in, less half the 1-1/2 in ridge board, is 59-1/4".
  2. Heel to ridge: 59-1/4" × 1.118 = 66-1/4".
  3. Tail: a 12 in overhang × 1.118 = 13-7/16", for 79-11/16" along the top edge.
  4. Board: add 5-1/2 in × 6 ÷ 12 = 2-3/4 in for the plumb cuts, so 82-7/16". An 8 ft 2x6 does it.
  5. Birdsmouth: a 3-1/2" seat on 2x4 walls drops 1-3/4" on the plumb line, leaving 4-3/8" of rafter above the wall.
  6. Count: rafters at 24 in on a 12 ft long shed, both sides, make 14.

These are the numbers in our 10x12 shed plans, which use the same method.

Rafter lengths for common shed widths

The board length each rafter needs, with a 12 in overhang, 2x6 rafters, 2x4 walls and a 2x ridge board, and the board to buy for it.

Shed width4/12 pitch6/12 pitch8/12 pitch
6 ft 51-5/8", two from a 10 ft 55-9/16", two from a 10 ft 60-7/16", two from a 12 ft
7 ft 57-15/16", two from a 10 ft 62-5/16", two from a 12 ft 67-11/16", two from a 12 ft
8 ft 64-5/16", two from a 12 ft 69", two from a 12 ft 74-7/8", 8 ft
9 ft 70-5/8", two from a 12 ft 75-11/16", 8 ft 82-1/16", 8 ft
10 ft 76-15/16", 8 ft 82-7/16", 8 ft 89-5/16", 8 ft
11 ft 83-1/4", 8 ft 89-1/8", 8 ft 96-1/2", 10 ft
12 ft 89-9/16", 8 ft 95-13/16", 10 ft 103-3/4", 10 ft

Marking out a rafter with a speed square

  1. Pick the straightest board, sight along it and mark the crown, the side it bows up on. That edge goes on top.
  2. Ridge cut: hold the speed square's pivot against the top edge and swing it until the pitch number on the common scale lines up with the same edge. Draw along the square: that's the plumb line, 26.6° from square at 6/12.
  3. Measure the heel-to-ridge length along the top edge and draw a second plumb line. It's where the outside of the wall will be.
  4. Birdsmouth: on that line, measure the rafter-above-the-wall height down from the top edge. Square across from there toward the ridge for the length of the seat, and cut out the triangle below.
  5. Tail: measure the tail length along the top edge past the heel line and draw the last plumb line.
  6. Cut one pair, try them on the walls, then use one as the pattern for all the others.

A lean-to rafter has a notch at each wall instead of a ridge cut. They face opposite ways: at the high front wall the plumb cut sits on the inside face of the wall, at the low back wall on the outside face. Switch the calculator to lean-to to see both drawn.

Choosing the pitch

Asphalt shingles need at least 2/12, with a double layer of underlayment below 4/12, so 4/12 is a sensible least for a shingled shed. Our gable sheds use 6/12, which sheds snow and rain well and leaves the walls at a standard height. Our lean-to sheds use 4/12, which keeps the high front wall from getting too tall. A steeper roof gives more headroom and storage in the rafters, but every rafter gets longer and the shed taller, which can matter under a zoning height limit.

Rafter size and spacing

The calculator works out the cuts, not whether a rafter is strong enough. Our plans use 2x6 rafters at 24 in on center for sheds up to 12 ft wide, with 1/2 in plywood and H-clips between the rafters. Spacing them at 16 in makes a stiffer roof for heavy snow. For a wider building, or where snow loads are high, check the rafter span table your building department uses.

Quick answers

How long are the rafters for a 10x12 shed?

For a 10 ft wide shed at 6/12 with a 12 in overhang, each rafter is 79-11/16" along the top edge and needs a board 82-7/16" long, so an 8 ft 2x6. With rafters at 24 in on a 12 ft long shed you need 14.

How deep should a birdsmouth cut be?

No more than about a third of the rafter's depth. A 2x6 at 6/12 on 2x4 walls has a heel of 1-3/4", well within that. A 2x4 rafter at 12/12 on the same walls would lose 3-1/2" of 4-15/16", which is too much, so use a deeper rafter or a shorter seat.

Should shed rafters be 16 or 24 inches on center?

24 in is the usual spacing for a shed roof with 1/2 in plywood and H-clips, and it's what our plans use. Choose 16 in where snow is heavy or the roof sheathing is thinner.

What pitch should a shed roof be?

At least 4/12 for asphalt shingles without extra underlayment. 6/12 is a good middle for a gable shed; a lean-to is usually 2/12 to 4/12 so the high wall doesn't get too tall.

How long are the rafters for an 8x12 lean-to shed?

For an 8 ft deep lean-to at 4/12, with 12 in at the front and 8 in at the back, each rafter is 122-1/4" along the top edge and needs a board 124-1/8" long, so a 12 ft 2x6. The back wall is 2' 6-13/16" lower than the front. Our 8x12 lean-to plans use these rafters.

What size ridge board does a shed need?

One at least as deep as the rafter's plumb cut, which is deeper than the rafter itself. 2x6 rafters at 6/12 have a 6-1/8" plumb cut, so use a 2x8 ridge board.

Building a shed?

Plans with every rafter, cut and board already worked out, and a free shopping list.

Related calculators