Roof Rafter Length Calculator | Pitch, Cuts & Overhang

Roof Rafter Length Calculator

Estimate common, hip, or valley rafter length from span or run, pitch, overhang, ridge thickness, birdsmouth allowance, and framing cut angles.

🔧Real Rafter Presets

Choose a common roof framing scenario, then adjust the numbers for your layout.

📐Roof And Cut Inputs

Imperial uses feet and inches; metric uses meters and millimeters.
Hip and valley rafters use diagonal plan run plus the same pitch rise.
Outside wall to outside wall width. Run defaults to half span minus ridge deduction.
Leave 0 to calculate from span and ridge thickness.
Example: 6 means a 6/12 roof pitch.
Measured horizontally from wall line to fascia or tail end.
Half this thickness is deducted horizontally at the ridge for common rafters.
Extra stock or layout allowance around seat and heel cuts.
Extra trim allowance for fascia, plumb tail cuts, or field fitting.
Used for roof/spec grid and layout notes.
Calculates total board length before trimming and waste.
Applies only to total stock length, not the individual theoretical rafter length.

Rafter Cut Length

0 ft 0 in

stock length before final trim

Theoretical Line Length

0 ft 0 in

ridge to tail along rafter line

Slope Factor

1.118

per horizontal foot of run

Plumb / Seat Cuts

63.4 / 26.6

degrees from square edge

Rise At Ridge

0 ft 0 in

vertical rise over selected run

Total Stock With Factor

0 ft

quantity plus selected layout factor

Calculation Breakdown

🏠Roof / Spec Grid

6/12

Roof pitch

9.94 ft

Calculated run

Common

Rafter type

16 in

Spacing

📊Reference Tables

Common pitch slope factors and saw angle references.

Pitch Common Factor Hip / Valley Factor Seat Cut Angle Plumb Cut Angle
2/121.0141.4249.5°80.5°
3/121.0311.43614.0°76.0°
4/121.0541.45318.4°71.6°
5/121.0831.47522.6°67.4°
6/121.1181.50026.6°63.4°
8/121.2021.56333.7°56.3°
10/121.3021.64139.8°50.2°
12/121.4141.73245.0°45.0°

Rafter type factors assume a rectangular roof and 45° hip or valley plan angle.

Rafter Type Plan Run Basis Best Use Length Note
CommonRun onlyGable raftersShortest main rafter
HipRun × 1.414Outside roof cornersLonger diagonal line
ValleyRun × 1.414Inside roof cornersLonger diagonal line
JackVarying runHip and valley infillUse spacing reductions

Birdsmouth and ridge details affect layout marks, bearing, and field fit.

Detail Typical Value Calculator Input Framing Check
2x ridge board1.5 inRidge thicknessDeduct half at top
Birdsmouth seat3.5 in max seatAllowance onlyKeep bearing full
Heel cut depthOften 1/4 depthLayout allowanceDo not over-notch
Tail trim1-2 inTail allowanceTrim after dry fit

Example roof sizes for checking span, pitch, overhang, and stock length expectations.

Roof Scenario Span Pitch Overhang Typical Rafter
Garden shed12 ft4/1212 inCommon 2x6
Garage gable20 ft5/1216 inCommon 2x8
Porch roof10 ft3/1218 inCommon 2x6
Hip roof24 ft6/1218 inHip 2x10
Dormer valley14 ft9/1212 inValley 2x8

💡Framing Tips

Tip: Mark the theoretical rafter line first, then add birdsmouth and tail allowances to the stock length so layout marks stay readable.
Tip: Hip and valley rafters use longer diagonal plan geometry; do not reuse the common rafter factor unless the rafter is common.
Safety note: Verify span, snow, wind, bearing, connector, and notch limits with local code or an engineer. Always use fall protection and never cut structural rafters beyond allowed notch limits.

