Metal Roof Purlin Calculator
Work out how many purlin rows a metal roof needs, the linear feet and the piece count, from the roof length, slope length and spacing.
Quick answer: a 40 ft roof with a 20 ft slope length at 2 ft purlin spacing needs 11 rows — one at each end plus nine between — giving 440 linear feet and 55 pieces at 8 ft.
- Rows, feet and pieces
- Actual spacing shown
- Quantity, not structural design
Inputs and results
Spacing is measured up the slope, and a purlin sits at each end of the run as well as between.
Rows include the two end purlins; pieces are per row, so a row longer than stock is split.
Show calculation
What this metal roof purlin calculator works out
Purlins are the members that run across a metal roof, square to the slope, carrying the sheeting. They sit on top of the rafters or the trusses, and their spacing is what the sheet actually spans between.
The page takes the roof length, the slope length and the purlin spacing and returns how many rows that needs, the total linear feet of purlin, and how many stock pieces to buy at the length you specify. It also reports the spacing you will actually achieve, which is rarely the round number you typed.
What it does not do: choose the purlin section, gauge or fixing, check the sheet's span capacity, or allow for laps and waste. Those are the questions that decide whether the roof works, and the section below on spacing is where they belong.

What each metal roof purlin input and result means
Four inputs, four results. Two of them are lengths you measure, one is a spacing you choose, and one is a purchasing decision.
| Field | Unit | What to enter |
|---|---|---|
| Roof length | feet | The distance the purlins run, parallel to the ridge. It is the member length, not the building footprint dimension, if there is an overhang at each end. |
| Slope length | feet | The distance up the slope from eave to ridge — the rafter length, not the horizontal run. Measured along the roof, not on the plan. |
| Purlin spacing | feet | Centre-to-centre spacing measured up the slope. This is the sheet's span, and it comes from the manufacturer's table, not from a rule of thumb. |
| Purlin piece length | feet | The stock length you can buy. Used to work out how many pieces each row takes. |
| Result | Unit | What it means |
|---|---|---|
| Purlin rows | count | Rows across the slope, including the purlin at each end of the run. The number of spacings plus one. |
| Linear feet | feet | Rows multiplied by roof length. The total length of purlin, before laps or waste. |
| Pieces | count | Stock lengths to buy: rows multiplied by the pieces each row needs at your piece length. |
| Actual spacing | feet | The spacing you get when the rows are spread evenly over the slope. Usually slightly less than the nominal figure you entered, never more. |
Counts are whole numbers and are rounded up where the arithmetic demands it — you cannot buy a fraction of a purlin. Linear feet are the exact product of rows and roof length.
How to use the metal roof purlin calculator
Four fields, and the results update as you type. The two lengths are the ones people get wrong, because both have a trap in them.
- Roof length is how far the purlins run — parallel to the ridge. If the roof oversails the gable by a foot at each end, add those two feet, or you will come up short at both ends.
- Slope length is measured up the roof, not across the plan. It is the rafter length, so a 6:12 roof with a 15 ft run has a slope length of 16.77 ft, not 15.
- Spacing is the figure from the sheet manufacturer's span table for your profile, thickness and load. Do not invent a round number here.
- Piece length is the stock length you can actually buy. It changes the piece count, not the rows or the linear feet.
Read the rows first, then the actual spacing. If the actual spacing is meaningfully below the nominal one, you have bought a little more than you needed — which is normal, and cheaper than a short last bay.
Metal roof purlin formulas
linear feet = rows × roof length
pieces = rows × ceil(roof length ÷ piece length)
actual spacing = slope length ÷ (rows − 1)
The extra row is the one at the end of the run — the eave purlin or the ridge purlin. Without it the last bay of sheet has nothing to fix to, which is the single most common omission in a purlin takeoff.
Dividing the slope length by the number of gaps rather than the number of rows gives the actual spacing. It is always slightly less than the nominal figure, because the rounding up that produced the extra row is absorbed across the whole run instead of leaving a short bay at one end.
The piece count is a separate multiplication: each row needs enough stock lengths to cover the roof length, rounded up. A 40 ft row in 8 ft pieces takes five, whatever the row count. Because purlins are long, continuous members, thermal movement becomes worth thinking about on a big roof — the calculate metal roof thermal expansion figures show how much a run moves between seasons.
What actually sets the purlin spacing
Spacing is not a design preference. It is the distance the sheet can span between supports without deflecting too far or oil-canning, and it comes from the manufacturer's span table for a specific profile, thickness and fixing pattern.
Three things push that number down. A thinner gauge spans less. A wider pan or a deeper profile usually spans more, but not always in the way you expect. And the load matters: wind uplift on a large low roof can govern over snow, particularly near corners and edges where uplift is highest.
This is also why the panel layout and the purlin layout have to be decided together. Panel widths, the position of the last pan and the fixing line all sit on top of the purlin grid, and the metal panel layout estimator works out the panel side of that. Get the panels right and the purlins wrong and nothing lines up at the verge.
Colour is not usually thought of as a structural input, but on metal it feeds back into both movement and heat. A dark roof runs hotter, moves more, and the calculate metal roof color and heat figures show the difference that makes on a long run.

