How do I clean my washer drum and keep it from smelling?
Run a monthly empty hot-water cycle using either your washer's built-in Self Clean / Tub Clean setting, a cup of white vinegar, or an affresh-style tablet. After every wash, wipe the door gasket dry and leave the door ajar so the drum can air out. Front-loaders need this discipline more than top-loaders.
Washer odor — especially in front-loaders — comes from biofilm: a mix of detergent residue, body oils, fabric-softener gunk, and trapped moisture that microbes feed on. The fix is twofold: kill existing biofilm with a monthly hot cleaning cycle, and prevent it from forming by letting the drum dry out between loads.
Monthly cleaning: most washers made since 2015 have a dedicated Self Clean, Tub Clean, or Sanitize cycle — use that with the drum empty. If yours doesn't, run the hottest cycle with either 1 cup of white vinegar or a washing-machine cleaner tablet (Whirlpool's affresh and the generic alternatives all work equivalently).
Every-load habits: wipe the inside of the door gasket with a dry towel (front-loaders especially), leave the door open an inch between washes, and measure your HE detergent carefully — most households use 2-4x the correct amount, which accelerates biofilm growth.
If odor persists after two months of this routine, the drain-pump filter is the next suspect (see 'Why does my washer smell'). If it's still bad after that, have the drain line checked — standing water in the drain creates odor that always migrates back into the drum.