1D Cutting Stock Optimizer

Minimize waste when cutting bars, pipes, and profiles to length. Optimizes 1D cutting layouts with First Fit Decreasing (FFD) or Best Fit Decreasing (BFD)…

Optimizes 1D cutting layouts with First Fit Decreasing (FFD) or Best Fit Decreasing (BFD) heuristics, including saw kerf compensation. Reports cutting patterns, stock usage, utilization, and waste.

How 1D Cutting Stock Optimization Works

The one-dimensional cutting stock problem asks how to cut required pieces from standard-length stock (bars, pipes, profiles, extrusions) using as few stocks as possible. The problem is NP-hard, so practical tools use fast heuristics that come very close to the optimum for typical workshop order lists.

First Fit Decreasing (FFD) sorts all pieces from longest to shortest, then places each piece into the first stock that still has room; if none fits, a new stock is opened. Best Fit Decreasing (BFD) also sorts pieces descending but places each piece into the stock that would have the least remaining space afterwards, which can pack tight combinations slightly better on some order mixes.

Each cut consumes material equal to the saw kerf. This calculator applies the kerf between consecutive pieces on the same stock (n pieces need n − 1 cuts), so the reported waste separates true end-of-bar offcut from kerf loss. For FFD, theory guarantees the result never exceeds 11/9 × optimum + 6/9 stocks (Dósa, 2007) — in practice it is usually optimal or within one stock of optimal.

When to Use This Tool

Common Mistakes to Avoid

How to Interpret Results

Related Standards & References

Frequently Asked Questions

Should I choose FFD or BFD?

Both sort pieces longest-first and differ only in bin choice: FFD takes the first stock with room, BFD the tightest fit. They usually produce the same stock count; when they differ, the gap is one stock. Run both (one click) and keep the better layout.

How is the kerf applied?

The kerf is added between consecutive pieces on the same stock — n pieces need n − 1 cuts, the trailing offcut needs no extra cut. Set the kerf to your actual blade or torch width (typically 2-4 mm for cold saws, 1-2 mm for band saws).

Can the result be worse than the true optimum?

Yes, by a provably small margin: FFD never needs more than 11/9 of the optimal stock count plus a constant. For workshop-scale order lists the result is almost always optimal; for mill-scale runs with thousands of pieces, exact column-generation solvers can sometimes save additional stocks.