The formula for density is d M V where d is density M is mass and V is volume. R m V displaystyle rho frac mV where r is the density m is the mass and V is the volume. M mass in kg or g.
In science this is one of the most important properties of any object.
In case of homogneous isotropic substance it has no directional properties so it is scalar quantity. M is the symbol for mass. The density of a substance is its mass per unit volume. Density is defined as mass m in a given unit volume V.