Linear Cutting Stock & Order Optimizer

Turn your part lengths and quantities into a stock order plan.
Compare bar sizes, kerf, end trim, cutting sequences, offcuts and purchase costs in KRW.

Dimensions and prices are fictional examples. Calculate one material and cross-section at a time. All lengths are mm and all prices are KRW.

End trim is deducted from every bar. One kerf is reserved for every part, including the last. Each stock option is assumed to have unlimited supply.

1. Finished parts required

Up to 30 rows and 200 parts in total. Grain, angles and defects are excluded.

Part #1

0.1100,000 · 0.1 mm

1200

Part #2

0.1100,000 · 0.1 mm

1200

2. Available stock options

Up to 5 options. Enter actual lengths and per-bar quotes for matching materials and cross-sections. Use the same tax basis throughout.

Stock option #1

0.1100,000 · 0.1 mm

1100,000,000

Stock option #2

0.1100,000 · 0.1 mm

1100,000,000

3. Cutting allowances and offcuts

020 · 0.1 mm

01,000 · 0.1 mm

0100,000 · 0.1 mm

Include trimming kerfs in the total end allowance. The reusable threshold classifies offcuts only; it does not establish a safe clamping length.

Cutting and stock order result

Cost optimal for entered assumptions

Stock purchase cost

KRW 28,000

Bars to order

2

Length yield

88.89%

The objective minimizes cost, then total stock length, then bar count. Even up to 18 parts, a 100,000-node cutoff prevents proof of optimality. Shipping, labour and additional tax are not automatically added.

Search nodes: 201 · Source checked: 2026-09-18

Order quantities

Stock quantities and costs by option
Stock optionLength mmCountUnit priceSubtotal
#12,4001KRW 12,000KRW 12,000
#23,0001KRW 16,000KRW 16,000
Total stock
5,400 mm
Finished parts
4,800 mm
Kerf loss
24 mm
End trim loss
20 mm
All offcuts
556 mm
Reusable offcut candidates
0 mm
Scrap estimate (losses + short offcuts)
600 mm

Part layout and cutting sequence per bar

Blue represents finished parts, grey represents kerf and combined end loss, and green represents the offcut. End losses are drawn together. Use the numeric dimensions to confirm the shop process.

Bar 1 · #1 · 2,400 mm

#1: 700 mm → #1: 700 mm → #1: 700 mm

Total end trim 10 mm · Total kerf 9 mm · Offcut 281 mm (short or zero offcut)

Bar 2 · #2 · 3,000 mm

#1: 700 mm → #2: 500 mm → #2: 500 mm → #2: 500 mm → #2: 500 mm

Total end trim 10 mm · Total kerf 15 mm · Offcut 275 mm (short or zero offcut)

Print the saved TXT or send it to your cutting shop to verify measurements, quotes, kerf, clamping allowance and stock availability.

What does a linear cutting stock optimizer do?

Turn a list of finished part lengths into an order for uncut bars, timber strips or pipes.
Stock means the full-length material sold by the supplier; a part is the finished length your project needs.
Dividing total part length by stock length can miss incompatible combinations and material removed by the blade.
This calculator assigns every requested part to a specific bar and checks the capacity of each bar.

Use it when preparing a DIY repair, hobby project or a cutting quote for a family member.
Unlike an area-based renovation budget, it compares individual part lengths, quantities and per-bar prices.
Save the plan to check dimensions with the cutting shop before placing an order.
The output is a purchase and layout review, rather than a machine instruction or structural assessment.

Group matching materials before calculating

Compare stock options that differ in length

All parts in one calculation must share the same material, width, thickness and quality.
Equal lengths do not make different cross-sections interchangeable.
Run separate plans for different timber sections, pipe diameters or materials.
Rotating rectangular parts on a sheet is outside this one-dimensional model.

Every stock option is assumed to be available in unlimited quantities.
If an option is unavailable, remove it and calculate again; if supply is limited, ask the shop to review the actual quantities.
Existing offcuts, knots and other defects, grain direction, angled cuts and joined pieces are excluded.
The model does not determine whether a bar is safe to clamp or whether a member is strong enough for its intended use.

