Fractional Excretion of Magnesium (FEMg) Calculator
Use serum and urine magnesium plus creatinine values to estimate renal magnesium handling and identify potential renal magnesium wasting.
How to Calculate Fractional Excretion of Magnesium: Expert Clinical Guide
Fractional excretion of magnesium (FEMg) is one of the most useful renal electrolyte tools when you need to determine whether magnesium loss is primarily renal or extra-renal. In practical medicine, this question appears constantly: a patient has hypomagnesemia, but is the kidney appropriately conserving magnesium, or is it wasting magnesium inappropriately? FEMg provides a ratio-based way to answer that question using paired serum and urine measurements.
The central idea is simple. If serum magnesium is low, a healthy kidney should reduce urinary magnesium excretion. If urinary magnesium remains relatively high despite low serum magnesium, renal wasting is likely. FEMg quantifies this behavior and helps guide workup for causes like medication-related tubular dysfunction, inherited tubulopathies, post-transplant mineral losses, and nephrotoxic injury.
Core Formula
The classic equation is:
FEMg (%) = (Urine Mg × Serum Cr) / (0.7 × Serum Mg × Urine Cr) × 100
The 0.7 factor reflects the approximate ultrafilterable fraction of plasma magnesium (the biologically filterable portion at the glomerulus). Some protocols do not include this correction, so calculator tools often provide both options. In most nephrology references, using 0.7 is standard for clinical interpretation.
Why Creatinine Is in the Formula
Creatinine normalizes for concentration effects and urine dilution. Spot urine magnesium alone can be misleading if the urine is concentrated or dilute. By incorporating serum and urine creatinine, FEMg approximates the filtered magnesium load that escapes reabsorption. That gives clinicians a better physiologic signal than raw urine magnesium concentration.
Step-by-Step: Manual FEMg Calculation
- Collect paired blood and urine samples as close in time as possible.
- Obtain serum magnesium and urine magnesium.
- Obtain serum creatinine and urine creatinine.
- Convert units so serum and urine magnesium are in compatible units, and serum and urine creatinine are in compatible units.
- Apply the formula and multiply by 100 to express as a percentage.
- Interpret in context of medications, kidney function, acid-base status, and volume status.
Common Interpretation Ranges
- < 2%: kidney is usually conserving magnesium; consider extra-renal losses (gastrointestinal losses, poor intake, redistribution).
- ~2 to 4%: often near expected range in stable states; correlate with serum magnesium trend and symptoms.
- > 4%: suggests renal magnesium wasting, especially when hypomagnesemia is present.
Interpretation is not absolute. Ongoing diuretic exposure, reduced GFR, recent magnesium infusion, and acute tubular injury can shift the threshold behavior. That is why FEMg should be treated as a high-value clue, not a standalone diagnosis.
Comparison Table: Typical FEMg Patterns in Clinical Scenarios
| Clinical Setting | Typical FEMg Pattern | Clinical Meaning |
|---|---|---|
| Hypomagnesemia with GI loss (vomiting, diarrhea) | Often < 2% | Kidney response is generally appropriate conservation |
| Medication-induced renal wasting (loop/thiazide diuretics, calcineurin inhibitors, some chemotherapies) | Often > 4%, frequently 6 to 15% in active wasting states | Suggests tubular reabsorptive defect or drug effect |
| Inherited tubular disorders (e.g., Gitelman-like phenotype) | Commonly above normal range, frequently > 4% | Supports renal wasting when correlated with history and genetics |
| Normal magnesium balance | Roughly 2 to 4% (laboratory and context dependent) | Usually consistent with steady-state renal handling |
Real-World Burden of Magnesium Disorders
FEMg matters because hypomagnesemia is common and frequently under-recognized. Clinical prevalence varies by population and assay strategy, but major cohort reviews consistently show magnesium abnormalities in inpatient and critical care settings. These statistics reinforce why structured magnesium assessment including renal handling can improve care.
| Population | Reported Hypomagnesemia Frequency | Clinical Relevance |
|---|---|---|
| General adult population | Approximately 2 to 3% | Lower baseline prevalence, but often nutrition or medication linked |
| Hospitalized patients | Roughly 10 to 20% | Common due to illness severity, drugs, and fluid shifts |
| ICU populations | Approximately 20 to 65% across studies | Associated with arrhythmia risk, neuromuscular complications, and worse outcomes |
| Type 2 diabetes cohorts | Often 14 to 48% depending on criteria and control status | May reflect urinary losses and insulin-related magnesium dynamics |
These ranges are drawn from commonly cited nephrology and internal medicine literature summaries; exact prevalence depends on assay cutoffs, population mix, and timing of testing.
Worked Example
Suppose a patient with muscle cramps has:
- Serum Mg = 1.4 mg/dL
- Urine Mg = 10 mg/dL
- Serum Cr = 1.0 mg/dL
- Urine Cr = 100 mg/dL
FEMg = (10 × 1.0) / (0.7 × 1.4 × 100) × 100
FEMg = 10 / 98 × 100
FEMg = 10.2%
A value around 10% in a hypomagnesemic patient strongly suggests renal magnesium wasting, especially if diuretics, calcineurin inhibitors, alcohol-related tubular injury, or inherited tubulopathy is present.
When FEMg Is Most Useful
- Persistent hypomagnesemia despite supplementation
- Suspected renal losses from medications (loop/thiazide diuretics, aminoglycosides, amphotericin B, cisplatin, tacrolimus, cyclosporine)
- Evaluation of unexplained arrhythmia risk with low magnesium
- Differentiating GI loss from renal wasting in chronic electrolyte disorders
- Complex electrolyte cases with hypokalemia and hypocalcemia
Pitfalls and Limitations
- Timing mismatch: Non-paired specimens can distort interpretation.
- Recent magnesium administration: IV replacement can transiently elevate urine magnesium and FEMg.
- Active diuretics: Can increase urinary magnesium excretion independent of baseline tubular disease.
- Advanced CKD: Tubular handling and filtered load are altered; FEMg thresholds may be less reliable.
- Unit inconsistency: Mixing unmatched units without conversion yields incorrect results.
How FEMg Compares with Other Fractional Excretion Metrics
Most clinicians are familiar with fractional excretion of sodium (FENa) and urea (FEUrea), often used in AKI pattern analysis. FEMg serves a different purpose: electrolyte-specific tubular handling. It is less about prerenal versus intrinsic AKI classification and more about magnesium conservation versus magnesium wasting. In practice, combining FEMg with urine chloride, potassium studies, acid-base profile, and medication review gives a much stronger diagnostic picture than any single marker.
Clinical Decision Framework
A practical, high-yield framework:
- Confirm low serum magnesium and clinical significance (symptoms, ECG findings, associated hypokalemia/hypocalcemia).
- Calculate FEMg from paired samples.
- If FEMg is low, prioritize extra-renal causes: GI losses, low intake, redistribution.
- If FEMg is high, investigate renal causes: medications, tubular disorders, post-obstructive states, inherited syndromes.
- Replete magnesium and treat root cause; then reassess trends rather than single values.
Evidence-Informed Clinical Context
Magnesium dysregulation has meaningful implications in cardiology, nephrology, endocrinology, and critical care. Low magnesium has been associated with ventricular arrhythmias, refractory hypokalemia, and neuromuscular irritability. In CKD, magnesium dynamics are nuanced: some patients retain magnesium while others continue to waste depending on medication exposure and tubular health. That complexity is exactly why FEMg remains useful at the bedside.
Authoritative References and Further Reading
- National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK): Kidney Disease Overview
- NIH Office of Dietary Supplements: Magnesium Fact Sheet for Health Professionals
- NCBI Bookshelf (NIH): Hypomagnesemia Clinical Review
Bottom Line
To calculate fractional excretion of magnesium correctly, use paired serum and urine magnesium plus creatinine values, apply the FEMg formula with the ultrafilterable magnesium factor when appropriate, and interpret the result in full clinical context. In many real-world cases, FEMg is the turning point that distinguishes extra-renal depletion from renal wasting and directly changes treatment strategy.