Roof Rafter Calculator

Roof Rafter Calculator | Estimate Rafter Length, Rise, Run, Pitch & Cuts
Roof Rafter Calculator • Length, Rise, Run, Pitch Angle & Count

Roof Rafter Calculator

Calculate roof rafter length, roof rise, horizontal run, pitch angle, overhang length, total board length, rafter count, roof area, birdsmouth planning values, lumber quantity, and material cost for gable, shed, lean-to, garage, porch, and simple roof framing projects.

Calculate Rafter Length

Outside wall-to-wall span, feet
Enter a valid span greater than 0.
Length along ridge/eave, feet
Enter a valid roof length greater than 0.
Rise in inches per 12 inches of run
Used to estimate rafter count
Advanced Options
Horizontal overhang beyond wall, feet
Subtracts half thickness from run on gable roofs
Optional local lumber price
Planning seat cut width in inches

Your Rafter Estimate

Common Rafter Length0 ft
Roof Rise0 ft
Rafter Count0
Estimated Cost$0
Important: This calculator estimates geometry and material quantities only. Rafter size, species, grade, span capacity, snow load, wind uplift, collar ties, ceiling joists, ridge beams, connections, and code compliance must be verified separately.

Formula used:

Practical recommendation:

Quick Formula Box

Gable rafter run = building span ÷ 2 - ridge board thickness ÷ 2

Shed / lean-to rafter run = building span

Pitch factor = √(1 + (pitch ÷ 12)²)

Roof rise = run × (pitch ÷ 12)

Common rafter length = run × pitch factor

Overhang rafter length = overhang × pitch factor

Total rafter board length = common rafter length + overhang rafter length

Rafter count = ceil((roof length × 12) ÷ spacing in inches) + 1, multiplied by roof sides

The calculator uses right-triangle geometry. The horizontal run and vertical rise form the two legs of the triangle, while the rafter is the sloped hypotenuse.

Roof Rafter Reference Table

Rafter ItemCommon UnitTypical Formula / MeaningBest UseCommon Mistake
RunFeetHorizontal distance from wall to ridgeRafter geometryUsing full building width for each side of a gable roof.
RiseFeetRun × pitch ÷ 12Roof height and slope planningConfusing rise with rafter length.
PitchRise per 12 in runExample: 6/12 rises 6 inches per footRoof slope selectionMixing pitch ratio and angle degrees.
Pitch angleDegreesatan(pitch ÷ 12)Saw settings and layout referenceUsing degrees where pitch ratio is required.
Common rafterFeetRun × pitch factorMain sloped framing memberForgetting ridge board adjustment.
Overhang lengthFeetOverhang × pitch factorEave extension planningAdding horizontal overhang instead of sloped overhang length.
BirdsmouthInchesSeat cut rests on wall plateLayout planningCutting too deep and weakening the rafter.
Rafter spacingInches on center12, 16, or 24 inches commonRafter count and load planningChoosing spacing without checking span tables and load.

How to Use the Roof Rafter Calculator

Enter the building width or roof span. For a gable roof, the calculator uses half the span for each rafter side.
Enter roof length along the ridge or eave. This determines the number of rafters needed at the selected spacing.
Choose roof pitch. Pitch controls roof rise, rafter length, pitch angle, and roof surface area.
Choose rafter spacing. Use 16 or 24 inches on center only when it is appropriate for the load, span, lumber, and code.
Select the roof type. Gable uses two roof sides, while shed and lean-to use one roof plane.
Open Advanced Options to include overhang, ridge board adjustment, waste allowance, seat cut planning, board length rounding, and lumber price.

Roof Rafter Calculator Guide

A roof rafter calculator helps estimate the geometry and material quantities for a framed roof. Rafters are sloped framing members that run from the wall plate to the ridge, ridge beam, or upper support. They define the roof slope, support roof sheathing and covering, and transfer loads into the walls or beams below.

This calculator estimates common rafter length, roof rise, horizontal run, pitch factor, roof pitch angle, overhang length, total board length, rafter count, roof area, board length to buy, material quantity, and cost. It is useful for shed roofs, lean-to roofs, garages, porches, small cabins, additions, and simple gable roof planning. It is not a structural span calculator and does not replace code tables or engineering.

What This Roof Rafter Calculator Does

The calculator uses building width, roof length, roof pitch, rafter spacing, roof type, overhang, ridge board thickness, waste allowance, and lumber price to estimate rafter geometry and quantity. The default workflow needs only four primary inputs: building width, roof length, pitch, and spacing. Advanced settings allow more refined planning without overwhelming first-time users.

The results show common rafter length, roof rise, pitch angle, rafter count, board length to buy, roof area, total linear feet of rafter lumber, approximate material cost, formula used, interpretation, and practical recommendation. These outputs are designed to help users understand both the math and the material implications.

Why Rafter Length Matters

Rafter length affects lumber ordering, roof height, roof area, sheathing quantities, roofing quantities, eave overhang, fascia placement, birdsmouth layout, ridge height, and roof appearance. A small error in run or pitch can create rafters that are too short or too long. That can lead to poor fit, uneven eaves, wasted lumber, and delays.

Rafter length is also tied to safety and performance. A long rafter may require a larger lumber size or closer spacing depending on species, grade, load, and span. A roof in a heavy snow area may need stronger rafters than the same roof in a mild climate. Geometry is only one part of a safe roof design.

