There are two good reasons to make your own carpet cleaner. First, you will save money because the ingredients to make your own homemade carpet cleaner are far less expensive than commercial chemical carpet cleaners. Next, you'll have a healthier home because you'll be using natural ingredients rather than chemicals.
Mix 1/2 gallon of water with 1/2 cup white vinegar.
Add 1/4 cup baking soda.
Stir together to form a loose paste.
Dip a scrub brush into the mixture and brush it into the carpet. Start at one corner of the room and work your way to the other until the entire carpet is covered. Use some extra elbow grease on stains.
Allow the mixture to dry.
Vacuum up the residue.