You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is In renal failure, metabolic acidosis is due to? and explain in detail?
Metabolic acidosis can occur because of increased endogenous acid production (lactate and ketoacids) loss of bicarbonate accumulation of endogenous acid (as seen in renal failure) -Ammonia is excreted out linked to H+ as ammonium ion and for every positive charge lost, chloride is lost to maintain electroneutrality. -In case of a renal failure both ammonia and protons are retained leading to high anion gap acidosis as the positive charges in the body are increased.