Porosity is defined as the percentage of total soil volume occupied by pore spaces (voids between soil particles). It determines how much air and water the soil can hold. Water holding capacity is related but refers specifically to water retention, not the pore space percentage itself.