---
title: "The Cutting Stock Problem, Explained Simply"
description: "What the cutting stock problem is, why it is NP-hard, and how 1D and 2D optimizers (guillotine vs true nesting) find good solutions fast."
image: "https://nestingcalc.com/og-default.png"
url: "https://nestingcalc.com/guides/cutting-stock-problem/"
locale: "en"
---

# The Cutting Stock Problem, Explained Simply

What the cutting stock problem is, why it is NP-hard, and how 1D and 2D optimizers (guillotine vs true nesting) find good solutions fast.

## What is the cutting stock problem?

Given stock lengths (bars, boards, sheets) and a list of requested pieces, cut all pieces from as little stock as possible. It sounds trivial; mathematically it is NP-hard — the number of combinations explodes as the piece list grows.

## 1D, 2D and guillotine cuts

1D means one dimension: pipes, profiles, studs. 2D adds width — plywood, glass, sheet metal. Guillotine cuts run edge to edge (what a panel saw does); true nesting allows any rotation and non-guillotine layouts (what lasers and routers do).

## Why exact solutions are rare

Only small instances can be solved exactly (dynamic or integer programming). Industry relies on heuristics — First Fit Decreasing, Best Fit Decreasing, shelf algorithms — which usually land within a few percent of the optimum in milliseconds.

## Kerf and other real-world traps

Every cut consumes material: a 3 mm blade kerf adds 3 mm per cut, and 50 cuts silently eat 150 mm of stock. Offcut reuse, grain direction and trim losses matter just as much as the packing itself.

## Try it on your own cut list

The [Linear cutting calculator](https://nestingcalc.com/linear-cutting-calculator/) optimizes bar and profile lists; the [Sheet cutting calculator](https://nestingcalc.com/sheet-cutting-calculator/) handles guillotine sheet layouts with rotation and kerf. Paste your list and compare total stock before and after.

[Linear cutting calculator](https://nestingcalc.com/linear-cutting-calculator/) [Open the linear cutting calculator](https://nestingcalc.com/linear-cutting-calculator/)

```json
[{"@context":"https://schema.org","@type":"Organization","@id":"https://nestingcalc.com/#organization","name":"NestingCalc","url":"https://nestingcalc.com/","description":"Free cutting optimizer & nesting calculators","logo":"https://nestingcalc.com/logo-512.png"},{"@context":"https://schema.org","@type":"WebSite","@id":"https://nestingcalc.com/#website","name":"NestingCalc","url":"https://nestingcalc.com/","inLanguage":"en","publisher":{"@id":"https://nestingcalc.com/#organization"}},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"NestingCalc","item":"https://nestingcalc.com/"},{"@type":"ListItem","position":2,"name":"Guides & Articles","item":"https://nestingcalc.com/guides/"},{"@type":"ListItem","position":3,"name":"The Cutting Stock Problem, Explained Simply","item":"https://nestingcalc.com/guides/cutting-stock-problem/"}]}]
{"@context":"https://schema.org","@type":"Article","@id":"https://nestingcalc.com/guides/cutting-stock-problem/#article","mainEntityOfPage":"https://nestingcalc.com/guides/cutting-stock-problem/","headline":"The Cutting Stock Problem, Explained Simply","description":"What the cutting stock problem is, why it is NP-hard, and how 1D and 2D optimizers (guillotine vs true nesting) find good solutions fast.","inLanguage":"en","image":"https://nestingcalc.com/og-default.png","author":{"@id":"https://nestingcalc.com/#organization"},"publisher":{"@id":"https://nestingcalc.com/#organization"},"datePublished":"2026-08-30","dateModified":"2026-10-02"}
```
