How the roof frame calculator works
The frame calculator lays posts on a grid around the walls at no more than your maximum spacing, adds a ridge-support row if you want one, then counts plates, ridge, rafters and purlins and cuts them from the stock lengths your lumber yard sells.
Four terms the cut list uses
- Maximum post spacing
- The largest centre-to-centre gap you allow. Posts are spread evenly, so the actual spacing shown is equal or smaller.
- Wall plate
- The horizontal member on top of the posts or wall that carries the rafter feet (a top plate or beam in US framing).
- Ridge support
- Posts on the centre line under the ridge beam. Without them, a gable needs rafter ties or ceiling joists, or engineered trusses.
- Stock length
- The length you can buy. The cut list fits every piece into these lengths and adds your waste allowance.
How to measure
- Measure the length along the ridge and the width across it, outside face to outside face of the posts or walls, and the wall height from the footing or slab to the top of the plate.
- Bring the pitch from step 1 or the whole building from step 2 with the handoff link; the values arrive with an Undo.
- Set the maximum post spacing, the rafter spacing and the purlin or batten spacing from your design or the covering’s installation guide.
- Enter the stock length your yard sells and the sections you plan. The cut list shows how many pieces to buy for each member.
The formulas
L is the length, W the width, s the maximum post spacing and g the gable overhang. ⌈ ⌉ rounds up to a whole number.
Posts along the length = ⌈L ÷ s⌉ + 1Posts across the width = ⌈W ÷ s⌉ + 1Wall posts = 2 × along the length + 2 × (across the width − 2)Rafters per slope = ⌈(L + 2g) ÷ rafter spacing⌉ + 1Purlin rows per slope = ⌈rafter length incl. overhang ÷ purlin spacing⌉ + 1Timber volume = Σ total length × width × depth of each memberWorked example: a 10 × 8 m garage frame
Gable roof, 30°, wall height 2.5 m, eaves overhang 0.5 m, gable overhang 0.3 m, posts at most 3 m apart with ridge-support posts, rafters at 600 mm, purlins at 900 mm, 5.4 m stock, sections 100×100 (posts), 50×150 (plates, rafters), 50×200 (ridge) and 50×75 mm (purlins), 10% waste.
- Posts needed
- 19
- Timber volume
- 3.00 m³
- Stock pieces to buy
- 98
- Wall posts · 2.50 m
- 14 pcs
- Ridge-support posts · 4.81 m
- 5 pcs
- Actual post spacing (length × width)
- 2.50 m × 2.67 m
- Rafters per slope
- 19
| Item | Qty |
|---|---|
| Posts19 pcs: 14 × 2.50 m + 5 × 4.81 m · 65.0 m incl. waste · 100 × 100 mm · 0.590 m³ | 14 pcs of 5.40 m |
| Wall plates4 pcs: 2 × 10.00 m + 2 × 8.00 m · 39.6 m incl. waste · 50 × 150 mm · 0.270 m³ | 8 pcs of 5.40 m |
| Ridge beam1 pcs: 1 × 10.60 m · 11.7 m incl. waste · 50 × 200 mm · 0.106 m³ | 3 pcs of 5.40 m |
| Rafters38 pcs: 38 × 5.20 m · 217.2 m incl. waste · 50 × 150 mm · 1.481 m³ | 42 pcs of 5.40 m |
| Purlins / battens14 pcs: 14 × 10.60 m · 163.2 m incl. waste · 50 × 75 mm · 0.557 m³ | 31 pcs of 5.40 m |
What each member does
The cut list counts five member groups. It reports quantities and lengths; it does not size them:
| Member | What it does | How it is counted |
|---|---|---|
| Posts | Carry the plates and the ridge down to the footings | Perimeter grid at the maximum spacing, plus the ridge-support row |
| Wall plates | Tie the post heads together and carry the rafter feet | 2 × length + 2 × width |
| Ridge beam | Carries the rafter tops of a gable roof | Roof length incl. both gable overhangs |
| Rafters | Span from the ridge (or high wall) to the eaves | Per slope, at the rafter spacing, incl. the eaves overhang |
| Purlins / battens | Carry the sheets or tiles across the rafters | Rows per slope at the purlin spacing, each the roof length |
Step-by-step guides: Roof post spacing: what decides it · How do you calculate rafter length?
When the steps are done, one page combines the pitch, the covering and the timber into a printable material list: Roof project summary.
Local rules
In the United States, wood roof framing follows Chapter 8 of the International Residential Code (IRC) as adopted — often with amendments — by your state, county or city. Section R802 covers roof framing; its rafter span tables give the allowable span for a species, grade, size and spacing under a stated snow or live load. Spans beyond the tables, or designs outside the IRC’s limits, need an engineered design.
Columns are covered in IRC Section R407, and where rafter ties or ceiling joists do not tie the walls together, the ridge must be a beam designed to carry the roof. US lumber is sold by nominal size: a 2×6 is actually 1½ × 5½ in. CalcSlope counts members and lengths; it does not size them or check code compliance — your building department or an engineer does.
Roof frame questions
How many posts does a 24 × 20 ft carport need?
With a 10 ft maximum spacing the calculator places 4 posts along each long side and 3 across each end — 10 wall posts — plus 2 ridge-support posts if the ridge is carried on posts: 12 in total. The spacing that is safe depends on beam sizes and loads, which an engineer or your local code sets.
What is a board foot?
A board foot is 144 cubic inches of lumber measured by nominal size — for example a 1×12 one foot long. A 2×6 that is 12 ft long is 2 × 6 × 12 ÷ 12 = 12 board feet. Lumber yards price many products per board foot.
Why does the cut list buy more pieces than members?
Each member is cut from your stock length. Long plates, the ridge and purlins are jointed over supports, short pieces share a stock length where they fit, and the waste allowance covers cuts and rejects. Rafters and posts longer than the stock trigger a warning instead of a joint.
Do I need ridge-support posts?
A gable whose walls are not tied together by rafter ties or ceiling joists needs a structural ridge beam supported along its length — or engineered trusses. The calculator warns from a 6 m (about 20 ft) span without ridge support; your engineer decides what the roof needs.
Can it size my rafters, beams or posts?
No. Sizes depend on species and grade, spans, snow, wind and dead loads and the connections. Use the IRC span tables or an engineer; CalcSlope gives the quantities to price and order once the sizes are known.