Home › Calculators › Linear Cut Optimizer

Linear Cut Optimizer

List the lengths you need to cut and the board, pipe or bar lengths you can buy. The optimizer packs the cuts onto as few boards as possible, allows for the saw kerf between every cut, and shows a cutting plan for each board with the leftover offcut.

Last updated:

Settings

Stock lengths you can buy

LengthOn handPrice eachRemove

Leave On hand blank for unlimited. Add a price to every length to optimize for cost instead of total length.

Cuts needed

LabelLengthQtyRemove
Fractions work: 30 1/2, 30-1/2, 2' 6" or 30.5
Paste a list

Cutting plan

Advertisement
Advertisement

How to use the Linear Cut Optimizer

  1. Pick the units and enter the saw kerf (about 1/8 in for a typical miter or table saw blade). Add an end trim if your boards have rough or split ends.
  2. Add the stock lengths you can buy, such as 8' and 10' boards. Leave “On hand” blank for unlimited, or enter how many you already have.
  3. Enter the cuts with a label, length and quantity, or paste a list like 30 1/2 x 4 shelf.
  4. Press Calculate cutting plan. The plan updates as you type, showing how many boards you need and where each cut goes.
  5. Copy, print or download the plan and cut the longest pieces on each board first, measuring from the same end each time.

How the cutting plan is calculated

Cutting a list of lengths from boards with as little waste as possible is called the one-dimensional cutting stock problem. Each cut needs its own length plus one saw kerf, so a board of length L holds a set of cuts when:

sum of cut lengths + kerf × (number of cuts − 1) ≤ L − end trim

(If you use an end trim, one more kerf is subtracted for the trimming cut.) For each new board the optimizer runs a bounded knapsack search over the remaining cuts to find the combination that fills that board most completely. That pattern is repeated while enough identical cuts remain, then the search starts again with what is left. A first-fit decreasing layout (largest cut first) is calculated too, and the better plan wins.

Waste % = 1 − total cut length ÷ total stock length. Example: four 60 in aprons and slats from 96 in boards use 60 + 1/8 in each, leaving a 35 7/8 in offcut per board, which is often enough for two 16 1/2 in braces. Mixing short and long cuts on the same board is where most of the savings come from.

Common stock lengths and kerf values

MaterialTypical stock lengths (US)Metric equivalents
Dimensional lumber (2×4, 2×6, 1×4…)8', 10', 12', 14', 16' (studs often 92 5/8" or 104 5/8")2.4, 3.0, 3.6, 4.2, 4.8 m
Trim, molding, baseboard8', 12', 16'2.4, 3.6, 4.8 m
Hardwood boardsRandom lengths, often 6'–12'1.8–3.6 m
PVC and copper pipe, conduit10'3.0 m
Steel and aluminum tube or bar20' (sometimes 12' or 24')6.0 m
Cutting toolApproximate kerf
10" or 12" miter saw / table saw, full-kerf blade1/8 in (3.2 mm)
Thin-kerf blade3/32 in (2.4 mm)
Circular saw, 7 1/4" bladeabout 1/16–3/32 in (1.6–2.4 mm)
Hand sawabout 1/16 in (1.5 mm)
Metal chop saw / abrasive wheelabout 1/8 in (3 mm)
Metal band sawabout 1/32–1/16 in (1 mm)
Pipe or tubing cutter0

Tips for cutting with less waste

  • Buy one spare board for knots, warps or a mismeasured cut, especially on larger projects.
  • Check actual board length. Many "8 foot" boards are a little longer than 96 in; measure a few and enter the real length if you want to use that extra.
  • Cut the longest pieces first on each board, and measure every piece from a freshly squared end so the kerf does not accumulate as error.
  • Label pieces as you cut with the names from the plan to keep same-looking parts apart.
  • For plywood and other sheets, use the Cut List Optimizer, which packs rectangles onto sheets instead of lengths onto boards.

Frequently asked questions

How does the linear cut optimizer work?

It treats each board as a bin and each cut (plus one saw kerf) as an item. For every new board it searches for the combination of remaining cuts that fills the board most completely, choosing between your stock lengths, then repeats that pattern while it still fits. It also runs a first-fit decreasing layout and keeps whichever plan needs the least total stock (or the lowest cost when every stock length has a price).

Is the result the minimum possible number of boards?