Inputs and units

Finished parts

Enter finished length and required quantity from your drawing.
Lengths range from 0.1 to 100,000mm; quantities are whole numbers, with up to 30 rows and 200 parts overall.
Repeated lengths retain their request-row numbers.
Include spare parts explicitly in the requested quantities.

Stock options

Enter up to 5 bar lengths and per-bar prices.
Stock lengths range from 0.1 to 100,000mm and prices from KRW 1 to KRW 100,000,000 in whole won.
Check whether a quote is per bar or per bundle.
The starting prices are fictional examples, not current market averages.

Kerf and end trim

Kerf ranges from 0 to 20mm and total end trim from 0 to 1,000mm per bar.
Trim is the combined allowance for both ends, including the kerfs used to clean up those ends.
It must be shorter than every entered stock length.

Reusable offcut threshold

Choose the shortest offcut worth keeping, from 0 to 100,000mm.
This classifies leftovers; it is neither a minimum finished-part length nor a safe clamping limit.
Offcut value is not deducted from the purchase cost.

All lengths use millimetres to one decimal place.
Multiply centimetres by ten and verify the usable measured length rather than relying on the nominal size alone.
All prices use KRW; convert other currencies consistently before entering them.
Use the same tax basis for every quote: shipping, labour and additional tax are not automatically added.

Capacity calculation including kerf

Length conservation for each bar

Sum of (finished length + kerf) ≤ stock length − total end trim
Offcut = stock length − total end trim − sum of (finished length + kerf)

This conservative model reserves one kerf per part, including the last part.
A process that reuses the original end face or omits the final cut can produce a different layout.
A part as long as the entire bar will not fit if a positive kerf is entered.
Include trimming kerfs in total end trim; do not add them again to the per-part kerf allowance.

Two 497mm parts fit exactly into a 1,000mm bar with 3mm kerf and zero end trim.
Two 497.1mm parts exceed that capacity and require two bars.
The packing arithmetic uses integer tenths of a millimetre to preserve these boundaries.
Measurements and machine tolerances still need to be checked with the shop.

What does the optimality status mean?

Cost is the first objective

The plan minimizes stock purchase cost first, total stock length second and bar count third.
More bars may therefore be selected when their lower unit prices make them cheaper overall.
Cutting time and the number of machine operations are not separately minimized.
A high-yield plan and a low-cost plan can differ.

Exact search and heuristic layouts

For up to 18 parts, the calculator explores possible assignments and proves optimality only when the search completes within 100,000 nodes.
If that limit is reached, the best feasible plan found so far is returned with optimality not proven.
For 19–200 parts, it compares several longest-first heuristic layouts without proving the minimum.

A heuristic cost is a feasible upper bound: every requested part fits under the entered assumptions, but a cheaper arrangement may exist.
No invented accuracy percentage or savings guarantee is attached to it.
Plans tied on cost and total length can distribute offcuts differently; maximizing reusable offcut length is not a separate objective.
Identical inputs produce a deterministic result, including the search-limit status.

Step-by-step use and shop review

  1. Check finished dimensions against the drawing and separate materials and cross-sections.
  2. Enter part lengths and quantities, then add actual stock sizes and per-bar quotes.
  3. Confirm blade kerf, total end cleanup and clamping allowances with the shop.
  4. Calculate and reconcile the stock order and bar-by-bar sequences with your requested parts.
  5. Read the optimality status, save the TXT report and print it or send it for a cutting quote.

Editing inputs removes the old result so a previous order cannot be mistaken for the current plan.
Calculate again to obtain a new layout.
If any part fits no available bar, the calculator identifies its request row and withholds the entire order plan.
It does not silently produce a partial order; add a longer option or correct the measurements first.

Worked example: ordering two different bar lengths

Fictional inputs

Request four 700mm parts and four 500mm parts, totalling 4,800mm of finished material.
Stock costs are KRW 12,000 for 2,400mm and KRW 16,000 for 3,000mm.
Use 3mm kerf, 10mm combined end trim per bar and a 300mm reusable threshold.

