Skip to main content

Find your next tool

Construction & DIY Calculators

Rafter Length Calculator — Span, Pitch, Overhang & Rafter Count

Calculate common-rafter line length, roof rise, slope factor, angle, overhang extension and an optional rafter count from span, pitch, ridge thickness, building length and spacing.

Live calculationWorking shownNo sign-in required
Live editable inputs

Change the values and see the calculation update immediately.

Formula and working

The relationship behind the answer stays visible on the page.

Assumptions visible

Rates, dimensions and limitations are kept explicit instead of hidden.

Connected next steps

Move into the next genuinely different calculation without keyword-copy pages.

Editable live calculator

Change any input — the result updates immediately

No hidden assumptions. Inputs, units and the working stay visible so you can check the calculation.

Calculated result

14.465 ft per common rafter

11.9375 ft adjusted horizontal run · 5.9688 ft rise

1.118034 slope factor · 26.565° roof angle

1.118 ft sloped overhang extension

24 rafter positions per side · 48 total common rafters · 694.3 linear ft theoretical line length

Show the working
  1. 1. Gable run = 24 ÷ 2 − 1.5 in ÷ 24 = 11.9375 ft.
  2. 2. Slope factor = √(1 + (6 ÷ 12)²) = 1.118034.
  3. 3. Bearing line = 11.9375 × 1.118034 = 13.347 ft.
  4. 4. Overhang line = 1 × 1.118034 = 1.118 ft; total = 14.465 ft.

Geometry only. Birdsmouth/plumb cuts, ridge details, member sizing, loads and structural capacity are not determined here.

Shared links reopen these inputs; saved calculations stay in this browser unless you clear site data.

The calculation, without hidden assumptions

A common rafter is right-triangle geometry, but practical planning also needs to distinguish building span from horizontal run, account for the sloped overhang and keep any ridge-board deduction visible. This calculator supports a symmetric gable or a single-slope shed, returns the slope factor and roof angle, and can estimate rafter positions from building length and on-center spacing without pretending to size the structural member.

How to use this calculator

1

Choose a simple gable or single-slope shed and enter the horizontal building span.

2

Enter roof pitch as rise per 12, optional horizontal overhang and ridge-board thickness. Ridge deduction applies to the gable run only.

3

If you want a quantity check, enter building length and rafter spacing to estimate positions per side and the total number of common rafters.

Where people use it

  • Shed, porch and simple gable roof geometry
  • Comparing roof pitches and overhang lengths
  • Rough common-rafter lumber quantity planning

Example: 24 ft gable at 6/12 pitch

A simple 24 ft gable has a 12 ft horizontal run before ridge deduction. A 6/12 pitch has a slope factor of about 1.118, so the common-rafter line to the wall is about 13.42 ft before adding overhang.

What the result does not assume

  • The result is geometric line length, not a finished cut list. Birdsmouth, plumb cuts, tail cuts, ridge connection details and field tolerances still need the actual framing layout.
  • This page does not select rafter size, species, grade, spacing or structural capacity. Use the applicable design documents, span tables and professional requirements.

Frequently asked questions

Is the roof run the same as the full building width?+

For a simple symmetric gable, the common-rafter run is approximately half the building span. A shed roof can use the full horizontal span.

Does the overhang add the same number of feet to the rafter?+

No. A horizontal overhang is multiplied by the roof slope factor to get its sloped line length.

Does this calculator size the rafter lumber?+

No. It calculates geometry and an optional count only; structural sizing requires load, span, species/grade and governing requirements.

Semantic next steps

Continue the calculation

These links move to a different input, formula or project stage rather than a keyword variation of this page.

View the full collection →

Roof Pitch Calculator — Rise, Run, Angle & Slope

Convert roof rise and run into pitch per 12, angle in degrees, percent slope and slope factor, with an optional rafter-line geometry result.

Open

Pythagorean Theorem Calculator — Solve a Leg, Hypotenuse & Area

Solve a right-triangle leg or hypotenuse from two known sides, show the substituted equation, area, perimeter and acute angles, and reject impossible side combinations.

Open

Feet and Inches Calculator

Add, subtract, multiply, divide or convert feet and inches, including decimal and fractional inch inputs, with decimal feet and metric equivalents.

Open

Deck Board Calculator — Boards, Fasteners, Linear Feet & Cost

Estimate deck-board rows, linear feet, whole stock boards, board-to-joist intersections, fasteners and optional board cost from deck size, board width, gap, stock length and joist spacing.

Open

Plywood Calculator — Sheets, Waste & Project Cost

Total up to three rectangular sections, apply an editable waste allowance and estimate whole plywood sheets from the exact sheet dimensions and optional price you enter.

Open

Square Footage Calculator

Calculate square footage for rectangles, circles and triangles, convert the area to square meters and estimate cost from a price per square foot.

Open

Board Foot Calculator — Lumber Volume & Cost Basis

Calculate board feet from lumber thickness, width, length and quantity, then add an optional waste allowance for a project tally.

Open

Concrete Calculator — Slab and Cylinder Volume

Estimate concrete volume for a rectangular slab or cylindrical pour in cubic feet, cubic yards and cubic meters, with an optional waste allowance.

Open

More in this calculator collection

Browse nearby calculators in the same topic cluster so related pages reinforce each other instead of sitting as isolated URLs.

Free publisher widget

Put this calculator on your website

Give readers the live calculator without rebuilding the math. Copy the responsive embed in one click, or customize width, height, border and corner radius before publishing. The branded MAXScanner attribution stays visible.

Preview

Keep the result connected to the real job

MAXScanner keeps the formula and assumptions beside the result so you can verify the number before using it in a drawing, estimate, specification, worksheet or document. Where a supplier, manufacturer, drawing or applicable standard owns a requirement, that source remains authoritative.