Hypomagnesemia
How the code is built
E
Chapter
Endocrine, nutritional and metabolic diseases
83
Category
Disorders of mineral metabolism
4
Char 4
Disorders of magnesium metabolism
2
Char 5
Low, rather than high or other
Chapter
E00 to E89
Block
E70 to E88
Category
E83
Subcategory
E83.4
Billable
Yes
Inclusion terms
None
Excludes1 at E83
Dietary mineral deficiency, parathyroid disorders, vitamin D deficiency
Key takeaways
- E83.42 codes hypomagnesemia as a disorder of mineral metabolism
- A separate code for magnesium deficiency sits in the nutritional deficiency block, and the two are mutually exclusive
- Vitamin D deficiency and parathyroid disorders are both Excludes1 above this code
- The code carries no severity and no acuity, so every degree of low magnesium reports identically
- It is billable, and its most valuable use is as a companion code that routinely gets dropped
What ICD-10 code E83.42 means
Code
Descriptor
Chapter
Block
Category
Subcategory
Billable
Inclusion terms
Excludes1 at E83
| Attribute | Detail |
|---|---|
| Code | E83.42 |
| Descriptor | Hypomagnesemia |
| Chapter | Endocrine, nutritional and metabolic diseases |
| Block | Metabolic disorders |
| Category | E83, disorders of mineral metabolism |
| Subcategory | E83.4, disorders of magnesium metabolism |
| Billable | Yes |
| Inclusion terms | None at the code line |
| Excludes1 at E83 | Dietary mineral deficiency (E58 to E61), parathyroid disorders (E20 to E21), vitamin D deficiency (E55.-) |
A direction axis, and a fork the coder has to choose
The direction axis within magnesium metabolism
Magnesium disorder, direction not stated
E83.40
High magnesium
E83.41
Low magnesium
E83.42
This codeAnother magnesium disorder
E83.49
The fork that sits outside the category
A metabolic derangement, including renal magnesium wasting and hereditary tubular disorders
A nutritional deficiency from inadequate intake or malabsorption
| Framing in the record | Where it classifies |
|---|---|
| A metabolic derangement, including renal magnesium wasting and hereditary tubular disorders | E83.42 |
| A nutritional deficiency from inadequate intake or malabsorption | The magnesium deficiency code in the nutritional block |
What the code does not record
Serum magnesium value
Mild, moderate or severe
Acute or chronic
Renal versus gastrointestinal loss
Symptomatic or asymptomatic
| Documented detail | Effect on the code |
|---|---|
| Serum magnesium value | None |
| Mild, moderate or severe | None |
| Acute or chronic | None |
| Renal versus gastrointestinal loss | None directly, though named tubular disorders have their own codes |
| Symptomatic or asymptomatic | None |
Clinical findings documented under E83.42
Laboratory
Neuromuscular
Cardiac
Neurologic
Source of loss
Companion abnormalities
What the chart must show
- A provider-stated diagnosis, since the value alone is a laboratory finding
- Whether the low magnesium is framed as a metabolic disorder or a nutritional deficiency
- The serum magnesium result, with potassium and calcium where obtained
- The route of loss, whether gastrointestinal, renal, or reduced intake
- Medications contributing to it, named individually
- Any named underlying disorder, such as a renal tubular condition
- Coexisting electrolyte abnormalities, documented separately so each can be reported
- Treatment given, whether oral or intravenous replacement, and the monitoring plan
When to assign E83.42, and when not to
Hypomagnesemia, framed as a metabolic disorder
Low magnesium, no framing offered
Magnesium deficiency from inadequate intake or malabsorption
Hypermagnesemia
Magnesium disorder, direction not stated
Hypomagnesemia with hypokalemia
Hypomagnesemia with hypocalcemia
Vitamin D deficiency
A parathyroid disorder
Bartter's syndrome
Hypomagnesemia from a documented drug
A low magnesium value with no diagnosis stated
| The record says | Assign |
|---|---|
| Hypomagnesemia, framed as a metabolic disorder | E83.42 |
| Low magnesium, no framing offered | E83.42, or query where a nutritional cause is documented |
| Magnesium deficiency from inadequate intake or malabsorption | The nutritional deficiency code; never with E83.42 |
| Hypermagnesemia | E83.41 |
| Magnesium disorder, direction not stated | E83.40 |
| Hypomagnesemia with hypokalemia | E83.42 and E87.6 |
| Hypomagnesemia with hypocalcemia | E83.42 and E83.51 |
| Vitamin D deficiency | E55.-, never with an E83 code |
| A parathyroid disorder | E20 to E21, never with an E83 code |
| Bartter's syndrome | E26.81 |
| Hypomagnesemia from a documented drug | The applicable code with the adverse effect code, following the branch the documentation supports |
| A low magnesium value with no diagnosis stated | Query, since a laboratory finding is not a diagnosis |
Instructional notes above E83.42
Excludes1 at E83
Excludes1 at E83
Excludes1 at E83
Excludes1 at E58 to E61
Use additional at E58 to E61
Excludes1 at E70 to E88
| Note | Content |
|---|---|
| Excludes1 at E83 | Dietary mineral deficiency (E58 to E61) |
| Excludes1 at E83 | Parathyroid disorders (E20 to E21) |
| Excludes1 at E83 | Vitamin D deficiency (E55.-) |
| Excludes1 at E58 to E61 | Disorders of mineral metabolism (E83.-), pointing back at this code |
| Use additional at E58 to E61 | An adverse effect code identifying the drug, where applicable |
| Excludes1 at E70 to E88 | Congenital adrenal hyperplasia (E25.0), Marfan syndrome (Q87.4-), and others |
Two of the three run against conditions that genuinely co-occur with low magnesium, which is where the difficulty lies.
Codes frequently confused with E83.42
E83.40
Descriptor
Use instead when
E83.41
Descriptor
Use instead when
E83.49
Descriptor
Use instead when
E61.2
Descriptor
Use instead when
E83.51, E83.52
Descriptor
Use instead when
E83.50, E83.59
Descriptor
Use instead when
E87.6, E87.5
Descriptor
Use instead when
E87.1, E87.0
Descriptor
Use instead when
E83.81
Descriptor
Use instead when
E83.9
Descriptor
Use instead when
E55.-
Descriptor
Use instead when
E20.-, E21.-
Descriptor
Use instead when
E26.81
Descriptor
Use instead when
E58 to E61
Descriptor
Use instead when
| Code | Descriptor | Use instead when |
|---|---|---|
| E83.40 | Disorders of magnesium metabolism, unspecified | A magnesium disorder is documented without direction |
| E83.41 | Hypermagnesemia | Magnesium is elevated |
| E83.49 | Other disorders of magnesium metabolism | Another named magnesium disorder is documented |
| E61.2 | Magnesium deficiency | The deficiency is framed as nutritional, which the reciprocal Excludes1 separates from E83.42 |
| E83.51, E83.52 | Hypocalcemia and hypercalcemia | Calcium is abnormal, reportable alongside |
| E83.50, E83.59 | Unspecified and other disorders of calcium metabolism | A calcium disorder is documented |
| E87.6, E87.5 | Hypokalemia and hyperkalemia | Potassium is abnormal, reportable alongside |
| E87.1, E87.0 | Hypo-osmolality and hyponatremia, hyperosmolality and hypernatremia | Sodium is abnormal, reportable alongside |
| E83.81 | Hungry bone syndrome | Post-parathyroidectomy mineral shift is documented |
| E83.9 | Disorder of mineral metabolism, unspecified | A mineral disorder is documented without further detail |
| E55.- | Vitamin D deficiency | Vitamin D deficiency is documented, which the Excludes1 blocks |
| E20.-, E21.- | Hypoparathyroidism and hyperparathyroidism | A parathyroid disorder is documented, which the Excludes1 blocks |
| E26.81 | Bartter's syndrome | Bartter's syndrome is documented as the underlying cause |
| E58 to E61 | Dietary calcium, selenium, zinc, and other mineral deficiencies | Another nutritional mineral deficiency is documented |
Services commonly reported with E83.42
Coding errors that cause denials
Reporting E83.42 and the nutritional magnesium deficiency code together
Reporting E83.42 with a vitamin D deficiency code
Reporting E83.42 with a parathyroid disorder code
Coding E83.42 from a magnesium value the provider never addressed
Dropping the hypokalemia or hypocalcemia code
Omitting the adverse effect code in a drug-related case
Searching for a severity or acuity character
Assigning E83.40 when the record states the magnesium is low
Billing serial magnesium testing with no documented reason
| Error | Correction |
|---|---|
| Reporting E83.42 and the nutritional magnesium deficiency code together | Choose one, since each category excludes the other |
| Reporting E83.42 with a vitamin D deficiency code | Choose one, since the Excludes1 at E83 prohibits the pair |
| Reporting E83.42 with a parathyroid disorder code | Choose one, since the Excludes1 at E83 prohibits the pair |
| Coding E83.42 from a magnesium value the provider never addressed | Query, since abnormal findings are not coded without stated clinical significance |
| Dropping the hypokalemia or hypocalcemia code | Report each, since none is prohibited alongside |
| Omitting the adverse effect code in a drug-related case | Add it, following the branch the documentation supports |
| Searching for a severity or acuity character | Report E83.42, since neither exists |
| Assigning E83.40 when the record states the magnesium is low | Assign E83.42 |
| Billing serial magnesium testing with no documented reason | Record the replacement course and the clinical question behind each draw |
Where to verify E83.42
ICD-10-CM Official Guidelines for Coding and Reporting
ICD-10-CM Tabular List at E83 and at E58 to E61
CMS ICD-10 code page and the FY 2026 files
Laboratory NCD list
Medicare Coverage Database
Find the specificity
before the payer does
TruRev validates diagnosis specificity, sequencing, and medical necessity at charge entry, then routes what fails to a certified coder instead of the clearinghouse.