Cutting-list checks often compare the sum of the parts with the bar length. That misses the saw.

Count cuts, not parts

With n parts on one bar, you need n - 1 cuts if the last part ends exactly at the end of the bar, and n cuts if anything is left over (the remainder has to be cut off).

// all sizes in integer units (here: millimetres) function fits(bar, parts, kerf) { const sum = parts.reduce((a, b) => a + b, 0); const exact = sum + (parts.length - 1) * kerf; if (exact === bar) return { ok: true, cuts: parts.length - 1, left: 0 }; const withTail = sum + parts.length * kerf; return withTail <= bar ? { ok: true, cuts: parts.length, left: bar - withTail } : { ok: false }; } fits(1000, [400, 300, 294], 3); // { ok: true, cuts: 2, left: 0 } fits(1000, [400, 300, 293], 3); // { ok: false } 1 mm left, but a cut needs 3 

Use an exact grid

If sizes come in as 293.5 mm or inches with fractions, scale every size of that material to whole numbers first (for example tenths of a millimetre). Floats make 999.9999 look like 1000, and that is exactly the case this check exists for.

Keep a material balance

// parts + kerf + trims + offcuts + waste === original, per bar or sheet 

If the balance does not close, the cost of the job is wrong before labour is added.

We use the same rules (plus trims, rotation and grain on guillotine sheets) in Cut & Offcut Cost Optimizer (paid, with a free demo).