Material cutting optimizer
Buying timber, steel tube, aluminium profile or pipe in fixed lengths? List the pieces you need, with lengths and quantities, and the stock length you can buy, and the optimizer works out how many bars you need and exactly which pieces to cut from each one. It allows for the saw kerf lost at every cut and an optional trim at each end, can use a second stock length or a limited number of offcuts, and shows each bar as a coloured strip with the waste at the end. Any unit works, as long as all lengths use the same one.
One piece per line, for example “1200 x 4 shelf”. All lengths in the same unit.
- Bars needed
- 3 × 6,000
- Pieces
- 18
- Material used
- 72.78%
- Total waste
- 4,900
Cutting plan
Bar 1 · 6,000 · waste 350
1,2001,2001,2001,200850Bar 2 · 6,000 · waste 150
850850850850850400400400400Bar 3 · 6,000 · waste 4,400
400400400400
How to use the Material Cutting Optimizer
- 1
List the pieces
One line each: length × quantity and an optional label, e.g. 1200 x 4 shelf.
- 2
Enter stock and kerf
Bar length, how many you have (blank = unlimited), saw kerf and end trim.
- 3
Follow the plan
Cut each bar as shown, from the left.
How the plan is made
Pieces are sorted longest first and packed into bars with two classic methods, First Fit Decreasing and Best Fit Decreasing; the plan that needs fewer bars (then less stock) wins. Each cut after the first in a bar uses one kerf.
- Used length = Σ pieces + (pieces − 1) × kerf
When to use it
- Order the right number of lengths for a deck, shelf or frame.
- Plan steel or aluminium cuts in a workshop.
- Use up offcuts before buying new stock.
Limits
- Cuts bars in one dimension only; sheet goods (plywood, MDF, glass) need a 2D panel optimizer.
- The result is near-optimal: for most jobs it is the best possible, but very large lists can occasionally use one bar more than the theoretical minimum.
Privacy
Calculated in your browser; nothing is sent.
Frequently asked questions
What is kerf?
The width of material the saw blade removes. Around 3 mm for a circular saw, 1–2 mm for a band saw. It adds up over many cuts.
What unit should I use?
Any: millimetres, centimetres, inches. Use the same unit for pieces, stock, kerf and trim.
Why use end trim?
Bars often have damaged or out-of-square ends. Trim removes that length from both ends before planning.
Can I use offcuts I already have?
Enter the offcut length as stock with its quantity, and a standard bar as the second length for anything that doesn’t fit.
Is this the true optimum?
Finding the true optimum is an NP-hard problem. The methods used here are proven to be close and are usually exact for real projects.
Related tools
- Material Waste CalculatorOrder quantity with a waste allowance, packs to buy, cost and spare, plus actual waste.
- Steel Weight CalculatorWeight of steel bars, plates, pipes and sections per metre and in total, in kg and lb.
- Construction Cost EstimatorBuild up a construction estimate from line items with contingency, overhead, profit and tax.
People also use
Last updated November 24, 2026 · How we build and test our tools