Save money while you avoid the synthetic fragrances and other additives in commercial laundry detergents by learning how to make a DIY laundry detergent at home.
Over a year ago, I showed you how to make a homemade laundry “detergent” using soap. It was actually a guest post written by someone who works in a cleaning company. It is very simple to make and uses very natural ingredients like soap flakes and baking soda. Heck, I even showed you how to make a laundry soap with coconut oil, a super easy soap that is perfect for that sort of recipe (and for beginner soap makers!). I made and used her “detergent” recipe quite successfully for many months before I started dabbling in the world of working with surfactants.
The problem with soap-based laundry detergents
While my original recipe worked well for me for quite some time, it’s not the most ideal solution for cleaning your clothes, especially for those who have hard water. Soap is susceptible to forming what is known as soap scum. It’s a bit of a buildup that forms when the soap is added to hard water. Hard water has calcium and magnesium ions that react with the sodium salts in the soap. The reaction results in calcium and magnesium salts which are precipitated as soap scum.
Why is soap scum a problem?
Soap scum is a problem because it can build up on your clothes and can bind with it other undesirable substances like oils and dirt, but also possibly bacteria and/or other microbes.
Many people successfully use soap-based laundry detergents without noticing any problems. Others, though, notice that their clothes appear dingy after repeated use. Perhaps I was able to avoid the unpleasantness due to the fact that we have a water softener at home. We live in an area of Spain with very hard water, and most of the family was feeling itchy after showering. Plus, I constantly felt a buildup in my hair, even when I experimented with washing my hair with only water for a while. So, we finally installed a water softening system.
With softer water, soap scum isn’t as big of a problem because you won’t have as many calcium and magnesium salts precipitating out. Detergents also can save you from soap scum buildup.
“Stripping” your clothes
After repeated washings with soap, many people have decided to do what’s called “stripping,” basically a deep, thorough cleansing of the clothes with substances that help remove the mineral buildup in their clothes. You can read more about the problem with using soap-based laundry detergents, and about stripping your clothes here.
I actually tried doing it with a DIY mix of borax, washing soda, and Calgon, and while I did end up with somewhat yucky looking water, it didn’t look that much different than the water obtained from “stripping” my newer clothes that had only been washed in detergent based cleansers. That, again, could also be due to the fact that I have soft water so my clothes probably didn’t have as much of a soap scum buildup on them.
Why make your own Laundry detergent?
So, you’ve decided not to use a soap-based laundry detergent, but what should you use instead? Working with surfactants can sound a bit daunting, right? It just doesn’t feel as “natural” to use detergents or other surfactants that aren’t soap. (If you are interested in reading more about natural surfactants, I’d recommend checking out my beginner’s guide to working with natural surfactants.)
Once you get over the initial fear of working with new products, though, you’ll realize that it’s still a really great idea to make your own laundry detergent.
Making your own laundry detergent saves money!
Let’s start with one of the biggest advantages of making your own detergent: it’s a great way to save money!
Most “natural” laundry detergents are expensive. Heck, even the not-so-natural ones tend to be overpriced when you think about their composition. They are mostly water mixed with some surfactants and many of those surfactants are actually quite inexpensive!
This, of course, depends on where you are buying them and in what quantities. I bought 5 liters of SLS here in Spain for just over 20 Euros. That’s enough for me to make many bottles of detergent!
When you make your own laundry detergent, you have more control over the ingredients.
One of the main reasons I like to make my own detergent is that I try to avoid synthetic fragrances in most store-bought detergents, some of which are very strongly scented. I’m actually quite sensitive to many of those fragrances and find myself nauseous when I’m in the same room with somebody who uses strongly scented detergents and fabric softeners.
When making my own laundry detergent, I use essential oils to scent it, or, more often, I keep the detergent unscented. I find it more effective to add a few drops of lavender essential oil to my homemade wool dryer balls and throw them in the clothes dryer when drying my clothes. Doing that leaves my clothes with a more natural, less overbearing fragrance. (I have since been informed that there is a risk, albeit small, of EO’s igniting in the dryer when used in dryer balls. When used in such small amounts, it’s highly unlikely, but do so at your own risk! It may be better to scent your clothes with homemade lavender sachets in your closet instead!)
Making your own detergent also allows you to avoid any ingredients that are problematic for you!
Isn’t sodium lauryl sulfate bad/unnatural/to be avoided?
OK, I know what you’re thinking…
So, I’m talking about controlling the ingredients and using more natural ingredients, and then I go and use one of the most hated surfactants of all time, right?!?!?
Sodium lauryl sulfate, aka. SLS, is a detergent type surfactant that does a wonderful job of cutting grease. It makes lots of suds and it is very inexpensive. It’s also derived from coconut oil and is completely biodegradable, something that most green-minded people should appreciate.
But isn’t SLS bad and cancer causing?
Well, not really.
I haven’t found any studies that show SLS causes cancer and many of the sites that bash SLS repeat a lot of the same information that either doesn’t have a real scientific basis, or that does, but whose results have been interpreted wrong. One example is the claim that SLS can react with formaldehyde to produce “nitrosating agents.” But as neither have nitrogen atoms, that would be impossible. (You can read more about SLS myths and studies here.)
While it does find its origins in coconut oil, it also needs quite a bit of synthesizing to make it, so it’s not really a very “natural” product. That is enough to make some people want to avoid it, but sometimes “natural” isn’t always best. (I would choose a lab-made iron oxide colorant over a completely natural one for homemade cosmetics as the naturally foudn ones are usually contaminated with heavy metals.) What we are looking for is making products that are safe. While I prefer natural products, safety trumps natural for me any day!
SLS does have other disadvantages. It is a rather harsh surfactant, when compared to some of the others, that can irritate sensitive skin. It finds its way into a lot of personal care products where I don’t really think it should be used (like toothpaste, for example, which is why you may consider making your own toothpaste instead). I personally don’t and wouldn’t use SLS in my homemade body care products like homemade shampoos.

