Imagine a patient arriving in the Emergency Department, confused, breathing rapidly and deeply, their body struggling against a profound internal imbalance. The clinical team springs into action, drawing blood, administering fluids, and searching for the root cause of this crisis. In the background, another critical process begins: the translation of this complex clinical picture into a precise, standardized language that will communicate the patient’s story to payers, researchers, and future caregivers. This language is the International Classification of Diseases, Tenth Revision (ICD-10), and for the condition described—metabolic acidosis—accuracy is not merely an administrative task; it is a fundamental component of patient care, data integrity, and financial stability.
Metabolic acidosis is not a disease in itself but a symptom, a final common pathway for a multitude of underlying disorders. It represents a state of acid-base imbalance characterized by a primary reduction in serum bicarbonate (HCO₃⁻) concentration and a consequent decrease in arterial blood pH. Coding for this condition, therefore, is rarely as simple as applying a single code. It demands a deep understanding of pathophysiology, a meticulous approach to clinical documentation, and a rigorous application of ICD-10 guidelines, particularly those governing the coding of “causality.”
This extensive guide is designed to be the definitive resource for medical coders, health information management (HIM) professionals, students, and clinicians seeking to master the intricacies of ICD-10 coding for metabolic acidosis. We will move beyond the basic code to explore the rich tapestry of underlying etiologies, dissect complex coding scenarios, and illuminate the critical connection between a physician’s note and an accurate claim. Our journey will take us from the basic biochemistry of acid-base balance to the advanced application of coding rules in challenging cases. By the end of this article, you will not only know that the code for metabolic acidosis is E87.2 but you will understand when to use it, when to look beyond it, and how to ensure that the coded data tells the complete and accurate story of the patient’s condition.

