ICD-10 Code

A Comprehensive Guide to ICD-10 Codes for Altered Mental Status

Altered Mental Status (AMS). It is one of the most common, yet most vexing, presentations in all of healthcare. A patient arrives in the Emergency Department, or a nurse notices a change in a hospitalized patient—they are confused, disoriented, lethargic, or agitated. For the clinician, this is a red flag, a symptom shouting that something is fundamentally wrong, a puzzle that must be solved through history, examination, and diagnostic testing. For the medical coder, however, AMS presents a different kind of challenge: a labyrinth of potential codes, strict guidelines, and the critical responsibility of translating a vague symptom into a precise alphanumeric language that drives reimbursement, quality metrics, and healthcare data.

The ICD-10-CM code that often first comes to mind for Altered Mental Status is R41.82, “Other symptoms and signs involving cognitive functions and awareness.” Yet, herein lies the central paradox of coding for AMS: R41.82 is frequently the wrong code to use. Its application is governed by a specific and often-misunderstood official guideline that prioritizes specificity above all else. Using R41.82 when a more definitive diagnosis is known or can be inferred is not just a coding error; it is a failure to capture the true clinical picture, potentially leading to inaccurate patient records, skewed hospital statistics, and financial ramifications.

This article is designed to be the definitive guide for medical coders, health information management (HIM) professionals, students, and even clinicians who wish to understand the complexities of documenting and coding for altered mental status. We will embark on a detailed journey, dissecting the official guidelines, exploring the vast differential diagnosis of AMS, and providing a practical, step-by-step workflow to ensure accuracy and compliance. We will move beyond the simple “symptom code” and learn to see the coder not just as a data entry specialist, but as a crucial diagnostic partner in the patient’s care team.

ICD-10 Codes for Altered Mental Status

ICD-10 Codes for Altered Mental Status

Table of Contents

2. Understanding Altered Mental Status: More Than Just “Confusion”

Defining the Spectrum: From Delirium to Obtundation

To code AMS accurately, one must first understand its clinical nature. “Altered Mental Status” is not a single condition but an umbrella term for a broad spectrum of disturbances in a patient’s level of arousal, attention, cognition, and consciousness.

  • Delirium: This is often the most acute form of AMS. It is characterized by a fluctuating course, inattention, disorganized thinking, and an altered level of consciousness (hyperactive, hypoactive, or mixed). Delirium is almost always caused by an underlying medical condition (e.g., infection, metabolic derangement, medication effect).

  • Dementia: In contrast to delirium, dementia is a chronic, progressive decline in cognitive function, particularly memory. While a patient with dementia can develop delirium (a common scenario known as “delirium superimposed on dementia”), the underlying dementia itself is a separate, long-term diagnosis.

  • Encephalopathy: This term is often used interchangeably with delirium but typically implies a more global dysfunction of the brain due to a widespread metabolic, toxic, or physiological insult (e.g., hepatic encephalopathy, septic encephalopathy).

  • Obtundation: A state of decreased alertness and interest in the environment, with slowed psychomotor responses.

  • Stupor: A state of unresponsiveness from which the patient can be aroused only by vigorous and repeated stimuli.

  • Coma: The most profound state, characterized by a complete loss of consciousness and unresponsiveness to all stimuli.

Why this distinction matters for coding: ICD-10-CM has specific codes for many of these states. Using the nonspecific R41.82 for a documented case of “acute delirium” or “septic encephalopathy” would be incorrect.

The Critical Clinical Imperative: AMS as a Red Flag

From a clinical perspective, AMS is never a final diagnosis; it is a symptom of a potentially life-threatening underlying condition. The list of possible causes is extensive, spanning nearly every organ system. This is why the coding process must mirror the clinical process: it is a diagnostic hunt. The coder’s role is to identify the underlying etiology documented in the medical record, as this is the condition that truly defines the patient’s encounter and resource utilization.

3. The Central Challenge: Why R41.82 is Often a “Do Not Code” Code

The most critical rule governing the use of R41.82 is found in the ICD-10-CM Official Guidelines for Coding and Reporting, Section I.C.18.d.

The guideline states:

“Altered mental status”
Codes under subcategory R41.8, Other symptoms and signs involving cognitive functions and awareness, should not be assigned if the underlying, definitive diagnosis is known. Symptoms and signs integral to the disease process should not be assigned as additional codes.

Let’s break this down:

  • “Should not be assigned”: This is a strong, directive statement. It is not a suggestion but a rule.

  • “If the underlying, definitive diagnosis is known”: This is the crux of the matter. The moment a physician documents a cause for the AMS—be it hyponatremia, urinary tract infection, or an acute stroke—the reason for the altered mental status is known, and R41.82 becomes redundant.

  • “Symptoms and signs integral to the disease process”: Altered mental status is a classic example of a symptom that is integral to many disease processes. Confusion is a key feature of hepatic encephalopathy; lethargy is a hallmark of severe hypoglycemia. Coding both the definitive diagnosis and R41.82 is akin to coding both “chest pain” and “acute myocardial infarction”; it is incorrect because the chest pain is an integral part of the heart attack.

The Principle of Specificity: Pursuing the Definitive Diagnosis

This guideline enforces the cardinal rule of medical coding: specificity. The ICD-10-CM system is designed to capture the most precise information about a patient’s condition. A code for “hyponatremia” (E87.1) provides vastly more clinical and administrative value than a code for “altered mental status” (R41.82). It tells the story of what was wrong, how it was treated, and what resources were required.

4. A Deep Dive into the Default Code: R41.82 – Other Symptoms and Signs Involving Cognitive Functions and Awareness

Despite its limited use, it is essential to understand what R41.82 represents.

  • Code: R41.82

  • Code Name: Other symptoms and signs involving cognitive functions and awareness

  • Code Type: Billable/Specific ICD-10-CM code

  • Parent Code: R41.8 – Other symptoms and signs involving cognitive functions and awareness

What R41.82 Encompasses (and What It Doesn’t)

This code is a “catch-all” for cognitive disturbances that are not more specifically defined elsewhere. It can include terms like:

  • Altered mental status (unspecified)

  • Mental change

  • Clouding of consciousness (mild)

Crucially, it excludes many specific conditions:

  • Alterations of consciousness like coma (R40.2-), somnolence (R40.0), and stupor (R40.1).

  • Delirium (which has its own codes: F05, R41.0).

  • Dementia (F01-F03).

  • Dissociative [conversion] disorders (F44.-).

  • Mild cognitive impairment (G31.84).

Appropriate Use Cases for R41.82

So, when is it appropriate to use R41.82? Its use is legitimate in a very narrow set of circumstances:

  1. The Presenting Problem with an Unknown Cause: A patient presents to the ER with confusion. After a comprehensive workup, no specific cause is identified, and the patient is discharged with a final diagnosis of “Altered Mental Status, unspecified.” In this scenario, R41.82 is the only accurate code.

  2. The “Working Diagnosis” at Admission: Upon admission, the reason for admission might be “AMS.” However, the coder must check the discharge summary. If a definitive cause is established by the end of the encounter, R41.82 should not be used as a principal or secondary diagnosis.

  3. Documentation is Insufficient for a More Specific Code: If the physician’s documentation only uses the phrase “altered mental status” and provides no clues or a definitive diagnosis for its cause, even after a query, R41.82 may be the only option. This, however, highlights a documentation issue.

5. The Differential Diagnosis: Mapping Clinical Findings to Precise ICD-10 Codes

This section is the core of the guide. We will systematically explore the common causes of AMS and their corresponding ICD-10-CM codes. The following table provides a high-level overview of this mapping.

 Common Etiologies of Altered Mental Status and Their ICD-10 Codes

