The mass of atoms, their size, and how they are arranged determine the density of a substance. Density equals the mass of the substance divided by its volume; D = m/v.Objects with the same volume but different mass have different densities.
-Hope this helps dont take my word for it though.