calculatortoolshub
Runs on your device

Rafter Length Calculator

Compute common roof rafter cut length in feet and inches from building span, pitch rise per 12 in, ridge board deduction, and eave overhang.

Your inputs

Inputs stay on your device.

Your result
10 ft 6.49 in

total rafter length (ft-in)

Total cut length (decimal in): 126.49

View breakdown
Total cut length (decimal in) 126.49
Plumb-to-seat main rafter length 126.49
Angled tail overhang length 0
Net horizontal run (to ridge face) 120
Vertical rise to ridge 40
Pythagorean slope factor 1.0541

What the Rafter Length Calculator Determines

The Rafter Length Calculator computes exact total common roof rafter cut length in both carpentry **feet-and-inches (11 ft 6.35 in) and decimal inches (138.35 in), along with main wall-to-ridge plumb length, diagonal eave overhang tail length, adjusted horizontal run, vertical peak rise, and exact Pythagorean slope factor (1.0000–1.4142+)**.

Clean core inputs take outside wall-to-wall **Building span (ft) and Roof pitch rise (X/12) cleanly up front. When moving from conceptual truss framing to layout saw marks, a neat opt-in ridge & eave toggle applies Horizontal eave overhang (in) and deducts half the Ridge board thickness (1.5 in nominal 2×)** accurately along the ridge centerline.

Verify roof deck surface area and architectural shingle bundle counts from matching pitches inside our pitched roof squares and shingle takeoff.

Common use cases

  • Gable Garage & Shed LayoutsCompute exact 14 ft 10.05 in (16 ft lumber order) cut marks for a 24 ft wide two-car garage framed at 6/12 pitch with 16" overhangs.
  • Quick Net Span ChecksLeave overhangs off when verifying structural rafter run (120 in), peak rise height (40 in), and 4/12 slope geometry (10 ft 6.49 in) inside conceptual shed plans.
  • Steep Attic Habitable FramingCheck exact 9/12 or 12/12 ridge board vertical height (143.44 in, nearly 12 ft peak) across 32 ft clear-span colonial gables before sizing lumber depth.
  • Porch & Carport Roof ExtensionsCheck slope factors accurately when sizing overhang projection rafter tails past exterior beam posts.

How Right-Triangle Run, Rise, and Slope Factor Formulas Work

Gable carpentry translates total exterior building span cleanly into half-span horizontal run, deducts half the structural ridge board width (÷ 2), calculates vertical peak rise from X/12 slope pitch, multiplies horizontal distances by the Pythagorean slope factor (sqrt(Pitch² + 12²) ÷ 12), and sums main line length with eave overhang tail.

