Roof Pitch, Rafter Length & Gable Rise Calculator

Compute rafter hypotenuse, ridge height, and roof pitch multiplier.

Total Common Rafter Length 17.33 ft
Ridge Rise Above Top Plate 7 ft
Roof Slope Angle 26.57 deg
Pitch Multiplier Factor 1.12 ×
Inputs
Try:
ft
Total exterior building width / span in feet.
in / 12"
Roof rise in inches per 12 inches of horizontal run (e.g., 6 for 6/12 pitch).
ft
Horizontal eaves soffit overhang in feet.
Results & Graph
Total Common Rafter Length
17.33 ft
Ridge Rise Above Top Plate
7 ft
Roof Slope Angle
26.57 deg
Pitch Multiplier Factor
1.12 ×

Total Common Rafter Length

Graph 1 • How the inputs feed Roof Rafter & Pitch
Roof Pitch, Rafter Length & Gable Rise Calculator • Custom Domain Schematic (Roofing & Framing) Takeoff Dim: building × pitchRis (Roof Rafter & Pitch) Building Span Ft: 28 ft • Pitch Rise Per12: 6 in / 12" TOTAL COMMON RAFTER LENGTH 17.33 ft • Ridge Rise Above Top P: 7 ft • Roof Slope Angle: 26.57 deg Eq: Run = Span / 2; PitchFactor = √(
Graph 2 • Total Common Rafter Length as Building Span Ft changes (40% to 160% of current)
0 ft 14.70 ft 29.39 ft 7.94 11.20ft 11.07 16.80ft 14.20 22.40ft 17.33 28ft 20.46 33.60ft 23.59 39.20ft 26.72 44.80ft
Graph 3 • Building Span Ft and Pitch Rise Per12 together Compares Total Common Rafter Length when Pitch Rise Per12 is shifted +25% (solid) vs. −25% (dashed).
0 ft 12.78 ft 25.55 ft --- Pitch Rise Per12 @ 75% 13.33 -30% 15.80 -15% 18.28 +0% 20.75 +15% 23.23 +30%
Summary: At a 6:12 pitch (26.6°), pitch multiplier is 1.118 and total rafter length including 1.5 ft overhang is 17.33 ft.
Summary: At a 6:12 pitch (26.6°), pitch multiplier is 1.118 and total rafter length including 1.5 ft overhang is 17.33 ft.
Interactive chart & math engine powered by CalculatorGraph

Formula: Roof Rafter & Pitch Estimating Formula

