Electrolyte Imbalance and Your ECG

ECG waveform showing electrolyte imbalance patterns on ECG read by Qaly team
Qaly Heart
Qaly is built by Stanford engineers and cardiologists, including Dr. Marco Perez, a Stanford Associate Professor of Medicine, Stanford Cardiac Electrophysiologist, and Co-PI of the Apple Heart Study.

Key Takeaways

Your heart is an incredible electrical machine, beating approximately 100,000 times per day without you even thinking about it. But did you know that this remarkable organ relies heavily on a delicate balance of minerals called electrolytes to function properly?

What Are Electrolytes?

Electrolytes are minerals in your body that carry an electrical charge. Think of them as tiny electrical conductors that help your heart's cells communicate with each other.

The main electrolytes that affect your heart include:

  • Potassium
  • Sodium
  • Calcium
  • Magnesium

Each plays a unique and vital role in maintaining your heart's normal rhythm and function.

Your heart muscle cells use these electrolytes to create and conduct electrical impulses. When electrolyte levels are balanced, your heart beats in a steady, coordinated rhythm. However, when these levels become too high or too low, it can disrupt your heart's electrical system, leading to changes visible on your ECG, which can potentially cause dangerous arrhythmias.

Who Should Pay Attention?

Understanding this connection is particularly important if you:

  • Are taking medications like diuretics
  • Have kidney disease
  • Experience severe vomiting or diarrhea
  • Have chronic conditions that affect electrolytes

Your smartwatch ECG or regular medical ECGs can provide valuable insights into whether your electrolyte levels might be affecting your heart.

Potassium

Normal Range: 3.5 to 5.0 mEq/L

Potassium is perhaps the most critical electrolyte for heart function. It regulates both the contraction and relaxation of each heartbeat.

Hypokalemia (Low Potassium)

Causes: Diuretics, sweating, vomiting/diarrhea, poor diet, certain antibiotics

Symptoms: Muscle weakness, fatigue, cramping, constipation, palpitations

ECG Changes:

  • Flattened T waves
  • Inverted T waves
  • Prominent U waves
  • ST segment depression
  • Prolonged QT interval

Severe risks: Dangerous arrhythmias, including torsades de pointes

Hyperkalemia (High Potassium)

Causes: Kidney disease, ACE inhibitors, potassium-sparing diuretics, supplements

Symptoms: Muscle weakness, numbness, nausea, slow/irregular heartbeat

ECG Changes:

  • Tall, peaked T waves
  • Flattened or absent P waves
  • Prolonged PR interval
  • Widened QRS complex

Calcium

Normal Range: 8.5 to 10.5 mg/dL

Calcium is essential for heart muscle contraction and electrical activity.

Hypocalcemia (Low Calcium)

Causes: Vitamin D deficiency, kidney disease, hypoparathyroidism, GI malabsorption

Symptoms: Muscle cramps, tingling, spasms, seizures, irregular heartbeat

ECG Changes:

  • Prolonged QT interval (especially due to a prolonged ST segment)

Hypercalcemia (High Calcium)

Causes: Hyperparathyroidism, cancer, vitamin D overdose, thiazide diuretics

Symptoms: Kidney stones, bone pain, constipation, mental changes, arrhythmias

ECG Changes:

  • Shortened QT interval
  • Elevated ST segment (Note: changes like this may not be reliably visible on a single-lead ECG from devices like the Apple Watch)
  • Risk of heart block or other arrhythmias

example of short QT interval from apple watch
Take a look at this short QTc interval recorded on a Qaly member’s Apple Watch ECG.

Magnesium

Normal Range: 1.7 to 2.2 mg/dL

Magnesium is often overlooked but plays a crucial role in regulating the heart’s electrical stability.

Hypomagnesemia (Low Magnesium)

Causes: Alcoholism, diuretics, GI loss, diabetes, PPIs

Symptoms: Muscle cramps, fatigue, seizures, personality changes, palpitations

ECG Changes:

Risks: Atrial fibrillation, torsades de pointes

Low magnesium and afib. Example of the Fitbit ECG, read by Qaly team.
Afib detected on a Fitbit ECG using the Qaly app. Low magnesium is a common trigger and can increase the risk of developing atrial fibrillation.

Hypermagnesemia (High Magnesium)

Causes: Kidney failure, excessive intake (supplements, medications)

Symptoms: Weakness, low reflexes, low BP, respiratory depression

ECG Changes:

  • Prolonged PR interval
  • Widened QRS
  • Bradycardia or cardiac arrest (in severe cases)

Example of Sinus Bradycardia recorded on Apple Watch and reviewed by Qaly team.
Here’s a case of sinus bradycardia recorded on a Qaly member’s Apple Watch ECG. A normal resting heart rate is typically between 60 and 100 beats per minute. In this case, the heart rate is slower than usual, which can sometimes happen when magnesium levels are too high and slow down the heart’s electrical signals.

