How to use this calculator
- Enter the horizontal wall-to-ridge run, usually half the span for a symmetric gable.
- Enter rise per 12 units of horizontal run: type 6 for a 6:12 pitch.
- Add the horizontal eave overhang, not its sloped length.
- Enter the whole number of common rafters and a local lumber price per foot or meter.
- Allow separately for ridge-board thickness, cuts, stock lengths and structural sizing.
Common-rafter right-triangle geometry
The slope factor is √(1 + (pitch ÷ 12)²). Wall-to-ridge length = run × factor; sloping tail = horizontal overhang × factor. Their sum is the geometric length before cut details. Rise is run × pitch ÷ 12.
At a 12 ft run, 6:12 pitch and 1 ft horizontal overhang, the main length is 13.42 ft, the tail is 1.12 ft and the combined geometric length is 14.53 ft. A 3 m run and 0.3 m overhang at the same pitch produce 3.69 m combined. Do not round down to the nearest available stock length.
Pro tips
- Use a separate layout for hip, valley and jack rafters.
- A centerline run needs adjustment for the actual ridge connection before cutting.
- Choose lumber grade, species and section using the applicable load and span design.
- Include enough stock for plumb cuts, seat cuts and trimming.
- The price output excludes waste, connectors, treatment, tax and labor.
Frequently asked questions
Do I enter span or run?
Enter run. A symmetric 24 ft wide gable has a nominal 12 ft run on each side before ridge-detail adjustments.
Is the overhang horizontal?
Yes. At 6:12, a 1 ft horizontal overhang adds approximately 1.118 ft of sloping tail.
Does metric mode change pitch notation?
No. A pitch input of 6 always means 6:12, regardless of whether the run is in feet or meters.
Does this tell me which size lumber to buy?
No. It gives geometric length only. Species, grade, spacing, roof loads and connection details determine structural sizing.
What is the length at a 3 m run and 12:12 pitch?
With no overhang the geometric length is 3 × √2, or 4.243 m. The rise is 3 m.
These results are estimates for planning and budgeting. Actual quantities depend on site conditions, products and workmanship. Check structural and code requirements with a licensed professional before you build.