EN

Calculation is not ready. Values below may be the worked example; reopen the link and wait for the calculation before using this document.

CalcSlopecalcslope.com

Planning calculation report

Rafter Length Calculator: Frame, Posts & Timber | CalcSlope

Printed

Rafter length & roof frame calculator

Enter the building, spacings and timber to get the posts, a cut list from your stock lengths and the timber volume.

New calculation· not savedNew
Projects

No saved projects yet.

Saved in this browser only · up to 50

Save this calculation first?

It isn't saved as a project yet. Save it, or open the other project without saving.

Try an example

Building

Along the ridge, wall to wall.

Wall to wall, across the ridge.

Footing or slab to the top of the wall plate; sets the post heights.

= 26.6° · 50.0% · 6/12

Horizontal, measured out from the wall.

Horizontal, at each gable end.

Spacing

Centre to centre along the walls; posts are spread evenly.

Centre to centre, e.g. 24 in or 600 mm.

Along the slope. Sheets about 36 in (900 mm), tiles about 14 in (350 mm).

Purlin spacing for

Timber

The length your lumber yard sells.

%

Cuts, joints and rejects, in percent.

Common stock lengths

Sections (width × depth)

in

Width × depth in inches (nominal), e.g. 2×6.

in

Width × depth in inches (nominal), e.g. 2×6.

in

Width × depth in inches (nominal), e.g. 2×6.

in

Width × depth in inches (nominal), e.g. 2×6.

in

Width × depth in inches (nominal), e.g. 2×6.

Use a decimal point or comma (2.5 or 2,5). No thousands separators or fractions.

Posts needed

12

Rafter length incl. overhang

12.30 ft

Timber volume

886 bd ft

Stock pieces to buy

85

Frame

Frame: gable, 24.00 ft × 20.00 ft; 12 posts, 14 rafters per slope. Seen from above: posts as squares (taller ridge posts filled), wall plates, rafters at their spacing and the ridge line.

Post schedule

Wall posts · 8.00 ft
10 pcs
Ridge-support posts · 13.00 ft
2 pcs
Actual post spacing (length × width)
8.00 ft × 10.00 ft
Rafters per slope
14
Actual rafter spacing
24.0 in
Purlin / batten rows per slope
8

Cut list

Cut list
ItemQty
Posts12 pcs: 10 × 8.00 ft + 2 × 13.00 ft · 116.6 ft incl. waste · 4 × 4 in · 141 bd ft8 pcs of 16.00 ft
Wall plates4 pcs: 2 × 24.00 ft + 2 × 20.00 ft · 96.8 ft incl. waste · 2 × 6 in · 88 bd ft7 pcs of 16.00 ft
Ridge beam1 pcs: 1 × 26.00 ft · 28.6 ft incl. waste · 2 × 8 in · 35 bd ft3 pcs of 16.00 ft
Rafters28 pcs: 28 × 12.30 ft · 378.8 ft incl. waste · 2 × 6 in · 344 bd ft31 pcs of 16.00 ft
Purlins / battens16 pcs: 16 × 26.00 ft · 457.6 ft incl. waste · 2 × 4 in · 277 bd ft36 pcs of 16.00 ft

Stock pieces include 10% waste and are cut first-fit from 16.00 ft lengths; plates, ridge and purlins are jointed over supports. Quantities are estimates.

Quantities only. Post and timber sizes depend on loads, span and your local building code — have the structure checked before you build.
Planning only. Geometry tools for planning. Verify measurements and seek qualified advice before construction.

Display
Next: project summaryCarries: every step — combined list, drawing and printable report
Posts needed
12

Who this rafter and frame calculator is for

Use it to plan the timber for a simple post-and-rafter roof – a carport, a covered pergola, a shed or a lean-to. It gives the rafter length including overhang, the number and heights of the posts, the plates, ridge and purlins, a cut list from your stock length and the total timber volume, so you can price the wood and plan the cuts.

It counts and measures; it does not size members. Post and rafter sections depend on span, loads and your local building code, so have the structure checked before you build.

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.

Frame: gable, 10.00 m × 8.00 m; 19 posts, 19 rafters per slope. 3D line view of posts, plates, ridge and rafters, drawn to one scale. Not a construction drawing.

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

  1. 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.
  2. Bring the pitch from step 1 or the whole building from step 2 with the handoff link; the values arrive with an Undo.
  3. Set the maximum post spacing, the rafter spacing and the purlin or batten spacing from your design or the covering’s installation guide.
  4. 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 member
Ridge-support posts stand on the centre line at the same spacing; the end walls already have one when they have an odd number of posts. Pieces are cut longest first, each into the first stock length with enough left (first-fit decreasing). Board feet use the nominal size: 1 bd ft = 144 in³, so 1 m³ = 423.8 bd ft.

Worked 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
Worked example: a 10 × 8 m garage frame
ItemQty
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:

What each member does
MemberWhat it doesHow it is counted
PostsCarry the plates and the ridge down to the footingsPerimeter grid at the maximum spacing, plus the ridge-support row
Wall platesTie the post heads together and carry the rafter feet2 × length + 2 × width
Ridge beamCarries the rafter tops of a gable roofRoof length incl. both gable overhangs
RaftersSpan from the ridge (or high wall) to the eavesPer slope, at the rafter spacing, incl. the eaves overhang
Purlins / battensCarry the sheets or tiles across the raftersRows 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.