Example cutting sequences and offcuts by bar
Stock and layoutOffcut mmCost KRW
2,400mm: 700mm × 328112,000
3,000mm: 700mm × 1 + 500mm × 427516,000

The two bars cost KRW 28,000 in total.
Of the 5,400mm purchased, finished parts account for 4,800mm, kerf for 24mm, end trim for 20mm and offcuts for 556mm.
Length yield is approximately 88.89%.
Both offcuts are below 300mm, so this layout has 0mm of reusable candidates and 600mm of estimated scrap.
Other tied layouts may distribute the offcuts differently.

Separate yield, total offcuts and scrap

Length yield = finished part length ÷ purchased stock length × 100
Reusable candidates = positive offcuts at or above the threshold
Estimated scrap = kerf loss + end trim + offcuts below the threshold

Yield describes the proportion of purchased length that becomes finished parts.
It does not measure a price discount or production speed, and the cheapest plan need not have the highest yield.
Total offcuts include both reusable candidates and short remnants; neither should be confused with sawdust removed by the blade.
Changing the reusable threshold changes the classifications but not the cost objective.

An offcut long enough to keep may still have unsuitable end faces, defects or the wrong section for your next project.
Do not assume that a length candidate is saleable inventory or automatically deduct its value from a future order.
Record its material, section and measured length separately if you retain it.

Practical uses for repairs and hobby projects

Shelf edging and timber strips

Put long members and short connecting pieces in the same list when their material and section match.
Ordering them independently may miss room for the short pieces in bars already being purchased.
Different sections always require separate plans.

Comparing stock quotes

Enter short and long stock options together to see whether a mixed order lowers purchase cost.
Add shipping costs and transport restrictions separately when comparing the final quote.
A cheaper long bar may still be impractical to transport or cut in your workspace.

Only include products the supplier can actually sell in the required material and quality.
When a quote changes, update price and availability and compare the assumptions in the old and new reports.
An old online price list or a quote for a different thickness should not be treated as the current price for your project.

Frequently asked questions

Why can a plan fail even when total stock length is sufficient?

A part cannot be divided across separate bars.
If one part plus its allowances fits no option, you need a longer bar or corrected dimensions.

Is kerf reserved for the final part too?

Yes, this model reserves one kerf for every part.
Ask the shop to review the layout if its process can reuse an end face or omit the last cut.

Will a higher reusable threshold change the cutting plan?

The threshold only classifies offcuts.
It does not change the cost, stock-length or bar-count objective, and reusable length is not separately maximized.

Can I use this for two-dimensional sheet cutting?

No, it handles straight one-dimensional stock with a constant cross-section.
Sheet width, rotation and area layout need a different model.

Is the heuristic output the minimum order?

A heuristic or search-limit status means the minimum is not proven.
All requested parts fit the displayed arrangement, but a cheaper combination may exist.

Are tax and cutting labour included?

Only the entered per-bar quotes are added.
Keep tax treatment consistent and ask the supplier to add delivery, labour and other charges separately.

Are my part list and report uploaded?

Packing and TXT creation run in your browser.
Saving downloads the current inputs and results as a local file; this feature does not upload the material list.

Can I start cutting immediately from the result?

First confirm measured dimensions, kerf, clamping allowances, quality and procedures with the shop.
The tool does not assess structural strength or cutting safety.

Sources and review date

Source checked: 2026-09-18.
The official Google OR-Tools bin packing model informs the single-assignment and capacity constraints.
This calculator uses its own search for multiple stock lengths, prices and cutting losses; it does not run the OR-Tools library.
No statutory price or certified cutting standard is applied, and the example prices are not current retail quotes.

Recheck kerf and end allowance whenever the cutting process or machine changes.
Before ordering, verify actual bar lengths, stock availability, prices, tax and transport conditions.
Optimality applies only to the entered assumptions and is not a certification of shop quality or safe operation.

Prepare a cutting quote with a complete plan

Send stock quantities, the requested part list and all loss assumptions together so the shop can review the actual job.
If it suggests another sequence, reconcile finished dimensions, quantities and purchase cost before accepting the change.
Return to the part list or estimate the broader project separately with the interior renovation cost calculator.

Related calculators