Key takeaway: this calculator gives rafter geometry and material estimates. Final rafter size and spacing must be checked against span tables, local loads, and code requirements.

Rafter Length Formula Explained

A rafter is the hypotenuse of a right triangle. The run is the horizontal leg, and the rise is the vertical leg. Roof pitch tells you how much the roof rises for every 12 inches of horizontal run.

The roof rise is:

Rise = run × pitch ÷ 12

The pitch factor is:

Pitch factor = √(1 + (pitch ÷ 12)²)

The common rafter length is:

Common rafter length = run × pitch factor

For example, a gable roof with a 24-foot span has a 12-foot run before ridge adjustment. With a 6/12 pitch, the pitch factor is about 1.118. The common rafter length is about 13.42 feet before overhang and layout allowances. If the eave overhang is 1 foot horizontally, the sloped overhang length is about 1.12 feet, making the total board length about 14.54 feet before rounding to a stock board length.

Gable Roofs, Shed Roofs, and Lean-To Roofs

For a gable roof, each rafter usually spans from an exterior wall to the ridge, so the run is about half the building span. If a ridge board is used, half the ridge board thickness is often subtracted from the run for layout. For a shed roof or lean-to roof, the rafter may span the full horizontal width from low wall to high wall, so the run is usually the full building width.

A lean-to roof is often similar to a shed roof but attached to an existing wall or building. Wall flashing, ledger attachment, uplift resistance, and water management are important. The calculator estimates geometry, but attachment details must be designed correctly.

Did you know? A 6/12 roof pitch has an angle of about 26.6 degrees. Pitch and angle describe the same slope, but framing calculators usually use pitch because it is easier to measure in the field.

Practical Applications

Homeowner and DIY Uses

Estimate rafter length for sheds, porch roofs, garages, and lean-to roofs.
Convert roof pitch into rise, angle, and sloped rafter length.
Plan overhang length, board length, and rough lumber cost.
Compare 16-inch and 24-inch rafter spacing for quantity planning.

Contractor and Builder Uses

Create fast framing takeoffs for simple roof projects.
Estimate rafter count, total linear feet, and roof area.
Prepare early material lists before detailed layout.
Use related tools for roof pitch, sheathing, roofing, trusses, beams, and fasteners.

Common Mistakes to Avoid

A common mistake is using full building width as the run for a gable roof. For a symmetrical gable roof, the run is usually half the span, not the full span. Another mistake is adding the horizontal overhang directly to the rafter length. Overhang should also be adjusted by the pitch factor because it follows the roof slope.

Another mistake is ignoring the ridge board or ridge beam. A ridge board is not the same as a structural ridge beam. A ridge board mainly provides a nailing surface for opposing rafters, while a ridge beam supports vertical roof loads and needs proper sizing and supports. The calculator allows a small ridge thickness adjustment, but the structural role must be determined separately.

Users also sometimes cut birdsmouth notches too deep. A birdsmouth should provide bearing on the wall plate without removing too much rafter depth. Excessive notching can weaken the rafter. Check code guidance, span tables, and framing details before cutting.

Expert Recommendations

Use this calculator for geometry and material planning, then verify rafter size, spacing, lumber species, grade, snow load, live load, dead load, wind uplift, roof sheathing span rating, ceiling joists, collar ties, rafter ties, ridge beam requirements, bearing length, fasteners, and connectors. For habitable structures, permits and inspections may be required.

For best results, measure the actual span carefully, confirm the pitch, decide whether the roof uses a ridge board or ridge beam, and create a layout plan before cutting. When possible, make a test rafter pattern from one board, verify fit, then use it as a template for the remaining rafters.

Conclusion

This roof rafter calculator estimates rafter length, rise, run, pitch angle, overhang length, board length, rafter count, roof area, total lumber length, and cost. It is ideal for early planning of simple gable, shed, and lean-to roof framing projects. For final construction, always verify structural capacity, span limits, code requirements, connections, and roof load conditions before cutting or installing rafters.

Roof Rafter Calculator FAQ

Find the horizontal run, multiply it by the pitch factor, then add the sloped overhang length if needed. Pitch factor is √(1 + (pitch ÷ 12)²).
Rafter run is the horizontal distance from the outside wall to the ridge or upper support. For a simple gable roof, it is usually half the building span.
Multiply the rafter run by the pitch divided by 12. For a 12-foot run at 6/12 pitch, the rise is 6 feet.
For a symmetrical gable roof, the run is about 12 feet. At 6/12 pitch, the common rafter length is about 13.42 feet before overhang and ridge adjustment.
Yes. The horizontal overhang should be multiplied by the pitch factor because the overhang follows the roof slope.
Divide roof length in inches by rafter spacing in inches, round up, and add one. For a gable roof, multiply by two roof sides.
A birdsmouth is a notch that lets the rafter sit on the wall plate. It usually includes a seat cut and heel cut.
Avoid cutting too deep because it can weaken the rafter. Check code guidance, span tables, and structural requirements before cutting.
A ridge board mainly aligns opposing rafters. A ridge beam is structural and carries roof loads to supports. They are not interchangeable.
No. It estimates geometry and quantity only. Lumber size must be checked against span tables, loads, species, grade, spacing, and local code.
Yes. Select Shed or Lean-To so the calculator uses the full span as the run instead of half the span.
No. It provides planning estimates only. Final framing should be verified by code, span tables, structural details, and professional review where required.