8 production-tested calculators we use every day in our Nepal CMT factory. Use them online below, or install with one command — npm or pip.
Two of the most-used calculators are running below. No signup, no backend — the math runs in your browser.
Each runs in your browser. No signup.
Pattern area ÷ marker area × 100, with wasted area. Any units.
Fabric per garment from the marker, plus the knit T-shirt kg/dozen method.
Live FOB cost sheet: fabric, trims, CM, overheads, profit. CSV download.
Printable inline QC report with DHU and defect %. CSV download.
12 defects with causes, checks and major/minor class, plus real counts from one knit factory. CSV download.
Step-by-step procedure when a needle breaks, plus a printable needle record. CSV download.
Length and width shrinkage % against your buyer's limits, with a shade check guide and test record. CSV download.
Factory CPM and CM price per garment from your monthly cost.
Observed time × rating × (1 + allowance), plus a garment builder.
(Pieces × SAM) ÷ (operators × minutes) × 100.
Operator piece-rate earnings and SAM-based targets.
Full sample size and accept/reject tables by lot size.
Each package is published on npm and PyPI as separate, independent libraries. MIT licensed.
ISO 2859-1 AQL sampling. Cross-verified against QIMA. 3-tier garment inspection support.
DHU + breakdown by defect type, multi-checker daily aggregation, benchmark classification.
Sewing line efficiency %, target output reverse calc, required-worker planning, line balance / bottleneck analysis.
Knit (GSM × area) and woven (marker length) methods. Wastage allowance, GSM ↔ oz/yd² conversion.
(SAM × CPM / Efficiency) + Trims + Pack. Country comparison (Bangladesh, India, Vietnam, USA, +9 more).
SMV / SAM stopwatch method with performance rating and allowance. Foundation for every other metric.
Piece-rate earnings with quality bonus, speed bonus, overtime. Eliminates "supervisor calculated it wrong" disputes.
These calculators are the math. Scan ERP is the rest — operator scanning, real-time WIP, payment automation, QC dashboards, and printer/biometric integration on a working CMT floor.
See Scan ERP →Every formula here is open source and MIT licensed — inspect the implementation, verify the maths, and reuse it. The packages are published on npm and PyPI, so a result can be reproduced independently rather than taken on trust.
Copy this attribution
Scan ERP — Open-source garment factory calculators (SMV, DHU, line efficiency, fabric consumption, CMT cost, piece rate). https://scanerp.pro/tools/
Source: drmcoder/cmt-factory-toolkit (MIT). Last reviewed 26 September 2026.
Free reference tables: AQL sample sizes · stitch & seam types · needle sizes