Etiological Category Specific Condition Example ICD-10-CM Code(s) Key Documentation Clues
Neurological Delirium (unspecified) F05 “Acute confusion,” “fluctuating mental status,” “inattention.”
Delirium due to another condition F05, plus the underlying condition “Delirium due to UTI.”
Dementia (e.g., Alzheimer’s) G30.9F02.80 “Progressive memory loss,” “chronic cognitive decline.”
Encephalopathy, unspecified G93.40 “Global brain dysfunction,” often used before a cause is found.
Seizure / Post-ictal state G40.909R40.1 History of seizures, witnessed event, confusion after a seizure.
Stroke (CVA) I63.9 Acute focal neurological deficits, confirmed by imaging.
Traumatic Brain Injury S06.9X0A History of trauma, loss of consciousness.
Metabolic/Systemic Hyponatremia E87.1 Low sodium on lab work.
Hypoglycemia E16.2 Low blood glucose.
Hyperglycemia E11.65 (for Type 2) High blood glucose, often with ketoacidosis (E11.10) or HHS.
Hepatic Encephalopathy K72.90 History of liver cirrhosis, elevated ammonia levels.
Uremic Encephalopathy N18.9G93.41 History of CKD/ESRD, elevated BUN/Creatinine.
Sepsis A41.9R65.20 Systemic infection, SIRS criteria, positive blood cultures.
Toxic/Substance Alcohol Intoxication F10.129 Smell of alcohol, slurred speech, ataxia.
Alcohol Withdrawal F10.231 Tachycardia, hypertension, agitation, hallucinations in an alcoholic.
Medication Overdose T36-T50 (6th char “X” for accidental) Known ingestion, toxicology screen.
Opioid Intoxication F11.129 Pinpoint pupils, respiratory depression.
Infectious Meningitis G03.9 Headache, neck stiffness, photophobia.
Encephalitis G04.90 Fever, headache, focal neuro signs.
Urinary Tract Infection N39.0 Dysuria, frequency, positive urinalysis/culture.
Pneumonia J18.9 Cough, fever, infiltrate on CXR.

Section 1: Neurological and Psychiatric Conditions

Delirium (F05, R41.0)

Delirium has a specific code category: F05, Delirium due to known physiological condition. This code is used when the physician explicitly documents “delirium” and links it to an underlying physiological cause (e.g., metabolic imbalance, infection). The code F05 includes “acute confusional state” and “acute infective psychosis.” It is crucial to also code the underlying physiological condition (e.g., E87.1 Hyponatremia).

There is also R41.0, Disorientation, unspecified, which can be used for milder or less specific presentations, but F05 is preferred if the clinical picture fits.

Dementia (F01-F03, G30-G31)

Dementia is a chronic condition. When a patient with known dementia presents with an acute change in mental status, the coder must determine if this is a progression of the dementia (code only the dementia) or an acute delirium superimposed on dementia (code both). Documentation is key. The Alzheimer’s dementia code is G30.9, and it is followed by F02.80 to represent the dementia itself.

Encephalopathy (G93.4, G92, etc.)

“Encephalopathy” is a common and powerful term. The unspecified code is G93.40, Encephalopathy, unspecified. However, there are many specific types:

  • Metabolic Encephalopathy: G93.41

  • Toxic Encephalopathy: G92

  • Hypoxic-Ischemic Encephalopathy (HIE): G93.1

  • Septic Encephalopathy: Code to the sepsis (A41.9) and potentially G93.41. The link between the infection and the brain dysfunction must be clear.

Section 2: Metabolic and Systemic Causes

This is one of the most common categories for AMS, especially in hospitalized and elderly patients.

Electrolyte Imbalances (E87.-)

  • Hyponatremia: E87.1

  • Hypernatremia: E87.0

  • Hypokalemia: E87.6

  • Hypercalcemia: E83.52

If the AMS is clearly attributed to one of these imbalances, code the imbalance and do not code R41.82.

Hypoglycemia (E16.2) and Hyperglycemia (E08-E13)

  • Hypoglycemia: E16.2 is a powerful code. If a diabetic patient is found unconscious and their mental status improves after glucose administration, the cause of the AMS was hypoglycemia.

  • Hyperglycemia: Codes from categories E08-E13 with their associated complications (e.g., E11.10 for Type 2 diabetes with ketoacidosis) are used when hyperglycemia is the cause.

Hepatic Encephalopathy (K72.90)

This is a direct, cause-and-effect relationship. In a patient with liver disease, the AMS is the encephalopathy. Code K72.90, Hepatic failure, unspecified without coma. If coma is present, code K72.91.

