Skip to main content

Rafter Calculator

Plan rafter framing in minutes. Enter building width, length, roof pitch, eave overhang, and on-center spacing — and this rafter calculator returns line length, total rafter length including the tail, rafter count per side, ridge board length, and total board footage to order.

Mason Rivera portraitReviewed by , Founder & Estimation Lead
Last reviewed

Building & Pitch

Wall-to-wall width — the rafter span is half this value.

Length of the ridge — used to count rafter pairs.

Enter 6 for a 6:12 pitch, 8 for 8:12, etc.

Eave overhang past the wall plate.

Results appear here

Enter building dimensions, pitch, and OC spacing, then click Calculate Rafters to see length, count, and ridge board footage.

How the Rafter Calculator Sizes a Stick-Framed Roof

This rafter calculator handles the three numbers every framer needs before cutting: rafter line length, total rafter length with the eave overhang, and the count of common rafters required for the building. It works for any standard gable roof — enter the wall-to-wall building width, the building length along the ridge, the roof pitch as rise per 12 in run, the desired eave overhang in inches, and on-center spacing of 12, 16, 19.2, or 24 inches.

Run, rise, and line length — the three rafter geometry inputs

Run is the horizontal distance from the outside of the wall plate to the centerline of the ridge — half the building width. Rise = run × (pitch ÷ 12). Line length = √(run² + rise²) and represents the centerline-to-plumb measurement of the rafter. A small deduction for half the ridge board thickness is built in so the rafter does not come up long when it butts the side of the ridge instead of meeting at its centerline.

Cut allowances: heel cut, seat cut, plumb cut, and tail cut

Line length is not the cut length. From the line length you add the slope distance of the overhang (overhang × √(1 + (pitch/12)²)) to reach the tail, then add a few inches of pencil for the heel cut at the bird's mouth and the plumb cut at the ridge. Most framers cut the first rafter, dry-fit it, and use it as a template — that single pattern rafter is the most important piece on the build.

Choosing Rafter Spacing: 12, 16, 19.2, or 24 inches On Center

  • 16 in OC is the residential default for 2×8 to 2×12 rafters at moderate spans under shingle or metal roof finishes.
  • 12 in OC is used where IRC span tables demand it — heavy ground snow load (verify with the roof snow load calculator), tile or slate dead load, or rafter runs longer than 16 ft.
  • 24 in OC is common with engineered I-joists and deeper LVL ridges, especially under light roof finishes.
  • 19.2 in OC matches the 96-inch sheet length of structural sheathing — five rafter spaces per 8-ft sheet.

Rafter vs truss: when site-built rafters still win

Stick framing pays off when the roof has complex geometry the truss plant cannot girder economically, when site access blocks a 60-ft truss delivery, or when an owner wants a cathedral or exposed-beam ceiling. For straightforward rectangular plans, an engineered truss package from the roof truss span calculator is usually faster and cheaper. Both paths can carry the same loads; the choice is logistics and architecture.

Common Rafter Layout Mistakes

  • Forgetting the ridge board deduction. Rafters butt the side of a 2× ridge, not its centerline. If you skip the 3/4-inch deduction, the first rafter is 3/4 inch long and the whole roof racks.
  • Using pitch “in degrees” in the rise-over-run formula. The formula expects rise per 12 in run (e.g. 6 for a 6:12 roof), not the angle in degrees. Convert with the pitch to degrees calculator if your plans only give an angle.
  • Skipping a span check. Rafter length tells you cut length, not whether the lumber section is adequate. Always validate against IRC Table R802.5.1 or an engineered design.

Ridge board, ridge beam, or ridge LVL — what to order?

A ridge board is a 1× or 2× nailer that aligns rafters but carries no load — used on roofs with collar ties or ceiling joists tying the bottom of opposing rafters. A structural ridge beam (typically an LVL or PSL) carries the rafter loads where there is no bottom tie — common in cathedral ceilings. The rafter calculator returns ridge length, but the ridge member type and depth come from the engineered design.

How to calculate Rafter Calculator manually?

Step 1: Gather dimensions

Measure or confirm the required geometric inputs before calculation.

Step 2: Compute baseline area or length

Calculate the plan/base value from your measured inputs.

Step 3: Apply slope or shape conversion

Use rise/run geometry or form-specific factors to convert to true sloped scope.

