The evolution of antibiotic resistance carries a fitness cost, expressed in terms of reduced competitive ability in the absence of antibiotics. This cost plays a key role in the dynamics of resistance by generating selection against resistance when bacteria encounter an antibiotic-free environment. Previous work has shown that the cost of resistance is highly variable, but the underlying causes…