Osmolarity and osmolality both measure the concentration of solute particles in a solution, but osmolarity is based on volume while osmolality is based on mass. Osmolality is preferred in physiological conditions because volume can change with temperature whereas mass remains stable.