Worked metal roof purlin examples
Example 1 — 40 ft roof, 20 ft slope, 2 ft spacing
- Rows
- ceil(20 ÷ 2) + 1 = 11
- Linear feet
- 11 × 40 = 440 ft
- Pieces at 8 ft
- 11 × ceil(40 ÷ 8) = 11 × 5 = 55
- Actual spacing
- 20 ÷ 10 = 2.00 ft
The nominal spacing happens to divide the slope exactly, so the actual spacing matches it. That is the tidy case, and it is not the usual one.
Example 2 — 52 ft roof, 24 ft slope, 1.5 ft spacing, 10 ft pieces
- Rows
- ceil(24 ÷ 1.5) + 1 = 17
- Linear feet
- 17 × 52 = 884 ft
- Pieces at 10 ft
- 17 × ceil(52 ÷ 10) = 17 × 6 = 102
- Actual spacing
- 24 ÷ 16 = 1.50 ft
Longer pieces cut the piece count without touching the rows or the footage: the same 884 ft in 8 ft lengths would need 119 pieces instead of 102.
Example 3 — when the spacing does not divide cleanly
- Inputs
- 40 ft roof, 22 ft slope, 2.5 ft spacing, 8 ft pieces
- Rows
- ceil(22 ÷ 2.5) + 1 = 10
- Actual spacing
- 22 ÷ 9 = 2.44 ft
- Linear feet
- 10 × 40 = 400 ft
- Pieces at 8 ft
- 10 × 5 = 50
Nine gaps for ten rows, so the real spacing is 2.44 ft rather than 2.5. Half a foot short across the whole roof is exactly the kind of difference that turns into a visible short bay if you set out from the nominal figure instead of the actual one.
What spacing costs
The same 40 ft roof with a 20 ft slope, buying 8 ft lengths. The piece count is per row, so it moves with the rows.
| Spacing | Rows | Actual spacing | Linear feet | Pieces |
|---|---|---|---|---|
| 1 ft | 21 | 1.00 ft | 840 ft | 105 |
| 1.5 ft | 15 | 1.43 ft | 600 ft | 75 |
| 2 ft | 11 | 2.00 ft | 440 ft | 55 |
| 2.5 ft | 9 | 2.50 ft | 360 ft | 45 |
| 3 ft | 8 | 2.86 ft | 320 ft | 40 |
Going from 2 ft to 1.5 ft spacing adds 160 ft of purlin and 20 pieces. Going from 2 ft to 3 ft saves 120 ft but pushes the actual spacing to 2.86 ft, which most profiles will not span. The table shows the quantity; the manufacturer's span table decides which rows you are allowed to use.
Metal roof purlin limitations
- Quantity only. No purlin section, gauge, fixing or span check. Those come from the sheet manufacturer and the applicable steel design standard.
- One rectangle, one slope length. A roof with two different slopes, or an L-shaped plan, is several calculations.
- No laps or waste. Purlins lap over supports, and each lap consumes stock. Allow for it in the order.
- No edge details. The closure strip at the eave and ridge, and the verge and barge trim, are separate items — the metal roof closure strip estimator covers the first of those.
- No trim or flashing. Ridge, verge, apron and barge are counted by the metal roof trim calculation.
- No fixing design. Screw type, length, spacing and the number per square metre are set by the manufacturer for the profile and the wind zone.
Roof Pitch Resources and Guides
Reference values for the pitches that drive these numbers.
Roof Pitch Chart
Every common pitch in one table: degrees, slope percentage, pitch factor and rafter length per 12 of run.
Read the reference6/12 Roof Pitch
26.57°, a 50% slope and a pitch factor of 1.118 — the pitch used in most worked examples.
Read the reference4/12 Roof Pitch
18.43° and a 33.33% slope. A moderate roof near the shallow end for many coverings.
Read the reference3/12 Roof Pitch
14.04° and a 25% slope, common on porches, lean-tos and outbuildings.
Read the reference2/12 Roof Pitch
9.46° and a 16.67% slope — the shallow end of what is usually still called a pitched roof.
Read the reference8/12 Roof Pitch
33.69° and a 66.67% slope. A steep roof with noticeably more surface per square foot of footprint.
Read the reference12/12 Roof Pitch
45°, a 100% slope and a pitch factor of 1.414, where rise equals run.
Read the referenceFrequently asked questions
Because purlins sit at both ends of the run as well as at the intermediate spacings. Without the extra row the first or last panel has nothing to fix to.
No. It is a quantity take-off. Purlin size, gauge and fixing are structural decisions that need the applicable code and a qualified designer.
The spacing after the rows are rounded up. It is the figure to use when checking the panel fixing schedule.
Yes. Slope length is the distance up the roof from the lowest purlin to the highest, and if the roof oversails the eave that extra length still needs supporting. Measure along the finished roof surface rather than between the wall lines.
Horizontally, across the slope, parallel to the ridge. That is why the page asks for roof length separately from slope length: the purlins are as long as the roof, and there are as many of them as the slope needs. A member running up the slope instead would be a rafter, and the rafter calculator handles those.
Because the row count is rounded up, then the slope is divided by the number of gaps rather than the number of rows. Ten rows make nine gaps, so a 22 ft slope at 2.5 ft nominal gives 2.44 ft actual. It is always less than the nominal figure and never more, which is the safe direction — but it is the number to set out from, not the one you typed.
Round only at the end, and round purchase quantities up. Rounding intermediate values can move the final figure by a visible amount on a large roof.
It depends on the system. Standing seam and most profiled metal sheets fix straight to purlins. Some systems use battens over a sarking layer or over a warm-roof deck, and a few use both, with the batten counter-battened to create a drainage and vent cavity. Follow the manufacturer's detail for the system you are installing rather than assuming; the quantities here assume the sheet fixes directly to the purlin.
Enough to cover every joint where one length meets the next over a support. The lap length itself comes from the manufacturer or the fixing detail, but the practical effect is that a row needing five pieces does not come out of exactly five times the roof length. Add the laps to the linear feet before you convert to pieces, or add roughly one lap length per joint.
It can. Wind uplift peaks at the edges and corners of a roof, so some profiles require a closer purlin spacing in the edge zone than in the field. If your manufacturer's table has a separate edge-zone column, the rows near the eave and verge may need to be tighter than the rest. This page assumes one uniform spacing across the slope.
Yes, and it is common on agricultural and industrial buildings where the purlins span between trusses or portal frames rather than sitting on closely spaced rafters. The quantity arithmetic on this page is identical either way; what changes is the purlin section, because the span between supports is much longer and the member has to be designed for it.
Where these numbers come from
The row count is the slope length divided by the spacing, rounded up, plus one for the end purlin. Linear feet and pieces follow from the roof length and the piece length.
Spacing and piece length are yours, and the spacing in particular should come from the sheet manufacturer's span table rather than from a convenient round number. This page does not reproduce any span table, and it does not size the member.
- Your own measurement of the roof length and the slope length, taken along the finished roof surface.
- The purlin spacing from the profile manufacturer's table for your load case.
- The stock lengths available from your supplier.
Laying out the panels?
The panel layout calculator uses the same roof length and slope.