Run = Span / 2
PitchFactor = 1 + (Rise12 / 12²)
Rafter = (Run + Overhang) × PitchFactor
Run = Span / 2; PitchFactor = √(1 + (Rise_12 / 12)²); Rafter = (Run + Overhang) × PitchFactor
  • buildingSpanFt: Building Span (ft)
  • pitchRisePer12: Pitch Rise Per12 (in / 12")
  • overhangFeet: Overhang Feet (ft)

Rounding: Physical unit counts round up to whole packages where appropriate; continuous measurements display to 2 decimal places.

Frequently Asked Questions

How do I turn 17.33 ft into feet and inches for my tape?

Keep the 17 ft and convert the decimal part. Multiply 0.33 by 12 and you get just under 4 inches, so 17.33 ft is about 17 ft 4 in. For finer work, take the remaining fraction of an inch and multiply by 16 to get sixteenths. The result shows two decimals of a foot, which is roughly an eighth of an inch, so it is accurate enough for marking a pattern rafter.

Does the rafter length include the ridge board?

No. The length runs to the centre line of the ridge, as if the two rafters met at a point. With a ridge board between them, each rafter is shortened by half the board's thickness measured level, then adjusted for slope. The deduction is small for a typical ridge board, but it applies to every rafter in the set, so make it before you cut the pattern.

Why does the ridge rise stay at 7 ft when I change the overhang?

Because the overhang sits outside the wall, below the level of the top plate. The ridge rise is the run, half the span, times the rise per foot of the pitch. On the default that is 14 ft times one half, which is 7 ft, whatever the tail length. A longer overhang only makes the rafter longer: 2 ft of overhang gives 17.89 ft instead of 17.33 ft.

My plans give the roof slope in degrees. What do I enter?

Convert the angle to a rise per 12 first. Take the tangent of the angle and multiply by 12. An angle of 26.57 degrees gives 6, so it is a 6:12 roof. An angle of 45 degrees gives 12. The pitch field accepts decimals, so an odd slope such as 32 degrees can be entered as about 7.5, which the calculator reports as 32.01 degrees with a factor of 1.1792.

Can I use this for a lean-to or shed roof with one slope?

Yes, with one change. The calculator halves the span because a gable has two rafters. For a single slope roof, enter twice the real width as the span, so the run comes out equal to the full width. Enter the overhang as normal. The ridge rise line then tells you how much taller the high wall needs to be than the low wall to get that pitch.

Will the calculator work if my drawings are in metres?

It will. Every step is a ratio or a multiplication, so if the span and overhang are both in metres, the rafter length and ridge rise come out in metres too, even though the labels say ft. The pitch is still a rise per 12 units of run and needs no conversion. Do not mix units, for example a span in metres with an overhang in feet.

How much does a steeper pitch add to each rafter?

On the default 28 ft building with 1.5 ft overhang, a 4:12 roof needs a 16.34 ft rafter, 6:12 needs 17.33 ft, 8:12 needs 18.63 ft and 12:12 needs 21.92 ft. Going from 4:12 to 12:12 adds more than 5 ft to every rafter. Steeper roofs also mean more roofing material and taller gable walls, so the cost grows on several fronts at once.

Should I measure span from the inside or outside of the walls?

For common rafters that sit on the wall plates with a seat cut, measure from the outside face of one plate to the outside face of the other. Measuring inside to inside makes the run short by a wall thickness, and every rafter in the set comes out short. Whichever face you choose, measure the overhang from the same face so the two figures line up.

Does this tell me what size lumber to use?

No. The calculator only handles geometry: length, rise, angle and multiplier. Whether a rafter of that length can be a given depth at a given spacing depends on the wood species and grade, the roof covering, snow and wind loads and the local code. Use the span tables your building authority adopts, or ask an engineer, once you know the length from here.

What does the calculator do if I enter a span of zero?

It stops and asks for a building span in feet greater than zero, because a rafter needs a real width to cover. The same applies to a negative value, which is usually a stray minus sign. Once a positive span is in, the result returns; the default of 28 ft gives 17.33 ft with a 6:12 pitch and 1.5 ft of overhang.

How the default 28 ft gable becomes a 17.33 ft rafter

Start with the numbers already filled in: a building 28 ft wide, a 6:12 pitch and an eave overhang of 1.5 ft. The result is a common rafter 17.33 ft long, a ridge that sits 7 ft above the top plate, a slope of 26.57 degrees and a pitch multiplier shown as 1.12.

Here is the chain behind that. A gable roof has two rafters meeting at the ridge, so each one only covers half the span. Half of 28 ft is a run of 14 ft. Add the 1.5 ft of overhang and the rafter has to cover 15.5 ft of level distance from the ridge line to the end of the tail. Multiply that level distance by the pitch multiplier of 1.118 and you get 17.33 ft along the slope.

The ridge rise comes from the run alone. At 6:12 the roof climbs 6 inches for every 12 inches it travels, which is half a foot per foot. Fourteen feet of run times one half is 7 ft. The overhang plays no part in that figure, because the tail hangs outside the wall and below the line of the top plate.

So the default answers a simple question: for a 28 ft wide house at a 6:12 slope, how long is one common rafter measured along its top edge from the ridge centre line to the end of the tail? It is the theoretical line length. The cuts you make at either end, covered further down, change what you actually mark on the board.

What the pitch multiplier is and why the display rounds it

The multiplier is the length of sloped rafter per foot of level run. It comes from Pythagoras: square root of one plus the rise over 12, squared. For 6:12 that is the square root of 1.25, or 1.118. Every foot of horizontal distance needs 1.118 ft of rafter.

Running other pitches through the calculator with the default span and overhang gives a feel for how fast it climbs. A 4:12 roof has a multiplier of 1.0541, an angle of 18.43 degrees and a rafter of 16.34 ft. An 8:12 roof goes to 1.2019, 33.69 degrees and 18.63 ft. A 10:12 roof gives 1.3017 and 39.81 degrees. A 12:12 roof, which is a true 45 degrees, gives 1.4142 and a rafter of 21.92 ft with the ridge 14 ft above the plate.

Notice that the supporting line shows the factor to two decimals, so 6:12 reads as 1.12. The rafter length itself is worked out with the full value. If you take the rounded 1.12 and multiply it by 15.5 yourself, you get 17.36 ft instead of 17.33 ft. That gap is about a third of an inch. It does not sound like much, but it is the kind of error that shows up as a ridge that will not close when you cut a whole set from a pattern. Trust the main result, or use the four-decimal value in the sentence below the answer, which spells it out as 1.118.

The field accepts decimal pitches too. A 7.5:12 roof gives a factor of 1.1792, an angle of about 32 degrees and a rafter of 18.28 ft on the default building.

Overhang is a level distance, not a sloped one

The overhang input is added to the run before the multiplier is applied. That means it is read as a horizontal projection: how far the tail sticks out past the outside face of the wall, measured level, the way you would measure it with a tape held flat from the wall to a plumb line dropped from the fascia.

Change it and the rafter moves by the overhang times the multiplier. With no overhang at all the default rafter is 15.65 ft. With 2 ft of overhang it is 17.89 ft. At 6:12, every foot of level overhang adds about 1.12 ft of board.

The common mistake is to measure the overhang along the underside of an existing rafter tail, which is a sloped length, and type that in. The calculator then applies the slope a second time and the tail comes out too long. On a steep roof the difference grows. If all you have is a sloped tail length, divide it by the multiplier first to get the level figure.

Another trap is where the overhang is measured from. Plans usually give eave projection from the face of the framing or from the face of the finished wall. Sheathing, cladding and fascia boards all add thickness. Decide which face you are measuring from and use the same face when you measure the span, so the two numbers agree.

Span changes the rafter in a straight line

Because the run is half the span, each extra foot of building width adds half a foot of run on each side. At 6:12 that is about 0.56 ft of rafter for every foot of span. The relationship is linear, so it is easy to sanity check.

The lower preset uses a 17 ft building at the same 6:12 pitch and 1.5 ft overhang. The rafter drops to 11.18 ft and the ridge rise to 4.25 ft. The higher preset uses a 42 ft building and gives a 25.16 ft rafter with a ridge rise of 10.5 ft. A rafter that long is past what many people would cut from a single piece of solid sawn lumber, which is one reason wide buildings are usually framed with engineered trusses or with intermediate supports.

Measure the span the way the formula expects. For a common rafter with a seat cut sitting on the plates, span is normally taken from the outside of one wall plate to the outside of the other. If you measure inside to inside, the run is short by the thickness of one wall and every rafter in the set comes out short. Small buildings show this most. On an 8.5 ft shed with a 6:12 pitch and half a foot of overhang the calculator gives a rafter of 5.31 ft, and a wall thickness error there is a big share of the total.

Reading the ridge rise number correctly

The ridge rise of 7 ft on the default is the height of the theoretical rafter line above the top of the wall plate at the centre of the building. It is useful for checking headroom in an attic, for estimating gable end sheathing and siding, and for seeing how tall the finished roof will look from the street.

It is not the same as the height of the top of the ridge board. Real rafters sit on the plate with a birdsmouth cut, so some depth of rafter remains above the plate line at the wall. That extra height, often called the heel or height above plate, lifts the whole roof. The ridge board also has its own depth. Neither of those is in this calculator, so add them yourself if you need the actual peak height for a planning limit or a ceiling height.

Doubling the pitch more than doubles the visual change. At 12:12 the default building's ridge rise is 14 ft, exactly twice the 6:12 figure, because rise per foot doubles. At 4:12 it is 4.67 ft. If a neighbour's roof looks about as tall as it is half wide, it is close to 12:12.

What the length leaves out at the ridge and the tail

The 17.33 ft is measured from the centre of the ridge to the end of the tail along the top edge. That is the number carpenters start from, not the number they cut. Three adjustments usually follow.

First, the ridge board. Two rafters meet against a ridge board rather than touching each other, so each rafter is shortened by half the ridge thickness, measured level, and then converted with the multiplier. A thin board makes only a small change, but it applies to every rafter.

Second, the plumb cut at the top and the tail cut at the bottom. These are angled cuts, so the top edge and bottom edge of the rafter are different lengths. Mark your length on the edge the formula refers to, which is the top edge in the usual layout, or the line where the birdsmouth seat meets the plate if your method measures along the building line.

Third, buying stock. Lumber is sold in set lengths, so a 17.33 ft rafter needs a board longer than that, with some allowance for trimming a bad end. Check the lengths your supplier actually carries before you order a full set.

The calculator also says nothing about rafter size, spacing, species, snow or wind load. Those come from span tables in your building code or from an engineer, not from geometry.

Shed roofs, metric plans and other uses of the same formula

The formula assumes a symmetrical gable, with the run equal to half the span. A single slope shed roof has no ridge in the middle; the rafter covers the full width. You can still use the calculator by entering twice the shed's width as the span, so that the halving step gives you the full width back as the run. The ridge rise line then becomes the height difference between the low wall and the high wall.

Because every step is either a ratio or a multiplication, the units do not matter as long as they match. Type the span and overhang in metres and the rafter comes out in metres, even though the labels say ft. The pitch stays as a rise per 12 ratio, which is unitless. A plan that gives the slope in degrees needs converting first; tan of the angle times 12 gives the rise per 12, and an angle of 26.57 degrees is 6:12.

Hip and valley rafters, jack rafters and the rafters on roofs with two different pitches are a separate calculation. A hip runs diagonally across the plan, so its run is longer than the common run and its multiplier is different. Use this page for the commons only.

Entering a pitch of zero returns a flat rafter of 15.5 ft and a ridge rise of 0 ft, which is just the run plus overhang. That is fine for a quick joist length but is not a roof.

Using the answer on a real framing job

Treat the number as the plan and the building as the truth. Before cutting a full set, measure the actual span at both gable ends and in the middle. Walls are rarely perfectly parallel, and a building that is wider at one end needs rafters that differ slightly in length.

Cut one pattern rafter from the calculated length, with the plumb cut, the birdsmouth and the tail cut all marked. Lift it into place at each end of the building and check that the seat sits flat on the plate and the plumb cut lands where the ridge will be. If it fits at both ends, use it to mark the rest. If not, correct the span you entered and run the numbers again rather than trimming each rafter by eye.

For trusses, the manufacturer does the engineering and supplies the dimensions. The calculator is still handy as a cross check of the overall height and overhang on the drawings, and for working out how tall a gable end wall needs to be.

Finally, check the code. The geometry here is exact, but whether a given rafter size and spacing can carry the roof at that length is a structural question. A long rafter at a low pitch on a snowy site is exactly the situation where the span table matters more than the arithmetic.