ICD-10 Codes for Metabolic Acidosis
2. Understanding the Pathophysiology: The “Why” Behind the Code
To code metabolic acidosis correctly, one must first understand what it is and how it occurs. This clinical knowledge is the foundation upon which accurate coding is built. The human body meticulously maintains a blood pH within a very narrow range, typically 7.35 to 7.45. Deviations outside this range can disrupt enzyme function, cellular metabolism, and ultimately, organ viability.
Metabolic acidosis arises from one of three primary mechanisms:
-
An Increase in Endogenous Acid Production: The body produces excess acid that overwhelms the buffering and excretory systems. Classic examples include:
-
Ketoacidosis: Seen in uncontrolled diabetes (Diabetic Ketoacidosis or DKA), starvation, or alcoholic binges, where the body breaks down fats for energy, producing ketone bodies (acetoacetic acid and beta-hydroxybutyric acid).
-
Lactic Acidosis: Occurs when cells metabolize glucose anaerobically (without oxygen), producing lactic acid. This is common in states of shock (septic, cardiogenic, hypovolemic), severe hypoxia, liver failure, and with certain medications or toxins.
-
Ingestion of Exogenous Acids or Toxins: The consumption of substances that are metabolized to acids, such as methanol (metabolized to formic acid), ethylene glycol (metabolized to oxalic acid), or large amounts of salicylates (aspirin).
-
-
A Decrease in Bicarbonate (HCO₃⁻) Concentration: This can occur through two main pathways:
-
Gastrointestinal Losses: Profuse diarrhea, intestinal fistulas, or drainage can lead to a significant loss of bicarbonate-rich fluids from the gut.
-
Renal Losses: The kidneys fail to reabsorb filtered bicarbonate or generate new bicarbonate, as seen in Renal Tubular Acidosis (RTA) and chronic kidney disease (CKD). In advanced CKD, the diminished nephron mass cannot excrete the daily acid load produced by normal metabolism.
-
-
A Decreased Ability to Excrete Acid by the Kidneys: This is the hallmark of advanced chronic kidney disease. As glomerular filtration rate (GFR) falls, the kidneys’ capacity to excrete hydrogen ions (acid) in the form of ammonium (NH₄⁺) is impaired, leading to a gradual accumulation of acid in the body.
The body compensates for metabolic acidosis primarily through the respiratory system by increasing the rate and depth of breathing (Kussmaul respirations). This hyperventilation blows off carbon dioxide (CO₂), a volatile acid, which helps to raise the pH back towards normal. This compensatory mechanism is crucial for diagnosis but does not correct the underlying metabolic problem.
3. The Central Code: E87.2 and Its Hierarchical Context
The ICD-10-CM index directs us to the code for metabolic acidosis: E87.2. To fully appreciate this code, we must place it within its hierarchical context in the ICD-10-CM manual.
-
Chapter IV: Endocrine, nutritional and metabolic diseases (E00-E89)
-
Block E70-E88: Metabolic disorders
-
Category E87: Other disorders of fluid, electrolyte and acid-base balance
-
E87.2: Acidosis
-
-
-
This placement is logical, as metabolic acidosis is fundamentally a disorder of the body’s acid-base balance, which is a key component of its metabolic homeostasis. The code E87.2 is a “manifestation” code. It describes the abnormal state (the acidosis) but does not specify the cause. This is the central concept that drives all subsequent coding decisions.
It is also critical to note what E87.2 does not include. The code has an “Excludes1” note for:
-
Diabetic ketoacidosis (E10.10-E10.11, E11.10-E11.11, etc.)
-
Lactic acidosis (E87.2 is used, but the note highlights that it can be caused by other conditions)
An “Excludes1” note means “NOT CODED HERE.” This is a critical instruction. If the patient has diabetic ketoacidosis, you must not code E87.2 in addition. The code for DKA includes the acidosis. This reinforces the principle of coding the underlying cause when it is known.
4. The Crucial Distinction: A Coding Paradigm
The single most important decision a coder makes when faced with metabolic acidosis is determining the relationship between the acidosis and its underlying cause. This decision bifurcates the coding pathway into two distinct routes.
a) With a Known Cause: Coding the Underlying Etiology
When the physician’s documentation identifies a specific, underlying condition as the direct cause of the metabolic acidosis, that underlying condition is coded first, and in many cases, it is coded instead of E87.2.
ICD-10-CM Official Guidelines for Coding and Reporting, Section I.B.4. state: “Codes for symptoms, signs, and ill-defined conditions… are not to be used as principal diagnosis when a related definitive diagnosis has been established.” Furthermore, the guidelines for Chapter 4 (Endocrine) reinforce that if a condition is listed in the Excludes1 note, it is not to be used.
In these scenarios, the metabolic acidosis is considered an integral, inherent part of the underlying disease process. To code both the cause and the manifestation would be redundant and violate coding conventions.
Examples:
-
Diabetic Ketoacidosis (DKA): The acidosis is a defining characteristic of DKA. Code only E10.10 (Type 1 diabetes mellitus with ketoacidosis without coma) or E11.10 (Type 2 diabetes mellitus with ketoacidosis without coma), etc.
-
Uremic Acidosis secondary to Chronic Kidney Disease (CKD): The acidosis is a direct consequence of the kidney’s failure to excrete acid. Code the stage of CKD (e.g., N18.5, Chronic kidney disease, stage 5) as the principal diagnosis. The acidosis is not coded separately.
-
Poisoning by Methanol: The methanol is metabolized into formic acid, causing a high-anion gap metabolic acidosis. Code the poisoning first (T51.1X1A, Toxic effect of methanol, accidental, initial encounter). The acidosis is a symptom of the poisoning.
b) Without a Known Cause: Coding the Manifestation
There are situations where a patient presents with metabolic acidosis, but the underlying cause is not immediately known or is not yet diagnosed. In these cases, the acidosis itself is the reason for the encounter and is the best available information.
ICD-10-CM Official Guidelines for Coding and Reporting, Section I.B.4. also state: “Signs and symptoms that are associated routinely with a disease process should not be assigned as additional codes, unless otherwise instructed by the classification. Signs and symptoms that may not be associated routinely with a disease process should be coded when present.“
When the cause is unknown, the metabolic acidosis is no longer “routinely associated” with a known disease; it is the disease being treated.
Examples:
-
A patient presents to the ER with Kussmaul respirations and is found to have a severe metabolic acidosis. After initial workup, the etiology remains unclear (it could be a toxin, an inborn error of metabolism, etc.). The principal diagnosis would be E87.2, Acidosis.
-
An infant is admitted for failure to thrive and diagnostic evaluation reveals a metabolic acidosis. The physician’s final diagnosis is “Metabolic acidosis, etiology unknown.” Again, E87.2 is the correct code.
The following table provides a clear, at-a-glance summary of this fundamental coding paradigm.
ICD-10 Coding Pathway for Metabolic Acidosis
| Clinical Scenario | Underlying Cause Known & Coded? | ICD-10 Coding Action | Example Code(s) |
|---|---|---|---|
| Diabetic Ketoacidosis (DKA) | Yes | Code ONLY the underlying cause. Do NOT code E87.2. | E10.10 (T1DM with ketoacidosis) |
| Lactic Acidosis due to Septic Shock | Yes | Code the underlying cause first. E87.2 may be assigned as an additional code to provide further detail, if desired. | R65.21 (Severe sepsis with septic shock), E87.2 (Acidosis) |
| Metabolic Acidosis due to Chronic Kidney Disease, Stage 5 | Yes | Code ONLY the underlying cause. The acidosis is an integral manifestation of the CKD. | N18.5 (Chronic kidney disease, stage 5) |
| Metabolic Acidosis due to Poisoning | Yes | Code the poisoning first. The acidosis is a symptom of the toxic effect. | T51.1X1A (Toxic effect of methanol, accidental, initial encounter) |
| Metabolic Acidosis, Etiology Unknown | No | Code E87.2 as the principal diagnosis. | E87.2 (Acidosis) |
| Renal Tubular Acidosis (RTA) | Yes | Code the specific type of RTA. E87.2 is generally not used additionally. | N25.89 (Other disorders resulting from impaired renal tubular function) |
5. Deep Dive into Common Etiologies and Their Specific Codes
Now, let’s apply the paradigm from the previous section to the most common causes of metabolic acidosis.
a) Diabetic Ketoacidosis (DKA) – E10.10-E10.11
DKA is a life-threatening acute complication of diabetes mellitus, most commonly associated with Type 1 Diabetes (T1DM) but also occurring in Type 2 Diabetes (T2DM). It is characterized by the triad of hyperglycemia, ketosis, and metabolic acidosis.
Coding Guidance:
The codes for DKA are combination codes. They include:
-
The type of diabetes (E10 for T1DM, E11 for T2DM)
-
The presence of ketoacidosis
-
The presence or absence of coma
Therefore, you must never assign an additional code for the metabolic acidosis (E87.2). It is explicitly excluded.
-
E10.10: Type 1 diabetes mellitus with ketoacidosis without coma
-
E10.11: Type 1 diabetes mellitus with ketoacidosis with coma
-
E11.10: Type 2 diabetes mellitus with ketoacidosis without coma
-
E11.11: Type 2 diabetes mellitus with ketoacidosis with coma
b) Lactic Acidosis – E87.2 and Beyond
Lactic acidosis is a common and serious form of metabolic acidosis. The coding can be nuanced.
Coding Guidance:
-
If the lactic acidosis is documented without a specified cause, or is the primary focus of treatment, use E87.2.
-
If the lactic acidosis is due to a known underlying condition, code the underlying condition first. You may then add E87.2 as an additional code to provide specificity about the type of acidosis. This is one of the few instances where coding both the cause and E87.2 is common and appropriate because lactic acidosis is not always a routine, inherent part of the underlying disease.
-
Example 1: Lactic acidosis due to septic shock. Code first
R65.21(Severe sepsis with septic shock), thenE87.2(Acidosis). -
Example 2: Lactic acidosis due to metformin use. This would be coded as an adverse effect. Code the nature of the adverse effect first,
E87.2(Acidosis), followed by the code for the drug,T38.3X5A(Adverse effect of insulin and oral hypoglycemic drugs, initial encounter).
-
c) Renal Tubular Acidosis (RTA) – N25.89, E72.09, etc.
RTA is a group of disorders characterized by the kidneys’ inability to acidify urine, leading to a normal anion gap (hyperchloremic) metabolic acidosis. There are several types (Type 1, 2, 4), each with different underlying defects.
Coding Guidance:
RTA is coded to its own specific codes, and E87.2 is generally not used additionally. The challenge is finding the correct code, as it depends on the type and cause.
-
Unspecified RTA: N25.89 (Other disorders resulting from impaired renal tubular function). This is a catch-all code when the type is not specified.
-
RTA Type 1 (Distal): Often coded to N25.89.
-
RTA Type 2 (Proximal): This can be part of Fanconi syndrome. If so, code E72.09 (Other disorders of amino-acid transport).
-
RTA Type 4 (Hyperkalemic): Often due to hypoaldosteronism or drug effects (e.g., NSAIDs, ACE inhibitors). Code the underlying cause if known (e.g.,
E27.49for other adrenocortical insufficiency) or the drug effect.
d) Poisonings and Toxic Ingestions – T Codes
Toxins are a major cause of severe, high-anion gap metabolic acidosis. The coding follows specific guidelines for poisonings, adverse effects, and underdosing.
Coding Guidance:
-
First, code the poisoning/toxic effect. The codes are found in Chapter 19 (Injury, poisoning, and certain other consequences of external causes), categories T36-T65.
-
Use a code from T51-T65 for the substance, with a 5th or 6th character specifying “accidental,” “intentional self-harm,” “assault,” or “undetermined.”
-
Example:
T51.1X1A– Toxic effect of methanol, accidental (unintentional), initial encounter.
-
-
Then, code the manifestation. This is where the metabolic acidosis is coded. Use E87.2.
-
Additional codes may be needed for other manifestations (e.g.,
H35.361for retinal hemorrhage in methanol poisoning) or for retained foreign body (Z87.821, Z18.-).
e) Other Underlying Causes
-
Starvation Ketoacidosis: Code E87.2 (Acidosis). You may also code R63.0 (Anorexia) or T73.0 (Starvation) if applicable.
-
Diarrhea: If severe diarrhea is the cause of the metabolic acidosis, code the cause of the diarrhea first (e.g.,
A09for infectious gastroenteritis and colitis, unspecified), and then E87.2. -
Inborn Errors of Metabolism: These are coded to specific codes in Chapter 4 (e.g.,
E71.110for Propionic acidemia, which causes acidosis).
6. Clinical Documentation: The Bedrock of Accurate Coding
The coder is entirely dependent on the quality of the physician’s documentation. Ambiguous or incomplete documentation is the primary source of coding errors and denials.
What Coders Need to See in the Record:
-
A Clear Statement of the Diagnosis: “Metabolic acidosis,” “Acidosis,” “High anion gap metabolic acidosis,” etc.
-
The Etiology (Cause): The physician must link the acidosis to its cause. Phrases like “due to,” “secondary to,” “attributed to,” or “as a result of” are critical.
-
Good: “Patient presents with severe metabolic acidosis secondary to septic shock.”
-
Poor: “Patient presents with metabolic acidosis and sepsis.” (The link is implied but not explicit).
-
-
Laboratory Evidence: The coder will review blood gas results (low pH, low HCO₃⁻), electrolyte panels (for anion gap calculation), and other relevant tests (lactate, ketones, creatinine). However, the physician’s interpretation and diagnosis based on these labs is what must be coded, not the lab values themselves.
-
Specificity: For DKA, the type of diabetes must be clear. For RTA, the type should be specified if known. For poisonings, the substance should be identified.
The Coder’s Role in Queries: If the documentation is unclear or conflicting, the coder has a professional responsibility to issue a physician query. A query is a formal request for clarification. For example: “The progress note documents metabolic acidosis and chronic kidney disease stage 5. Please clarify if the metabolic acidosis is due to the chronic kidney disease.” This process ensures that the final coded data is accurate and supported by the medical record.
7. Case Studies: Applying Knowledge in Real-World Scenarios
Let’s solidify our understanding with detailed case studies.
Case Study 1: The Uncontrolled Diabetic
-
Presentation: A 22-year-old male with known Type 1 Diabetes is brought to the ER by his family. He is confused, dehydrated, and has Kussmaul respirations. His blood glucose is 550 mg/dL, and he has large ketones in his urine. Arterial blood gas shows pH 7.15, HCO₃⁻ 8 mEq/L.
-
Physician’s Final Diagnosis: “Diabetic Ketoacidosis in a patient with Type 1 Diabetes Mellitus.”
-
Correct Coding: E10.11 (Type 1 diabetes mellitus with ketoacidosis with coma). The acidosis is an integral part of the DKA diagnosis. E87.2 is not assigned.
Case Study 2: The Post-Operative Complication
-
Presentation: A 65-year-old female develops hypotension and low urine output three days after major abdominal surgery. Her lactate level is elevated at 6.5 mmol/L. Blood gas reveals pH 7.25, HCO₃⁻ 14 mEq/L.
-
Physician’s Final Diagnosis: “Septic shock with resulting lactic acidosis.”
-
Correct Coding: R65.21 (Severe sepsis with septic shock) as the principal diagnosis, followed by E87.2 (Acidosis) to specify the type of metabolic acidosis present.
Case Study 3: The Unexplained Illness
-
Presentation: An infant is admitted for failure to thrive and vomiting. Blood work reveals a hyperchloremic metabolic acidosis. The physician performs an extensive workup but cannot initially determine the cause.
-
Physician’s Final Diagnosis: “Metabolic acidosis, etiology unknown. Rule out inborn error of metabolism.”
-
Correct Coding: E87.2 (Acidosis) is the principal diagnosis. As this is the condition being worked up and treated, it is the correct code.
8. The Role of the Coder: Analyst, Translator, and Auditor
The modern medical coder is far more than a data-entry clerk. In the context of a complex condition like metabolic acidosis, the coder acts as:
-
A Clinical Analyst: They must read and interpret complex medical records, understand pathophysiology, and connect clinical findings to diagnostic conclusions.
-
A Language Translator: They translate the narrative description of a patient’s illness (in English) into the standardized alphanumeric language of ICD-10-CM.
-
A Compliance Auditor: They ensure that every code assigned is supported by clinical documentation and complies with official coding guidelines, payer policies, and federal regulations. Incorrect coding can lead to claim denials, audits, and potential legal issues.
This role requires continuous education, critical thinking, and a meticulous attention to detail.
9. Conclusion
Accurately coding metabolic acidosis requires a systematic approach that begins with a firm grasp of its pathophysiology. The cornerstone of this process is the critical distinction between coding the underlying etiology and coding the manifestation itself. Mastery of the ICD-10 guidelines, particularly the Excludes1 notes and the rules for combination codes, is non-negotiable. Ultimately, the integrity of the entire process rests upon clear and precise clinical documentation, with the coder serving as the essential link between the patient’s story and the data that drives modern healthcare.
10. Frequently Asked Questions (FAQs)
Q1: The lab report shows a low bicarbonate level and a low pH. Can I code metabolic acidosis (E87.2) based on this alone?
A: No. You must code based on the physician’s documented diagnosis. While the lab data supports the code, the physician’s interpretation and statement of the diagnosis in the medical record is the ultimate source for code assignment.
Q2: A patient has both diabetic ketoacidosis and lactic acidosis from sepsis. How do I code this?
A: This is a complex scenario requiring careful review of the documentation. The physician must determine and document the “principal diagnosis” – the condition established after study to be chiefly responsible for the admission. If the DKA precipitated the sepsis, E10.10/E10.11 would be principal. If the sepsis with lactic acidosis is the primary issue, R65.21 would be principal, and the DKA would be a secondary diagnosis. You would not code E87.2 for the DKA component, as it is included, but you would code it for the lactic acidosis component if documented.
Q3: What is the code for a high anion gap metabolic acidosis?
A: There is no specific ICD-10-CM code for “high anion gap” metabolic acidosis. The general code E87.2 is used. The underlying cause (e.g., DKA, lactic acidosis, poisoning) will define the anion gap status.
Q4: When is it appropriate to query a physician regarding metabolic acidosis?
A: You should issue a query when:
-
The documentation mentions metabolic acidosis and a potential cause (like CKD or diarrhea) but does not explicitly link them.
-
The lab values strongly suggest acidosis, but the physician has not documented the diagnosis.
-
There is a conflict in the record (e.g., one note says “uremic acidosis,” another says “lactic acidosis”).
11. Additional Resources
-
The Official ICD-10-CM Guidelines for Coding and Reporting: Published annually by the CDC and CMS. This is the definitive source for coding rules.
-
American Health Information Management Association (AHIMA): Provides a wealth of educational resources, practice briefs, and professional development for coders.
-
American Academy of Professional Coders (AAPC): Another leading organization offering certification, training, and networking opportunities for medical coders.
-
UpToDate or DynaMed: Evidence-based clinical decision support resources that can help coders understand the pathophysiology and common etiologies of diseases like metabolic acidosis. (Note: These are typically subscription-based services accessed through hospitals or institutions).
-
The “ICD-10-CM Expert for Physicians” Code Books: Published by various companies (e.g., Optum, AAPC), these code books include color-coding, symbols, and additional notes that can simplify the coding process.
Date: October 13, 2025
Author: Medical Coding & Clinical Insights Team
Disclaimer: The information contained in this article is for educational and informational purposes only and is not intended as a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition or treatment, and before undertaking a new health care regimen. Never disregard professional medical advice or delay in seeking it because of something you have read in this publication. The author and publisher are not responsible for any errors or omissions or for any consequences from the application of the information presented.