Get your ECG checked by certified experts within minutes on the Qaly app.

Try Qaly for Free
App Store - Download Qaly | ECG Reader
Download Qaly
Google Play - Download Qaly | ECG Reader
Download Qaly
Start today, cancel any time
QALY app - ecg reviews, ecg reader, ecg interpretations, review your ecg

Sodium

Normal Range: 135–145 mEq/L

While sodium imbalances mostly affect fluid balance and the nervous system, they can also affect cardiac function.

Hyponatremia (Low Sodium)

Causes: Diuretics, heart failure, excessive water intake

Symptoms: Confusion, weakness, nausea

ECG Changes (severe cases):

  • Prolonged QT
  • ST elevation
  • Brugada-like patterns

Example of long QTc on Apple Watch ECG from Qaly team.
Here’s a prolonged QTc interval recorded on a Qaly member’s Apple Watch ECG. Low sodium can be one possible cause, as it affects how the heart sends and resets its electrical signals.

Hypernatremia (High Sodium)

Causes: Dehydration, diabetes insipidus, overuse of salt

Symptoms: Irritability, restlessness, muscle twitching

ECG Changes:

Example of sinus tachycardia on Samsung watch ecg. Read and review by Qaly team.
Sinus tachycardia recorded on a Samsung Watch ECG through the Qaly app. High sodium levels can sometimes raise blood pressure and put extra stress on the heart, leading to a faster heart rate like this.

Multiple Imbalances

Electrolyte imbalances often occur together, especially with:

  • Diuretic use: can cause low potassium, sodium, and magnesium
  • Kidney disease: can cause high potassium and low calcium
  • Alcoholism or malnutrition: can lead to widespread deficiencies

Some imbalances make others worse:

  • Low magnesium prevents correction of low potassium
  • Low calcium may resist treatment unless magnesium is restored

Causes of Electrolyte Imbalance

Medications:

  • Diuretics: Cause low potassium, sodium, magnesium
  • ACE inhibitors/ARBs: Can raise potassium
  • PPIs: Linked to low magnesium
  • Antibiotics, chemotherapy: Affect electrolyte absorption or excretion

Medical Conditions:

  • Kidney disease
  • Diabetes
  • GI disorders (vomiting, diarrhea, IBD)
  • Endocrine disorders (parathyroid, adrenal, thyroid issues)

Lifestyle Factors:

  • Alcohol consumption
  • Extreme dieting or eating disorders
  • Excessive sweating
  • Dehydration or overhydration

ECG as a Clue

While ECGs can't directly measure electrolyte levels, they provide critical clues:

  • T wave changes = Potassium
  • QT interval = Calcium/Magnesium
  • U waves = Hypokalemia

Smartwatch ECGs, such as those from the Apple Watch, can be helpful for detecting rhythm abnormalities like atrial fibrillation or tachycardia. Some electrolyte-related changes, such as prolonged QT intervals, can be reliably detected. However, others, such as subtle ST segment shifts, often require a full 12-lead ECG for accurate interpretation.

  • Atrial fibrillation
  • Bradycardia or tachycardia

Prevention & Monitoring

Stay on Top of It:

  • Eat a balanced, electrolyte-rich diet
  • Stay hydrated appropriately
  • Know your medications and risks
  • Monitor with blood tests as advised

Watch for Red Flags:

  • Severe muscle weakness or paralysis
  • Difficulty breathing
  • Chest pain
  • Palpitations
  • Fainting

Conclusion

That wraps up our in-depth guide on how electrolyte imbalances can affect your ECG. We hope it helped you better understand how minerals like potassium, calcium, magnesium, and sodium play a vital role in your heart’s electrical system. If you’re ever feeling uncertain about what you’re seeing on your ECG, you are not alone. Electrolyte shifts can be tricky, and interpreting those subtle changes can feel overwhelming. That’s exactly why we built the Qaly app.

With Qaly, human experts review your ECGs in minutes to help you spot patterns, understand possible changes, and feel more confident about your heart health. To get started, download the Qaly app from the App Store or Play Store. And if you ever need help or have questions, just reach out to us at support@qaly.co.

Qaly experts review your ECGs and explain how imbalances may be affecting your heart. Start monitoring today.

Try free, cancel any time
Download Qaly
White arrow - Click button to get Qaly App - ECG Reader
App Store - Download Qaly | ECG Reader
Download Qaly
Google Play - Download Qaly | ECG Reader
Download Qaly
Start today, cancel any time
QALY app - ecg reviews, ecg reader, ecg interpretations, review your ecg

Get unlimited ECG reviews today, cancel anytime -->

Get unlimited ECG reviews today, cancel anytime -->

Qaly experts review your ECGs and explain how imbalances may be affecting your heart. Start monitoring today.

Download Qaly
White arrow - Click button to get Qaly App - ECG Reader