Back to the blog

Formulation Science

Shampoo Formulation: Building a Surfactant System That Cleans Without Stripping

A great shampoo lives or dies by its surfactant system. Learn how to balance primary and secondary surfactants, choose the right co-surfactants, and build a sulfate-free formula that actually performs.

G
Genie Team
October 01, 202612 min read26 views
Share

You can spend weeks sourcing the perfect botanical extract or the most on-trend active ingredient, but if the surfactant system underneath it is wrong, none of that matters. The surfactant blend is the engine. Everything else is trim.

This guide is for formulators who want to go beyond "use SLES and call it a day" and actually understand how to architect a shampoo surfactant system that cleans effectively, preserves the scalp barrier, and holds together as a finished formula. Whether you are building a sulfate-free shampoo formula, a clarifying shampoo, or something in between, the principles here apply.

Have a product idea?

Your brand's innovation partner, from first idea to a chemist-reviewed product made by a certified manufacturer.

Free. Genie drafts the formula. No signup to start.


Why the Surfactant System Is Everything

Surfactants (surface-active agents) do the core work of a shampoo: they reduce the surface tension between water and the oily, particulate soil on the hair and scalp, allowing both to be rinsed away. But "cleaning" is not a binary outcome. The same mechanism that lifts sebum and styling product residue can also strip the natural lipid layer from the scalp, swell the hair cuticle, and leave the fiber feeling rough and porous.

The goal of a well-engineered surfactant system is selectivity. You want aggressive removal of exogenous soil and controlled removal of endogenous lipids. Getting there requires understanding three things:

  1. The charge class and CMC (critical micelle concentration) of your primary surfactant
  2. How secondary surfactants modify the micellar structure and irritation profile
  3. How co-surfactants, conditioning agents, and pH interact with the whole system

The Four Charge Classes and What They Mean for Shampoo

Every surfactant molecule carries a head group that is anionic, cationic, nonionic, or amphoteric (zwitterionic). In shampoo formulation, you will primarily work with anionic and amphoteric surfactants, with nonionic surfactants as supporting players.

Anionic Surfactants: The Workhorses

Anionic surfactants carry a negative charge at the head group. They are the most effective cleansers in shampoo because they form large, efficient micelles and generate the foam most consumers associate with "clean."

The most common anionic surfactants in shampoo bases:

  • Sodium Lauryl Sulfate (SLS): High CMC, aggressive cleansing, significant irritation potential. Still found in clarifying and anti-dandruff formulas. Not ideal as a primary surfactant in everyday products.
  • Sodium Laureth Sulfate (SLES): Ethoxylated version of SLS. Milder, lower irritation, still strong foam and cleansing. The dominant primary surfactant in conventional shampoos globally.
  • Ammonium Lauryl Sulfate / Ammonium Laureth Sulfate: Similar profile to sodium variants, slightly different viscosity behavior. Common in salon-grade formulas.
  • Sodium Cocoyl Isethionate (SCI): Derived from coconut fatty acids and isethionic acid. Mild, conditioning feel, good foam. A go-to for solid and sulfate-free shampoo formulas.
  • Sodium Lauroyl Methyl Isethionate (SLMI): Excellent mildness, good foam, slightly lower cleansing power than SLES. Popular in premium sulfate-free formulas.
  • Disodium Laureth Sulfosuccinate: Very mild, low irritation, often used in baby and sensitive-scalp formulas. Lower foam density, typically used as a secondary.
  • Sodium Cocoyl Glutamate / Sodium Lauroyl Glutamate: Amino acid-derived anionics. Excellent skin compatibility, biodegradable, pH-sensitive (work best at pH 5.5 to 6.5). Increasingly popular in clean-beauty shampoo formulations.

Amphoteric Surfactants: The Modifiers

Amphoteric (zwitterionic) surfactants carry both positive and negative charges depending on pH. In the slightly acidic pH range of a well-formulated shampoo (4.5 to 5.5), they behave as mildly cationic, which has two important effects: they reduce the irritation potential of anionic surfactants by partially neutralizing the negative charge density of the micelle, and they provide a small amount of conditioning to the hair fiber.