Why use SLS?
That said, laundry detergent isn’t a personal care type product. The superior cleansing ability of SLS really works to our advantage when we are trying to clean our clothes of dirt and grime. For me, it’s worth using here. I’ve combined it with gentler, more natural surfactants to help balance things out.
SLS isn’t essential in a detergent, of course, but it will make for a better cleaning detergent. I think even most “natural” detergents I’ve seen probably are using it without completely disclosing as they are afraid of the stigma associated with using it. (I often see the detergents with ingredients listed as “non-ionic surfactants,” the most famous of which, of course, is SLS.) You can read more about the categories of surfactants in my post about natural surfactants.
Dr. Bronner’s Sal Suds is another product that unapologetically uses SLS in it. In fact, their formula was my inspiration for this laundry detergent. (I also use this mixture for all sorts of general cleaning around the house!) They also touched on why they feel it’s safe to use for general cleaning in the post on their website.
Customizing your homemade laundry detergent
As I mentioned earlier, you could experiment a bit with varying the different surfactants in this detergent recipe. This recipe, however, is thickened with salt, and not all surfactant combinations will thicken in the same way (or at all) when using salt.
Why add salt?
Certain surfactant mixes can easily be thickened by adding salt to them and it’s a wonderful way to thicken them because you don’t need to deal with gums or other thickeners. This recipe is one example where salt works perfectly for thickening up the detergent. Without it, the detergent will still be concentrated and potent, but it won’t really look that way. You’d end up with a very liquidy product. Most people equate thick, viscous soaps and detergents as being more concentrated, even when that isn’t always the case.
The salt in this recipe is around 2% of the recipe and I’ve found that it makes for a nice thickness. You may be able to thicken it even more with slightly more salt, but you have to be careful when experimenting with the amount of added salt. The thickening properties of the salt follow what is called a “salt curve.” The product will continue to thicken up until a certain point. After that, adding more salt will only thin out the product again!

