Evolution depends on mutations. For an individual genotype, the rate at which mutations arise is known to increase with various stressors (stress-induced mutagenesis -SIM) and decrease at high population density (density-associated mutation-rate plasticity -DAMP). We hypothesised that these two forms of mutation rate plasticity would have opposing effects across a nutrient gradient. Here we test this hypothesis, culturing Escherichia coli bacteria in increasingly rich media. We distinguish an increase in mutation rate with added nutrients through SIM (dependent on errorprone polymerases Pol IV and Pol V) and an opposing effect of DAMP (dependent on MutT, which removes oxidised G nucleotides). The combination of DAMP and SIM result in a mutation rate minimum at intermediate nutrient levels ( ). These findings demonstrate a strikingly close and nuanced relationship of ecological factors -stress and population density -with mutation, the fuel of all evolution.