Kerfwise Sheet Nesting Optimizer

Nest rectangular and shaped parts on sheets: kerf, grain, yield, lower bound, offcuts, SVG + DXF.

Parts (required)

Length runs along the grain. Tick grain to forbid rotation (on a grained material).

Parts
#NameLength (mm)Width (mm)QtyGrainShapea (mm)b (mm)
1
2
3
4
5
6
More options
mm

Common sizes: 2800 × 2070, 2440 × 1220, 3050 × 1220, 2500 × 1250, 2620 × 2070, 2750 × 1830, 2800 × 2100, 2440 × 1830, 1220 × 610.

mm

0 = unlimited.

mm
mm
mm
mm

Same seed + same input = same layout.

Try an example: · · ·

More about this tool

Part of Kerfwise

How it works

A cutting optimiser for panel saws and CNC routers: list parts (rectangles, L-shapes, corner cuts or quarter rounds) with quantity and grain, choose the sheet size (e.g. 2800 × 2070), saw kerf and trim margin, and get guillotine-cuttable or MaxRects layouts, sheet count, yield per sheet, the lower bound on the sheet count and the gap to it, reusable offcuts, the guillotine cut sequence, SVG drawings and a DXF R12 file. An optional deep search tries many seeded variations and stops as soon as the layout is proven optimal.

  • Parts are inflated by one kerf and the usable sheet (sheet − 2 × trim) by one kerf, so neighbouring parts are exactly one kerf apart and the outer parts touch the trimmed edge.
  • Guillotine: free-rectangle packing with best-area-fit / best-short-side-fit and split rules (shorter-leftover-axis, longer-leftover-axis, min-area); every placement records its edge-to-edge cuts, giving a panel-saw cut sequence. MaxRects: maximal free rectangles with best-short-side, best-area or bottom-left fit (tighter, for CNC).
  • Each method runs a fixed set of strategies (4 sort orders × fit/split rules × rotation on/off) and keeps the best: fewest unplaced parts → fewest sheets → least sheet area → largest single offcut → guillotine preferred. Deterministic for identical input.
  • Grain: on a grained material, parts marked grain keep their length along the sheet length; other parts may rotate 90°. Yield = part area / full sheet area. Offcuts = non-overlapping free rectangles ≥ the minimum offcut size.
  • Shaped parts: nested by their bounding box in 0/90/180/270° (grained: 0/180°); the empty notches of the polygon inside the box go back into the MaxRects free list (inset by the kerf), so smaller parts fill them. Guillotine layouts cannot contain shaped parts — auto picks MaxRects then. Yield counts the true polygon area.
  • Lower bound = max(⌈Σ (part + kerf) area / usable area⌉, number of parts larger than half the usable sheet in both directions). Gap = sheets used − lower bound; a gap of 0 proves the sheet count optimal. Deep search: a mulberry32-seeded multi-start search (perturbed sort orders, random fit/split rules, rotation preferences) that keeps the best layout and stops early at the bound.

Heuristic optimisation: the sheet count is proven optimal only when the gap to the lower bound is 0. Check that your saw can follow the cut sequence and measure your blade’s real kerf.

Sources

Part of Kerfwise

  • Kerfwise Cabinet & furniture CAD

    Design cabinets and furniture, get cut lists, optimised sheet layouts, costs and drawings.

    Open Kerfwise

Related tools

How to use the Kerfwise Sheet Nesting Optimizer

Lay out panels on full sheets with saw kerf, trim and grain, see the sheet count, yield, proven lower bound, reusable offcuts and the cut sequence, and export SVG and DXF.

What it is for

Ordering sheet material is a gamble without a layout. Will these parts fit on two sheets or need three? Can the saw actually make those cuts? Which offcuts are worth keeping? This optimiser places rectangular parts, plus L-shapes, corner-cut and quarter-round parts, on your sheet size. It allows for the saw kerf and the trimmed sheet edges, keeps grained parts running the right way, and reports sheets used, yield, reusable offcuts and the saw path.