Customizing the surfactants
I very much like this combination of surfactants, and have found it to make a nice looking product that is very effective. I’ve used around 15% SLS, 5% coco betaine, and 3% decyl glucoside. (You can read more about the last two surfactants here.)
If you are determined to make an SLS-free detergent, you’ll have to do some experimentation. You’ll likely want to use a higher total concentration of surfactants, too, as the more gentle, natural surfactants aren’t as effective at cleaning. My recipe uses around 23% surfactants, but when using gentler surfactants, you’ll want to find combinations of surfactants that complement each other, and will likely want to use somewhere around 30-40% or even more.
Another thing to keep in mind is that not all surfactant mixtures can be thickened with salt. When using other combinations, you may need to add a gum like xanthan gum to thicken your final product. (Or just use a more liquid product, knowing that the thickness isn’t what is making your detergent stronger and more concentrated.)
Adding essential oils or fragrances
I didn’t add any essential oils or fragrances to this recipe because I prefer to add a couple of drops of lavender essential oil to my homemade wool dryer balls when drying my clothes. I find it to be a more effective way of scenting them. (I have since been informed that there is a risk, albeit small, of EO’s igniting in the dryer when used in dryer balls. When used in such small amounts, it’s highly unlikely, but do so at your own risk! It may be better to scent your clothes with homemade lavender sachets in your closet instead!)
That said, you can use essential oils or fragrance oils to scent your homemade detergent (or you can just add a few drops of essential oils to your rinse water). I’d suggest using small amounts of EO’s because larger quantities may not be fully solubilized into the mixture, and you may end up with some separation. (These surfactants do have a certain amount of solubilizing ability, but that is limited without adding some sort of solubilizer.)
Do you need a preservative?
YES!
Any homemade product with water in it will need some sort of preservative to keep bacteria and mold away. The surfactants on their own are either self-preserved (by extreme pH’s) or have preservatives added to them to keep them free from microbial growth. Once you start adding more water to them, though, you’ll need to find a way to keep the microbes away.
Using pH as a “preservative”
There are certain ways to go about it. Dr. Bronner’s Sal Suds have the following ingredients: Water, Sodium Lauryl Sulfate (SLS), Coco-Betaine, Decyl Glucoside, Abies Siberica (Siberian Fir) Needle Oil, Picea Glauca (Spruce) Leaf Oil, Citric Acid, Sodium Sulfate, Sodium Chloride, Potassium Hydroxide
Their recipe differs from mine in the use of sodium sulfate (normally used as a filler in powdered laundry detergents) and potassium hydroxide. I’m not quite sure why they chose to use sodium sulfate in a liquid detergent type product.
Potassium hydroxide is a strong base that I use when making liquid soap. I could be wrong here, but my suspicion is that they chose to add it to alkalinize the mixture which makes it inhospitable to microbes. If you can make a product with a pH higher than 9 or lower than 4, you don’t generally need a preservative. (Sal Suds have a pH of around 9-9.5 according to a friend of mine who tested with pH test strips.) This, of course, depends on what sorts of ingredients you are using. Organic type ingredients like milks, plant material, and clays are more difficult to preserve. Normally, though, it should keep your product safe for up to a year. This is also the main reason that you don’t need a preservative with liquid soaps.
Most preservatives don’t work very well at high extremes anyway. Without adding KOH to this recipe, my detergent falls has a pH of around 5.
I haven’t tried adding KOH to this mixture yet, but probably will the next time I have to mix some up. It is likely the most cost effective solution to preserving a detergent like this one, especially if you already like to make your own liquid soaps, so it’s really a great way to preserve the product. I’ll let you know my findings when I get around to it.
Using natural preservatives
There are a number of natural preservatives that you can use to preserve this product instead. I’ve been using one called Sharomix 705. It’s an Ecocert safe preservative that seems to be doing a pretty good job in my formula. (Sharomix can be used in products with a pH under 5.5, and should be used at a concentration of 0.6-1.2% of the recipe.) I had bought it inexpensively in large quantities, so I had plenty at home to use up and experiment with.
The important thing to keep in mind here is that you’ll want to make sure the pH of the detergent is adequate for the preservative you are using. Most suppliers will share the effective pH range for their particular preservative. They’ll also let you know an effective percentage to use.
In my recipe below, I’ve used the preservative at 1% of the recipe. That’s a general range that is the amount needed for many of the more popular natural preservatives. Some of them may need to be used in higher quantities, in which case you could reduce the water content to make up for the addition of more preservative.
I’ve been doing more research on a number of natural preservatives and hope to get a post about them to you soon!
Meanwhile…
Surfactant-based homemade liquid laundry detergent

