Proper levels of potassium are necessary for the regular rhythm of the heart. Imbalances in potassium levels (both high and low) can lead to serious heart rhythm abnormalities or arrhythmias. Sodium is also an important electrolyte for nerve and muscle function, but potassium is particularly critical for controlling the heart's electrical activity and muscle contraction sequence.