Rafter calculator
Calculate rafter length, count, and total timber for a simple gable roof. Calculations stay local in the browser and the assumptions are adjustable.
Project settings
Calculate rafter length and estimate pairs and total timber for a simple gable roof.
Quantity estimate only: adapt the values to the product, the site, and the applicable technical rules.
Was this tool useful?
How does this tool work?
Calculate rafter length and estimate pairs and total timber for a simple gable roof. Adjust the assumptions to compare several scenarios before preparing a material order.
The roof rafters calculator runs entirely in the browser from the dimensions and parameters you enter. The engine uses half span and roof pitch to calculate rise and sloped length, includes the horizontal overhang, and derives the number of rafter pairs from spacing along the building. Every result is recalculated when an input changes, so different assumptions can be compared before ordering. The calculation remains a quantity estimate: it does not verify building-code compliance, structural design, or product-specific installation requirements.
Geometric rafter length comes from half span, pitch and overhang and can be checked with trigonometry or Pythagoras. Timber section, allowable span, loads and connections remain a separate structural-design task.
How to use this tool
Describe the project
Enter the dimensions and parameters that match the real site.
Adjust assumptions
Match spacing, densities, stock sizes, and waste to the products you plan to use.
Check the quantity
Use the result to prepare an order, then verify it against the relevant technical requirements.
Use cases
Prepare an order
Turn project dimensions into a first roof rafters quantity to compare with supplier pack sizes and stock lengths.
Compare assumptions
Change dimensions, spacing, density, or waste and immediately see how the required quantity changes.
Check a quotation
Use the intermediate results to verify the order of magnitude of a material quantity in a quote.
Tips and best practices
- Measure the actual site or finished support instead of relying only on drawings.
- Replace the suggested values with the manufacturer or supplier specifications.
- Use a waste allowance that reflects cuts, offcuts, overlaps, and site constraints.
Frequently asked questions
Does this replace structural or technical design?
No. The calculator estimates quantities from geometric inputs. Strength, sections, reinforcement design, spans, and code-required thicknesses must be checked separately.
Why include a waste allowance?
Waste covers some cuts, breakage, offcuts, overlaps, and measurement variation. The appropriate percentage depends on the material, layout, and site.
Can I order from the default values?
The defaults are examples only. Before ordering, replace them with the real dimensions and the technical specifications supplied for the product you will use.
Related tools
Keep going with these tools
Tools similar or complementary to this one.
Works well with
Calculate sloped roof area and the number of tiles required.
Convert slope between percent, degrees, rise, length and ratio.
Estimate studs, plates, and timber length for a framed wall.
Read next
Wall, roof and framing materials: studs, rafters, rebar and mortar
A practical guide to dimensions, spacing, lengths and waste allowances when estimating studs, rafters, rebar and mortar.
How many roof tiles do you need? Area, pitch and waste
Estimate roof-tile quantities from the true roof area, pitch, effective tile coverage and an appropriate waste allowance.
Plan a project: how to calculate the right material quantities?
A practical method for turning project dimensions into quantities to buy: areas, volumes, waste allowances, packaging and final checks.
Calculate stairs: risers, rise, tread depth and slope
Learn how to size a staircase from total rise, number of risers, tread depth, available run and the Blondel relationship.