DIY Liquid Laundry Detergent (Non-Soap)
Materials
- 740 g distilled water
- 150 g sodium lauryl sulfate
- 50 g coco betaine
- 30 g decyl glucoside
- 20 g salt
- 10 g preservative
Instructions
- Begin by adding the surfactants to your container. I cleaned out an old laundry detergent bottle from a natural laundry detergent that I had bought in the local eco-supermarket. The easiest way to add them is to tare the scale with your container on top to set the scale to zero. You can then add one of the surfactants before taring the scale again. Taring the scale between adding each ingredient is the easiest way to weigh out your ingredients.
- Once you've added the surfactants, add the distilled water. You can now gently stir or agitate the bottle to mix the surfactants with the water. Mix them gently so as not to form too much foam.
- You can now add the salt into your mixture, again gently stirring to incorporate it. The mixture will thicken up as the salt dissolves into the mixture. (You can also choose to separate out a small portion of the water and dissolve the salt in that water before adding it to the detergent mixture. This may help more efficiently combining all ingredients more easily.)
- Finally, add your preservative. I like to switch to a smaller, more precise scale for weighing out my preservative and other ingredients used in smaller quantities. (This scale is a good example.)
- You are now ready to use your homemade detergent just as you would a store bought one. (I'd suggest using around 2-3 Tbsp. per load.)
To help boost cleasning, you could consider adding some baking soda to your wash water too and/or use vinegar in your final rinse as a natural fabric softener.
Now that you’ve made your own laundry detergent, why not make your own natural fabric softener and wool dryer balls too?
Priscilla
I haven’t made this yet, but I saw this recipe around 2019 when searching for DIY laundry detergents. I had ZERO knowledge of ANY of the surfactants at the time and forgot all about it. BUT, now I do and have been blessed by The Lord to learn and making things like crazy the last few years. Now I’m ready to try now that I understand. Thank you for this!
Alexander
Hi Tracy,
I’m wondering whether the lower PH (compared to Sal Suds), effects the cleaning efficacy of this?
I’m looking to make an all purpose cleaner, for laundry, dishes, general household etc.
Secondly, for some reason in Australia, it’s much easier for me to find SLES than SLS. I know there is the debate about it potentially having carcinogenic by-products from the processing. Do you see that being a risk for my intended application?
Many thanks,
Alexander
Tracy Ariza, DDS
Hi Alexander,
I’m not too hung up on using either in cleansing products. What I don’t like is the overuse of either surfactant in cosmetics. That’s where I think you could have issues with the harshness of these surfactants. Use what you can find.
I actually generally bring up the pH of mine these days so I don’t have to use so much preservative. I find it much easier/cheaper to adjust the pH up vs. add the preservative.
That said, I’ve made it both ways, and haven’t noticed a difference in the efficacy.
Margaret
Hi Tracy.
Does it matter if I use liquid or powdered Coco Betaine? Would the measurement still be the same?
Thanks
Margaret
Tracy Ariza, DDS
If you use powdered, you will add less and use more water. You could make the liquid coco betaine by dissolving it in water (30% solution). Don’t worry too much about it being exact as the recipe is very forgiving. Just make sure to preserve according to what you make. (By weight percentage if using a preservative…or raise the pH accordingly.)
Rachel
Hi Tracy, if I were to add essential oils for fragrance, how much would you suggest adding? Also, would I need to add extra preservative to offset the oils? Thanks!
Tracy Ariza, DDS
Hi Rachel,
Because this isn’t a cosmetic, you can really go pretty much as high as you like when adding the oils. (Normally for cosmetics, you wouldn’t want to go over 2% to avoid causing skin sensitivity issues- with some oils, you’d want to use even less.) That said, it could get quite pricey if you go higher than that. If you keep the oil amount low, it won’t be enough to throw off the preservative. They need to be somewhat precise, but work over a range and 2-3% won’t be enough to throw it off. You can always use your preservative at the higher end of the range of recommended dosage by weight. If you don’t want to add the EO to the detergent and use a dryer, you can also add a few drops to wool dryer balls and throw them in the dryer wit the clothes to scent them.
Laurie
Hi Tracy, can I use water softener salt instead of table salt or epsom salt?
Thank you for all the information and recipe!
Tracy Ariza, DDS
If the composition is the same (NaCl), it should be fine. (I think some are made with Kcl, and I’m not sure if that would work.)
The salt is added to thicken the mixture. I can’t remember the chemical reaction behind it, but it only works with certain surfactants. In this case, it works really well. You’ll want to break it up if it’s in pellets so that it dissolves well.
Liana
Gracias, Tracy! Me encantan tus recetas y como explicas las razones para usar uno u otro ingrediente. Será muy interesante ver cómo resulta la adición de KHO. Estoy atenta. Un saludo!
Tracy Ariza, DDS
Gracias, Liana!
Normalmente uso NaOH para conservarlo hoy en dÃa. Va muy bien.
Lo subo a un pH de 10, más o menos. (Aunque a veces me pasó y va a 11.)
Llevo años asà y nunca me da problemas.
Dianna Begay
Good Morning Tracy,
Yesterday, I was going to buy more supplies to make some of your wonderful laundry detergent. I was trying to buy some sodium lauryl sulphate. The price of 25g was very very high. The amount not even enough for your recipe and it would be far cheaper to buy detergent off the shelf.
Will it always be like this now or is there a cheaper source out there somewhere?
Anticipating your response.
Tracy Ariza, DDS
Hi Dianna,
I’m sorry to hear that. Here in Spain, I’m able to find 5 liters for 25 euros and that lasts me for years as you dilute it so much when you make the recipe. I’d hope you could find a better place to get it more inexpensively. It shouldn’t be that pricey!
Abby
Hi Tracy! Thrilled to find this recipe, but need your input on preservative options as I have no access to Sharomix where I live in Asia. Two options I can find are Phenoxyethanol and sodium benzoate. Are you able to comment on whether one of these would work or steer me in the direction of something common that would? My goal is to make something fragrance free (which is becoming impossible to find where I live!), so all-natural comes second to just finding something that will work.
Tracy Ariza, DDS
Honestly, I stopped using preservative in mine and now just raise the pH to above 9-10 instead using a mixture of NaCl. (Lye solution)
I add it in slowly and try to mix it as best I can and test the pH with test strips to see if I need more.
Kathy
Hi Tracy ,
could this be used as a dish-washing Liquid as well or do you have a recipe
thank you
Kathy
Tracy Ariza, DDS
I’ve used it for hand washing dishes and it works well. I tried it in the dishwasher and it appeared to work at first, but then left a film on dishes. I have made a powder for the dishwasher using sodium perborate, but I can’t remember what I mixed it with. It worked really well, though. I was thinking of experimenting with it again soon.
Lucia
Hi,
thanks for this recipe, are the indicated weights of ingredients corrected by the concentration of SLS, decylglucoside and cocobetaine in the raw materials? Or are these the weights you used of those ingredients as they come from the bottle?
I have solid SLS and not in a solution, so it matters a lot, since the ingredient you used in this recipe contains around 30% of solid SLS.
looking forward to your answers.
Tracy Ariza, DDS
Hi Lucia,
These are the weights of the liquid surfactants as they come from the bottle. So, yeah, you’d have to dilute the solid SLS to use the amounts in the recipe. The one I used has a listed active matter of 26.5 – 28.5%. So, yeah, around 30%. It’s not a big deal if it’s not super accurate. 😉
Lucia
Hi Tracy, thanks a lot.
i just wonder what that does to the effective amount of surfantant in the detergent. I want to go with your recipe as it uses less, especially if you have tested it and it is effective at normal dosing volumes. Do you use 2-3 tbsp? what is the water hardness there? Here is it around 7, so quite hard.
I really appreciate your recipe and reactions, recipes with surfactants are difficult to find.
Tracy Ariza, DDS
Hi Lucia,
I probably use around that much or a little less. To be honest, I don’t measure and just pour in a small amount and it seems to work quite well. It’s really hard to know howmuch things would change if the amount were increased or decreased, though.
Our water is quite hard too, but we cheated and installed a water softener.
Roberto
Hi, I tried the recipe and it turned out really good. I adjusted with NaCl and it had a good viscosity, but after a few days the solution became more viscous and turn white. Why can that happen?
Tracy Ariza, DDS
Hi Roberto,
Hmmm that’s interesting. I have had the viscosity increase a bit with time, but I think it was more because of how I add the salt in granular form. I think it reaches its full viscosity once the salt is completely dissolved and well mixed into the rest. I’ve never had it turn white, though.