One of the most common reasons washing machines smell bad is due to mold and mildew. These fungi thrive in warm, moist environments, such as washing machines. To fix this issue, you can run a hot water cycle with no clothes or detergent and add a cup of white vinegar to the machine's drum. This will help kill any mold or mildew and eliminate the odor.