Matter is anything that has mass and takes up space. Density is a specific property of matter that indicates the mass of a substance contained within a given unit of volume, such as kilograms per cubic meter. Density is calculated by taking the mass of an object and dividing it by the object's volume, providing information about the substance that makes up a material system.