Arrange a piece list in identical stock lengths
The total length of required parts is not enough to determine how they fit into stock. This planner assigns finished pieces to identical usable stock lengths using first fit decreasing: sort pieces from longest to shortest, then put each into the first existing stock length that can hold it. If none can, start another stock length.
The method gives a reproducible feasible arrangement under the stated assumptions. It does not guarantee the fewest stock lengths. A different arrangement may use less material.
Define usable stock and kerf
Enter stock length after deducting any end trims that you have already allowed. This model charges one full kerf to every finished piece, including the last piece in a stock length:
Used length in one stock piece = Σ(finished piece lengths) + number of pieces × kerf
Offcut = usable stock length − used length
That convention is deliberate and may differ from a process that retains an existing end or avoids the last separating cut. A zero-kerf model is available only by explicitly entering zero. Kerf is not included in the finished part length.
Example with a charged final cut
Request two 60 in pieces and two 35 in pieces, using 100 in usable stock and 1/8 in kerf per piece. The sorted list is 60, 60, 35, 35 in. The first-fit-decreasing plan places one 60 and one 35 in each of two stock lengths.
Each uses 60 + 35 + 2 × 0.125 = 95.250 in, leaving 4.750 in. Across both stock lengths:
- Finished pieces total 190.000 in.
- Four charged kerfs total 0.500 in.
- Offcuts total 9.500 in = 241.300 mm.
- Finished pieces occupy 95% of the 200 in purchased usable length. This percentage excludes kerfs from useful output.
Why the plan may not be optimal
With 10 in stock, zero kerf, and pieces 6, 5, 3, 2, 2, 2 in, this method uses three stock lengths: [6,3], [5,2,2], and [2]. But [6,2,2] and [5,3,2] fit into two. The counterexample shows why this output is labeled a heuristic plan rather than an optimum.
Review the table before cutting
Each stock row lists finished piece lengths, total usage with kerfs, and offcut. Calculations use exact dimensions before display rounding; a tiny positive kerf can prevent an apparent exact fit even when it displays as zero. Read the original inputs and applicable precision before using the plan.
The supported task is at most 100 finished pieces, with up to 50 input rows. A piece plus its charged kerf must fit in one stock length. The model has no mixed stock lengths, reusable-offcut inventory, defects, grain direction, saw constraints, or sequencing requirements. It does not select materials or approve cutting a particular hardware product.
For net lengths and explicit purchasing allowances before packing, use the continuous hardware length takeoff. The allocation rule and balance equations above define this planner completely; the unit definitions keep inch and millimeter plans physically equivalent.