HausCraftHausCraft

Rafter calculator

How long is each rafter, and how many do you buy? Give it your walls and a pitch, and see the roof framed with every board’s length.

ft
ft
in 12
in
HausCraft

The plan

Every piece, sized and counted from the sizes you gave.

PieceSizeLengthHow many
Rafter2×610 ft 7/16 in22
Ridge board2×810 ft 11 1/2 in2
Barge rafter2×610 ft 7/16 in4
Lookout2×61 ft 7 1/2 in12
Lookout2×69 11/16 in4
Lookout2×69 3/16 in4
Corner rafter2×62 ft 10 3/16 in4
Sub-fascia2×610 ft 10 7/16 in4
Top plate2×419 ft 5 in2
Top plate2×415 ft 5 in2
Top plate2×48 ft 5 5/8 in8
Stud2×45 3/4 in to 3 ft 9 in44

In all 2×4: 226 ft · 2×6: 342 ft · 2×8: 22 ft

hauscraft.app/calculators/rafter-calculator/

How it is worked out

  • Rafters run from each wall up to a ridge board along the peak, no further apart than the spacing you choose. The first stands just inside each end wall.
  • Each rafter is notched to sit on the 2×4 plate on top of its wall, and runs on past the wall to the overhang.
  • A sub-fascia closes the rafters’ ends along each eave. A barge rafter runs up each rake, carried on lookouts from the first rafter inside the wall.
  • Each outside corner of the eaves has a short rafter at 45° from the corner in to the first rafter it meets.
  • The gable ends are framed up to the roof in studs under a plate that follows the slope.
  • Boards come up to 20 ft long. A rafter that would need to be longer, with no wall or beam under it to joint it over, is turned down, and we say why.

We lay out and count the sizes you pick, close enough to plan a weekend and price the lumber. Span tables, your local code and, on a bigger job, an engineer settle what size each board has to be.

Questions

How long is a rafter?
It depends on the half-width of the building, the pitch and the overhang. The list gives each rafter’s length as it is cut, from the ridge board to the end of the overhang.
Does it cut the birdsmouth?
Yes. Each rafter is drawn notched over the plate it sits on, and its length is measured with the notch in it.
Can it frame a hip roof?
It frames roofs whose shape is the same all the way along, such as gables, sheds, gambrels and saltboxes. A hip roof falls outside that.

Talk it over

Ask other owners how they built theirs in Request a build, and when yours is done, show it in Builds and projects: how you went about it, what you’d do again and what you wouldn’t.

From an AI assistant

Add HausCraft’s MCP server, https://hauscraft.app/mcp, to Claude or any assistant that takes one, and ask it for this calculation: it answers with the same list. What it asks, and every calculator.

Other calculators

Vegetables

Herbs

Fruit

Start from your address

Tell Klaus where your house is. He asks a couple of questions about it and lays it out with you.