Density is always (mass)/(volume).
For the piece of material you've got there, the density is
(50 grams)/(5 cm^3).
8.2m questions
10.8m answers