There’s an empty roof frame, a stack of lumber, and a tape measure in your hand. You know the pitch. You know the lengths. Somehow, you need translate those two numbers; how high and how wide, to one number: the length of that lone diagonal board. And then you feel like you’re doing magic until you remember it’s all geometry. It’s nothing but Pythagorean theorem. The catch is that once you’ve sawed through a twenty-foot 2×10, there will be no do-over, so you’d better know what to enter into that calculation for the first time.

The first step for most do-it-yourselfers begin with measuring building’s span, followed by an educated guess regarding rafter length based off the span width. And here’s where it all gets slippery: When calculating your rafter length, you must also consider ridge board thickness; it runs along the peak and therefore consumes some portion of your horizontal run. A standard 2×6 ridge board has a nominal thickness of one-and-a-half inches. Half of that will extend outwards from the centerline… A fact that reduces your run, and thus what your rafter must cover. Without accounting for this deduction, each individual rafter become an overpriced, slightly-too-long piece of firewood. Once you enter the ridge dimensions into our calculator, it’ll handle those deductions for you, no more mental gymnastics required (i.e., you don’t have to subtract fractions in your head while wielding a circular saw).

How to Calculate Roof Rafter Lengths

And what about rise per twelve inches of run, also known as pitch? Most roofs is built with a six-on-twelve pitch. Why? It provides just enough slope so water drains off, while still having a reasonable angle for framing. Anything steeper than this are harder to build and means very tall walls. Everything about the cut is determined by the angle. The greater the pitch, the more quickly the diagonal increases different than the flat run. Enter the slope factor. On a six-on-twelve roof, your rafter is approximately one point one eighteen times longer then the horizontal distance covered. That sounds like a subtle difference, but over a span of ten feet it’s almost two inches. Miss it and the roof won’t look even from the street, not something you want on your conscience. Visible errors haunt you for years. Make that adjustment.

A second wrinkle: there is two additional types of rafters called hip and valley. These go diagonally across the corner of building plan instead of straight out from the wall. Because they’re so long (diagonals) on spans where common rafter would be relatively short, you can’t just substitute one for the other; you have to recalculate everything. The software recognize which type you use and adds the proper multiplier to the math to achieve flush joints at both the eave and ridge. If not, your boards won’t hit the fascia, or there will be an awkward splice. Underestimating how much longer a rafter must run are easy to do.

Accuracy also trumps brute force in Birdsmouth cuts. Also known as the seat cut, it’s where the rafter lay flat against the wall plate. Ideally, leave plenty of wood standing at the heel to offer good bearing. Typically, keep birdsmouth cuts to no deeper than a quarter of the thickness of the piece of lumber. Too deep and the top chord becomes weaker; too little and there will be a gap compromising stability. Account for this layout by giving yourself a little leeway when initially calculating length, meaning your rafter will have structural integrity without feeling visually short.

The last reality check is waste factors. If this were a perfect world, every board would be straight and every cut would be clean. But we don’t live in a moddern world. Measurements get skewed, boards warp, and saw blades bind. To account for all these inevitable errors add a waste factor (10-15%) to the total amount of stock you’ll need. Underestimating the messiness of field fitting is no excuse for making another trip back to the supply yard… It’s better to lean on the side of caution by purchasing additional luminber at the start.

This isn’t about calculating a number; it’s about visualizing the complete assembly process from start to finish. Once you have an understanding of how each input impacts final board length, there will be no more guesswork and only building with intent. This shift in mindset transforms a chaotic pile of lumber into a structured, weather-tight roof that holds up to your expectations and the elements.

Roof Rafter Length Calculator | Pitch, Cuts & Overhang

Author

  • Thomas Martinez

    Hi, I am Thomas Martinez, the owner of ToolCroze.com! As a passionate DIY enthusiast and a firm believer in the power of quality tools, I created this platform to share my knowledge and experiences with fellow craftsmen and handywomen alike.

Leave a Comment