The ecosystem needs to have the nutrients inputs and outputs equal to maintain a balance. Outputs happen when nutrients are lost and this happens in three ways. Gaseous nutrients like carbon and nitrogen are lost in the atmosphere. Waterways and rainfall carry away nutrients that are in organic matter. When it rains the water carries away nutrients in the soil.