garment-cmt-cost
v1.0.1
Published
CMT (Cut, Make, Trim) cost calculator for garment factories. Calculate per-garment making cost from SAM, CPM and line efficiency; compare CMT cost across countries (Bangladesh, India, Vietnam, Cambodia, USA, etc.). Built and used in production by Scan ERP
Downloads
274
Maintainers
Readme
garment-cmt-cost
CMT (Cut, Make, Trim) cost calculator for garment factories.
Calculates per-garment making cost from SAM × CPM × efficiency, supports trims and packaging, and compares CMT cost across major sourcing countries. Built and used in production by Scan ERP — the garment manufacturing ERP for CMT factories worldwide.
Install
npm install garment-cmt-costFormula
Making cost = (SAM × CPM) / Efficiency
CMT cost = Making cost + Trims + PackagingWhere:
- SAM = Standard Allowed Minutes per garment
- CPM = Cost Per Minute of the factory (USD)
- Efficiency = decimal (0–1), e.g. 0.50 for 50%
- Trims = thread + labels + buttons + zip per garment
- Packaging = polybag + hangtag + carton allocation per garment
Example: SAM 15, CPM $0.10 (Bangladesh), 50% efficiency, $0.30 trims, $0.20 packaging → Making = (15 × 0.10) / 0.5 = $3.00; CMT = $3.50
Usage
const {
calculateCMTCost,
calculateCPM,
calculateMakingCost,
estimateCMTByCountry,
compareByCountry,
addMargin,
COUNTRY_CPM_DEFAULTS,
} = require('garment-cmt-cost');
calculateCMTCost({ sam: 15, cpm: 0.10, efficiency: 0.5, trims: 0.30, packaging: 0.20 });
// → { makingCost: 3.0, cmtCost: 3.5, perDozenCmt: 42, perHundredCmt: 350 }
// Compute CPM from your factory's monthly cost
calculateCPM({ monthlyCost: 250000, workers: 200, hoursPerDay: 8, workingDays: 26 });
// → 0.1002 ($/min)
// Compare cost across countries
compareByCountry({
sam: 15, efficiency: 0.5, trims: 0.3, packaging: 0.2,
countries: ['bangladesh', 'india', 'vietnam', 'usa'],
});
// → Bangladesh $3.50 | India $5.90 | Vietnam $5.30 | USA $30.50
// Add a factory margin
addMargin(3.50, 15); // → { finalPrice: 4.025, margin: 0.525 }Country CPM defaults (approx. USD/min)
| Country | CPM | Country | CPM | |-------------|---------|-------------|---------| | Ethiopia | $0.07 | Sri Lanka | $0.20 | | Myanmar | $0.08 | China | $0.25 | | Nepal | $0.09 | Turkey | $0.30 | | Bangladesh | $0.10 | Mexico | $0.40 | | Pakistan | $0.11 | USA | $1.00 | | Cambodia | $0.12 | | | | Vietnam | $0.16 | | | | India | $0.18 | | |
These are industry averages — use calculateCPM with your own salary + overhead data for accurate costing.
Related
- garment-fabric-consumption — fabric usage
- garment-line-efficiency — efficiency calculation
- garment-smv-calculator — SMV / SAM
- garment-piece-rate — piece-rate payment
Try Scan ERP
This calculator is free. The full ERP that uses it daily for CMT quote generation — with live SMV data from your own factory floor — is at scanerp.pro.
- Live demo · 1.4M+ pieces tracked
- CMT cost country comparison 2026
- SMV costing for CMT pricing
- Free 30-day trial
License
MIT © Santosh Rijal / Scan ERP