Section 3: Toxic and Substance-Induced Causes

Coding for intoxication and withdrawal requires careful attention to the substance and the manifestation.

Acute Intoxication (F10-F19)

Codes from F10-F19 are used for psychiatric and behavioral disorders due to substance use. The 4th character specifies the substance (e.g., F10 for alcohol, F11 for opioids, F14 for cocaine), and the 5th and 6th characters specify the nature of the disorder.

  • Alcohol Intoxication: F10.129 (Alcohol abuse, intoxication, unspecified)

  • Opioid Intoxication: F11.129

For accidental poisoning by drugs, the codes from T36-T50 with a 6th character of “X” for accidental (unintentional) are used. Sequencing depends on the circumstance; if the poisoning was the reason for the encounter, the T-code is sequenced first.

Withdrawal States (F10-F19)

Withdrawal is a distinct clinical state from intoxication.

  • Alcohol Withdrawal: F10.231 (Alcohol withdrawal with withdrawal delirium) or F10.239 (without delirium).

  • Opioid Withdrawal: F11.13

Section 4: Infectious and Inflammatory Causes

Sepsis-Associated Encephalopathy (R65.20, R65.21)

Sepsis is a major cause of AMS. The coding for sepsis is multi-faceted.

  1. Code the underlying systemic infection (e.g., A41.9 for Sepsis, unspecified organism).

  2. Code the severe sepsis, if present, using R65.20 (Severe sepsis without septic shock) or R65.21 (Severe sepsis with septic shock).

  3. Code all associated acute organ dysfunctions. The brain dysfunction (encephalopathy) is one such organ dysfunction. While there is no specific “septic encephalopathy” code, it is captured by the severe sepsis code and the clinical documentation. Do not add R41.82.

Meningitis (G00, G03) and Encephalitis (G04)

These are direct infections of the central nervous system and are definitive diagnoses.

  • Bacterial Meningitis: G00.9

  • Viral Meningitis: G03.9

  • Encephalitis: G04.90

Section 5: Structural and Traumatic Causes

Traumatic Brain Injury (S06.-)

A head injury is a clear, definitive cause for AMS. The S06 category is highly specific, detailing the type of injury (e.g., concussion S06.0X-, diffuse traumatic brain injury S06.2X-). The 7th character for encounter (A, D, S) is critical.

Stroke (I63.-)

An acute cerebrovascular accident (CVA) is a common cause of AMS, especially if it affects certain areas of the brain. The codes in I63 are very specific, detailing the type of stroke (embolic, thrombotic) and the artery involved.

6. The Coder’s Workflow: A Step-by-Step Guide to Accurate AMS Coding

To avoid errors, follow this systematic approach every time you encounter documentation of AMS.

Step 1: Scrutinize the Final Diagnosis
Begin with the discharge summary or the final diagnosis list. What did the physician determine was the ultimate cause of the AMS? If it’s a definitive condition like “urosepsis” or “hyponatremia,” your search is over; code that condition.

Step 2: Interrogate the Clinical Documentation
If the final diagnosis is unclear or still lists “AMS,” delve deeper into the record.

  • History & Physical: What comorbidities are listed? (e.g., cirrhosis, ESRD, diabetes).

  • Consultation Notes: Do specialists (e.g., neurologists, nephrologists) offer a more precise diagnosis?

  • Laboratory & Radiology Reports: Do the results point to a cause? (e.g., critically low sodium, positive blood cultures, new infarct on CT head).

  • Nursing Notes: Do they document improvement after a specific treatment? (e.g., “patient more alert after IV dextrose,” implying hypoglycemia).

Step 3: Navigate the Alphabetic Index and Tabular List
Once you have a potential diagnosis, use the ICD-10-CM index. Look up the specific term (e.g., “Delirium,” “Encephalopathy, metabolic,” “Hyponatremia”). Always verify the code in the Tabular List to check for inclusions, exclusions, and instructional notes.

Step 4: Apply Official Coding Guidelines
Remember the golden rule from I.C.18.d. Do not assign R41.82 if a definitive diagnosis is known. Also, apply other relevant guidelines, such as those for sepsis (I.C.1.d), poisoning (I.C.19), and sequelae.

