density is calculated by dividing
Density is defines as the ratio of mass to volume.So you measure the mass and volume of a sample, and divide the mass by the volume, to find the density.