About this calculator
Timber, battens, steel profiles, pipe and rails are sold in stock lengths – often 3, 4.5 or 6 m. This calculator takes your cutting list (each piece length and how many of it) and works out how many stock lengths to buy and where to cut each piece, allowing for the width of the saw cut (the kerf). The cutting plan shows every length with its pieces and the offcut left at the end.
Formula
Pieces are sorted longest first and each is placed on the first length that still has room for it (the first-fit decreasing method). A length holds a set of pieces when
sum of piece lengths + (number of pieces − 1) × kerf ≤ stock length
– a piece may end exactly at the far end of the length without a final cut.
material used = total length of pieces ÷ (stock lengths × stock length) × 100 %
theoretical minimum = ⌈ Σ (piece + kerf) ÷ (stock length + kerf) ⌉
Worked example
6 m lengths, 3 mm kerf; 4 pieces of 2400 mm, 6 of 1200 mm and 5 of 800 mm:
length 1: 2400 + 2400 + 800 offcut 391 mm
length 2: 2400 + 2400 + 800 offcut 391 mm
length 3: 1200 + 1200 + 1200 + 1200 + 800 offcut 385 mm
length 4: 1200 + 1200 + 800 + 800 offcut 1988 mm
→ 4 lengths, 20.8 m of pieces from 24 m: 86.7 % used, 45 mm lost to the saw
The theoretical minimum is also 4, so no arrangement can do better.
FAQ
Is this always the best possible cutting plan? Not always. First-fit decreasing is a proven, fast method that is usually optimal or one length off. When the plan needs more lengths than the theoretical minimum, the calculator tells you.
What kerf should I enter? The thickness of the saw blade's cut: a circular saw or mitre saw blade is typically a few millimetres. Enter 0 to ignore it.
Should I add extra for mistakes? The count is exact for the pieces you list. Add a spare length yourself if the material has defects to cut out or you want a margin.
What is the profile width for? Only for drawing the cutting plan; it does not change the result.
Assumptions and limits
- Every stock length is the same and usable from end to end (no damaged ends to trim).
- Pieces are cut square across the length; mitres and angled cuts are not modelled.
- Up to 30 piece sizes and 500 pieces of each size.