Key amphoterics:

  • Cocamidopropyl Betaine (CAPB): The most widely used secondary surfactant in shampoo. Improves foam quality, reduces irritation of primary anionics, adds slip. Use at 2 to 8%.
  • Cocamidopropyl Hydroxysultaine: Similar to CAPB, slightly better performance in hard water. Good foam stabilizer.
  • Sodium Cocoamphoacetate / Disodium Cocoamphodiacetate: Gentler than CAPB, excellent for sensitive scalp and baby formulas. Lower foam contribution.
  • Lauryl Betaine: Cleaner feel than CAPB, slightly higher irritation. Used in clarifying systems.

Nonionic Surfactants: The Conditioners and Foam Boosters

Nonionic surfactants carry no charge. They do not contribute significantly to cleansing but they modify the texture of the foam, improve rinse feel, and add conditioning. They also help solubilize oils and actives.

  • Decyl Glucoside / Coco Glucoside: Alkyl polyglucosides (APGs). Mild, biodegradable, good foam. Often used as co-surfactants in natural and sulfate-free shampoos. Can be primary surfactants in very gentle formulas.
  • PEG-7 Glyceryl Cocoate: Emollient, improves wet-combing feel.
  • Lauryl Glucoside: Similar to decyl glucoside, slightly better cleansing.

Designing the Blend: Primary, Secondary, and Co-Surfactant Ratios

A functional shampoo surfactant system typically consists of:

  • Primary surfactant: 8 to 16% (active basis), responsible for the bulk of cleansing and foam
  • Secondary (amphoteric) surfactant: 2 to 8% (active basis), modifying irritation and foam quality
  • Co-surfactant or booster: 1 to 4%, adjusting texture, foam density, or feel

The ratio between anionic and amphoteric surfactants is one of the most important variables in shampoo formulation. A higher proportion of amphoteric relative to anionic generally produces a milder, creamier foam with better scalp tolerance. A higher proportion of anionic produces stronger cleansing, more lather, and higher potential for irritation.

A common starting ratio for a balanced everyday shampoo: 3 to 4 parts anionic to 1 part amphoteric. For a sensitive-scalp formula, move toward 2 to 1 or even 1 to 1.

The Zein Test and In-Vitro Mildness

Formulators who want to predict mildness before clinical testing often use the zein solubilization test, which measures how aggressively a surfactant system dissolves zein protein (a proxy for skin keratin). Lower zein values indicate milder systems. SLES/CAPB blends score significantly better than SLS alone. Amino acid-derived anionics combined with amphoterics typically produce the best scores.


Building a Sulfate-Free Shampoo Formula

The demand for sulfate-free shampoo formulas has moved from niche to mainstream, driven by color-treated hair consumers, curly hair communities, and clean-beauty positioning. But "sulfate-free" is not automatically "mild." Some sulfate-free surfactants are still aggressive. The goal is always mildness and performance, not just the absence of a specific molecule.

A Practical Sulfate-Free Surfactant Stack

Here is a starting framework for a sulfate-free everyday shampoo:

  • Sodium Cocoyl Isethionate or Sodium Lauroyl Methyl Isethionate: 10 to 14% (primary anionic)
  • Cocamidopropyl Betaine: 4 to 6% (secondary amphoteric)
  • Decyl Glucoside or Coco Glucoside: 2 to 4% (co-surfactant, foam texture)
  • Glycerin: 1 to 3% (humectant, feel modifier)

This stack produces a creamy, moderate-foam shampoo with good scalp tolerance. It will not clarify as aggressively as an SLES-based formula, which is the correct trade-off for color-safe and everyday-use positioning.

For a higher-performance sulfate-free formula targeting oily scalps, consider adding Sodium C14-16 Olefin Sulfonate (a sulfonate, not a sulfate) at 2 to 4% to boost cleansing without reintroducing sulfates.


pH: The Variable Most Formulators Underestimate