Step 5: Sequence Codes Correctly
The primary reason for the encounter is the Principal Diagnosis (for inpatient) or First-Listed Diagnosis (for outpatient). If the patient was admitted for workup of AMS and hypoglycemia was found, hypoglycemia is the principal diagnosis. If the patient was admitted for pneumonia and developed hospital-acquired delirium, the pneumonia is principal, and the delirium is a secondary diagnosis.

7. Case Studies: Applying Theory to Real-World Scenarios

Let’s solidify these concepts with practical examples.

Case Study 1: The Elderly Patient with UTI and Delirium

  • Presentation: An 85-year-old female with a history of Alzheimer’s dementia is brought in by family for acute-onset confusion and agitation over 24 hours.

  • Workup: Urinalysis shows positive leukocytes and nitrites. Blood work is unremarkable. Neurological exam non-focal.

  • Final Diagnosis: “Acute delirium due to urinary tract infection. Underlying Alzheimer’s dementia.”

  • Incorrect Coding: R41.82, N39.0, F02.80

  • Correct Coding:

    • F05, Delirium due to known physiological condition (This captures the acute confusional state due to the UTI).

    • N39.0, Urinary tract infection, site not specified (The underlying physiological condition).

    • G30.9, Alzheimer’s disease and F02.80, Dementia in other diseases classified elsewhere without behavioral disturbance (The underlying chronic condition).

  • Rationale: R41.82 is not used because the definitive cause of the acute change (delirium due to UTI) is known. The delirium itself has a specific code (F05) that is directly linked to the UTI.

Case Study 2: The Diabetic Patient with Hypoglycemia

  • Presentation: A 60-year-old male with Type 2 diabetes is found unresponsive by his wife. Paramedics check his blood glucose: 30 mg/dL. He receives IV dextrose and becomes alert and oriented.

  • Final Diagnosis: “Altered mental status secondary to severe hypoglycemia.”

  • Incorrect Coding: R41.82, E11.649

  • Correct Coding:

    • E16.2, Hypoglycemia, unspecified (This is the cause of the AMS and the reason for the ER visit).

    • E11.9, Type 2 diabetes mellitus without complications (The underlying condition).

  • Rationale: The hypoglycemia is the definitive, physiological cause of the AMS. R41.82 is redundant. Note that E11.649 (Type 2 diabetes with hypoglycemia) is not used because the hypoglycemia is not specified as being with coma; E16.2 is more direct for the acute event.

Case Study 3: The Post-Operative Patient with Sepsis

  • Presentation: A patient 3 days post-op from a colectomy becomes lethargic and confused. He is febrile, tachycardic, and hypotensive. Blood cultures are positive for E. coli.

  • Final Diagnosis: “Septic shock with associated septic encephalopathy.”

  • Incorrect Coding: R41.82, A41.9, R65.21

  • Correct Coding:

    • A41.51, Sepsis due to Escherichia coli (The underlying infection).

    • R65.21, Severe sepsis with septic shock (This code encompasses the acute organ dysfunction, which includes the encephalopathy).

  • Rationale: The altered mental status (encephalopathy) is an integral part of the severe sepsis presentation. Coding R41.82 in addition is explicitly incorrect per coding guidelines for sepsis.

8. Common Pitfalls and How to Avoid Them

  • Pitfall 1: Defaulting to R41.82 Without Investigation. This is the most common error. Always assume AMS has a cause and hunt for it in the record.

  • Pitfall 2: Confusing Delirium and Dementia. Remember the “acute” vs. “chronic” distinction. An acute change in a demented patient is often delirium.

  • Pitfall 3: Misunderstanding Sepsis Coding. Do not code a symptom code for AMS when severe sepsis is documented. The organ dysfunction is inherent in the severe sepsis code.

  • Pitfall 4: Ignoring the Sequencing Rules for Poisonings. If the encounter is for an accidental overdose, the poisoning (T-code) is usually sequenced first, followed by codes for the manifestations (e.g., delirium, respiratory failure).

9. The Importance of Physician Query: Closing the Documentation Loop

