D = m/v, where D is density, m is mass and v is volume. Units are Kg per metre cubed.
Basically, 1Kg of muscle would take up less space than 1Kg of fat. They would both weigh the same, but the issue here would be the difference in space or volume they occupy.