Fabric consumption calculator for garment manufacturing.
Supports both knit (GSM-based weight method) and woven (marker-length method) garments. Includes wastage allowance and GSM ↔ oz/yd² conversion. Built and used in production by Scan ERP — the garment manufacturing ERP that tracks fabric consumption from cutting batch to dispatch.
| Language | Install | Source |
|---|---|---|
| Node.js / TypeScript | npm install garment-fabric-consumption |
npm/ |
| Python 3.7+ | pip install garment-fabric-consumption |
python/ |
Total area (m²) = (body L × W × 2) + (sleeve L × W × 2 × 2) ← in cm²/10000
Weight (g) = Area × GSM
Per garment (m) = Marker length / Pieces per marker
Both methods accept an optional wastage % (5–10% typical).
calculateKnitConsumption/calculate_knit_consumptioncalculateWovenConsumption/calculate_woven_consumptiongsmToOzPerYd2/gsm_to_oz_per_yd2ozPerYd2ToGsm/oz_per_yd2_to_gsmaddWastageAllowance/add_wastage_allowance
| Garment type | Wastage % |
|---|---|
| Basic T-shirt | 5–8% |
| Polo / fashion knit | 8–10% |
| Shirt (woven) | 5–7% |
| Trouser | 5–8% |
| Heavy outerwear | 8–12% |
This calculator is free. The full ERP that uses it every cutting batch — with size-aware consumption from Optitex marker data and GSM analysis — is at scanerp.pro.
- Live demo · 1.4M+ pieces tracked
- Cutting room waste reduction guide
- Fabric inspection 4-point system
- Free 30-day trial
MIT © Santosh Rijal / Scan ERP
- garment-cmt-cost — CMT cost calculation
- garment-line-efficiency
- garment-smv-calculator
Part of the Scan ERP open-source garment toolkit — production-tested utilities for CMT factory operations, all MIT licensed:
- aql-sample-size — ISO 2859-1 sample-size lookup (zero-dependency data library)
- garment-aql-calculator — Full AQL inspection decision engine with pass/fail logic
- garment-bundle-id — Bundle QR code generator + parser (STYLE-LOT-COLOR-SIZE-BUNDLE# format)
- garment-cmt-cost — CMT cost calculator with 13-country CPM comparison
- garment-dhu-calculator — Defects Per Hundred Units with defect-type breakdown + multi-checker aggregation
- garment-fabric-consumption — Fabric consumption (knit GSM × area, woven marker length)
- garment-line-efficiency — Line efficiency, target output, line balance / bottleneck detection
- garment-piece-rate — Piece-rate earnings calculator with bonuses and overtime
- garment-smv-calculator — Stopwatch SMV/SAM with Westinghouse performance rating
See the curated awesome-garment-erp list for the full Scan ERP ecosystem, or visit scanerp.pro for the production garment manufacturing ERP this toolkit powers.