For typical project lists it is optimal or very close, but this is the one-dimensional cutting stock problem, which is mathematically hard to solve perfectly for large lists. The tool uses an exact best-fill search per board, which usually matches the true minimum, but a very large list may occasionally be beaten by one board.

How is the saw kerf handled?

Every cut removes a slice of wood as wide as the blade. The optimizer adds one kerf after each piece, except when the last piece ends exactly at the end of the board. A typical full-kerf blade removes about 1/8 in (3.2 mm); thin-kerf blades about 3/32 in (2.4 mm). With many cuts per board, the kerf can add up to an inch or more.

What is end trim for?

Lumber often comes with ends that are not square, checked (split) or stamped. End trim removes that length from the start of every board before the first cut, plus one kerf for the trimming cut, so all your pieces come from clean wood. A quarter to a half inch is common for construction lumber.

Can I use different board lengths together?

Yes. Add every length you can buy, for example 8', 10', 12' and 16'. The optimizer picks the length that wastes the least for each pattern, and at the end swaps a board for a shorter one when its cuts still fit. If you enter a price for every length, it minimizes total cost instead, which matters because longer boards often cost more per foot.

How is waste calculated?

Waste % = 1 − (total length of all cuts ÷ total length of stock used). It includes saw kerf, end trim and all offcuts. Offcuts longer than the “keep” length you set are counted separately because they are usually still useful for small parts or blocking.

Does this work for pipe, steel, trim and molding?

