construction Calculator

Rafter Calculator

Calculate rafter length and spacing.

Rafter Calculator

Calculate rafter length, rise, run, and estimated number of rafters based on roof span, pitch, and spacing.

Enter values to see results

Rafter Calculator — Calculate Length and Spacing

Use this rafter calculator to quickly determine the required rafter length, rise, run, and an estimate of how many rafters you'll need across a roof span. Enter the roof span (meters), roof pitch (degrees), and desired rafter spacing (centimeters). Results update automatically.

Proper rafter calculations are essential for ensuring the structural integrity of a roof and maximizing material usage. This tool helps both homeowners and professionals streamline the planning process for roofing projects.

How it works

The calculator converts inputs to consistent base units (meters) and performs trigonometric calculations using the pitch (angle). The key formulas used are based on a right-angled triangle formed by the rafter:

Rafter Length = Run / cos(pitch)
Run = Span / 2
Rise = Run × tan(pitch)

Spacing is converted from centimeters to meters (divide by 100). The estimated number of rafters is calculated as floor(span / spacing) + 1 to include edge rafters. This provides a practical estimate for planning and material lists.

It is crucial to enter the correct values and understand the implications of your inputs, as adjusting the roof pitch significantly alters the calculations. A clear comprehension of terms like rise, run, and pitch is vital for accurate results.

Example

For a roof span of 8 m, pitch of 30°, and spacing of 60 cm, plug in the values into the calculator:

  • Run = 8 / 2 = 4.00 m
  • Rafter length ≈ 4 / cos(30°) ≈ 4.62 m
  • Rise ≈ 4 × tan(30°) ≈ 2.31 m
  • Spacing = 60 cm → 0.60 m → Estimated rafters = floor(8 / 0.6) + 1 = 14

This example demonstrates the typical scenarios you might encounter, allowing you to visualize the importance of each calculation. Understanding how to properly execute these steps will help ensure a more effective roofing process.

Practical notes

- This calculator assumes a symmetric gable roof with rafters running from the wall plate to the ridge (no hip or valley rafters included).

- Input pitch as an angle in degrees (0 < pitch < 90). Very steep roofs approach a cos(pitch) near zero and will produce very large rafter lengths — ensure pitch is entered correctly.

- For construction drawings and final material lists, always check local building codes, include allowances for overhangs, birdsmouth cuts, and consider timber section sizes and structural loads.

Use Cases for the Rafter Calculator

The rafter calculator is useful for various scenarios:

  • Residential roofing projects, including extensions or new builds.
  • Renovation projects that require re-evaluating existing rafter layouts.
  • Construction clearances and regulatory projects requiring precise calculations.

FAQ

Can I use pitch as rise/run instead of degrees?

This tool expects pitch in degrees. If you have a ratio (e.g. 6/12), convert to degrees by computing atan(rise/run) and converting to degrees, or use an online converter first.

Should I round the rafter length up?

Yes. For ordering and cutting, round up to allow for cuts, birdsmouths, and adjustments. The calculator provides a raw geometric value; add allowances as required by your project.

Why does the number of rafters seem high?

The estimate uses simple spacing across the given span. If your roof layout or eave details change (double rafters at edges, hip rafters, or different spacing at ends), adjust spacing or manually edit the count.

What materials are best for rafters?

Common materials for rafters include timber, steel, and engineered wood products. The selection should depend on local building codes, the weight of the roofing material, and environmental considerations.

Want more precision?

For structural design, engage a licensed structural engineer to verify loads, timber sizes, and connections. This calculator is a planning aid and not a substitute for professional design.

By understanding the limitations of this tool, you can ensure a more successful and safe construction process. Engaging professionals for critical assessments can vastly improve project outcomes.

Meet the Expert

Sarah Architect

Sarah Architect

Architectural Engineer

Sarah is a licensed architect specializing in structural design and building codes.