Yes, you can take magnesium before a DEXA scan, and in most cases you should keep taking it exactly as usual. Magnesium does not bind appreciably to the calcium hydroxyapatite that DEXA measures, does not attenuate X-ray beams enough to shift bone mineral density results, and is not listed as an interfering substance on major bone densitometry protocols. The real exceptions are narrow: a magnesium supplement taken in the final hours before scanning can contribute soft-tissue density in the abdomen, and people scheduled for a scan with a tracer-based component (rare) may face different rules. For a standard lumbar spine and hip scan, your magnesium bottle is not the problem.
The mechanism: why magnesium rarely distorts a DEXA reading
DEXA works by passing two X-ray beams at different energies through tissue and measuring how much each beam is attenuated. The system solves for two unknowns: bone mineral content and soft-tissue thickness. Bone mineral density is reported in grams of mineral per square centimeter.
Magnesium sits in the body at roughly 25 grams total, with about 60 percent locked in bone. But bone mineral is mostly calcium phosphate in the form of hydroxyapatite. Magnesium is a minor substituent, contributing well under 1 percent of the mineral mass DEXA detects. A standard 200 to 400 mg supplement adds a tiny mass relative to the 1 to 1.5 kg of calcium in an adult skeleton.
The scanner's calibration also matters. DEXA units are factory-calibrated with phantoms of known mineral content, and the attenuation difference between magnesium and calcium is small at the beam energies used (typically around 40 and 70 keV). The result: even a substantial oral magnesium load shifts measured BMD by a fraction of the scanner's own least significant change, which is usually 0.01 g/cm².
In plain terms: DEXA is looking for calcium-dense bone, and magnesium barely registers on that scale.
Quantified: how much can magnesium actually move a BMD number
Published reproducibility data put DEXA precision for lumbar spine at around 1 to 1.5 percent, meaning the statistically meaningful change threshold (least significant change) sits near 2.5 to 3 percent at 95 percent confidence. That is the yardstick any supplement effect must clear.
| Interference source | Typical BMD shift | Clears the 2.5–3% LSC? |
|---|---|---|
| Oral magnesium supplement (200–400 mg) | Below 0.5% | No |
| Recent calcium supplement | 0.5–1.5% in some studies | Usually no |
| Degenerative spine changes (osteophytes) | 5–15% overestimate | Yes, frequently |
| Prior vertebral fracture | 3–10% overestimate | Yes |
| Abdominal soft-tissue artifact | 1–4% | Sometimes |
| Body position/alignment error | 1–3% | Sometimes |
| Loose clothing, metal buttons | 2%+ locally | Yes |
The comparison is the point. Magnesium sits in the noise floor, while degenerative disease, fractures, and positioning errors routinely exceed the threshold where a change becomes clinically meaningful. If your scan is off, a supplement is not the usual culprit.
When timing and dose start to matter
Timing matters less for the bone reading and more for the soft-tissue correction. DEXA subtracts soft-tissue attenuation to isolate bone, and the algorithm assumes a reasonably homogeneous soft-tissue field. A large supplement drink taken 30 to 60 minutes before the scan adds fluid and mineral mass in the stomach and bowel, which in principle can perturb the soft-tissue model (usually around L1–L4).
In practice, the effect is small for ordinary doses. A 400 mg magnesium tablet dissolved in a glass of water adds negligible mass. A liter of magnesium-rich mineral water is a different situation: it can add about a kilogram of fluid and some dissolved mineral, which is why some densitometry centers ask patients to fast or avoid large drinks for two hours before abdominal scanning.
Dose thresholds worth knowing:
- Under 400 mg elemental magnesium: no timing change needed in most protocols.
- 400 to 800 mg: acceptable, but avoid taking it within one hour of the appointment if your scan includes the spine.
- Above 800 mg: discuss with your clinician; higher doses are more likely to cause loose stools, which can alter bowel gas and soft-tissue appearance.
Magnesium versus other supplements: a comparison
People ask about magnesium because they lump it with calcium and vitamin D. The evidence does not treat all three the same way. Here is how they compare for scan interference and for bone health relevance.
| Supplement | Effect on DEXA scan accuracy | Effect on bone health | Practical rule |
|---|---|---|---|
| Magnesium | Minimal (below LSC) | Modest; supports bone matrix enzymes | Continue as usual |
| Calcium | Small but measurable if taken pre-scan | Strong evidence for bone density | Hold 24 hours before scan if instructed |
| Vitamin D | None (not radiopaque at doses) | Strong; aids calcium absorption | Continue |
| Strontium ranelate | Large; strontium is heavier than calcium | Effective but restricted | Disclose; can falsely raise BMD |
| Aluminum antacids | Small; chronic use affects bone | Negative if chronic | Disclose antacid use |
Strontium deserves a note because it is the classic counterintuitive case. Strontium atoms are heavier than calcium and absorb X-rays differently, so strontium incorporated into bone can inflate apparent BMD by several percent. Magnesium has no such effect because it is lighter and present in much smaller amounts. If a clinician is worried about a falsely high BMD, strontium is the supplement to check, not magnesium.
The timeline: what to do in the 48 hours around your scan
A time course helps most patients, because the practical rules differ by hours and by whether the scan includes the spine. The table below reconciles the common instructions. Note that fasting thresholds (typically 2 hours for abdominal scans) and supplement-hold windows (24 hours for calcium, 0 for magnesium) are different numbers for different reasons, and they are not interchangeable.
| Time before scan | Action | Why |
|---|---|---|
| 48 hours | Confirm whether scan includes spine or hip only | Spine scans are more sensitive to abdominal soft tissue |
| 24 hours | Continue magnesium; hold calcium only if your center instructs | Calcium is more radiopaque than magnesium |
| 12 hours | Avoid large mineral-water volumes, heavy meals | Reduces bowel gas and fluid artifact |
| 2 hours | Fast per center instructions; small sip of water with magnesium is fine | Most centers use a 2-hour fast for abdominal regions |
| 60 minutes | Skip a large magnesium drink | Limits stomach fluid at the L1–L4 level |
| On arrival | Wear loose clothing, no metal; tell staff about all supplements | Metal and dense fabric can shift readings locally |
| After scan | Resume normal magnesium; no restriction | No lingering effect on bone measurements |
Misconceptions and edge cases worth knowing
The most common misconception is that any supplement taken before a scan will "contaminate" the result. DEXA is a two-energy technique designed precisely to separate bone from soft tissue, and it tolerates ordinary dietary and supplement variation well. The contaminants that reliably matter are dense materials: metal hardware, barium from a recent contrast study, and strontium.
A second misconception is that magnesium affects bone density testing by altering bone mineral content. Magnesium is a cofactor for enzymes that build bone matrix, but it does not deposit as a radiopaque mineral the way calcium and strontium do. Its role is biochemical, not radiographic.
Edge cases that change the answer:
- A scan ordered with a nuclear medicine tracer (for example, some research protocols combining DEXA with other imaging): follow the tracer's specific prep, not the standard bone rule.
- Recent barium or iodine contrast from a CT or GI study: wait the interval your center specifies, often 7 to 14 days depending on the agent.
- Bariatric surgery or short bowel: absorption of magnesium and other minerals changes, and the bone health question is worth discussing separately.
- Pregnancy: DEXA is generally avoided, so the supplement question is moot until after delivery.
What to actually do
The positive actions are simple and specific.
- Keep taking your magnesium supplement unless your scan center explicitly tells you otherwise.
- Tell the technologist the name, dose, and timing of every supplement you take, including magnesium, calcium, and any antacids.
- Hold calcium supplements for 24 hours before a spine-inclusive scan if your center asks; do not assume the same rule applies to magnesium.
- Avoid large mineral-water drinks in the two hours before an abdominal or spine scan.
- Bring a list of recent imaging studies with contrast so the staff can check for barium or iodine interference.
- Ask whether your result will be compared to a prior scan, because reproducibility thresholds (around 2.5 to 3 percent) determine whether any change is real.
Limitations: what this guidance cannot cover
This advice reflects standard practice for central DEXA of the lumbar spine and hip in adults. It does not cover peripheral DEXA (heel or forearm), pediatric protocols, or body-composition scans, which have different calibration and prep rules. It also cannot replace your scan center's written instructions, which take precedence.
The evidence base for magnesium's non-interference is largely mechanistic and indirect. Few controlled trials have directly tested supplemental magnesium against DEXA reproducibility, so the confidence here comes from physics and calibration data rather than dedicated trials. For strontium and barium, the interference is documented and clinically important. For magnesium, the signal is small enough that it sits below the measurement's own noise, which is the most useful fact to carry into your appointment.