Adjusted Run (in) = (Building Span_ft × 6) − (Ridge Board Thickness_in ÷ 2) Vertical Rise (in) = Adjusted Run × (Pitch Rise ÷ 12) Slope Factor = sqrt(Pitch Rise² + 144) ÷ 12 Main Rafter (in) = Adjusted Run × Slope Factor Overhang Tail (in) = Horizontal Overhang × Slope Factor Total Cut (in) = Main Rafter + Overhang Tail
  • Building Span (buildingSpan): Total horizontal exterior wall-plate to opposite wall-plate width in feet (0.1 to 200 ft; halved automatically for symmetric ridges).
  • Roof Pitch Rise (pitchRise): Vertical inches of rise per 12 inches of horizontal run (0 flat, 4 typical ranch, 6–9 gable, 12 steep 45°).
  • Eave Overhang & Ridge Thickness (Optional): Collapsed cleanly (0 in) by default inside eaveAndRidge; subtracts half ridge thickness (0.75 in on a 1.5" 2× ridge) and projects horizontal soffit width down along the angled rafter tail.

Roof framing rules under International Code Council — IRC Section R802 Roof Framing specify minimum ridge-board depth (always at least as deep as the plumb cut of intersecting common rafters) and solid wall-plate bearing contact.

Estimate rain gutter trough profiles and downspout counts hanging directly off calculated eave overhangs inside our Gutter Calculator.

How to Lay Out Birdsmouth Marks and Plumb Cuts Cleanly

Note carefully that mainRafterLength runs diagonally from ridge plumb-cut face straight down to the **outer exterior wall corner (birdsmouth heel)**—meaning angled tail fascia plumb cuts add only overhangLength past the heel, rather than extra uncounted inches.

  1. Measure Exterior Wall-to-Wall Span: Measure outside sheathing-to-sheathing width (ft), checking both gable ends so out-of-square plates are discovered early.
  2. Enter Pitch Rise (X/12): Set vertical inches per 12 in horizontal run (4/12 standard ranch, 6/12–8/12 residential snow climates).
  3. Toggle Ridge Board Deduction & Overhang: Enable Deduct ridge board & add overhang, setting 1.5 in (2× dimensional ridge) and planned horizontal soffit projection (12"–18").
  4. Mark HAP, Heel Plumb Line & Test One Pattern Rafter: Set a framing square at (Pitch, 12) to scribe ridge plumb line, step down mainRafterLength, mark birdsmouth seat (HAP, height-above-plate), and dry-fit two test rafters against a ridge scrap before gang-cutting 30 sticks.

Never cut two opposite slopes symmetrically without measuring exact ridge centerline straight up between outer wall top plates; slightly out-of-plumb walls need individual field trimming at the peak.

Once gable roof pitch and ridge heights are confirmed, carry the triangle dimensions into the exterior house siding square estimator to order wall cladding.

Worked numerical examples

Net 20 ft Span (4/12 pitch, eave & ridge toggle off)

run = 120 in, slopeFactor = 1.0541, 120 × 1.0541 = 126.49 in

Result10 ft 6.49 in (40.00 in vertical peak rise)
24 ft Two-Car Garage (6/12 pitch, 1.5" ridge board, 16" overhang)

run = 144 − 0.75 = 143.25 in × 1.1180 = 160.16" main + 17.89" tail

Result14 ft 10.05 in (178.05 in, buy 16 ft lumber)
32 ft Colonial Gable (9/12 exact 3-4-5 triangle 1.2500×, 1.5" ridge, 18" overhang)

191.25 × 1.25 = 239.06" + 22.50" tail

Result21 ft 9.56 in (261.56 in cut length)
2026 Common Roof Rafter Span, Pitch, Rise & Lumber Cut Scenarios
2026 Common Roof Rafter Span, Pitch, Rise & Lumber Cut Scenarios
Residential Roof Framing ScenarioBuilding Span & PitchOverhang / Ridge BoardAdjusted Run / RiseMain RafterTotal Cut Length (Decimal)Min Lumber Order
Compact Backyard Storage Shed12 ft · 3/12 pitch (1.0308×)12 in / 1.5 in71.25" / 17.81"73.44 in7 ft 1.81 in (85.81")8 ft board
Net 20 ft Span Geometry (Eave Off)20 ft · 4/12 pitch (1.0541×)0 in / 0 in120.00" / 40.00"126.49 in10 ft 6.49 in (126.49")12 ft board
Classic 20 ft Ranch Gable (+Eave)20 ft · 4/12 pitch (1.0541×)12 in / 1.5 in119.25" / 39.75"125.70 in11 ft 6.35 in (138.35")12 ft board
Standard 24 ft Two-Car Garage24 ft · 6/12 pitch (1.1180×)16 in / 1.5 in143.25" / 71.63"160.16 in14 ft 10.05 in (178.05")16 ft board
Steep 28 ft Cape Cod Framing28 ft · 8/12 pitch (1.2019×)18 in / 1.5 in167.25" / 111.50"201.01 in18 ft 6.64 in (222.64")20 ft board
Deep 32 ft Colonial Roof Span32 ft · 9/12 pitch (1.2500×)18 in / 1.5 in191.25" / 143.44"239.06 in21 ft 9.56 in (261.56")22–24 ft board

Birdsmouth Cuts, Slope Multipliers, and Wall Thrust Resistance

Safe stick-framed roofs pair exact diagonal geometry with code-compliant top-plate notches and horizontal tension ties.

Framing Square Ratio (Pitch : 12) & Classic 9/12 (1.25)

Every carpenter recognizes 9/12 pitch as an exact 3-4-5 right triangle (9-12-15, 15 ÷ 12 = 1.2500 clean multiplier), making layout checks quick across speed squares and chalk lines.

Birdsmouth Seat Bearing & Maximum Notch Depth (<= 1/3 Depth)

A clean horizontal birdsmouth seat (1.5"–3.5" bearing over the wall top plate) transfers vertical roof snow load downward safely without slicing away structural bending depth over the wall face (<= 1/4–1/3 board depth maximum).

Collar Ties vs. Rafter Ties (Preventing Wall Spread)

Upper-third 1×4 collar ties hold rafters together against storm wind uplift, whereas horizontal bottom 2×6/2×8 ceiling joists or rafter ties sitting at plate level actually prevent outward triangle thrust from bowing exterior walls outward.

Fascia Tail Plumb Trim Margin (2–3 Inches)

Because diagonal tail ends finish with a plumb vertical cut (and sometimes a perpendicular soffit return notch), buying 16 ft stock lumber (192") for a 178" (14' 10") garage rafter leaves comfortable 14" trim room for angled fascia squareness.

Why Pair Decimal Inches With Carpenter Feet-Inches

Displaying decimal inches alongside ft-in tape marks avoids conversion mistakes between engineering formulas and jobsite tape measures.

  • Clean Half-Ridge Adjustment: Subtracts ridgeThickness ÷ 2 automatically along horizontal run rather than erroneously deducting along the diagonal slope.
  • Exact Eave Projection Scaling: Translates horizontal soffit width (12" or 16") cleanly along diagonal slope factor.
  • Vertical Peak Height Output: Reports rafterRise directly so installers confirm clear attic headroom and ridge board stand heights right away.
  • Zero Server Telemetry: Runs trigonometric framing math locally inside browser memory.

When framing a pitched roof around a flue penetration, confirm minimum height above the ridge and slope clearance with the Chimney Calculator.

Structural Span Sizing and Complex Roof Exclusions

Lumber structural sizing (2×8 vs. 2×10 vs. 2×12 #2 SPF or Douglas Fir), 16" vs. 24" on-center spacing, hip/valley diagonals, and sub-fascia trims depend on regional ground snow loads outside pure geometry.

  • Lumber Depth Selection (Span Tables): Pure geometric cut length cannot certify whether a 2×8 or 2×10 board carries 40 psf northern snow load across a 14 ft span—always verify regional IRC Table R802.4.1 lumber span tables.
  • Diagonal Hip & Valley Ratios (17" Base): Corner hip and valley rafters advance 16.97" horizontally for every 12" of common run, requiring dedicated sqrt(Pitch² + 16.97²) calculations and cheek plumb angles.
  • Gable Studs & Soffit Lookouts: Rake gable-end ladder outriggers, sub-fascia 2×6 boards, and vertical attic gable studs price separately from common field rafters.
  • Calculates pure geometric cut dimensions only; does not verify structural bending stiffness, snow-load deflection, species/grade (#2 SPF vs. DF), or on-center spacing (16" vs. 24" OC) against IRC R802 span tables.
  • Restricted strictly to symmetric common gable roofs; corner hip/valley rafters (17" unit base) and full-width single-slope shed roofs require separate geometry adjustments.
  • Does not compute birdsmouth seat notch depth (HAP), fascia square-cut angle waste margin, or ridge board dimensional depth minimums.

Verify formula clarity and zero-network privacy protections in How It Works.

Frequently asked questions

Why do framers subtract half the ridge board thickness before cutting a rafter?

Half of total outside building span measures horizontally to the center line of the roof ridge. Because common rafters plumb-cut against the face of a 1.5-inch (2x nominal) wooden ridge board rather than meeting at zero thickness, carpenters deduct 0.75 in (half ridge thickness) from net horizontal run before calculating cut length.

How does horizontal overhang convert into diagonal rafter tail length?

A soffit eave projection measured horizontally outward from the wall plate becomes longer along the angled rafter slope. Multiplying horizontal overhang (e.g., 12 in or 16 in) by the Pythagorean slope factor converts soffit projection cleanly into diagonal rafter tail inches.

What is a roof slope factor and how is it calculated from X/12 pitch?

The slope factor equals the square root of (Pitch² + 12²) divided by 12—or diagonal hypotenuse inches per horizontal foot divided by 12. Common values are 1.0541 for a 4/12 pitch, 1.1180 for 6/12, and 1.4142 for a 45-degree 12/12 pitch.

How deep can you notch a birdsmouth seat cut into a 2x8 or 2x10 rafter?

Under residential carpentry rules and IRC framing guidelines, horizontal birdsmouth seat depth must rest cleanly over the double wall top plate (at least 1.5 in bearing) without cutting the vertical heel notch deeper than roughly one-third (or ideally 1/4) of total rafter member depth so the tail never splits.

What lumber stock length should I order from the calculated rafter length?

Commercial dimension lumber sells in even 2-foot lengths (8, 10, 12, 14, 16, 18, 20 ft). Always order the next standard even board length longer than total rafter length plus extra margin for diagonal plumb-cut angle trim at both ends.

Can this calculator size hip, valley, or uneven asymmetric shed rafters?

No. This calculator models symmetric centered common gable rafters where horizontal run equals half the building span. Corner hip/valley rafters run on a 17-inch diagonal base rather than 12, while shed rafters span the full horizontal building width across one single wall-to-wall slope.

Ready to use

Loading tools…