What if, after a thorough review, the documentation is ambiguous? The answer is a physician query.

  • When to Query: When the cause of AMS is strongly suggested by clinical evidence (e.g., low sodium) but the physician has not explicitly linked the two in their documentation.

  • How to Construct an Effective Query: A query should be non-leading and present the clinical facts.

    • Poor (Leading): “The patient’s AMS was due to hyponatremia, correct?”

    • Excellent (Non-Leading): “The patient was admitted with altered mental status. Lab results show sodium of 118 mEq/L. Can you please clarify the etiology of the patient’s altered mental status?”

A clear, compliant query improves documentation, ensures accurate coding, and protects the facility from audit risks.

10. Conclusion: The Coder as Diagnostic Partner

Coding for altered mental status transcends simple data entry. It requires clinical knowledge, analytical skill, and a meticulous approach to the medical record. By understanding that R41.82 is a code of last resort and by diligently pursuing the underlying, definitive diagnosis, the medical coder moves from being a mere translator to an essential diagnostic partner. Accurate coding in these complex cases ensures that the patient’s story is correctly told, that healthcare data is meaningful, and that providers are reimbursed fairly for the sophisticated care they deliver. The labyrinth of AMS is navigable, one precise code at a time.

11. Frequently Asked Questions (FAQs)

Q1: Can I ever use R41.82 with another definitive diagnosis code?
A: Almost never. The official guideline I.C.18.d is clear: “should not be assigned if the underlying, definitive diagnosis is known.” The only potential exception is if the AMS itself is the focus of additional, specific treatment unrelated to the underlying cause, but this is a rare and complex scenario that should be guided by a certified coding expert and facility policy.

Q2: What is the difference between R41.82 and R40.1 (Stupor)?
A: R40.1, “Stupor,” describes a specific level of consciousness—a state of unresponsiveness from which the patient can be aroused only by vigorous stimulation. R41.82 is a broader, less specific term for a change in cognitive function and awareness that doesn’t meet the criteria for the more defined states like coma, stupor, or delirium. If the documentation specifies “stupor,” R40.1 is the more accurate code.

Q3: How do I code “sundowning”?
A: “Sundowning” (increased confusion and agitation in the evening) is typically a manifestation of an underlying dementia or delirium. Code the underlying condition (e.g., F05 Delirium or F02.80 Dementia). There is no specific ICD-10-CM code for sundowning itself.

Q4: The physician only documents “encephalopathy.” What code should I use?
A: Start with G93.40, Encephalopathy, unspecified. However, you should always check the record for clues to a more specific type (metabolic, toxic, etc.). If strong evidence points to a specific type (e.g., the patient is in liver failure), a query may be warranted to clarify.

Q5: Our EHR has “Altered Mental Status” as a default option for the admission diagnosis. Is this a problem?
A: It can be. While it’s a common presenting problem, the system should be designed to prompt physicians to update this to a more definitive diagnosis upon discharge. HIM departments should work with IT and clinical leadership to educate on the importance of specific final diagnoses and to build systems that encourage this practice.

12. Additional Resources

  • The Official ICD-10-CM Guidelines for Coding and Reporting: Published annually by the CDC and CMS. This is the ultimate authority.

  • American Health Information Management Association (AHIMA): Offers a wealth of resources, practice briefs, and continuing education on coding topics.

  • American Academy of Professional Coders (AAPC): Provides certification, training, and forums for coding professionals.

  • AHA Coding Clinic for ICD-10-CM/PCS: The official source for coding advice and guidance, published by the American Hospital Association. Its rulings are authoritative.

  • Medical Dictionaries and Clinical Textbooks: Resources like Merriam-Webster Medical Dictionary or Harrison’s Principles of Internal Medicine can help coders understand complex clinical terminology.

Date: October 14, 2025
Author: The  Coding Specialist Team
Disclaimer: This article is intended for informational and educational purposes only. It is not a substitute for professional medical coding advice, clinical guidance, or the current, complete ICD-10-CM code set and official guidelines. Medical coders must always consult the most recent official resources and facility-specific policies for accurate coding. The author is not responsible for any errors, omissions, or consequences resulting from the use of this information.

About the author

wmwtl