A magnesium deficiency can be diagnosed via a blood or urine test, which your doctor can arrange if you’re displaying certain symptoms or have abnormally high calcium or potassium levels. Signs of a magnesium deficiency include:
Weakness
Irritability
Abnormal heart rhythm
Nausea
Twitching
Cramping