To calculate the volume, we divide the mass of the object by the density of the substance. Mass density volume example 4.