Bad odors in a washing machine are often caused by moisture and detergent buildup. Over time, soap residue, fabric softener, and dirt can collect inside the drum and hoses.
Front-load washers are especially prone to odors because moisture can remain trapped in the door gasket. Leaving the door slightly open between washes helps reduce this problem.
Using too much detergent can worsen smells by leaving residue behind. Running a hot wash cycle with no clothes and a washing machine cleaner may help.
Mold and mildew are common causes of persistent odors. Regular cleaning and proper ventilation are key to prevention.