Formula summary
Applies user-provided dimensions and assumptions to standard estimating math for roofing scope and quantity planning.
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.
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.
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 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.
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.
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.
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.
Measure or confirm the required geometric inputs before calculation.
Calculate the plan/base value from your measured inputs.
Use rise/run geometry or form-specific factors to convert to true sloped scope.
Translate outputs into practical units such as squares, pieces, or roll counts.
Verify complex intersections, accessories, and local requirements before procurement.
Always validate assumptions, coverage, and local requirements before converting planning output into final purchase orders.
Planning calculator
Applies user-provided dimensions and assumptions to standard estimating math for roofing scope and quantity planning.
Treat results as planning output. Confirm dimensions, coverage assumptions, and local requirements before final procurement.
Reference check: product datasheets, installation manuals, and measured field geometry.
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.
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.
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.
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.
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.
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.
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.
Planning. Use outputs for budgeting and early scope, then verify dimensions and specifications before procurement.
Accuracy depends on input quality. Better field measurements and realistic assumptions produce better results.
Yes. Most roofing workflows include waste to cover cuts, breakage, and layout inefficiencies.
Usually no. Most projects need supporting checks for pitch, area, accessories, and costs.
Validate dimensions, pitch, overlaps, accessory counts, and local installation requirements.
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.
Publishes the Wood Frame Construction Manual (WFCM) — rafter and ceiling joist span tables used to validate IRC-compliant framing.
Sets the ANSI national standard for design, manufacture, and installation of metal-plate-connected wood roof trusses.
Publishes span tables and fastening schedules for structural sheathing (plywood, OSB) used on roofs.
Model residential building code adopted (with amendments) by most U.S. jurisdictions. Roofing rules live in Chapter 9.
External links open in a new tab. Inclusion does not imply endorsement by, or affiliation with, the named organizations.
Reviewed by Mason Rivera, 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:
Use these together for a complete roofing material takeoff.