Polymorphisms in rpoS are common in Escherichia coli. rpoS status influences a trade-off between nutrition and stress resistance and hence fitness across different environments. To analyze the selective pressures acting on rpoS, measurement of glucose transport rates in rpoS 1 and rpoS bacteria was used to estimate the role of F nc , the fitness gain due to improved nutrient uptake, in the emergence of rpoS mutations in nutrient-limited chemostat cultures. Chemostats with set atmospheres, temperatures, pH's, antibiotics, and levels of osmotic stress were followed. F nc was reduced under anaerobiosis, high osmolarity, and with chloramphenicol, consistent with a reduced rate of rpoS enrichment in these conditions. F nc remained high, however, with alkaline pH and low temperature but rpoS sweeps were diminished. Under these conditions, F sp , the fitness reduction due to lowered stress protection, became significant. We also estimated whether the fitness need for the gene was related to its regulation. No consistent pattern emerged between the level of RpoS and the loss of rpoS function in particular environments. This dissection allows an unprecedented view of the genotype-by-environment interactions controlling a mutational sweep and shows that both F nc and F sp are influenced by individual stresses and that additional factors contribute to selection pressure in some environments.