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.
Dry passes and wet fails is not a dye problem — it is a washing-off problem. The gap between the two grades says which one you have.
Binding Margin
—grades
The tighter of the dry and wet margins
Grades & Margins
Mean Dry Grade
—grade
Mean Wet Grade
—grade
Dry to Wet Gap
—grades
Dry Margin to Spec
—grades
Wet Margin to Spec
—grades
Lowest Single Grade
—grade
A negative margin is a failure against the buyer specification. Grey scale grading is visual and observer-dependent, so a mean sitting within half a grade of the minimum should be re-read by a second assessor under standard illumination before the lot is dispositioned. A dry-to-wet gap beyond about one grade points at soaping and washing-off rather than at the dye.
Using this calculator
About the Crocking (Rubbing) Colourfastness Assessment
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
dryRub1
Dry Specimen 1
grade
dryRub2
Dry Specimen 2
grade
dryRub3
Dry Specimen 3
grade
wetRub1
Wet Specimen 1
grade
wetRub2
Wet Specimen 2
grade
wetRub3
Wet Specimen 3
grade
specDry
Dry Minimum
grade
specWet
Wet Minimum
grade
worstMargin
Binding Margin
grades
dryMean
Mean Dry Grade
grade
wetMean
Mean Wet Grade
grade
dryWetGap
Dry to Wet Gap
grades
dryMargin
Dry Margin to Spec
grades
wetMargin
Wet Margin to Spec
grades
lowestGrade
Lowest Single Grade
grade
How the result is derived
Step by step, from the values you type to the figure on screen.
The 8 inputs are read from the form on every keystroke: Dry Specimen 1, Dry Specimen 2, Dry Specimen 3, Wet Specimen 1, Wet Specimen 2, Wet Specimen 3, Dry Minimum and Wet Minimum.
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 Binding Margin together with every supporting figure in one pass — no value is carried over from a previous entry.
The supporting outputs — Mean Dry Grade, Mean Wet Grade, Dry to Wet Gap, Dry Margin to Spec, Wet Margin to Spec and Lowest Single Grade — 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
Dry Specimen 1
grade
1 to 5 grade
4.5
Dry Specimen 2
grade
1 to 5 grade
4
Dry Specimen 3
grade
1 to 5 grade
4.5
Wet Specimen 1
grade
1 to 5 grade
3
Wet Specimen 2
grade
1 to 5 grade
3.5
Wet Specimen 3
grade
1 to 5 grade
3
Dry Minimum
grade
1 to 5 grade
4
Wet Minimum
grade
1 to 5 grade
3
What the tool returns
The headline figure and every supporting value it is built from.
Output
Unit
What it tells you
Binding Margin (headline result)
grades
The tighter of the dry and wet margins
Mean Dry Grade
grade
Mean Wet Grade
grade
Dry to Wet Gap
grades
Dry Margin to Spec
grades
Wet Margin to Spec
grades
Lowest Single Grade
grade
Worked example
Given
Dry Specimen 1
4.5 grade
Dry Specimen 2
4 grade
Dry Specimen 3
4.5 grade
Wet Specimen 1
3 grade
Wet Specimen 2
3.5 grade
Wet Specimen 3
3 grade
Dry Minimum
4 grade
Wet Minimum
3 grade
The tool loads with this case already solved — the Binding Margin 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 — Dry Crocking, Wet Crocking and Specification. 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 Binding Margin in the dark results panel — that is the headline figure, expressed in grades.
Check the supporting rows underneath (Mean Dry Grade, Mean Wet Grade, Dry to Wet Gap, Dry Margin to Spec, Wet Margin to Spec and Lowest Single Grade) 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 Binding Margin before a trial is booked, so machine time and material in Testing, Standards & Metrology are committed against a calculated figure rather than an estimate.
Costing and quotation — Binding Margin 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 Dry Specimen 1) shows how much of the gap in Binding Margin each variable explains.
Teaching and study — the accepted ranges bracket normal Testing, Standards & Metrology practice, so moving one variable at a time shows the shape of the relationship rather than a single answer.
Assumptions and limits
A negative margin is a failure against the buyer specification. Grey scale grading is visual and observer-dependent, so a mean sitting within half a grade of the minimum should be re-read by a second assessor under standard illumination before the lot is dispositioned. A dry-to-wet gap beyond about one grade points at soaping and washing-off rather than at the dye.
Every input is bounded to the range normal practice occupies (Dry Specimen 1 1 to 5 grade, Dry Specimen 2 1 to 5 grade and Dry Specimen 3 1 to 5 grade, 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 Crocking (Rubbing) Colourfastness Assessment?
Have these to hand: Dry Specimen 1, Dry Specimen 2, Dry Specimen 3, Wet Specimen 1, Wet Specimen 2, Wet Specimen 3, Dry Minimum and Wet Minimum. With those entered, the tool returns Binding Margin immediately.
What exactly is Binding Margin?
The tighter of the dry and wet margins. It is reported in grades. It is derived from Dry Specimen 1, Dry Specimen 2, Dry Specimen 3, Wet Specimen 1, Wet Specimen 2, Wet Specimen 3, Dry Minimum and Wet Minimum, and is the figure the rest of the Testing, Standards & Metrology calculation is built around.
Which units does this calculator expect?
Enter Dry Specimen 1 in grade, Dry Specimen 2 in grade, Dry Specimen 3 in grade, Wet Specimen 1 in grade, Wet Specimen 2 in grade, Wet Specimen 3 in grade, Dry Minimum in grade and Wet Minimum in grade. 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: Mean Dry Grade, Mean Wet Grade, Dry to Wet Gap, Dry Margin to Spec, Wet Margin to Spec and Lowest Single Grade. 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?
A negative margin is a failure against the buyer specification. Grey scale grading is visual and observer-dependent, so a mean sitting within half a grade of the minimum should be re-read by a second assessor under standard illumination before the lot is dispositioned. A dry-to-wet gap beyond about one grade points at soaping and washing-off rather than at the dye. Treat the output as an engineering estimate that narrows the trial window, not as a substitute for the trial.