In this paper we give a derivation for the allometric scaling relation between the metabolic rate and the mass of animals and plants. We show that the characteristic scaling exponent of 3/4 occurring in this relation is a result of the distribution of sources and sinks within the living organism. We further introduce a principle of least mass and discuss the kind of flows that arise from it.