What determines the density of an object?

Density = mass/volume