1/3 bar ivory soap or fels naptha
1/2 cup borax
1/2 cup washing soda
1/2 cup oxiclean free
For dry detergent: I triple the recipe so I can use a full bar of soap and then I store it in a large "dog food container" (it has a seal around the lid so it won't spill if it tips over). Grate the soap into a food processor, then add everything else and let the chopping blades do the rest. A large load takes 3 Tbsp, a medium or small load takes 2 Tbsp.
For liquid detergent: You'll need a total of 2 gallons of water and a container big enough to hold it. Grate the soap into a large pot, then add 6 cups water and heat until the soap melts. Add the washing soda, borax, and oxiclean and stir until it is dissolved. Remove from heat. Pour 4 cups hot water into your container. Add your soap mixture and stir. Add 1 gallon plus 6 cups of water and stir. Let the soap sit for about 24 hours and it will gel. Use 1/2 cup per large load (1/4 cup for HE washers).
For a stain remover: Dissolve 3-4 tablespoons of dry detergent in 32 oz hot water in a spray bottle.