Rafter Calculator — Length, Rise and Count
Estimate the geometric line length of a common rafter for a symmetrical gable roof, plus the number of rafter pairs along the building. The calculation accepts rise per 12 inches of run, a horizontal eave overhang, ridge thickness, and on-center spacing.
Compare up to three scenarios
Capture the current result, change one or more inputs, and see the options side by side. The first option becomes your baseline.
Your live calculator remains unchanged. Capture it only when you want a comparison point.
Save this estimate as a project section
Name rooms, roof planes, yard areas or other sections separately. CalcurHome will combine compatible results from this calculator on this device.
No account or personal information required. Data remains in this browser until you delete it or clear browser storage.
View all saved project estimatesWhat does the rafter calculator calculate?
For a symmetrical gable roof, subtract half the ridge thickness from half the building span to find run to the ridge. Multiply horizontal distance by the pitch slope factor, √[1 + (rise ÷ 12)²], to calculate common-rafter line length before cut allowances.
Common-rafter line-length formula
Half the building span establishes the symmetrical roof run, and half the ridge-board thickness is deducted horizontally. The entered overhang extends that run beyond the wall. The Pythagorean slope factor converts total horizontal run to the sloped line length for a constant pitch.
How to measure for an accurate estimate
- Measure the horizontal building span between outside wall lines; do not measure along an existing sloped roof surface.
- Enter roof pitch as inches of vertical rise for every 12 inches of horizontal run, not as degrees or a percentage.
- Measure overhang horizontally from the outside wall line to the intended tail plumb line.
- Use actual ridge-board thickness and roof length, then verify all dimensions against the approved framing drawings.
Twenty-four-foot-wide 6-in-12 gable roof
A 24-foot span has a 6-in-12 pitch, 12-inch horizontal overhang, 1.5-inch ridge board, 32-foot roof length, 16-inch spacing, and 10% extra pairs.
Run to the ridge is 11.94 feet and common-rafter line length is 14.46 feet; 25 layout pairs become 28 order pairs, or 56 rafters.Before you purchase material
- Choose stock long enough for the calculated line plus required plumb cuts, birdsmouth geometry, tail details, and end trimming.
- Check rafter species, grade, size, spacing, span, snow load, dead load, deflection, and ceiling attachment with code-approved span information.
- Keep rafter pairs together when adding waste so the two roof planes retain matching layout positions.
- Plan ridge boards or beams, ties, collar ties, blocking, hangers, uplift connectors, and outlookers separately from the common-rafter count.
Common questions
Does rafter length include the roof overhang?
Yes. This result includes the entered horizontal eave overhang and applies the same pitch through the tail. It does not add stock for birdsmouth placement, ridge or fascia cuts, decorative tails, field trimming, or unusual eave geometry, so verify the cut layout.
Is rafter line length the same as rafter span?
No. Line length is geometric distance along the sloped member, while structural span depends on bearing conditions and code definitions. A calculated length does not prove that a chosen lumber size, species, grade, or spacing can carry the project’s loads.
How does a thicker ridge board change rafter length?
Each opposing rafter stops at one face of the ridge board, so half the actual ridge thickness is deducted from each half-span horizontally. The change in sloped length is small, but including it improves geometric layout and avoids treating the rafters as meeting at a centerline.
Can I use this calculator for a hip or shed roof?
Not directly. It models equal common rafters on both sides of a symmetrical gable roof. A shed roof uses different support geometry, while hip and valley roofs require diagonal member lengths and jack-rafter layouts. Use drawings and calculations specific to those roof forms.
Sources and reference standards
- International Code Council — 2024 International Residential CodePrimary model-code reference for conventional wall framing, roof framing, connectors, openings, and structural safety.
- American Wood Council — Span Options CalculatorIndustry reference for checking permitted wood joist and rafter spans; local code and project conditions still control.
- USDA Forest Products Laboratory — Wood HandbookFederal reference for wood characteristics, lumber terminology, dimensions, moisture, and structural use.
Did this calculator help you make the next project decision?