Step 4: Convert to ordering units

Translate outputs into practical units such as squares, pieces, or roll counts.

Step 5: Field-validate before final order

Verify complex intersections, accessories, and local requirements before procurement.

Rafter Calculator Formulae

  • Input-driven estimate = Core geometric or quantity formula
  • Adjusted estimate = Core estimate x allowance factors (if used)
  • Order quantity = round up to practical whole units

Always validate assumptions, coverage, and local requirements before converting planning output into final purchase orders.

Formula and authenticity notes

Tool classification

Planning calculator

Formula summary

Applies user-provided dimensions and assumptions to standard estimating math for roofing scope and quantity planning.

How to validate before final order

Treat results as planning output. Confirm dimensions, coverage assumptions, and local requirements before final procurement.

Reference guidance

Reference check: product datasheets, installation manuals, and measured field geometry.

Rafter Calculator: practical estimating workflow

Why this calculation matters before you buy materials

Most ordering mistakes happen when assumptions are mixed across units, pitch, and coverage rules. Using Rafter Calculator early helps align scope, quantity, and labor planning before supplier pricing or installer scheduling. This reduces reorders, avoids under-counting, and improves quote consistency.

How to use results with higher confidence

Start with verified dimensions, run conservative waste assumptions, then compare output against product data sheets and field conditions. For cross-checks, pair this page with Roof truss span calculator and Roof pitch calculator.

Common validation step professionals use

Treat calculator output as a controlled estimate, then validate accessories, overlaps, and edge details separately. Final checks are stronger when you review assumptions with Hip roof framing calculator before submitting purchase orders.

Rafter Calculator FAQs

How is rafter length calculated?+

Common rafter length is the hypotenuse of the run and rise triangle: line length = √(run² + rise²). Run is half the building width (minus half the ridge board thickness), and rise = run × (pitch ÷ 12). The actual board length adds the heel/seat cut and the overhang slope distance.

Why does the calculator subtract half the ridge board thickness?+

The line length of a common rafter measures from the outside corner of the wall plate to the centerline of the ridge. Because the rafter butts the side of the ridge — not its centerline — you remove half the ridge board's actual thickness (3/4 inch on a 2× ridge) from the run before computing the hypotenuse. Otherwise the rafter.

What is the standard rafter on-center spacing?+

16 inches OC is the most common residential spacing for 2×8 to 2×12 rafters at moderate spans. 24 inches OC is common with engineered I-joists, deeper sections, or low loads. 12 inches OC is used where span charts demand it — heavy snow loads, long rafter runs, or tile roof dead load. Always check a span table or have an.

Do I need extra rafters at the gable ends?+

Yes — most designs use a doubled (or sub-fascia / barge) rafter at each gable end to carry the gable wall sheathing and the overhang lookouts. The rafter count from this calculator counts one rafter at each gable plus everything in between, which is the standard layout. Add a second piece per gable if your detail calls for a doubled.

Is this calculator intended for planning or final engineering?+

Planning. Use outputs for budgeting and early scope, then verify dimensions and specifications before procurement.

How accurate are calculator outputs?+

Accuracy depends on input quality. Better field measurements and realistic assumptions produce better results.

Should I include a waste allowance?+

Yes. Most roofing workflows include waste to cover cuts, breakage, and layout inefficiencies.

Can one calculator output be used in isolation?+

Usually no. Most projects need supporting checks for pitch, area, accessories, and costs.

What should be validated before ordering materials?+

Validate dimensions, pitch, overlaps, accessory counts, and local installation requirements.

Authoritative sources and references

Calculator formulas, default rates, and installation guidance on this page are cross-checked against the following primary sources. Verify any code-required values against the edition adopted in your jurisdiction.

External links open in a new tab. Inclusion does not imply endorsement by, or affiliation with, the named organizations.

Reviewed by , Founder & Estimation Lead

Every calculator on this site is built using manufacturer specifications, industry-standard waste factors, and real-world estimating practices. Formulas are cross-referenced against supplier data sheets, the NRCA Roofing Manual, and IRC Chapter 9 building code. Calculations are for planning purposes — always verify final quantities with your supplier before ordering.

Last reviewed:

✓ Manufacturer data verified✓ Industry-standard formulas✓ Updated for 2026

Related roofing calculators

Use these together for a complete roofing material takeoff.