A lot of leggings wear out in the laundry long before the gym gets a chance. That is a guess, but it fits what most people see. The pair that survives a hard year of squats and rope climbs usually belongs to someone who treats washing as a real job. The pair that quits around month four usually got tossed in with the towels. None of the fixes are exciting. They work anyway.
Read the Tag
Most leggings that hold up in a CrossFit class are nylon or polyester with some spandex mixed in, though the ratio changes a lot from brand to brand. Spandex does not like heat. Skin oil clings to the synthetic part and stays there, which explains why a pair can still smell after a full wash. The tag tells you what the maker tested, so give it a glance. Cold water and a gentle cycle show up on nearly everyone. A few ask for more.
Wash Soon, and Keep It Cold
A damp gym bag turns funky quickly. Hang the leggings up when you get home, and wash them within a day or two. After a hard session, wash it every time. After a light one, you can probably get away with a second wear, though your nose will decide. Use the cold setting. Hot water cooks the elastic a little with each wash, and after a few months the fabric goes loose and strangely shiny.
Turn the pair inside out so the soap reaches the side that touches skin. Wash it with other synthetics if you can. A hoodie zipper can snag the weave, and a snag in a thin fabric is hard to undo. A mesh bag helps when the load is mixed. Don’t stuff the drum, either. Clothes need room to move around or the sweat stays put.
Use Less Soap Than the Bottle Says
A capful is plenty. Extra detergent leaves residue on the fibers, and residue holds odor, so the pair smells worse than before. Fabric softener does more harm. It coats the fabric and slows the way it pulls sweat away. Skip it, and skip the dryer sheets too. Some people swear by sport detergents, and others see no change, so a plain mild one is fine.
If a smell survives the wash, soak the pair in cool water with a cup of white vinegar for half an hour. Rinse it well afterward. Chalk comes out more easily if the leggings get a hand shake before they go in the machine. Do that outside. Indoors, someone has to sweep.
Dry Them Slowly
Hang them on a rack near a window, but keep direct sun off them. Thin fabric dries in a few hours, so the wait is short. A dryer on the lowest setting is acceptable now and then. High heat wrecks the stretch, and the waistband tends to give up first. Gripper bands with silicone strips suffer most, since the strips crack and peel. No iron, ever. Synthetic fabric melts, and it does that fast.
Rotate Them and Check the Seams
Two pairs make life easier. Fabric seems to need a day between sessions to bounce back, and a spare means no laundry at eleven at night. Every few weeks, look over the seams, especially the inner thigh. That seam usually fails first. A small snag stays small if somebody fixes it early. A pair that splits mid-workout makes for a long afternoon.
The bag needs washing too, maybe once a month. A clean pair dropped into a dirty bag picks up the old smell by Thursday.