BuildCalcWorksMeasure. Calculate. Build.

Rafter Length Calculator

Find the geometric rafter length from a horizontal run, a building span or a rise and run, with optional ridge-thickness and overhang adjustments — plus rise, roof angle, percent slope and pitch multiplier in feet and inches or metric.

  • Free
  • No signup
  • Metric & Imperial

Rafter geometry

Calculate rafter length from

Run is the horizontal distance from the wall line toward the ridge — not the sloped rafter length.

Roof pitch entered as
: 12

Pitch conversions come from the same shared engine as the Roof Pitch Calculator, so all BuildCalcWorks roofing tools agree.

RidgeRun 12 ft (12.00 ft)Rise 6 ft (6.00 ft)Rafter 13 ft 5 in (13.42 ft)Wall
Symmetrical gable: each rafter run is half the span, before any ridge-thickness adjustment. Schematic — not to scale.

Rafter length result

Ready when you are

Enter a run, a building span or a rise and run, add your roof pitch, then select Calculate for rise, angle, pitch multiplier and geometric rafter length in feet and inches or metric.

Roof work and direct roof measurement can involve fall hazards. Use plans, safe measurement methods, or qualified professionals where appropriate.

How Do I Calculate Rafter Length?

A rafter, its run and its rise form a right triangle, so the geometric rafter length is the hypotenuse.

Rafter Length = √(Rise² + Run²)

Rise = Run × Slope Decimal

Rafter Length = Run × √(1 + Slope²) = Run ÷ cos(Angle)

These are the same equivalent right-triangle relationships used by current rafter calculators. A 12 ft run at 6:12 gives a 6 ft rise and a rafter of √(12² + 6²) ≈ 13.4164 ft, which is about 13 ft 5 in.

Rafter length is not rafter sizing. Rafter length is not the same as rafter sizing. This calculator estimates geometric length only; required lumber dimensions, species, grade, spacing and allowable span depend on loads, construction and applicable codes or engineering.

What Is Rafter Run?

Rafter run is the horizontal distance from the wall or support line toward the ridge, for the roof section being calculated. It is never the sloped rafter length.

For a simple symmetrical gable roof, the run is about half the span before any ridge-thickness adjustment. For a single-slope shed roof, the run may equal the full horizontal span.

Roof Span vs. Rafter Run

  • Span — the full horizontal width between the supports.
  • Run — the horizontal distance covered by one sloping rafter section.

Symmetrical gable: Run = Span ÷ 2

24 ft span → 12 ft run

Single slope / shed: Run = Full Span

The calculator never halves the span for a shed roof, because there may be no centered ridge condition.

Rafter Length from Roof Pitch

Run 12 ft · Pitch 6:12 · Multiplier 1.118034

Rise = 12 × 0.5 = 6 ft

Rafter = 12 × 1.11803413.42 ft

The multiplier comes from the shared pitch engine, so it matches the Roof Pitch Calculator and the Roof Square Footage Calculator exactly.

Rafter Length from Rise and Run

If both dimensions are already known, no pitch conversion is needed first — the length is simply √(Rise² + Run²). A 5 ft rise over a 12 ft run is exactly 13 ft, which corresponds to a 5:12 pitch.

Rafter Length from Degrees

Rafter Length = Run ÷ cos(Roof Angle)

10 ft run at 30° → 10 ÷ cos(30°) ≈ 11.5470 ft

Rise = 10 × tan(30°) ≈ 5.7735 ft

Adding a Rafter Overhang

A horizontal overhang must be converted into sloped length — a 2 ft horizontal overhang is not 2 ft of rafter on a pitched roof.

Sloped Overhang = Horizontal Overhang × Pitch Multiplier

2 ft × 1.1180342.2361 ft at 6:12

Total Length = Main Rafter + Sloped Overhang ≈ 15.6525 ft

If you already know the sloped tail length, enter it directly in Advanced Options instead, and it is used without conversion.

Ridge Board or Beam Thickness

For a symmetrical roof, the centerline run may need adjusting when you want the geometric length to the side of a ridge member. When a ridge thickness is entered, BuildCalcWorks subtracts half its width from each half-span run.

Adjusted Run = (Span ÷ 2) − (Ridge Thickness ÷ 2)

24 ft span, 1.5 in ridge → 12 ft − 0.75 in = 11 ft 11 1/4 in

Geometry adjustment only. Half the entered ridge thickness is removed from each half-span run. BuildCalcWorks does not determine whether a ridge board or structural ridge beam is required, or what size it should be.

Rafter Length vs. Rafter Size

Rafter length is geometry. Rafter size is structural design. A 14-foot-long rafter does not by itself tell you whether a 2×6, 2×8, 2×10 or another member is appropriate.

Structural sizing depends on loads, species, grade, spacing, supports and local requirements. BuildCalcWorks does not determine any of these, and this calculator does not calculate rafter spacing, loads, birdsmouth or cut dimensions, bearing or code compliance.

Measuring Roof Geometry Safely

Roof work and direct roof measurement can involve fall hazards. Use plans, safe measurement methods, or qualified professionals where appropriate.

  • Building plans and drawings
  • Known building dimensions
  • Attic or framing dimensions where they are safely accessible
  • Ground-based measurements
  • Existing construction documentation
  • A qualified professional

Disclaimer: Geometry calculator only. This tool estimates rafter length from dimensions and roof pitch; it does not determine structural rafter size, allowable span or code compliance. Read full Disclaimer.

How BuildCalcWorks calculations are created →

Convert or check your roof pitch

Frequently Asked Questions

Tools & Materials for Your Project

Helpful products and materials related to this calculation.

Disclosure: BuildCalcWorks may earn a commission from qualifying purchases made through links on this page, at no additional cost to you.

Example Tool

Framing Squares product recommendation placeholder

Example Tool

Speed Squares product recommendation placeholder

Example Tool

Measuring Tapes product recommendation placeholder

Example Tool

Laser Distance Meters product recommendation placeholder

Example Tool

Levels product recommendation placeholder

Example Tool

Angle Finders product recommendation placeholder

Example Tool

Marking Tools product recommendation placeholder

Example Tool

Circular Saws product recommendation placeholder

Example Tool

Framing Tools product recommendation placeholder

Example Tool

Safety Equipment product recommendation placeholder

Flooring

How to Calculate Square Footage for Flooring

Learn how to calculate square footage for flooring, measure rooms correctly, account for irregular areas and add waste before ordering flooring materials.

Read guide

Flooring

How Much Extra Flooring Should You Buy?

Learn how much extra flooring to buy for cuts and waste, when to use 5%, 10% or 15%, and how to calculate boxes for your flooring project.

Read guide