Roof Truss Calculator
Count the trusses a roof needs and price them, or size one rafter.
Pitch in degrees, percent or rise per 12, with metric, imperial and mixed lengths.
Updated November 12, 2026
Introduction
A gable roof is carried by a run of identical trusses, so the first two questions on any such job — how many frames does this roof need, and what will they cost — can both be answered from one measurement: the length of the wall they stand on.
This page answers those two questions together. The truss view takes the length of the eave and the on-center spacing, rounds the division up to whole frames, and prices the order from what one truss costs. Tick the installation option and the crew's rate and hours are added to the same bill.
The rafter view answers a different question about the same roof. One frame is a triangle, and the sloping side of it is the member a roofer cuts or a supplier rolls: give the rise and the run, or the pitch and the run, and the rafter length follows. The two views are kept apart on purpose, so a rise entered while sizing a rafter never reaches a truss count.
That makes it a working tool for a homeowner checking a supplier's frame count, for a builder costing a roof before the trusses are ordered, and for anyone who needs one rafter length off a drawing without working the triangle out by hand.
Metres or feet
Roof length; the spacing and the rafters also take mixed feet/inches and metres/centimetres
Angle, %, or :12
The pitch written the way your drawings write it
20 currencies
Frames, crew and total in the currency you are invoiced in
Quick start
Pick the question you are answering
The first radio group chooses the job: truss count works along the eave and prices the frames, rafter length works across one frame. The page opens on the truss count, which is the question a supplier asks first.
Enter the length of the eave
Measure along the wall the trusses sit on, from one gable end to the other. This is a horizontal distance along the building, not the ridge, not the slope of the roof, and not the area of the roof covering. The default unit is metres; feet are one menu entry away.
Set the on-center spacing
The box is pre-filled with 60 cm, a common metric layout. Spacing is the one number that changes the count most, so it is worth typing the spacing your truss design or drawings actually call for. On a 12 m eave, the difference between 60 cm and 40 cm on centre is ten extra frames:
Read the count, then price it
The truss count appears as a whole number and cannot be typed over, because it is the answer rather than an input. Type what one truss costs and the total expense fills in. In the example below 21 frames at 95 each come to 1,995.
If the frames are being fitted by a crew, answer Yes to the installation question, then add their rate per hour or per day and the time they expect to be on site. The total moves to the bottom of the group and becomes materials plus labour.
Or measure one rafter
Switch the first radio to rafter length and the page asks a second question: do you know the roof rise, or the pitch? With the rise, enter it and the run. With the pitch, enter the run and any one of the three pitch boxes — degrees, percent or rise per 12 — and the other two fill themselves in. The rafter length is the last box in the group.
Reading the results
The count is the number of frames to buy, already rounded up. The total expense covers exactly what the visible boxes describe — the frames, plus the crew if you switched that on — and nothing else, so delivery, fixings, design fees and tax stay outside it until you fold them into the price of one truss.
How the numbers work
One division with a round-up, one right triangle and one multiplication. Each of them runs in both directions, so whichever number you already have can be the one you start from.
Trusses along the eave
The length is divided by the spacing to count the bays — the gaps between neighbouring frames — and one frame is added because a truss stands at each end of the run. Twenty bays therefore hold twenty-one trusses, not twenty: the first and the last frame close the two ends, and everything in between sits in a gap. The brackets mean round up, so a run that ends halfway through a bay still needs a whole frame there.
Because of the round-up, the count moves in steps rather than smoothly. At 60 cm on centre a 12.0 m eave needs 21 frames and a 12.6 m eave needs 22; anywhere in between, the answer is 21. That is worth remembering when a small change in length appears to do nothing.
The two boxes may be in different units — a roof length in feet with a spacing in inches, or metres with centimetres — because the division compares them in one unit before rounding. That is what lets an imperial measurement sit next to a metric one without a conversion step by hand.
What “on center” measures
Centre of one truss to the centre of the next, not the clear gap between them. A 40 cm layout with a 9 cm wide truss leaves roughly 31 cm of air, which is why the spacing figure a plan quotes always looks smaller than the gap you can see. Measured to the near face of the next truss, a 60 cm spacing reads as about 51 cm.
One rafter is a right triangle
The run is the horizontal distance the rafter covers — for a simple gable it is half the span of the building, because the opposite rafter covers the other half. The rise is how far the roof climbs over that distance, measured from the wall plate up to the ridge. Their hypotenuse is the rafter length, which is the number to mark on the timber.
Any two of the three can be entered. If you have a rafter on site and want to know what pitch it makes, type its length and the run and the rise is worked out for you — useful when a second-hand truss or a salvaged rafter has to be matched to a new roof.
The same rafter from a pitch
A pitch is the rise divided by the run, so it replaces the rise with a ratio and saves one measurement. Roofers write that ratio three ways, and all three describe the same slope:
| Rise per 12 | Percentage | Angle |
|---|---|---|
| 4:12 | 33.3% | 18.43 degrees |
| 6:12 | 50% | 26.57 degrees |
| 9:12 | 75% | 36.87 degrees |
| 12:12 | 100% | 45 degrees |
A 12:12 roof is the 45 degree case, and it is also the one where the percentage reaches 100. Steeper roofs pass 100 and the percentage box keeps going with them, so a 16:12 pitch reads 133.3%. The rise per 12 keeps working unchanged at any steepness, which is why drawings use it.
The bill
The first line is the frames alone, the second adds a crew charging by the unit of time. The price of one truss and the total run in both directions: type the total an invoice has already fixed and the price per truss is worked back from it, which is how a quote is tested against a budget. A day of installation is charged as 24 hours, because the rate is a flat charge per unit of time rather than a shift pattern.
Amounts convert at a reference exchange rate refreshed once a day, so a total entered in one currency and read in another can move slightly between visits. Nothing about the count or the geometry depends on the currency.
Three worked examples
A 12 m eave on a 60 cm layout
Situation: A single-storey extension has a 12 m wall that the trusses will stand on. The supplier quotes 95 per frame, delivered.
Inputs
Result
The order is 21 trusses at 1,995 in total. Change the spacing to 40 cm and the same wall takes 31 frames and 2,945, so the spacing is worth settling before the order goes in.
A 6:12 rafter over a 4.5 m run
Situation: A 9 m wide building has trusses at a 6:12 pitch. Each rafter covers half the span, so the run is 4.5 m.
Inputs
Result
The page returns 5.03115 m — 5.031 m to the nearest millimetre — with the pitch reading 50% and 26.565 degrees. Enter the equivalent rise of 2.25 m with the same run and the rise view returns the same length, which is a quick way to check a pitch you converted by hand.
The invoice has already fixed the total
Situation: The crew charges 40 per hour and expects nine hours on site. The frames are 95 each, so 21 of them with the crew come to 2,355 — but the budget is 2,000.
Inputs
Result
Type 2,000 into the total and the page gives the price per truss the budget allows, 78.1. That is the number to argue with a supplier, or the signal to look at a closer spacing or a smaller span instead.
Getting the count right
Measure the eave, not the roof
The length box wants the wall the trusses land on. The ridge length, the sloped rafter and the area of the covering are three different numbers, and none of them belongs in that box. On a hipped roof the two eave runs differ, so count each direction separately.
Take the spacing from the design
The 60 cm default is a starting point, not a recommendation. The spacing that applies to your roof comes with the truss design and is settled by the span, the loading and how the frames are braced. If a drawing or a supplier's schedule states a spacing, use it exactly rather than rounding it to a familiar number.
The count is frames, not timber
Trusses arrive assembled, so the number here is the number of units to order and the number of lifts for the crane. It is already rounded up, but there is no waste allowance on top: whether to add a spare frame is a conversation with the supplier, not something the page decides for you.
The rafter length stops at the cuts
The sloping length is measured between the plumb cuts as a line, before the notch and the ridge board are taken out of the member. When the length is settled, the birdsmouth cut calculator carries it into the seat cut, the heel cut and the depth the notch leaves.
The gable ends take studs too
The trusses close the roof, but the triangular walls at each gable end still need framing at their own spacing, with a waste allowance and a price per stud. The framing calculator counts those studs from a wall length and a spacing in the same way this page counts trusses.
Covering the frames is the next order
Once the frames are counted, the roof still needs a surface. The roofing calculator turns the same footprint and pitch into the sloped area to cover and what the covering costs per square metre or square foot.
Questions
Why can I not type my own truss count?
Because the count is the answer to a division that has already been rounded up, and typing over it would hide which of the two inputs produced it. If you need a particular number of frames, nudge the spacing or the length instead: the count follows, and because it moves in whole steps it usually takes only a small change of spacing to land on the number you want.
Why does the count sometimes not move when I change the length?
The count only steps when the length crosses a multiple of the spacing. At 60 cm on centre, a 12.0 m eave gives 21 frames and a 12.6 m eave gives 22, so a change from 12.0 to 12.3 m leaves the answer at 21. If a small edit appears to do nothing, that is the rounding working as intended rather than a stale result.
How many trusses does a 40 ft roof need at 24 inches on centre?
Twenty-one. Divide the run in inches by the spacing and add one for the frame at the end of the run:
Set the length menu to feet and the spacing menu to inches and the page returns the same 21.
What does the total expense leave out?
Everything that is not a truss or, when the installation is switched on, the crew. Delivery, crane hire, fixings and straps, bracing, design and engineering, permits, scaffolding, waste removal and tax are separate lines of a real quote. They are worth adding before the total is compared with a supplier's figure, because on a small roof they can rival the frames themselves.
What it does not cover
- A count and a price, not a structural design. Nothing here sizes a truss, checks a span, works out the loads from snow, wind or storage, or sets the bracing and the connections. A truss is an engineered product supplied to a design; what this page gives you is how many of them the roof needs once that design exists.
- The spacing is yours to set. The box counts whatever you type and does not choose or verify it. Common layouts sit somewhere around 40 to 60 cm or 16 to 24 inches, but the figures that apply to your building come from its truss design and the rules in force where it is built.
- The rafter is a theoretical slope. It is the distance between the plumb cuts along the top edge, with no overhang, no birdsmouth notch, no ridge board and no allowance for the width of the member. A cut list built from it needs those added, or the notch and ridge geometry worked through separately.
- The money is only what you type. One price per truss and one rate for the crew, converted at a reference exchange rate that is refreshed daily. Supplier quotes that bundle delivery, engineering or a design fee need that bundle spread over the frames before the comparison is fair.
- Implausible answers are flagged, not hidden. A count above 500 frames, a rafter longer than 30 m, or an invoice that implies a negative crew rate stays on screen in red so you can see how far out it is. In practice those three usually mean a unit menu, a decimal point or a length entered in the wrong box.
- Do not go up on an unsafe roof for the measurement. If the pitch is steep, the surface is wet or fragile, the access is doubtful, or you simply do not work at height, take the length from the drawings or measure from the ground. No count is worth a fall.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.