The ideal pH for a finished shampoo is 4.5 to 5.5. This range:

  • Keeps the hair cuticle lying flat (the isoelectric point of hair keratin is approximately pH 3.67; slightly acidic pH minimizes swelling)
  • Optimizes the performance of amphoteric surfactants
  • Supports scalp microbiome health (the scalp's natural acid mantle sits around pH 5.5)
  • Reduces potential for irritation from anionic surfactants

Amino acid-derived surfactants (glutamates, sarcosinates) are particularly pH-sensitive. They perform poorly above pH 6.5 and can become unstable. Always finalize your pH after all actives and additives are incorporated, using citric acid to lower and sodium hydroxide or triethanolamine to raise.


Viscosity Building Without Compromising the System

Most shampoo bases require a viscosity of 3,000 to 8,000 cP to feel substantive in the hand and pour predictably from the bottle. There are two primary approaches:

Salt Thickening

The simplest method for SLES-based systems. Sodium chloride (table salt) at 1 to 3% thickens anionic surfactant systems by increasing micellar packing. The viscosity-concentration curve is bell-shaped: too little salt and the formula is thin, too much and it thins again. Always run a salt curve for each specific surfactant blend.

Important caveat: salt thickening does not work well in sulfate-free systems built on isethionates or glucosides. These require a different approach.

Polymer and Gum Thickeners

For sulfate-free and mild systems:

  • Hydroxyethylcellulose (HEC): Clean, non-greasy thickening. Good compatibility with most surfactant systems. Use at 0.5 to 1.5%.
  • Carbomer / Carbopol: Requires neutralization. Produces a gel-like texture. Works well in clear formulas.
  • Guar Hydroxypropyltrimonium Chloride: Cationic guar. Thickens and conditions simultaneously. Excellent for curly and textured hair formulas.
  • Xanthan Gum: Natural option. Can produce stringiness if overused. Combine with HEC for better texture.

Conditioning Agents: What Belongs in a Shampoo vs. a Conditioner

A shampoo is primarily a rinse-off product. The window for conditioning ingredient deposition is short, and the surfactant system actively competes with deposition by solubilizing hydrophobic molecules. That said, certain conditioning agents are effective in shampoo:

  • Cationic polymers (Polyquaternium-10, Polyquaternium-7): Deposit on the negatively charged hair fiber during rinsing. Improve wet-combing, reduce static, add softness. Use at 0.1 to 0.5%.
  • Hydrolyzed proteins (wheat, silk, keratin): Small molecular weight fragments can penetrate the cortex. Strengthen and smooth. Use at 0.5 to 2%.
  • Panthenol (Pro-Vitamin B5): Water-soluble, penetrates the fiber, adds moisture and shine. Use at 0.5 to 1%.
  • Dimethicone (as an emulsion): Heavier silicone conditioning. Adds slip and shine. Use sparingly in rinse-off (0.5 to 1%) or it will build up.

Avoid heavy oils and butters as primary conditioning agents in shampoo. They are difficult to keep in solution, can interfere with the surfactant system, and tend to deposit inconsistently.


Preserving the Formula

Shampoos are water-based and warm during use, making them a hospitable environment for microbial growth. Preservation is non-negotiable. Common approaches:

  • Phenoxyethanol + Ethylhexylglycerin: Broad-spectrum, globally accepted. Use at 0.75 to 1%.
  • Sodium Benzoate + Potassium Sorbate: Natural-positioned option. pH-dependent (most effective below pH 5.5, which aligns well with shampoo pH targets).
  • DMDM Hydantoin or Methylisothiazolinone: Effective but increasingly restricted in leave-on formulas and facing consumer pushback in rinse-off products as well.

Always challenge-test your final formula. Preservative efficacy testing (PET) per USP 51 or ISO 11930 is the standard.


A Starting Formula Framework

This is a starting-point framework for a balanced, sulfate-free shampoo. Percentages are by weight. Adjust based on your specific surfactant grades (which are supplied at varying active concentrations).

Ingredient% w/wFunction
Water (deionized)q.s. to 100Solvent
Sodium Lauroyl Methyl Isethionate12.0Primary surfactant
Cocamidopropyl Betaine (30% active)15.0Secondary surfactant
Decyl Glucoside (50% active)6.0Co-surfactant
Glycerin2.0Humectant
Hydroxyethylcellulose0.8Thickener
Polyquaternium-100.3Conditioning polymer
Panthenol0.5Conditioning active
Phenoxyethanol (and) Ethylhexylglycerin1.0Preservative
Citric Acidq.s.pH adjustment to 5.0
Fragrance or Essential Oil Blend0.5 to 1.0Fragrance

Manufacturing note: disperse HEC in water before adding surfactants to avoid clumping. Add surfactants at room temperature or below 40°C. Adjust pH last.


Frequently Asked Questions

Can I use only one surfactant in a shampoo formula?

Technically yes, but the result is almost always inferior. Single-surfactant systems tend to have either poor mildness, poor foam quality, or poor cleansing performance. The synergy between a primary anionic and a secondary amphoteric is well-documented and produces better outcomes across every performance metric than either surfactant alone.

What is the difference between sulfate-free and low-sulfate shampoos?

Sulfate-free means the formula contains no sulfate-class surfactants (SLS, SLES, ammonium lauryl sulfate, etc.). Low-sulfate formulas retain a small amount of sulfate surfactant, typically SLES at 4 to 6% rather than the conventional 10 to 14%, blended with milder co-surfactants to reduce the overall irritation potential. Low-sulfate formulas are easier to formulate to a conventional viscosity and foam profile.

Why does my sulfate-free shampoo feel like it doesn't lather as much?

Isethionate and glucoside-based surfactants produce a creamier, denser foam rather than the large, airy lather of SLES. The foam volume is lower but the cleaning efficacy is comparable. Consumer perception of "not enough lather" is a real formulation challenge. Adding a small amount of Cocamidopropyl Betaine or Lauryl Glucoside can improve the foam experience without compromising mildness.

How do I stop my shampoo formula from separating?

Separation in a shampoo is usually caused by incompatibility between ingredients (especially oils or silicones that are not properly emulsified), pH drift, or insufficient thickener. Ensure any oil phase is solubilized using a suitable solubilizer (PEG-40 Hydrogenated Castor Oil is common), check that your preservative system is holding microbial growth in check, and confirm your pH is stable over time using accelerated stability testing.

What pH should a finished shampoo be?

The target range is 4.5 to 5.5. This aligns with the natural pH of the scalp's acid mantle, keeps the hair cuticle flat, and optimizes the performance of amphoteric surfactants. Formulas above pH 6.5 are more likely to cause cuticle swelling, increased friction, and a rougher post-wash feel.

How do I know if my surfactant system is mild enough?

In-vitro mildness can be estimated using the zein solubilization test or the red blood cell (RBC) hemolysis test. For a more practical early-stage screen, compare your formula's irritation profile to a known reference (such as a commercially available sensitive-scalp shampoo) using repeat-insult patch testing (RIPT) with a qualified testing laboratory. Always conduct safety testing before commercial launch.


Key Takeaways

  • The surfactant system is the foundation of every shampoo formula. No active ingredient overcomes a poorly designed base.
  • Use a blend of primary anionic and secondary amphoteric surfactants. The ratio between them controls both cleaning power and mildness.
  • Sulfate-free does not automatically mean mild. Evaluate surfactants on their irritation profile, not just their chemical class name.
  • pH is a performance variable, not just a safety check. Target 4.5 to 5.5 for every finished shampoo.
  • Viscosity building strategy depends on your surfactant system. Salt thickening works for SLES-based formulas; polymer thickeners are required for most sulfate-free systems.
  • Conditioning agents can be incorporated into shampoo effectively, but keep them rinse-off-appropriate: cationic polymers, hydrolyzed proteins, and panthenol outperform heavy oils in this format.
  • Always challenge-test your preservative system and run accelerated stability before scaling.

Ready to take a formula from concept to a chemist-reviewed, manufacturing-ready spec? Get started free on Genie

From idea to production

Have a unique product idea? Let's make it real.

Tell Genie what you want to make and watch a real, chemist-grade formula come together. Free to start, only pay when you want to take it to production.

  • Custom formulation, chemist-reviewed, free to create
  • Your full formula with exact percentages, free
  • Start production when you are ready, with a $500 refundable deposit that counts toward your run
  • Chemist-reviewed spec, your manufacturer, real samples, then your run

Build your formula free, then start production when you are ready to make it real.