Categories
Pages

Rafter Calculator

Estimate rafter quantity and materials needed for any construction project size.

LIVE
478
Uses
1
Select typeChoose conversion direction
2
Enter amountType the value to convert
3
Get resultsSee live conversion rates
ROOF PITCH
:
BUILDING SPAN
:
ft
RAFTER SPACING
:
EAVE OVERHANG
:
inches

Copy the code below to embed this calculator on your website:

<iframe src="https://calculatorcafe.com/widget/rafter-calculator/" width="100%" height="500" frameborder="0" style="border:1px solid #e2e8f0;border-radius:12px"></iframe>

Free to use · Links back to CalculatorCafe

How to Calculate Rafter Length and Count?

Rafter length depends on the building span, roof pitch, and eave overhang. The building run (horizontal distance from the wall to the ridge) equals half the building span for a symmetrical gable roof. Multiply the run by the rafter factor for your chosen pitch to get the rafter length from birdsmouth to ridge. Add the overhang length. The rafter count depends on the building length and rafter spacing. The calculator above computes the rafter length, number of rafters, ridge board length, and collar tie count from your roof pitch, span, spacing, and overhang inputs.

What Is Roof Pitch and How Does It Affect Rafter Length?

Roof pitch is expressed as rise over run: a 6/12 pitch rises 6 inches for every 12 inches of horizontal run. Steeper pitches create longer rafters for the same building span. Each pitch has a rafter factor (the multiplier applied to the run to get the rafter length). A 4/12 pitch has a factor of 1.0541: a 12-foot run produces a 12.65-foot rafter. A 6/12 pitch factor is 1.1180: the same 12-foot run produces a 13.42-foot rafter. A 12/12 pitch (45 degrees) has a factor of 1.4142: the same run produces a 16.97-foot rafter. Higher pitches shed snow and water faster but use more material and create a taller, more wind-exposed profile.

What Is a Birdsmouth Cut?

The birdsmouth is a notch cut into each rafter where it sits on the wall top plate. It consists of a horizontal seat cut (that rests flat on the plate) and a vertical plumb cut (that bears against the outer edge of the plate). The seat cut should not exceed one-third of the rafter depth. For a 2x8 rafter (7.25 inches deep), the seat cut should be no more than 2.4 inches. A deeper seat cut weakens the rafter at the bearing point and can cause a split. The birdsmouth allows the rafter tail to extend beyond the wall as the eave overhang while keeping the main rafter securely seated on the structural wall.

How Many Rafters Do I Need?

Divide the building length by the rafter spacing and add one. Multiply by two for a gable roof (rafters on both sides). A 24-foot building with rafters at 16-inch on-center spacing: 24 feet = 288 inches / 16 = 18, plus 1 = 19 rafters per side, times 2 = 38 rafters total. At 24-inch spacing, the same building needs 26 rafters total. Each rafter requires the same length of lumber (the calculated rafter length including overhang). The total linear footage of rafter lumber is the rafter count multiplied by the individual rafter length.

What Are Collar Ties and Are They Required?

Collar ties are horizontal boards connecting opposing rafters in the upper third of the roof space. They resist the outward thrust that rafters exert on the walls and prevent the ridge from separating under load. The IRC requires collar ties at every other rafter pair (maximum 48 inches apart) installed in the upper third of the rafter span. Collar ties are typically 1x6 or 2x4 lumber nailed to each rafter face with three 10d nails per end. Rafter ties (at the bottom, at ceiling level) serve a different structural function: they prevent the walls from spreading apart. If the ceiling joists run parallel to the rafters, they serve as rafter ties. If ceiling joists run perpendicular, separate rafter ties are needed.

How to Choose the Right Rafter Size?

Rafter size depends on span, spacing, pitch, and snow/wind loads. For a residential roof with 20 psf live load (no heavy snow) at 16-inch spacing: 2x6 rafters span up to 11 feet. 2x8 span up to 15 feet. 2x10 span up to 19 feet. 2x12 span up to 23 feet. Higher snow loads reduce allowable spans. For example, a 40 psf snow load area reduces 2x8 spans from 15 feet to about 12 feet. The IRC provides comprehensive rafter span tables in Section R802.5 that cover species, grade, spacing, and load combinations. Always use the table that matches your actual conditions rather than generic guidelines.

Ridge Board vs Ridge Beam

A ridge board is a non-structural member that provides a nailing surface where opposing rafters meet at the peak. It must be at least one size deeper than the rafter (use a 2x10 ridge board with 2x8 rafters). The ridge board does not carry vertical load; the rafter pairs lean against each other and transfer load down to the walls. A ridge beam is a structural member that supports the rafters from above, eliminating the need for ceiling-level rafter ties. Ridge beams must be engineered for the span and load, and they require posts at each end carrying the beam load down to the foundation. Ridge beams create open cathedral ceilings without horizontal ties crossing the space.

Rafter vs Truss: Which System Is Better?

Rafters are built on-site piece by piece. They allow open attic space for storage or future rooms, cathedral ceilings, and custom roof shapes. They require more carpentry skill and on-site labor. Trusses are factory-built triangulated frames delivered complete and craned into place. They are faster to install, engineered for the specific load and span, and less expensive for straightforward gable and hip roofs. Trusses do not allow usable attic space (the web members fill the interior). For custom roof lines, dormers, and vaulted ceilings, rafters are the practical choice. For production housing and standard roofs, trusses dominate due to speed and cost advantages.

Frequently asked questions

How do I calculate rafter length?
Multiply the building run (half the span) by the rafter factor for your pitch. Add the overhang. A 12-ft run at 6/12 pitch: 12 x 1.118 = 13.4 ft plus overhang.
What is a rafter factor?
A multiplier for each pitch. 4/12 = 1.054. 6/12 = 1.118. 8/12 = 1.202. 12/12 = 1.414. Multiply by the run for rafter length.
How many rafters for a 24-foot building?
38 rafters at 16-inch spacing (19 per side). 26 at 24-inch spacing. The calculator includes both sides of a gable roof.
What is a birdsmouth cut?
A notch in the rafter where it sits on the wall plate. The seat cut should not exceed 1/3 of the rafter depth.
Are collar ties required?
Yes. IRC requires collar ties at every other rafter pair (48 inches max apart) in the upper third of the rafter span.
What is the difference between a ridge board and ridge beam?
A ridge board is non-structural nailing surface. A ridge beam is a structural member that carries rafter loads and eliminates the need for rafter ties.
USER RATINGS

Rate This Calculator

Your feedback helps us improve our tools