It offers two methods. Guillotine layouts can be cut on a panel saw, with edge-to-edge cuts and a cut sequence. MaxRects packs tighter for CNC routers. Auto picks the better of the two. It also calculates a lower bound: the minimum number of sheets any layout could possibly use. When the result matches it, the sheet count is proven optimal. Otherwise you know exactly how big the remaining doubt is.

Worked example

Base cabinet parts in oak veneer on a 2800 × 2070 sheet with grain: 4 sides 720 × 559, 2 bottoms 564 × 559, 4 rails 564 × 99, 2 shelves 562 × 515, 2 doors 716 × 596. Kerf 4, trim 10, price 148 per sheet, method Auto:

14 of 14 parts fit on 1 sheet of 2800 × 2070 mm with 67.2 % yield (guillotine).

Lower bound 1, gap 0, so the result is proven optimal. The saw path is 26.7 m, and 1.64 m² of offcuts are worth keeping. The largest is 1336 × 968 mm at x 1454, y 1092. No grained part was rotated.

Plywood 2440 × 1220, MaxRects: a 1200 × 600 top, 2 sides 700 × 580, 3 shelves 1160 × 300 and 4 strips 1160 × 80. Kerf 3.2, trim 5. Result: 2 sheets, 49.5 % yield, and the lower bound is also 2. Sheet 1 is 92.8 % full and sheet 2 holds just two strips (6.2 %). Drop those two strips (cut them from an offcut, or make them from other stock) and everything fits on one sheet at 92.8 %. The second sheet was paying for 0.19 m² of parts.

16 panels 600 × 500 on 2800 × 2070: exactly one sheet at 82.8 %, still fine with a 20 mm trim.

How to read the result

  • Sheets / yield: yield is part area ÷ full sheet area.
  • Lower bound / gap: a gap of 0 means no layout can use fewer sheets. A gap of 1 means one sheet might still be saved, and Deep search may find it.
  • Offcuts kept: free rectangles at least as large as your minimum offcut size, with their positions.
  • Placements: x and y from the top-left of the sheet, with x along the sheet length, plus the size on the sheet and whether the part was rotated.
  • Saw path and the SVG/DXF downloads (dashed lines in the guillotine SVG are the cuts).

Tips and common mistakes

  • Length runs along the grain. Tick grain for parts whose grain direction matters. They're never rotated on a grained material.
  • Measure your blade. Kerf is added between all parts, so 16 parts in a row add 15 kerfs.
  • Trim is per edge. Factory sheet edges are often chipped, so 10 mm is a sensible default.
  • Shaped parts force MaxRects, because guillotine cuts can't follow an L. Small parts are tucked into their notches.
  • Look at the last sheet. A nearly empty final sheet is a hint to adjust the part list, as in the plywood example.

FAQ

Is the result really optimal?

Only when the gap to the lower bound is 0, and then it's proven for the sheet count. With a gap, the layout is a good heuristic result.

Guillotine or MaxRects?

Guillotine for panel saws and track saws, because every cut runs edge to edge. MaxRects for CNC routers, where tighter packing pays off.

Can I limit the number of sheets I have?

Yes. Set Sheets available. Parts that don't fit are reported as unplaced.

Can I import the layout into CAM software?

Yes. Download the DXF R12 file with all sheet layouts.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://kerfwisesheetnesting.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://kerfwisesheetnesting.usefulweb.site/mcp · tool name kerfwise_sheet_nesting
Example request
curl -s -X POST https://kerfwisesheetnesting.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"parts":[{"name":"Panel","length":600,"width":500,"qty":16}],"sheetLength":2800,"sheetWidth":2070,"kerf":4,"trim":10,"method":"guillotine","grainedMaterial":false}'
Feedback · ideas & bug reports welcome