The gas fractions of dark matter haloes hosting simulated
∼L⋆ galaxies are governed by the feedback history of their black holes
Using the EAGLE simulations, this paper shows that scatter in the gas fraction of dark matter haloes hosting present-day $\sim L^\star$ galaxies is driven by black hole feedback history. The gas fraction correlates negatively with the central black hole's mass, not its accretion rate. Halos with less massive black holes retain more gas and have higher star formation rates. The black hole mass itself correlates with the halo's binding energy. These variations in gas fraction are reflected in soft X-ray and thermal Sunyaev-Zel'dovich signals, offering a testable prediction.