Skip to content
Soap Math

Beginner Guide to Surfactant Formulation

How surfactants work, the four charge types, and how to build a basic cleanser

Surfactants are the functional core of every shampoo, body wash, face wash, hand soap, and cleansing bar. Understanding how they work and how to combine them effectively is foundational to formulating any cleansing product. The good news: surfactant formulation follows clear rules, and once you understand charge compatibility and ASM targets, building a stable cleanser becomes straightforward.

How surfactants clean

A surfactant molecule has a hydrophilic (water-loving) head and a hydrophobic (oil-loving) tail. In water, surfactant molecules arrange themselves into spherical structures called micelles — their tails pointing inward toward a trapped pocket of oil, and their heads facing outward into the water. The micelle forms around a droplet of oil, grease, or sebum, and the whole structure can be rinsed away.

Why you need to lather and rinse

Surfactants only clean effectively when dissolved in water and mechanically worked into the surface (lathering/massaging) — and then rinsed thoroughly. Leaving surfactant residue on skin causes the dryness and irritation associated with cleansers, not the surfactant itself doing its job.

The four surfactant charge types

Charge typeChargeRoleCommon examples
AnionicNegativePrimary cleansing; produces most foamSLES, SLS, SCI, SLSA, sodium cocoyl glutamate
CationicPositiveConditioning; not compatible with anionic primary cleansersBehentrimonium chloride, cetrimonium chloride, BTMS
Amphoteric / zwitterionicBoth + and −Secondary surfactant; boosts foam; reduces anionic harshness; bridges chargesCocamidopropyl betaine, sodium cocoamphoacetate
NonionicNoneBoosts mildness; thickens; stabilizes foam; pH-insensitiveDecyl glucoside, coco glucoside, PEG-40 hydrogenated castor oil

Charge compatibility rules

Anionics + amphoterics: compatible — standard combination. Anionics + nonionics: compatible — very common. Anionics + cationics: generally incompatible — forms precipitate. Cationics + nonionics: compatible. Cationics + amphoterics: compatible. The rule is simple: anionics and cationics do not mix.

Building a basic cleanser — the blend approach

Most cleansers use a primary surfactant plus one or two secondary surfactants to improve mildness, boost foam, or improve feel. A simple starting framework:

ComponentTypical %Role
Primary anionic surfactant (SLES or sodium cocoyl glutamate)30–45%Main cleansing and foam base
Amphoteric co-surfactant (cocamidopropyl betaine)10–20%Foam booster; mildness enhancer; viscosity with SLES
Nonionic co-surfactant (decyl glucoside)5–15%Mildness; adds gentleness for sensitive skin claims
Humectant (glycerin)2–5%Skin feel; reduces post-wash tightness
PreservativePer manufacturer rateRequired — water-based formula
Fragrance or EO0.5–1%Optional
Distilled waterTo 100%Base

Note on surfactant solution percentages

Surfactants are sold as solutions, not pure active. SLES is commonly 70% ASM — so 30% SLES solution delivers 21% active surfactant. Always check the ASM of your specific raw material and calculate accordingly.

Pro Tip

BubbleMath handles ASM calculations automatically and shows charge balance, foam score, and salt-thickening compatibility for your entire surfactant blend.

pH of surfactant formulas

Most surfactant formulas are adjusted to a skin-compatible pH of 4.5–6.5. SLES and many anionic surfactants are stable across this range. Glucoside surfactants (decyl glucoside, coco glucoside) often run alkaline from manufacture — you may need to adjust pH down with citric acid solution. Always check and adjust pH before packaging.

  • Measure pH with a calibrated pH meter — strips are not accurate enough in surfactant solutions.
  • To lower pH: dilute citric acid (10–20% solution) — add dropwise, mix, measure, repeat.
  • To raise pH: dilute sodium hydroxide or triethanolamine (TEA) solution — add very carefully.
  • Target pH 4.5–6 for scalp/skin; 5.5–6.5 for gentler formulas.

Frequently Asked Questions