Yes. The math is the same for anything sold in fixed lengths and cut to length: dimensional lumber, trim and molding, dowels, metal tube and bar, PVC or copper pipe, conduit, aluminum extrusion and curtain rods. Set the kerf to match your cutting tool, or 0 for tools that do not remove material, like a tubing cutter.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Cut List OptimizerLay out plywood and MDF parts on sheets with kerf and grain, and print the cutting diagrams.Board Foot CalculatorAdd up board feet and lumber cost for any list of boards, nominal or actual size.Lumber Size ConverterConvert nominal lumber sizes (2×4, 4×4, 1×6…) to actual dimensions in inches and mm.Fraction CalculatorAdd, subtract, multiply and divide fractions with steps.G-Code ViewerPreview 3D printer and CNC G-code in 2D or 3D with layers, size and estimated time.Square Footage CalculatorTotal sq ft and m² for rooms of any shape, with cost estimate.Concrete CalculatorEstimate concrete volume, bags and cost.Paint CalculatorHow much paint for a room, minus doors and windows, in gallons or liters.Tile CalculatorHow many tiles and boxes you need for a floor or wall, with waste.Flooring CalculatorWork out flooring area, boxes needed and cost with waste allowance.Drywall CalculatorCount drywall sheets, screws, joint compound and tape for walls and ceilings.Brick CalculatorEstimate bricks, mortar volume and mortar bags for a wall, minus openings.Fence CalculatorWork out fence posts, rails, pickets and concrete bags for any fence length.Deck CalculatorDeck boards, joists, posts, screws and total cost from your deck size.Wallpaper CalculatorWork out how many rolls of wallpaper you need, with pattern repeat and waste.Stair CalculatorFind riser height, tread run, stringer length and angle, with IRC code checks.Insulation CalculatorFind the R-value to add for your climate zone and how many batts or blown-in bags to buy.Rain Gutter CalculatorSize gutters and downspouts from roof area, roof pitch and local rainfall intensity.Moving Cost CalculatorCompare DIY truck, full-service movers and container costs, with truck size and packing estimates.Concrete Block CalculatorCount concrete blocks (CMU) for a wall, minus doors and windows, plus mortar bags.Roof Pitch CalculatorConvert rise and run or an angle to roof pitch x/12, degrees, slope % and rafter multiplier.TV Size CalculatorFind a TV or monitor's width, height and area from its diagonal and compare two screens.TV Viewing Distance CalculatorBest seating distance for your TV size and resolution (SMPTE, THX, 4K), or the best TV size.Price per Square Foot CalculatorFind price per sq ft or m², total price or area, and compare several homes by value.House Flipping CalculatorFix-and-flip profit, ROI and 70% rule max offer from purchase, rehab, holding and sale costs.Stud CalculatorCount wall studs and plates from wall length, spacing, corners and openings.Carpet CalculatorCarpet for your rooms in sq ft and sq yd from a 12 or 15 ft roll, with padding and cost.Baseboard CalculatorLinear feet of baseboard and number of pieces for your rooms, minus doorways.Grout CalculatorGrout in kg, lb and bags from tile size, joint width, depth and area.Asphalt CalculatorTons of asphalt from area and thickness at 145 lb/ft³, with volume and cost.Sand CalculatorSand in cubic yards, m³, tons and bags for any area and depth.Siding CalculatorSiding squares, panels and J-channel from walls and gables minus doors and windows.Concrete Steps CalculatorConcrete volume and bags for poured steps from step count, rise, run, width and landing.Baluster Spacing CalculatorNumber of balusters and exact gap and on-center spacing for a railing under the 4-inch rule.Caulk CalculatorCaulk volume and number of 10.1 oz cartridges or squeeze tubes from joint length and size.Ceiling Fan Size CalculatorCeiling fan blade span, downrod length and minimum airflow (CFM) for any room.Concrete Mix Ratio CalculatorCement bags, sand, gravel and water for any concrete mix ratio (1:2:3, 1:2:4, M15, M20).Curtain Size CalculatorCurtain length, panel width and number of panels from your window size and fullness.Water Heater Size CalculatorRecommended tank size and first-hour rating from household size and peak-hour hot water use.Household Water Usage CalculatorGallons and liters your household uses per day, month and year by activity, plus the cost.AC Running Cost CalculatorFind what your air conditioner costs to run per hour, day and month from BTU, SEER and your rate.Balloon Garland CalculatorHow many balloons for a garland or arch: counts by size and color, packs, helium and build time.Bathroom Remodel Cost CalculatorEstimate a bathroom remodel by size, type and finish, with itemized tile, vanity and labor.Board and Batten CalculatorBattens, spacing, linear feet and cost for a board and batten accent wall or siding.CFM CalculatorFind the CFM a fan needs for a room from its size and air changes per hour.Christmas Lights CalculatorLight strands, bulbs, watts and strands per circuit for a tree, roofline or shrubs.Cost to Build a House CalculatorEstimate the cost to build a house by size, stories, quality, garage, basement and region.House Painting Cost CalculatorEstimate paint gallons, supplies and labor cost to paint a house inside or out.Countertop CalculatorSquare footage and installed cost of countertops, including L/U shapes and backsplash.Crown Molding CalculatorMiter and bevel settings for crown molding plus linear feet, pieces and a cut list.Deck Footing CalculatorConcrete volume, 40–80 lb bags and form tubes for round or square deck footings.Dumpster Size CalculatorEstimate cubic yards and tons of debris and pick the right 10–40 yard roll-off dumpster.Heat Pump Savings CalculatorCompare your gas, propane, oil or electric heating cost with a heat pump and see the payback.Kitchen Remodel Cost CalculatorEstimate a kitchen remodel by size, finish level and scope with an itemized cost breakdown.Metal Roofing CalculatorPanel count and cut lengths, screws, ridge cap and trim for a metal roof.Moving Truck Size CalculatorCount your furniture and boxes to get cubic feet and the right moving truck, 10 to 26 ft.Projector Throw Distance CalculatorThrow distance, screen size and image height from your projector's throw ratio.Roof Replacement Cost CalculatorEstimate the cost of a new roof from footprint, pitch, material and tear-off layers.Rug Size CalculatorFind the right rug size for a living room, bedroom or dining room, with a placement preview.Solar Panel Output CalculatorDaily, monthly and yearly kWh from your solar panels, and what that power is worth.Space Heater Cost CalculatorCost to run a space heater per hour, day, month and season, high vs low vs eco.Storage Unit Size CalculatorList your furniture and boxes to find the right storage unit, 5x5 to 10x30, with fill %.Event Table CalculatorHow many tables and chairs for a wedding or party, with head table, linens and floor space.Attic Ventilation CalculatorFind the attic net free vent area (1/150 or 1/300) and how many ridge, soffit and box vents.Concrete Weight CalculatorWeight of a concrete slab, block or cylinder in lb, kg and tons, with hauling loads.Deck Railing CalculatorPosts, rails, balusters, post caps and hardware for your deck railing runs.Drywall Mud CalculatorJoint compound buckets, tape rolls and drywall screws from square feet or sheets and finish level.Even Spacing CalculatorSpace shelves, posts, pickets or pictures evenly: equal gap, on-center spacing and every mark.
See all 99 Home & Construction Calculators →