During growth, cells must expand their cell volumes in coordination with biomass to control the level of cytoplasmic macromolecular crowding. Dry-mass density, the average ratio of dry mass to volume, is roughly constant between different nutrient conditions in bacteria, but it remains unknown whether cells maintain dry-mass density constant at the single-cell level and during nonsteady conditions. Furthermore, the regulation of dry-mass density is fundamentally not understood in any organism. Using quantitative phase microscopy and an advanced image-analysis pipeline, we measured absolute single-cell mass and shape of the model organisms Escherichia coli and Caulobacter crescentus with improved precision and accuracy. We found that cells control dry-mass density indirectly by expanding their surface, rather than volume, in direct proportion to biomass growth—according to an empirical surface growth law. At the same time, cell width is controlled independently. Therefore, cellular dry-mass density varies systematically with cell shape, both during the cell cycle or after nutrient shifts, while the surface-to-mass ratio remains nearly constant on the generation time scale. Transient deviations from constancy during nutrient shifts can be reconciled with turgor-pressure variations and the resulting elastic changes in surface area. Finally, we find that plastic changes of cell width after nutrient shifts are likely driven by turgor variations, demonstrating an important regulatory role of mechanical forces for width regulation. In conclusion, turgor-dependent cell width and a slowly varying surface-to-mass coupling constant are the independent variables that determine dry-mass density.