Paste this where you want the calculator to appear. It works on any site — WordPress, Squarespace, Webflow, Ghost or plain HTML — and needs no JavaScript of yours. It carries a link back here, which is the only thing we ask for it.
Demand is a bell curve, cartons hold whole garments. Something always gets rounded, and it is always a tail size.
Largest Size Deviation
—points
Worst gap between packed ratio and demand share
Carton Assortment
Small per Carton
—no.
Medium per Carton
—no.
Large per Carton
—no.
Extra Large per Carton
—no.
Cartons Required
—no.
Largest Size Overage
—garments
The four shares should sum to 100; if they do not, the allocation still fills the carton but the deviations are measured against a curve that does not exist and mean nothing. A larger carton always tracks the demand curve more closely — the deviation falls roughly as one over carton size — so where handling permits it, a bigger ratio pack is the cheapest fix for assortment error. Ratio packs also assume every store wants the same curve, which is the real limitation: stores differ by demographic and climate, and a single national ratio guarantees markdown at both tails somewhere.
Using this calculator
About the Garment Assortment Pack-Ratio Generator
The formula
This is the expression the tool evaluates. Every term is named underneath, with the unit it must be supplied in.
Each input feeds the expression evaluated in the browser; the symbol table below names every term and its unit.
Symbols used above
Symbol
Stands for
Unit
shareS
Small Share
%
shareM
Medium Share
%
shareL
Large Share
%
shareXL
Extra Large Share
%
cartonCapacity
Garments per Carton
no.
orderQuantity
Order Quantity
garments
maxSizeDeviation
Largest Size Deviation
points
packS
Small per Carton
no.
packM
Medium per Carton
no.
packL
Large per Carton
no.
packXL
Extra Large per Carton
no.
cartonsRequired
Cartons Required
no.
largestOverage
Largest Size Overage
garments
How the result is derived
Step by step, from the values you type to the figure on screen.
The 6 inputs are read from the form on every keystroke: Small Share, Medium Share, Large Share, Extra Large Share, Garments per Carton and Order Quantity.
Each value is checked against the accepted range in the input table below. A value outside its range stops the calculation rather than producing a misleading figure — the results blank out and a message appears.
The validated values are substituted into the expression above, which resolves Largest Size Deviation together with every supporting figure in one pass — no value is carried over from a previous entry.
The supporting outputs — Small per Carton, Medium per Carton, Large per Carton, Extra Large per Carton, Cartons Required and Largest Size Overage — come from the same pass, so they always describe the same case as the headline figure.
Results are rounded for display only. The full-precision value is used throughout the chain, so reading a rounded intermediate figure back into the tool by hand can shift the last digit.
What each input means
Where to read each value on the floor, the unit it must be in, and the range the tool accepts.
Input
Unit
Accepted range
Default
What it means
Small Share
%
0 to 100 %
15
Medium Share
%
0 to 100 %
30
Large Share
%
0 to 100 %
35
Extra Large Share
%
0 to 100 %
20
Garments per Carton
no.
4 to 200 no.
24
Order Quantity
garments
24 to 1000000 garments
12000
What the tool returns
The headline figure and every supporting value it is built from.
Output
Unit
What it tells you
Largest Size Deviation (headline result)
points
Worst gap between packed ratio and demand share
Small per Carton
no.
Medium per Carton
no.
Large per Carton
no.
Extra Large per Carton
no.
Cartons Required
no.
Largest Size Overage
garments
Worked example
Given
Small Share
15 %
Medium Share
30 %
Large Share
35 %
Extra Large Share
20 %
Garments per Carton
24 no.
Order Quantity
12000 garments
The tool loads with this case already solved — the Largest Size Deviation shown above is its answer. Change one value and the difference from this baseline is the sensitivity of the result to that variable.
How to use it
Work through the input groups in order — Size Demand and Packing. The defaults are a realistic case, so you can change one value at a time and watch what moves.
There is no calculate button. Every figure recalculates as you type or drag, which is what makes this usable for a what-if sweep rather than a single answer.
Read Largest Size Deviation in the dark results panel — that is the headline figure, expressed in points.
Check the supporting rows underneath (Small per Carton, Medium per Carton, Large per Carton, Extra Large per Carton, Cartons Required and Largest Size Overage) before acting on the headline — they are where an implausible input usually shows itself first.
Reset to defaults returns every field to the reference case, which is the quickest way to check whether a surprising result came from the tool or from an input you had changed earlier.
Where this is used
Process planning — establishing Largest Size Deviation before a trial is booked, so machine time and material in Supply Chain, Inventory & Logistics are committed against a calculated figure rather than an estimate.
Costing and quotation — Largest Size Deviation is an input to the cost sheet, and quoting from a worked number rather than a remembered one is what keeps a margin intact.
Troubleshooting — when the floor result drifts from plan, entering the measured values (starting with Small Share) shows how much of the gap in Largest Size Deviation each variable explains.
Teaching and study — the accepted ranges bracket normal Supply Chain, Inventory & Logistics practice, so moving one variable at a time shows the shape of the relationship rather than a single answer.
Assumptions and limits
The four shares should sum to 100; if they do not, the allocation still fills the carton but the deviations are measured against a curve that does not exist and mean nothing. A larger carton always tracks the demand curve more closely — the deviation falls roughly as one over carton size — so where handling permits it, a bigger ratio pack is the cheapest fix for assortment error. Ratio packs also assume every store wants the same curve, which is the real limitation: stores differ by demographic and climate, and a single national ratio guarantees markdown at both tails somewhere.
Every input is bounded to the range normal practice occupies (Small Share 0 to 100 %, Medium Share 0 to 100 % and Large Share 0 to 100 %, and so on for the rest). Those bounds are guard rails against typing errors, not a claim that the formula fails one unit outside them.
The calculation is deterministic: the same inputs always give the same result. It carries no allowance for machine condition, operator skill, ambient conditions or lot-to-lot material variation unless an input above explicitly represents one.
Nothing is sent anywhere. The maths runs in your browser, so the numbers you type never leave the page.
Questions people ask
What do I need to know before using the Garment Assortment Pack-Ratio Generator?
Have these to hand: Small Share, Medium Share, Large Share, Extra Large Share, Garments per Carton and Order Quantity. With those entered, the tool returns Largest Size Deviation immediately.
What exactly is Largest Size Deviation?
Worst gap between packed ratio and demand share. It is reported in points. It is derived from Small Share, Medium Share, Large Share, Extra Large Share, Garments per Carton and Order Quantity, and is the figure the rest of the Supply Chain, Inventory & Logistics calculation is built around.
Which units does this calculator expect?
Enter Small Share in %, Medium Share in %, Large Share in %, Extra Large Share in %, Garments per Carton in no. and Order Quantity in garments. Mixing unit systems is the most common cause of a result that looks an order of magnitude wrong — convert before typing, not after reading.
What are the other figures under the main result?
They are the intermediate quantities the calculation passes through: Small per Carton, Medium per Carton, Large per Carton, Extra Large per Carton, Cartons Required and Largest Size Overage. They are shown because a headline number nobody can trace is a number nobody trusts — checking them against your own expectation is the fastest way to confirm the inputs were read as you intended.
Can I rely on this for a production decision?
The four shares should sum to 100; if they do not, the allocation still fills the carton but the deviations are measured against a curve that does not exist and mean nothing. A larger carton always tracks the demand curve more closely — the deviation falls roughly as one over carton size — so where handling permits it, a bigger ratio pack is the cheapest fix for assortment error. Ratio packs also assume every store wants the same curve, which is the real limitation: stores differ by demographic and climate, and a single national ratio guarantees markdown at both tails somewhere. Treat the output as an engineering estimate that narrows the trial window, not as a substitute for the trial.