Your kidneys measure out chemicals like sodium, phosphorus, and potassium and release them back to the blood to return to the body when need arises. In this way, your kidneys regulate the your body’s level of these substances. The right balance is necessary for you to function properly.