
Detergent in textile processing lifts oil from yarn and keeps it in the wash liquor long enough to drain it away. Before dyeing, that helps the knit wet evenly; after dyeing, a suitable detergent helps carry loose dye out in the wash. In our lab reports, 6% of 355 washing fastness tests failed. That result tells us to look at wash-off, but it does not tell us how much detergent was used or whether oil was left on the yarn.
In this guide
- What detergent in textile processing is
- The chemistry of detergent: structure and bonding
- How detergent works
- How it acts on each fibre
- Where and how we use it
- Benefits and drawbacks
- What goes wrong with too much (or too little)
- Lab test problems it can cause
- What this means for your clothes
- From the floor: what I learned
- Questions
About this article. Written from our own knit dyeing floor and our 2026 accredited lab reports. Chemicals are named by type only; buyer names, batch numbers and colours are left out.
At a glance
Oil-loving tailPart of the detergent molecule that enters oily soil
Water-loving headPart that stays in contact with the liquor
Before dyeingLift wax and knitting oil so the yarn wets evenly
After dyeingCarry loose material away during soaping and rinsing
What detergent in textile processing is
Detergent is a washing chemical whose active ingredient is a surfactant. It does not have a single formula. Its defining feature is a molecule comfortable at the boundary between oil and water. Plain water tends to draw back from a film of knitting oil. Detergent collects at that boundary and makes it easier for water to spread underneath the film. On our floor the useful distinction is between loosening soil and removing it. A bath can do the former well and still leave the goods dirty if the spent liquor travels with them.
Short answer. For an oily garment, use a detergent suitable for the fabric and follow the care label. More foam does not mean more oil has come out, and extra detergent is not a fix for a garment that bleeds dye.
The chemistry of detergent: structure and bonding
An alcohol ethoxylate is a common non-ionic detergent ingredient. Its general structure is an alkyl tail joined to a chain of repeating oxyethylene groups ending in a hydroxyl group. The tail is largely hydrocarbon. The ether oxygens accept hydrogen bonds from water, and the terminal hydroxyl can donate or accept them. The head has no formal charge. An alkyl sulphate has a hydrocarbon tail too, but its sulphate head carries a negative charge in water. Sodium can supply the balancing positive ion. These are examples of different detergent molecules, not ingredients that must always be used together.
At a bare patch of cotton, an ethoxylate oxygen can accept a hydrogen bond from a cellulose hydroxyl. At a wax-covered patch, the part presented to the liquor is largely hydrocarbon, not cellulose. Here the detergent tail associates with the wax chains by dispersion forces while the hydrated head faces the water. Neither contact makes a covalent bond. Washing need not change the chemical structure of the wax to lift it. The same distinction matters with fats: alkali can split susceptible fat esters to form soaps, but the detergent tail does not split an ester.
Pectin, protein and mineral matter are different soils. Pectin has carboxyl groups and can be held in the deposit by calcium bridges. Protein has peptide groups as well as side chains, some of them hydrophobic. Detergent can wet the deposit and associate with exposed oily or hydrophobic regions. It does not cut the pectin backbone or digest peptide bonds. Alkali helps loosen natural impurities; a suitable sequestering chemical binds troublesome metal ions. Do not count a plain detergent as a metal remover because the fabric wets better after washing.
| Fibre or impurity | Group it meets | Type of interaction | Result |
|---|---|---|---|
| Cotton (cellulose) | Ethoxylate ether oxygens meet cellulose –OH groups. | Reversible hydrogen bonding. | Water spreads over exposed cellulose; detergent does not react covalently with it. |
| Cotton wax and fats | Alkyl tail meets long hydrocarbon chains in wax and fatty residues. | Hydrophobic association and van der Waals attraction. | The tail anchors at the oil surface without breaking down the fat. |
| Pectin and proteins | Hydrated head wets the pectin-rich deposit; alkyl tails associate with nonpolar protein side chains. | Wetting and physical adsorption, not hydrolysis. | Loosened fragments can disperse. Intact pectin and protein need more than emulsification. |
| Polyester | Alkyl tail meets hydrophobic chain regions; a terminal hydroxyl can meet an ester carbonyl. | Mainly hydrophobic adsorption, with possible hydrogen bonding at the ester. | Detergent competes at the oily surface without cleaving the fibre ester. |
| Nylon | Ether oxygen meets amide N–H; a sulphate head can meet a protonated amine end group. | Hydrogen bonding or, at a charged end group, ionic attraction. | Some detergent can remain adsorbed; there is no covalent reaction. |
| Elastane | Ether oxygen meets urethane N–H; the tail meets less polar segments. | Hydrogen bonding and hydrophobic adsorption. | Surface lubricant can lift without a chemical reaction with the urethane segment. |
How detergent works
Start with a yarn loop wrapped in oil. The liquor needs access to the yarn, not just to the outside of the knit. Detergent lowers surface tension and reduces the tension at the oil–water boundary. As the liquor penetrates, oil can draw together into drops instead of remaining spread over the yarn. Liquor movement helps detach those drops. A fold that sees little fresh liquor can retain oil even when the exposed face wets readily.
Once a drop leaves, it needs protection against settling back onto another loop. Detergent tails sit in the drop and heads extend into the water. Charged heads can help drops repel each other; hydrated ethoxylate chains form a physical barrier when drops approach. Free detergent molecules can also assemble into micelles with tails inward. These can take up some oily material. A visible oil droplet coated with detergent is an emulsion droplet, not a micelle. Both mechanisms can carry oil, but neither makes it disappear.
The last part is a liquor exchange. Drain the dispersed soil and replace the liquor held between yarns. If dirty liquor stays in a dense knit, its oil is still in contact with the fabric. A rinse that only dilutes the main bath is less useful than one that also reaches the liquor inside the loops.
How it acts on each fibre
| Fibre | What it does | Watch out for |
|---|---|---|
| Cotton | Detergent meets wax before it reaches much of the cellulose surface on raw cotton. Removing that barrier exposes hydroxyl groups that already attract water. The detergent is uncovering an absorbent yarn, not adding permanent absorbency. | Good wetting in a detergent bath is not proof of clean cotton. Look at how the rinsed fabric takes up water, including the inside of the knit. |
| Viscose, modal, lyocell | These fibres also present cellulose hydroxyl groups to the ethoxylate head. The oil to remove is more likely to be applied lubricant than the natural wax and pectin found on raw cotton. | Match the treatment to the lubricant. Viscose and modal lose strength wet; extra mechanical action to shift a spot can be harder on the knit than the detergent itself. |
| Polyester | Both knitting oil and the detergent tail associate with hydrophobic regions of the chain. Detergent helps water displace oil from that surface. It does not turn polyester into a water-loving fibre. | Oil carried in a dirty bath can return to polyester. Water beading on rinsed polyester alone is not evidence of residual oil, as it might be on a well-prepared cotton face. |
| Nylon | A non-ionic head can hydrogen-bond to an amide without needing a charged site. An anionic head is attracted more strongly where an amine end group is protonated in acidic liquor. | Check compatibility before an acidic dye bath. Adsorbed anionic detergent can compete for positively charged sites; simply draining the washing bath does not guarantee a clean changeover. |
| Elastane | The detergent acts on lubricant at the filament surface. Temporary contacts with urethane groups help explain adsorption, but stripping the oil does not depend on attacking those groups. | Choose conditions the whole blend can take. A treatment selected just for the cotton face may be unnecessarily harsh for the elastane underneath. |
Where and how we use it
Before dyeing, identify what has to leave the yarn. On cotton, detergent has to carry wax and oily material released during alkaline preparation. On a synthetic knit the main load may be knitting oil. Choose for the actual liquor: a detergent that disperses oil well in plain water may separate in a hot bath containing salt or alkali. Some non-ionic ethoxylates lose water solubility as the bath heats. Check the supplier’s data sheet for compatibility under the proposed conditions rather than transferring a recipe between blends.
After dyeing, the target changes. With reactive dye on cellulose, thoroughly soap hot to carry off loose dye, then rinse. Detergent helps transport material that is not bonded to cellulose; it does not make hydrolysed reactive dye bond to the yarn. Where a fixing agent is needed to control staining, use it after thorough wash-off. Do not trap a load of loose dye on the goods and expect the fixing treatment to replace cleaning.
For a circulating jet bath, select for low foam as well as oil removal. Air entrained in the liquor can interfere with circulation, so a stable head of foam is not a useful operating target. Select the dose from supplier guidance for the soil load and bath conditions. Judge the result on the rinsed goods before softening changes their handle and wetting behavior.
- Check compatibility with the alkali, salts and other chemicals present at the point of addition.
- Give liquor access to both faces and the loop interior before judging whether the detergent is weak.
- Keep the dirty preparation liquor out of the dye bath and the soaping liquor out of softening.
Benefits and drawbacks
Benefits
- Even oil removal gives the dye liquor more uniform access. This matters where a localized lubricant film would otherwise screen part of a yarn.
- Emulsification lets the drain carry away soil that would not dissolve in water alone. It also limits transfer from an oily patch to clean fabric.
- A compatible detergent helps wash-off without needing to react chemically with the fibre.
Drawbacks
- Lifted oil still goes to the effluent. A stable emulsion useful in the wash can make oil harder to separate from wastewater.
- Anionic detergent carried forward can associate with a cationic softener. Deposits from that combination are a different problem from the knitting oil originally removed.
- Foam and retained detergent can increase rinsing demand without improving the final result.
What goes wrong with too much (or too little)
Too little active detergent for the oil load can give a misleading start. The fabric wets at the surface, but there is not enough detergent available to keep newly released oil dispersed throughout the bath. Some oil stays on the yarn; some leaves and settles elsewhere. Increasing the dose may help here, but it will not open a persistent fold or replace liquor that does not circulate.
Too much can leave more surfactant in the interstitial liquor than the rinse removes. On cotton that residue can make water spread quickly even over a partly cleaned surface. On a jet, a foaming product can reduce effective liquor movement just when more movement is needed. With a low-foam product the excess may be less visible, but the extra rinse load remains.
Separate a release problem from a carryover problem. If the same part of the knit stays oily, look at access and the nature of the lubricant. If the bath releases visible oil but the rinsed goods pick up deposits, look at dispersion, drainage and subsequent chemical additions. Neither observation by itself gives a new dose.
- Poor wetting after rinsing: check remaining soil and the fibre before adding detergent.
- Foam with uneven circulation: check product choice and carryover, not just the dose.
- Deposits after softening: check whether an incompatible detergent reached the softener bath.
Lab test problems it can cause
Washing fastness measures dye loss or transfer, not detergency. In our lab reports, the cotton strip was lowest 35 times among 65 washing results with staining below grade 4–5. More than one strip can share the lowest grade. For reactive-dyed cellulose, a low cotton strip directs attention to loose dye. Check hot soaping and rinsing before concluding that the preparation bath failed to remove oil.
Nylon was lowest 34 times and acetate 18 times in those results. Disperse dye can stain both strips. On a polyester blend, poor wet rubbing or staining calls for reduction clearing twice. Detergent can carry released material away, but it is not a reducing chemical. Check finishing heat too: on our floor polyester-containing fabric is dried and finished at 100–110°C on the stenter and compactor. Hotter finishing can bring disperse dye back to the surface after wash-off.
Rubbing failed in 14% of 405 tests. Surface dye that transfers to a rubbing cloth and residual oil that interfered with dye penetration are different findings. Read the fibre content, staining strip and finishing route together. None of these reports measures detergent residue or records a detergent dose. The failure rates are not the share of goods that needed more detergent.
What this means for your clothes
An oily mark and dye transfer can look similar on a wet garment. Detergent can lift grease if the wash liquor reaches it and the rinse carries it away. If the garment itself releases dye onto other clothes, more detergent will not fix that dye to the fibre. Follow the care label and keep a bleeding garment separate.
From the floor: what I learned
- Choose detergent for the oil and the liquor.
- Judge cotton wetting after rinsing, not in the bath.
- Check circulation before increasing the dose.
- Drain released soil before the next treatment.
- Read the staining strip before changing wash-off.
Related reading: How cross-staining shows up after washing, How we read finished knit fabric lab reports and How to check clothes for dye transfer at home. More in our Dyeing & Finishing section.
Questions
Does detergent react with cotton?
Its polar groups can hydrogen-bond with cellulose hydroxyl groups, but ordinary detergent washing does not form a covalent bond with cotton.
Does detergent dissolve all knitting oil?
No. Much of the oil leaves as dispersed droplets, which is why drainage and rinsing matter.
Does more foam mean cleaner fabric?
No. Foam is an air–water effect; it does not measure how much oil has left the yarn.
Can detergent replace alkali in cotton preparation?
No. Detergent carries oily material away, while alkali helps break down susceptible fats and loosen other natural impurities.
Does a stained cotton strip prove low detergent?
No. Cotton was lowest 35 times in the staining data, but the strip shows dye transfer, not the reason for it.
Can detergent replace reduction clearing on polyester?
No. Detergent disperses material in water; it does not chemically reduce surface disperse dye.
Textile engineer with 14+ years in dyeing and fabric development. He writes every guide on Dyeing Solution from real production work. Full profile