Density
Even at the same volume, different mass means different density. Density is mass divided by volume and stays constant for a given material no matter the amount. Objects denser than water sink and less dense ones float—that is why ice floats. Move mass and volume and the density, plus float or sink, shows up.